{
  "version": 3,
  "sources": ["../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.R7QX4M6R.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.VC3BPUZJ.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.7VGCIHDG.js", "../../../../node_modules/@lit/reactive-element/src/css-tag.ts", "../../../../node_modules/@lit/reactive-element/src/reactive-element.ts", "../../../../node_modules/lit-html/src/lit-html.ts", "../../../../node_modules/lit-element/src/lit-element.ts", "../../../../node_modules/@lit/reactive-element/src/decorators/custom-element.ts", "../../../../node_modules/@lit/reactive-element/src/decorators/property.ts", "../../../../node_modules/@lit/reactive-element/src/decorators/state.ts", "../../../../node_modules/@lit/reactive-element/src/decorators/base.ts", "../../../../node_modules/@lit/reactive-element/src/decorators/query.ts", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.AOKMSJXD.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.KBXNFZQL.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.RPQJAXXR.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.RWNXKUCF.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.G5ZZIGWB.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.S35PLDPD.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.XNTP7DEQ.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.PZAN6FPN.js", "../../../../node_modules/@shoelace-style/localize/dist/index.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.M45NRQFW.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.S67PIWQL.js", "../../../../node_modules/lit-html/src/directive.ts", "../../../../node_modules/lit-html/src/directives/class-map.ts", "../../../../node_modules/lit-html/src/directives/if-defined.ts", "../../../../node_modules/lit-html/src/static.ts", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.LXLE4T4D.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.W7A2VLCT.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.EGBUT3HG.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.YDQCS2HK.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.WDIIGUNP.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.O74G5RVH.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.HGBRCPUS.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.KKI7M5DP.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.YPRC5XZF.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.UDRJMWVZ.js", "../../../../node_modules/lit-html/src/directive-helpers.ts", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.JAAVYFGY.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.YB6263IP.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.GWSUX3V5.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.JPBXG7RE.js", "../../../../node_modules/lit-html/src/directives/live.ts", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.PFQEHEIR.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.HKHINDC2.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.DITA2S5A.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.RMZ7BVDM.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.4ZAKP7NY.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.MQODJ75V.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.3NKIHICW.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.PX3HMKF7.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.XTG2LNFG.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.3H2FQERJ.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.L6CIKOFQ.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.K5QNGYEG.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.JTOY5KP3.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.4XYGFHPR.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.3ZKPD2O5.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.R6M2PXD4.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.UZWY5NQM.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.F25QOBDY.js", "../../../../node_modules/lit-html/src/directives/unsafe-html.ts", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.ZAVDMBWV.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.HPULLNVR.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.4AHPL3WP.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.JS5OA4M6.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.C3KOHXUM.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.5WATURH2.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.ZWQCGLB5.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.HS5AYC6E.js", "../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs", "../../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs", "../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs", "../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs", "../../../../node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.UEBQI7VV.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.DWWFIQKG.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.Q5CVJBTB.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.DJLBC7Q4.js", "../../../../node_modules/nanoid/url-alphabet/index.js", "../../../../node_modules/nanoid/index.browser.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.KNJT7KBU.js", "../../../../node_modules/@awesome.me/webawesome/dist/chunks/chunk.6RPNM7SD.js"],
  "sourceRoot": "~/",
  "sourcesContent": ["/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/validators/mirror-validator.ts\nvar MirrorValidator = () => {\n  return {\n    checkValidity(element) {\n      const formControl = element.input;\n      const validity = {\n        message: \"\",\n        isValid: true,\n        invalidKeys: []\n      };\n      if (!formControl) {\n        return validity;\n      }\n      let isValid = true;\n      if (\"checkValidity\" in formControl) {\n        isValid = formControl.checkValidity();\n      }\n      if (isValid) {\n        return validity;\n      }\n      validity.isValid = false;\n      if (\"validationMessage\" in formControl) {\n        validity.message = formControl.validationMessage;\n      }\n      if (!(\"validity\" in formControl)) {\n        validity.invalidKeys.push(\"customError\");\n        return validity;\n      }\n      for (const key in formControl.validity) {\n        if (key === \"valid\") {\n          continue;\n        }\n        const checkedKey = key;\n        if (formControl.validity[checkedKey]) {\n          validity.invalidKeys.push(checkedKey);\n        }\n      }\n      return validity;\n    }\n  };\n};\n\nexport {\n  MirrorValidator\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/invalid.ts\nvar WaInvalidEvent = class extends Event {\n  constructor() {\n    super(\"wa-invalid\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaInvalidEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __typeError = (msg) => {\n  throw TypeError(msg);\n};\nvar __decorateClass = (decorators, target, key, kind) => {\n  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n  for (var i = decorators.length - 1, decorator; i >= 0; i--)\n    if (decorator = decorators[i])\n      result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n  if (kind && result) __defProp(target, key, result);\n  return result;\n};\nvar __accessCheck = (obj, member, msg) => member.has(obj) || __typeError(\"Cannot \" + msg);\nvar __privateGet = (obj, member, getter) => (__accessCheck(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd = (obj, member, value) => member.has(obj) ? __typeError(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, \"write to private field\"), setter ? setter.call(obj, value) : member.set(obj, value), value);\n\nexport {\n  __decorateClass,\n  __privateGet,\n  __privateAdd,\n  __privateSet\n};\n", "/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst NODE_MODE = false;\n\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\n/**\n * Whether the current browser supports `adoptedStyleSheets`.\n */\nexport const supportsAdoptingStyleSheets: boolean =\n  global.ShadowRoot &&\n  (global.ShadyCSS === undefined || global.ShadyCSS.nativeShadow) &&\n  'adoptedStyleSheets' in Document.prototype &&\n  'replace' in CSSStyleSheet.prototype;\n\n/**\n * A CSSResult or native CSSStyleSheet.\n *\n * In browsers that support constructible CSS style sheets, CSSStyleSheet\n * object can be used for styling along side CSSResult from the `css`\n * template tag.\n */\nexport type CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nexport type CSSResultArray = Array<CSSResultOrNative | CSSResultArray>;\n\n/**\n * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those.\n */\nexport type CSSResultGroup = CSSResultOrNative | CSSResultArray;\n\nconst constructionToken = Symbol();\n\nconst cssTagCache = new WeakMap<TemplateStringsArray, CSSStyleSheet>();\n\n/**\n * A container for a string of CSS text, that may be used to create a CSSStyleSheet.\n *\n * CSSResult is the return value of `css`-tagged template literals and\n * `unsafeCSS()`. In order to ensure that CSSResults are only created via the\n * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly.\n */\nexport class CSSResult {\n  // This property needs to remain unminified.\n  ['_$cssResult$'] = true;\n  readonly cssText: string;\n  private _styleSheet?: CSSStyleSheet;\n  private _strings: TemplateStringsArray | undefined;\n\n  private constructor(\n    cssText: string,\n    strings: TemplateStringsArray | undefined,\n    safeToken: symbol\n  ) {\n    if (safeToken !== constructionToken) {\n      throw new Error(\n        'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'\n      );\n    }\n    this.cssText = cssText;\n    this._strings = strings;\n  }\n\n  // This is a getter so that it's lazy. In practice, this means stylesheets\n  // are not created until the first element instance is made.\n  get styleSheet(): CSSStyleSheet | undefined {\n    // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is\n    // constructable.\n    let styleSheet = this._styleSheet;\n    const strings = this._strings;\n    if (supportsAdoptingStyleSheets && styleSheet === undefined) {\n      const cacheable = strings !== undefined && strings.length === 1;\n      if (cacheable) {\n        styleSheet = cssTagCache.get(strings);\n      }\n      if (styleSheet === undefined) {\n        (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(\n          this.cssText\n        );\n        if (cacheable) {\n          cssTagCache.set(strings, styleSheet);\n        }\n      }\n    }\n    return styleSheet;\n  }\n\n  toString(): string {\n    return this.cssText;\n  }\n}\n\ntype ConstructableCSSResult = CSSResult & {\n  new (\n    cssText: string,\n    strings: TemplateStringsArray | undefined,\n    safeToken: symbol\n  ): CSSResult;\n};\n\nconst textFromCSSResult = (value: CSSResultGroup | number) => {\n  // This property needs to remain unminified.\n  if ((value as CSSResult)['_$cssResult$'] === true) {\n    return (value as CSSResult).cssText;\n  } else if (typeof value === 'number') {\n    return value;\n  } else {\n    throw new Error(\n      `Value passed to 'css' function must be a 'css' function result: ` +\n        `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` +\n        `to ensure page security.`\n    );\n  }\n};\n\n/**\n * Wrap a value for interpolation in a {@linkcode css} tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) =>\n  new (CSSResult as ConstructableCSSResult)(\n    typeof value === 'string' ? value : String(value),\n    undefined,\n    constructionToken\n  );\n\n/**\n * A template literal tag which can be used with LitElement's\n * {@linkcode LitElement.styles} property to set element styles.\n *\n * For security reasons, only literal string values and number may be used in\n * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS}\n * may be used inside an expression.\n */\nexport const css = (\n  strings: TemplateStringsArray,\n  ...values: (CSSResultGroup | number)[]\n): CSSResult => {\n  const cssText =\n    strings.length === 1\n      ? strings[0]\n      : values.reduce(\n          (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n          strings[0]\n        );\n  return new (CSSResult as ConstructableCSSResult)(\n    cssText,\n    strings,\n    constructionToken\n  );\n};\n\n/**\n * Applies the given styles to a `shadowRoot`. When Shadow DOM is\n * available but `adoptedStyleSheets` is not, styles are appended to the\n * `shadowRoot` to [mimic the native feature](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets).\n * Note, when shimming is used, any styles that are subsequently placed into\n * the shadowRoot should be placed *before* any shimmed adopted styles. This\n * will match spec behavior that gives adopted sheets precedence over styles in\n * shadowRoot.\n */\nexport const adoptStyles = (\n  renderRoot: ShadowRoot,\n  styles: Array<CSSResultOrNative>\n) => {\n  if (supportsAdoptingStyleSheets) {\n    (renderRoot as ShadowRoot).adoptedStyleSheets = styles.map((s) =>\n      s instanceof CSSStyleSheet ? s : s.styleSheet!\n    );\n  } else {\n    for (const s of styles) {\n      const style = document.createElement('style');\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      const nonce = (global as any)['litNonce'];\n      if (nonce !== undefined) {\n        style.setAttribute('nonce', nonce);\n      }\n      style.textContent = (s as CSSResult).cssText;\n      renderRoot.appendChild(style);\n    }\n  }\n};\n\nconst cssResultFromStyleSheet = (sheet: CSSStyleSheet) => {\n  let cssText = '';\n  for (const rule of sheet.cssRules) {\n    cssText += rule.cssText;\n  }\n  return unsafeCSS(cssText);\n};\n\nexport const getCompatibleStyle =\n  supportsAdoptingStyleSheets ||\n  (NODE_MODE && global.CSSStyleSheet === undefined)\n    ? (s: CSSResultOrNative) => s\n    : (s: CSSResultOrNative) =>\n        s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Use this module if you want to create your own base class extending\n * {@link ReactiveElement}.\n * @packageDocumentation\n */\n\nimport {\n  getCompatibleStyle,\n  adoptStyles,\n  CSSResultGroup,\n  CSSResultOrNative,\n} from './css-tag.js';\nimport type {\n  ReactiveController,\n  ReactiveControllerHost,\n} from './reactive-controller.js';\n\n// In the Node build, this import will be injected by Rollup:\n// import {HTMLElement, customElements} from '@lit-labs/ssr-dom-shim';\n\nexport * from './css-tag.js';\nexport type {\n  ReactiveController,\n  ReactiveControllerHost,\n} from './reactive-controller.js';\n\n/**\n * Removes the `readonly` modifier from properties in the union K.\n *\n * This is a safer way to cast a value to a type with a mutable version of a\n * readonly field, than casting to an interface with the field re-declared\n * because it preserves the type of all the fields and warns on typos.\n */\ntype Mutable<T, K extends keyof T> = Omit<T, K> & {\n  -readonly [P in keyof Pick<T, K>]: P extends K ? T[P] : never;\n};\n\n// TODO (justinfagnani): Add `hasOwn` here when we ship ES2022\nconst {\n  is,\n  defineProperty,\n  getOwnPropertyDescriptor,\n  getOwnPropertyNames,\n  getOwnPropertySymbols,\n  getPrototypeOf,\n} = Object;\n\nconst NODE_MODE = false;\n\n// Lets a minifier replace globalThis references with a minified name\nconst global = globalThis;\n\nif (NODE_MODE) {\n  global.customElements ??= customElements;\n}\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nconst trustedTypes = (global as unknown as {trustedTypes?: {emptyScript: ''}})\n  .trustedTypes;\n\n// Temporary workaround for https://crbug.com/993268\n// Currently, any attribute starting with \"on\" is considered to be a\n// TrustedScript source. Such boolean attributes must be set to the equivalent\n// trusted emptyScript value.\nconst emptyStringForBooleanAttribute = trustedTypes\n  ? (trustedTypes.emptyScript as unknown as '')\n  : '';\n\nconst polyfillSupport = DEV_MODE\n  ? global.reactiveElementPolyfillSupportDevMode\n  : global.reactiveElementPolyfillSupport;\n\nif (DEV_MODE) {\n  // Ensure warnings are issued only 1x, even if multiple versions of Lit\n  // are loaded.\n  global.litIssuedWarnings ??= new Set();\n\n  /**\n   * Issue a warning if we haven't already, based either on `code` or `warning`.\n   * Warnings are disabled automatically only by `warning`; disabling via `code`\n   * can be done by users.\n   */\n  issueWarning = (code: string, warning: string) => {\n    warning += ` See https://lit.dev/msg/${code} for more information.`;\n    if (\n      !global.litIssuedWarnings!.has(warning) &&\n      !global.litIssuedWarnings!.has(code)\n    ) {\n      console.warn(warning);\n      global.litIssuedWarnings!.add(warning);\n    }\n  };\n\n  queueMicrotask(() => {\n    issueWarning(\n      'dev-mode',\n      `Lit is in dev mode. Not recommended for production!`\n    );\n\n    // Issue polyfill support warning.\n    if (global.ShadyDOM?.inUse && polyfillSupport === undefined) {\n      issueWarning(\n        'polyfill-support-missing',\n        `Shadow DOM is being polyfilled via \\`ShadyDOM\\` but ` +\n          `the \\`polyfill-support\\` module has not been loaded.`\n      );\n    }\n  });\n}\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace ReactiveUnstable {\n  /**\n   * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n   * we will emit 'lit-debug' events to window, with live details about the update and render\n   * lifecycle. These can be useful for writing debug tooling and visualizations.\n   *\n   * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n   * making certain operations that are normally very cheap (like a no-op render) much slower,\n   * because we must copy data and dispatch events.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-namespace\n  export namespace DebugLog {\n    export type Entry = Update;\n    export interface Update {\n      kind: 'update';\n    }\n  }\n}\n\ninterface DebugLoggingWindow {\n  // Even in dev mode, we generally don't want to emit these events, as that's\n  // another level of cost, so only emit them when DEV_MODE is true _and_ when\n  // window.emitLitDebugEvents is true.\n  emitLitDebugLogEvents?: boolean;\n}\n\n/**\n * Useful for visualizing and logging insights into what the Lit template system is doing.\n *\n * Compiled out of prod mode builds.\n */\nconst debugLogEvent = DEV_MODE\n  ? (event: ReactiveUnstable.DebugLog.Entry) => {\n      const shouldEmit = (global as unknown as DebugLoggingWindow)\n        .emitLitDebugLogEvents;\n      if (!shouldEmit) {\n        return;\n      }\n      global.dispatchEvent(\n        new CustomEvent<ReactiveUnstable.DebugLog.Entry>('lit-debug', {\n          detail: event,\n        })\n      );\n    }\n  : undefined;\n\n/*\n * When using Closure Compiler, JSCompiler_renameProperty(property, object) is\n * replaced at compile time by the munged name for object[property]. We cannot\n * alias this function, so we have to use a small shim that has the same\n * behavior when not compiling.\n */\n/*@__INLINE__*/\nconst JSCompiler_renameProperty = <P extends PropertyKey>(\n  prop: P,\n  _obj: unknown\n): P => prop;\n\n/**\n * Converts property values to and from attribute values.\n */\nexport interface ComplexAttributeConverter<Type = unknown, TypeHint = unknown> {\n  /**\n   * Called to convert an attribute value to a property\n   * value.\n   */\n  fromAttribute?(value: string | null, type?: TypeHint): Type;\n\n  /**\n   * Called to convert a property value to an attribute\n   * value.\n   *\n   * It returns unknown instead of string, to be compatible with\n   * https://github.com/WICG/trusted-types (and similar efforts).\n   */\n  toAttribute?(value: Type, type?: TypeHint): unknown;\n}\n\ntype AttributeConverter<Type = unknown, TypeHint = unknown> =\n  | ComplexAttributeConverter<Type>\n  | ((value: string | null, type?: TypeHint) => Type);\n\n/**\n * Defines options for a property accessor.\n */\nexport interface PropertyDeclaration<Type = unknown, TypeHint = unknown> {\n  /**\n   * When set to `true`, indicates the property is internal private state. The\n   * property should not be set by users. When using TypeScript, this property\n   * should be marked as `private` or `protected`, and it is also a common\n   * practice to use a leading `_` in the name. The property is not added to\n   * `observedAttributes`.\n   */\n  readonly state?: boolean;\n\n  /**\n   * Indicates how and whether the property becomes an observed attribute.\n   * If the value is `false`, the property is not added to `observedAttributes`.\n   * If true or absent, the lowercased property name is observed (e.g. `fooBar`\n   * becomes `foobar`). If a string, the string value is observed (e.g\n   * `attribute: 'foo-bar'`).\n   */\n  readonly attribute?: boolean | string;\n\n  /**\n   * Indicates the type of the property. This is used only as a hint for the\n   * `converter` to determine how to convert the attribute\n   * to/from a property.\n   */\n  readonly type?: TypeHint;\n\n  /**\n   * Indicates how to convert the attribute to/from a property. If this value\n   * is a function, it is used to convert the attribute value a the property\n   * value. If it's an object, it can have keys for `fromAttribute` and\n   * `toAttribute`. If no `toAttribute` function is provided and\n   * `reflect` is set to `true`, the property value is set directly to the\n   * attribute. A default `converter` is used if none is provided; it supports\n   * `Boolean`, `String`, `Number`, `Object`, and `Array`. Note,\n   * when a property changes and the converter is used to update the attribute,\n   * the property is never updated again as a result of the attribute changing,\n   * and vice versa.\n   */\n  readonly converter?: AttributeConverter<Type, TypeHint>;\n\n  /**\n   * Indicates if the property should reflect to an attribute.\n   * If `true`, when the property is set, the attribute is set using the\n   * attribute name determined according to the rules for the `attribute`\n   * property option and the value of the property converted using the rules\n   * from the `converter` property option.\n   */\n  readonly reflect?: boolean;\n\n  /**\n   * A function that indicates if a property should be considered changed when\n   * it is set. The function should take the `newValue` and `oldValue` and\n   * return `true` if an update should be requested.\n   */\n  hasChanged?(value: Type, oldValue: Type): boolean;\n\n  /**\n   * Indicates whether an accessor will be created for this property. By\n   * default, an accessor will be generated for this property that requests an\n   * update when set. If this flag is `true`, no accessor will be created, and\n   * it will be the user's responsibility to call\n   * `this.requestUpdate(propertyName, oldValue)` to request an update when\n   * the property changes.\n   */\n  readonly noAccessor?: boolean;\n\n  /**\n   * Whether this property is wrapping accessors. This is set by `@property`\n   * to control the initial value change and reflection logic.\n   *\n   * @internal\n   */\n  wrapped?: boolean;\n\n  /**\n   * When `true`, uses the initial value of the property as the default value,\n   * which changes how attributes are handled:\n   *  - The initial value does *not* reflect, even if the `reflect` option is `true`.\n   *    Subsequent changes to the property will reflect, even if they are equal to the\n   *     default value.\n   *  - When the attribute is removed, the property is set to the default value\n   *  - The initial value will not trigger an old value in the `changedProperties` map\n   *    argument to update lifecycle methods.\n   *\n   * When set, properties must be initialized, either with a field initializer, or an\n   * assignment in the constructor. Not initializing the property may lead to\n   * improper handling of subsequent property assignments.\n   *\n   * While this behavior is opt-in, most properties that reflect to attributes should\n   * use `useDefault: true` so that their initial values do not reflect.\n   */\n  useDefault?: boolean;\n}\n\n/**\n * Map of properties to PropertyDeclaration options. For each property an\n * accessor is made, and the property is processed according to the\n * PropertyDeclaration options.\n */\nexport interface PropertyDeclarations {\n  readonly [key: string]: PropertyDeclaration;\n}\n\ntype PropertyDeclarationMap = Map<PropertyKey, PropertyDeclaration>;\n\ntype AttributeMap = Map<string, PropertyKey>;\n\n/**\n * A Map of property keys to values.\n *\n * Takes an optional type parameter T, which when specified as a non-any,\n * non-unknown type, will make the Map more strongly-typed, associating the map\n * keys with their corresponding value type on T.\n *\n * Use `PropertyValues<this>` when overriding ReactiveElement.update() and\n * other lifecycle methods in order to get stronger type-checking on keys\n * and values.\n */\n// This type is conditional so that if the parameter T is not specified, or\n// is `any`, the type will include `Map<PropertyKey, unknown>`. Since T is not\n// given in the uses of PropertyValues in this file, all uses here fallback to\n// meaning `Map<PropertyKey, unknown>`, but if a developer uses\n// `PropertyValues<this>` (or any other value for T) they will get a\n// strongly-typed Map type.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PropertyValues<T = any> = T extends object\n  ? PropertyValueMap<T>\n  : Map<PropertyKey, unknown>;\n\n/**\n * Do not use, instead prefer {@linkcode PropertyValues}.\n */\n// This type must be exported such that JavaScript generated by the Google\n// Closure Compiler can import a type reference.\nexport interface PropertyValueMap<T> extends Map<PropertyKey, unknown> {\n  get<K extends keyof T>(k: K): T[K] | undefined;\n  set<K extends keyof T>(key: K, value: T[K]): this;\n  has<K extends keyof T>(k: K): boolean;\n  delete<K extends keyof T>(k: K): boolean;\n}\n\nexport const defaultConverter: ComplexAttributeConverter = {\n  toAttribute(value: unknown, type?: unknown): unknown {\n    switch (type) {\n      case Boolean:\n        value = value ? emptyStringForBooleanAttribute : null;\n        break;\n      case Object:\n      case Array:\n        // if the value is `null` or `undefined` pass this through\n        // to allow removing/no change behavior.\n        value = value == null ? value : JSON.stringify(value);\n        break;\n    }\n    return value;\n  },\n\n  fromAttribute(value: string | null, type?: unknown) {\n    let fromValue: unknown = value;\n    switch (type) {\n      case Boolean:\n        fromValue = value !== null;\n        break;\n      case Number:\n        fromValue = value === null ? null : Number(value);\n        break;\n      case Object:\n      case Array:\n        // Do *not* generate exception when invalid JSON is set as elements\n        // don't normally complain on being mis-configured.\n        // TODO(sorvell): Do generate exception in *dev mode*.\n        try {\n          // Assert to adhere to Bazel's \"must type assert JSON parse\" rule.\n          fromValue = JSON.parse(value!) as unknown;\n        } catch (e) {\n          fromValue = null;\n        }\n        break;\n    }\n    return fromValue;\n  },\n};\n\nexport interface HasChanged {\n  (value: unknown, old: unknown): boolean;\n}\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nexport const notEqual: HasChanged = (value: unknown, old: unknown): boolean =>\n  !is(value, old);\n\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n  attribute: true,\n  type: String,\n  converter: defaultConverter,\n  reflect: false,\n  useDefault: false,\n  hasChanged: notEqual,\n};\n\n/**\n * A string representing one of the supported dev mode warning categories.\n */\nexport type WarningKind =\n  | 'change-in-update'\n  | 'migration'\n  | 'async-perform-update';\n\nexport type Initializer = (element: ReactiveElement) => void;\n\n// Temporary, until google3 is on TypeScript 5.2\ndeclare global {\n  interface SymbolConstructor {\n    readonly metadata: unique symbol;\n  }\n}\n\n// Ensure metadata is enabled. TypeScript does not polyfill\n// Symbol.metadata, so we must ensure that it exists.\n(Symbol as {metadata: symbol}).metadata ??= Symbol('metadata');\n\ndeclare global {\n  // This is public global API, do not change!\n  // eslint-disable-next-line no-var\n  var litPropertyMetadata: WeakMap<\n    object,\n    Map<PropertyKey, PropertyDeclaration>\n  >;\n}\n\n// Map from a class's metadata object to property options\n// Note that we must use nullish-coalescing assignment so that we only use one\n// map even if we load multiple version of this module.\nglobal.litPropertyMetadata ??= new WeakMap<\n  object,\n  Map<PropertyKey, PropertyDeclaration>\n>();\n\n/**\n * Base element class which manages element properties and attributes. When\n * properties change, the `update` method is asynchronously called. This method\n * should be supplied by subclasses to render updates as desired.\n * @noInheritDoc\n */\nexport abstract class ReactiveElement\n  // In the Node build, this `extends` clause will be substituted with\n  // `(globalThis.HTMLElement ?? HTMLElement)`.\n  //\n  // This way, we will first prefer any global `HTMLElement` polyfill that the\n  // user has assigned, and then fall back to the `HTMLElement` shim which has\n  // been imported (see note at the top of this file about how this import is\n  // generated by Rollup). Note that the `HTMLElement` variable has been\n  // shadowed by this import, so it no longer refers to the global.\n  extends HTMLElement\n  implements ReactiveControllerHost\n{\n  // Note: these are patched in only in DEV_MODE.\n  /**\n   * Read or set all the enabled warning categories for this class.\n   *\n   * This property is only used in development builds.\n   *\n   * @nocollapse\n   * @category dev-mode\n   */\n  static enabledWarnings?: WarningKind[];\n\n  /**\n   * Enable the given warning category for this class.\n   *\n   * This method only exists in development builds, so it should be accessed\n   * with a guard like:\n   *\n   * ```ts\n   * // Enable for all ReactiveElement subclasses\n   * ReactiveElement.enableWarning?.('migration');\n   *\n   * // Enable for only MyElement and subclasses\n   * MyElement.enableWarning?.('migration');\n   * ```\n   *\n   * @nocollapse\n   * @category dev-mode\n   */\n  static enableWarning?: (warningKind: WarningKind) => void;\n\n  /**\n   * Disable the given warning category for this class.\n   *\n   * This method only exists in development builds, so it should be accessed\n   * with a guard like:\n   *\n   * ```ts\n   * // Disable for all ReactiveElement subclasses\n   * ReactiveElement.disableWarning?.('migration');\n   *\n   * // Disable for only MyElement and subclasses\n   * MyElement.disableWarning?.('migration');\n   * ```\n   *\n   * @nocollapse\n   * @category dev-mode\n   */\n  static disableWarning?: (warningKind: WarningKind) => void;\n\n  /**\n   * Adds an initializer function to the class that is called during instance\n   * construction.\n   *\n   * This is useful for code that runs against a `ReactiveElement`\n   * subclass, such as a decorator, that needs to do work for each\n   * instance, such as setting up a `ReactiveController`.\n   *\n   * ```ts\n   * const myDecorator = (target: typeof ReactiveElement, key: string) => {\n   *   target.addInitializer((instance: ReactiveElement) => {\n   *     // This is run during construction of the element\n   *     new MyController(instance);\n   *   });\n   * }\n   * ```\n   *\n   * Decorating a field will then cause each instance to run an initializer\n   * that adds a controller:\n   *\n   * ```ts\n   * class MyElement extends LitElement {\n   *   @myDecorator foo;\n   * }\n   * ```\n   *\n   * Initializers are stored per-constructor. Adding an initializer to a\n   * subclass does not add it to a superclass. Since initializers are run in\n   * constructors, initializers will run in order of the class hierarchy,\n   * starting with superclasses and progressing to the instance's class.\n   *\n   * @nocollapse\n   */\n  static addInitializer(initializer: Initializer) {\n    this.__prepare();\n    (this._initializers ??= []).push(initializer);\n  }\n\n  static _initializers?: Initializer[];\n\n  /*\n   * Due to closure compiler ES6 compilation bugs, @nocollapse is required on\n   * all static methods and properties with initializers.  Reference:\n   * - https://github.com/google/closure-compiler/issues/1776\n   */\n\n  /**\n   * Maps attribute names to properties; for example `foobar` attribute to\n   * `fooBar` property. Created lazily on user subclasses when finalizing the\n   * class.\n   * @nocollapse\n   */\n  private static __attributeToPropertyMap: AttributeMap;\n\n  /**\n   * Marks class as having been finalized, which includes creating properties\n   * from `static properties`, but does *not* include all properties created\n   * from decorators.\n   * @nocollapse\n   */\n  protected static finalized: true | undefined;\n\n  /**\n   * Memoized list of all element properties, including any superclass\n   * properties. Created lazily on user subclasses when finalizing the class.\n   *\n   * @nocollapse\n   * @category properties\n   */\n  static elementProperties: PropertyDeclarationMap;\n\n  /**\n   * User-supplied object that maps property names to `PropertyDeclaration`\n   * objects containing options for configuring reactive properties. When\n   * a reactive property is set the element will update and render.\n   *\n   * By default properties are public fields, and as such, they should be\n   * considered as primarily settable by element users, either via attribute or\n   * the property itself.\n   *\n   * Generally, properties that are changed by the element should be private or\n   * protected fields and should use the `state: true` option. Properties\n   * marked as `state` do not reflect from the corresponding attribute\n   *\n   * However, sometimes element code does need to set a public property. This\n   * should typically only be done in response to user interaction, and an event\n   * should be fired informing the user; for example, a checkbox sets its\n   * `checked` property when clicked and fires a `changed` event. Mutating\n   * public properties should typically not be done for non-primitive (object or\n   * array) properties. In other cases when an element needs to manage state, a\n   * private property set with the `state: true` option should be used. When\n   * needed, state properties can be initialized via public properties to\n   * facilitate complex interactions.\n   * @nocollapse\n   * @category properties\n   */\n  static properties: PropertyDeclarations;\n\n  /**\n   * Memoized list of all element styles.\n   * Created lazily on user subclasses when finalizing the class.\n   * @nocollapse\n   * @category styles\n   */\n  static elementStyles: Array<CSSResultOrNative> = [];\n\n  /**\n   * Array of styles to apply to the element. The styles should be defined\n   * using the {@linkcode css} tag function, via constructible stylesheets, or\n   * imported from native CSS module scripts.\n   *\n   * Note on Content Security Policy:\n   *\n   * Element styles are implemented with `<style>` tags when the browser doesn't\n   * support adopted StyleSheets. To use such `<style>` tags with the style-src\n   * CSP directive, the style-src value must either include 'unsafe-inline' or\n   * `nonce-<base64-value>` with `<base64-value>` replaced be a server-generated\n   * nonce.\n   *\n   * To provide a nonce to use on generated `<style>` elements, set\n   * `window.litNonce` to a server-generated nonce in your page's HTML, before\n   * loading application code:\n   *\n   * ```html\n   * <script>\n   *   // Generated and unique per request:\n   *   window.litNonce = 'a1b2c3d4';\n   * </script>\n   * ```\n   * @nocollapse\n   * @category styles\n   */\n  static styles?: CSSResultGroup;\n\n  /**\n   * Returns a list of attributes corresponding to the registered properties.\n   * @nocollapse\n   * @category attributes\n   */\n  static get observedAttributes() {\n    // Ensure we've created all properties\n    this.finalize();\n    // this.__attributeToPropertyMap is only undefined after finalize() in\n    // ReactiveElement itself. ReactiveElement.observedAttributes is only\n    // accessed with ReactiveElement as the receiver when a subclass or mixin\n    // calls super.observedAttributes\n    return (\n      this.__attributeToPropertyMap && [...this.__attributeToPropertyMap.keys()]\n    );\n  }\n\n  private __instanceProperties?: PropertyValues = undefined;\n\n  /**\n   * Creates a property accessor on the element prototype if one does not exist\n   * and stores a {@linkcode PropertyDeclaration} for the property with the\n   * given options. The property setter calls the property's `hasChanged`\n   * property option or uses a strict identity check to determine whether or not\n   * to request an update.\n   *\n   * This method may be overridden to customize properties; however,\n   * when doing so, it's important to call `super.createProperty` to ensure\n   * the property is setup correctly. This method calls\n   * `getPropertyDescriptor` internally to get a descriptor to install.\n   * To customize what properties do when they are get or set, override\n   * `getPropertyDescriptor`. To customize the options for a property,\n   * implement `createProperty` like this:\n   *\n   * ```ts\n   * static createProperty(name, options) {\n   *   options = Object.assign(options, {myOption: true});\n   *   super.createProperty(name, options);\n   * }\n   * ```\n   *\n   * @nocollapse\n   * @category properties\n   */\n  static createProperty(\n    name: PropertyKey,\n    options: PropertyDeclaration = defaultPropertyDeclaration\n  ) {\n    // If this is a state property, force the attribute to false.\n    if (options.state) {\n      (options as Mutable<PropertyDeclaration, 'attribute'>).attribute = false;\n    }\n    this.__prepare();\n    // Whether this property is wrapping accessors.\n    // Helps control the initial value change and reflection logic.\n    if (this.prototype.hasOwnProperty(name)) {\n      options = Object.create(options);\n      options.wrapped = true;\n    }\n    this.elementProperties.set(name, options);\n    if (!options.noAccessor) {\n      const key = DEV_MODE\n        ? // Use Symbol.for in dev mode to make it easier to maintain state\n          // when doing HMR.\n          Symbol.for(`${String(name)} (@property() cache)`)\n        : Symbol();\n      const descriptor = this.getPropertyDescriptor(name, key, options);\n      if (descriptor !== undefined) {\n        defineProperty(this.prototype, name, descriptor);\n      }\n    }\n  }\n\n  /**\n   * Returns a property descriptor to be defined on the given named property.\n   * If no descriptor is returned, the property will not become an accessor.\n   * For example,\n   *\n   * ```ts\n   * class MyElement extends LitElement {\n   *   static getPropertyDescriptor(name, key, options) {\n   *     const defaultDescriptor =\n   *         super.getPropertyDescriptor(name, key, options);\n   *     const setter = defaultDescriptor.set;\n   *     return {\n   *       get: defaultDescriptor.get,\n   *       set(value) {\n   *         setter.call(this, value);\n   *         // custom action.\n   *       },\n   *       configurable: true,\n   *       enumerable: true\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * @nocollapse\n   * @category properties\n   */\n  protected static getPropertyDescriptor(\n    name: PropertyKey,\n    key: string | symbol,\n    options: PropertyDeclaration\n  ): PropertyDescriptor | undefined {\n    const {get, set} = getOwnPropertyDescriptor(this.prototype, name) ?? {\n      get(this: ReactiveElement) {\n        return this[key as keyof typeof this];\n      },\n      set(this: ReactiveElement, v: unknown) {\n        (this as unknown as Record<string | symbol, unknown>)[key] = v;\n      },\n    };\n    if (DEV_MODE && get == null) {\n      if ('value' in (getOwnPropertyDescriptor(this.prototype, name) ?? {})) {\n        throw new Error(\n          `Field ${JSON.stringify(String(name))} on ` +\n            `${this.name} was declared as a reactive property ` +\n            `but it's actually declared as a value on the prototype. ` +\n            `Usually this is due to using @property or @state on a method.`\n        );\n      }\n      issueWarning(\n        'reactive-property-without-getter',\n        `Field ${JSON.stringify(String(name))} on ` +\n          `${this.name} was declared as a reactive property ` +\n          `but it does not have a getter. This will be an error in a ` +\n          `future version of Lit.`\n      );\n    }\n    return {\n      get,\n      set(this: ReactiveElement, value: unknown) {\n        const oldValue = get?.call(this);\n        set?.call(this, value);\n        this.requestUpdate(name, oldValue, options);\n      },\n      configurable: true,\n      enumerable: true,\n    };\n  }\n\n  /**\n   * Returns the property options associated with the given property.\n   * These options are defined with a `PropertyDeclaration` via the `properties`\n   * object or the `@property` decorator and are registered in\n   * `createProperty(...)`.\n   *\n   * Note, this method should be considered \"final\" and not overridden. To\n   * customize the options for a given property, override\n   * {@linkcode createProperty}.\n   *\n   * @nocollapse\n   * @final\n   * @category properties\n   */\n  static getPropertyOptions(name: PropertyKey) {\n    return this.elementProperties.get(name) ?? defaultPropertyDeclaration;\n  }\n\n  // Temporary, until google3 is on TypeScript 5.2\n  declare static [Symbol.metadata]: object & Record<PropertyKey, unknown>;\n\n  /**\n   * Initializes static own properties of the class used in bookkeeping\n   * for element properties, initializers, etc.\n   *\n   * Can be called multiple times by code that needs to ensure these\n   * properties exist before using them.\n   *\n   * This method ensures the superclass is finalized so that inherited\n   * property metadata can be copied down.\n   * @nocollapse\n   */\n  private static __prepare() {\n    if (\n      this.hasOwnProperty(JSCompiler_renameProperty('elementProperties', this))\n    ) {\n      // Already prepared\n      return;\n    }\n    // Finalize any superclasses\n    const superCtor = getPrototypeOf(this) as typeof ReactiveElement;\n    superCtor.finalize();\n\n    // Create own set of initializers for this class if any exist on the\n    // superclass and copy them down. Note, for a small perf boost, avoid\n    // creating initializers unless needed.\n    if (superCtor._initializers !== undefined) {\n      this._initializers = [...superCtor._initializers];\n    }\n    // Initialize elementProperties from the superclass\n    this.elementProperties = new Map(superCtor.elementProperties);\n  }\n\n  /**\n   * Finishes setting up the class so that it's ready to be registered\n   * as a custom element and instantiated.\n   *\n   * This method is called by the ReactiveElement.observedAttributes getter.\n   * If you override the observedAttributes getter, you must either call\n   * super.observedAttributes to trigger finalization, or call finalize()\n   * yourself.\n   *\n   * @nocollapse\n   */\n  protected static finalize() {\n    if (this.hasOwnProperty(JSCompiler_renameProperty('finalized', this))) {\n      return;\n    }\n    this.finalized = true;\n    this.__prepare();\n\n    // Create properties from the static properties block:\n    if (this.hasOwnProperty(JSCompiler_renameProperty('properties', this))) {\n      const props = this.properties;\n      const propKeys = [\n        ...getOwnPropertyNames(props),\n        ...getOwnPropertySymbols(props),\n      ] as Array<keyof typeof props>;\n      for (const p of propKeys) {\n        this.createProperty(p, props[p]);\n      }\n    }\n\n    // Create properties from standard decorator metadata:\n    const metadata = this[Symbol.metadata];\n    if (metadata !== null) {\n      const properties = litPropertyMetadata.get(metadata);\n      if (properties !== undefined) {\n        for (const [p, options] of properties) {\n          this.elementProperties.set(p, options);\n        }\n      }\n    }\n\n    // Create the attribute-to-property map\n    this.__attributeToPropertyMap = new Map();\n    for (const [p, options] of this.elementProperties) {\n      const attr = this.__attributeNameForProperty(p, options);\n      if (attr !== undefined) {\n        this.__attributeToPropertyMap.set(attr, p);\n      }\n    }\n\n    this.elementStyles = this.finalizeStyles(this.styles);\n\n    if (DEV_MODE) {\n      if (this.hasOwnProperty('createProperty')) {\n        issueWarning(\n          'no-override-create-property',\n          'Overriding ReactiveElement.createProperty() is deprecated. ' +\n            'The override will not be called with standard decorators'\n        );\n      }\n      if (this.hasOwnProperty('getPropertyDescriptor')) {\n        issueWarning(\n          'no-override-get-property-descriptor',\n          'Overriding ReactiveElement.getPropertyDescriptor() is deprecated. ' +\n            'The override will not be called with standard decorators'\n        );\n      }\n    }\n  }\n\n  /**\n   * Options used when calling `attachShadow`. Set this property to customize\n   * the options for the shadowRoot; for example, to create a closed\n   * shadowRoot: `{mode: 'closed'}`.\n   *\n   * Note, these options are used in `createRenderRoot`. If this method\n   * is customized, options should be respected if possible.\n   * @nocollapse\n   * @category rendering\n   */\n  static shadowRootOptions: ShadowRootInit = {mode: 'open'};\n\n  /**\n   * Takes the styles the user supplied via the `static styles` property and\n   * returns the array of styles to apply to the element.\n   * Override this method to integrate into a style management system.\n   *\n   * Styles are deduplicated preserving the _last_ instance in the list. This\n   * is a performance optimization to avoid duplicated styles that can occur\n   * especially when composing via subclassing. The last item is kept to try\n   * to preserve the cascade order with the assumption that it's most important\n   * that last added styles override previous styles.\n   *\n   * @nocollapse\n   * @category styles\n   */\n  protected static finalizeStyles(\n    styles?: CSSResultGroup\n  ): Array<CSSResultOrNative> {\n    const elementStyles = [];\n    if (Array.isArray(styles)) {\n      // Dedupe the flattened array in reverse order to preserve the last items.\n      // Casting to Array<unknown> works around TS error that\n      // appears to come from trying to flatten a type CSSResultArray.\n      const set = new Set((styles as Array<unknown>).flat(Infinity).reverse());\n      // Then preserve original order by adding the set items in reverse order.\n      for (const s of set) {\n        elementStyles.unshift(getCompatibleStyle(s as CSSResultOrNative));\n      }\n    } else if (styles !== undefined) {\n      elementStyles.push(getCompatibleStyle(styles));\n    }\n    return elementStyles;\n  }\n\n  /**\n   * Node or ShadowRoot into which element DOM should be rendered. Defaults\n   * to an open shadowRoot.\n   * @category rendering\n   */\n  readonly renderRoot!: HTMLElement | DocumentFragment;\n\n  /**\n   * Returns the property name for the given attribute `name`.\n   * @nocollapse\n   */\n  private static __attributeNameForProperty(\n    name: PropertyKey,\n    options: PropertyDeclaration\n  ) {\n    const attribute = options.attribute;\n    return attribute === false\n      ? undefined\n      : typeof attribute === 'string'\n        ? attribute\n        : typeof name === 'string'\n          ? name.toLowerCase()\n          : undefined;\n  }\n\n  // Initialize to an unresolved Promise so we can make sure the element has\n  // connected before first update.\n  private __updatePromise!: Promise<boolean>;\n\n  /**\n   * True if there is a pending update as a result of calling `requestUpdate()`.\n   * Should only be read.\n   * @category updates\n   */\n  isUpdatePending = false;\n\n  /**\n   * Is set to `true` after the first update. The element code cannot assume\n   * that `renderRoot` exists before the element `hasUpdated`.\n   * @category updates\n   */\n  hasUpdated = false;\n\n  /**\n   * Map with keys for any properties that have changed since the last\n   * update cycle with previous values.\n   *\n   * @internal\n   */\n  _$changedProperties!: PropertyValues;\n\n  /**\n   * Records property default values when the\n   * `useDefault` option is used.\n   */\n  private __defaultValues?: Map<PropertyKey, unknown>;\n\n  /**\n   * Properties that should be reflected when updated.\n   */\n  private __reflectingProperties?: Set<PropertyKey>;\n\n  /**\n   * Name of currently reflecting property\n   */\n  private __reflectingProperty: PropertyKey | null = null;\n\n  /**\n   * Set of controllers.\n   */\n  private __controllers?: Set<ReactiveController>;\n\n  constructor() {\n    super();\n    this.__initialize();\n  }\n\n  /**\n   * Internal only override point for customizing work done when elements\n   * are constructed.\n   */\n  private __initialize() {\n    this.__updatePromise = new Promise<boolean>(\n      (res) => (this.enableUpdating = res)\n    );\n    this._$changedProperties = new Map();\n    // This enqueues a microtask that must run before the first update, so it\n    // must be called before requestUpdate()\n    this.__saveInstanceProperties();\n    // ensures first update will be caught by an early access of\n    // `updateComplete`\n    this.requestUpdate();\n    (this.constructor as typeof ReactiveElement)._initializers?.forEach((i) =>\n      i(this)\n    );\n  }\n\n  /**\n   * Registers a `ReactiveController` to participate in the element's reactive\n   * update cycle. The element automatically calls into any registered\n   * controllers during its lifecycle callbacks.\n   *\n   * If the element is connected when `addController()` is called, the\n   * controller's `hostConnected()` callback will be immediately called.\n   * @category controllers\n   */\n  addController(controller: ReactiveController) {\n    (this.__controllers ??= new Set()).add(controller);\n    // If a controller is added after the element has been connected,\n    // call hostConnected. Note, re-using existence of `renderRoot` here\n    // (which is set in connectedCallback) to avoid the need to track a\n    // first connected state.\n    if (this.renderRoot !== undefined && this.isConnected) {\n      controller.hostConnected?.();\n    }\n  }\n\n  /**\n   * Removes a `ReactiveController` from the element.\n   * @category controllers\n   */\n  removeController(controller: ReactiveController) {\n    this.__controllers?.delete(controller);\n  }\n\n  /**\n   * Fixes any properties set on the instance before upgrade time.\n   * Otherwise these would shadow the accessor and break these properties.\n   * The properties are stored in a Map which is played back after the\n   * constructor runs.\n   */\n  private __saveInstanceProperties() {\n    const instanceProperties = new Map<PropertyKey, unknown>();\n    const elementProperties = (this.constructor as typeof ReactiveElement)\n      .elementProperties;\n    for (const p of elementProperties.keys() as IterableIterator<keyof this>) {\n      if (this.hasOwnProperty(p)) {\n        instanceProperties.set(p, this[p]);\n        delete this[p];\n      }\n    }\n    if (instanceProperties.size > 0) {\n      this.__instanceProperties = instanceProperties;\n    }\n  }\n\n  /**\n   * Returns the node into which the element should render and by default\n   * creates and returns an open shadowRoot. Implement to customize where the\n   * element's DOM is rendered. For example, to render into the element's\n   * childNodes, return `this`.\n   *\n   * @return Returns a node into which to render.\n   * @category rendering\n   */\n  protected createRenderRoot(): HTMLElement | DocumentFragment {\n    const renderRoot =\n      this.shadowRoot ??\n      this.attachShadow(\n        (this.constructor as typeof ReactiveElement).shadowRootOptions\n      );\n    adoptStyles(\n      renderRoot,\n      (this.constructor as typeof ReactiveElement).elementStyles\n    );\n    return renderRoot;\n  }\n\n  /**\n   * On first connection, creates the element's renderRoot, sets up\n   * element styling, and enables updating.\n   * @category lifecycle\n   */\n  connectedCallback() {\n    // Create renderRoot before controllers `hostConnected`\n    (this as Mutable<typeof this, 'renderRoot'>).renderRoot ??=\n      this.createRenderRoot();\n    this.enableUpdating(true);\n    this.__controllers?.forEach((c) => c.hostConnected?.());\n  }\n\n  /**\n   * Note, this method should be considered final and not overridden. It is\n   * overridden on the element instance with a function that triggers the first\n   * update.\n   * @category updates\n   */\n  protected enableUpdating(_requestedUpdate: boolean) {}\n\n  /**\n   * Allows for `super.disconnectedCallback()` in extensions while\n   * reserving the possibility of making non-breaking feature additions\n   * when disconnecting at some point in the future.\n   * @category lifecycle\n   */\n  disconnectedCallback() {\n    this.__controllers?.forEach((c) => c.hostDisconnected?.());\n  }\n\n  /**\n   * Synchronizes property values when attributes change.\n   *\n   * Specifically, when an attribute is set, the corresponding property is set.\n   * You should rarely need to implement this callback. If this method is\n   * overridden, `super.attributeChangedCallback(name, _old, value)` must be\n   * called.\n   *\n   * See [responding to attribute changes](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements#responding_to_attribute_changes)\n   * on MDN for more information about the `attributeChangedCallback`.\n   * @category attributes\n   */\n  attributeChangedCallback(\n    name: string,\n    _old: string | null,\n    value: string | null\n  ) {\n    this._$attributeToProperty(name, value);\n  }\n\n  private __propertyToAttribute(name: PropertyKey, value: unknown) {\n    const elemProperties: PropertyDeclarationMap = (\n      this.constructor as typeof ReactiveElement\n    ).elementProperties;\n    const options = elemProperties.get(name)!;\n    const attr = (\n      this.constructor as typeof ReactiveElement\n    ).__attributeNameForProperty(name, options);\n    if (attr !== undefined && options.reflect === true) {\n      const converter =\n        (options.converter as ComplexAttributeConverter)?.toAttribute !==\n        undefined\n          ? (options.converter as ComplexAttributeConverter)\n          : defaultConverter;\n      const attrValue = converter.toAttribute!(value, options.type);\n      if (\n        DEV_MODE &&\n        (this.constructor as typeof ReactiveElement).enabledWarnings!.includes(\n          'migration'\n        ) &&\n        attrValue === undefined\n      ) {\n        issueWarning(\n          'undefined-attribute-value',\n          `The attribute value for the ${name as string} property is ` +\n            `undefined on element ${this.localName}. The attribute will be ` +\n            `removed, but in the previous version of \\`ReactiveElement\\`, ` +\n            `the attribute would not have changed.`\n        );\n      }\n      // Track if the property is being reflected to avoid\n      // setting the property again via `attributeChangedCallback`. Note:\n      // 1. this takes advantage of the fact that the callback is synchronous.\n      // 2. will behave incorrectly if multiple attributes are in the reaction\n      // stack at time of calling. However, since we process attributes\n      // in `update` this should not be possible (or an extreme corner case\n      // that we'd like to discover).\n      // mark state reflecting\n      this.__reflectingProperty = name;\n      if (attrValue == null) {\n        this.removeAttribute(attr);\n      } else {\n        this.setAttribute(attr, attrValue as string);\n      }\n      // mark state not reflecting\n      this.__reflectingProperty = null;\n    }\n  }\n\n  /** @internal */\n  _$attributeToProperty(name: string, value: string | null) {\n    const ctor = this.constructor as typeof ReactiveElement;\n    // Note, hint this as an `AttributeMap` so closure clearly understands\n    // the type; it has issues with tracking types through statics\n    const propName = (ctor.__attributeToPropertyMap as AttributeMap).get(name);\n    // Use tracking info to avoid reflecting a property value to an attribute\n    // if it was just set because the attribute changed.\n    if (propName !== undefined && this.__reflectingProperty !== propName) {\n      const options = ctor.getPropertyOptions(propName);\n      const converter =\n        typeof options.converter === 'function'\n          ? {fromAttribute: options.converter}\n          : options.converter?.fromAttribute !== undefined\n            ? options.converter\n            : defaultConverter;\n      // mark state reflecting\n      this.__reflectingProperty = propName;\n      const convertedValue = converter.fromAttribute!(value, options.type);\n      this[propName as keyof this] =\n        convertedValue ??\n        this.__defaultValues?.get(propName) ??\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        (convertedValue as any);\n      // mark state not reflecting\n      this.__reflectingProperty = null;\n    }\n  }\n\n  /**\n   * Requests an update which is processed asynchronously. This should be called\n   * when an element should update based on some state not triggered by setting\n   * a reactive property. In this case, pass no arguments. It should also be\n   * called when manually implementing a property setter. In this case, pass the\n   * property `name` and `oldValue` to ensure that any configured property\n   * options are honored.\n   *\n   * @param name name of requesting property\n   * @param oldValue old value of requesting property\n   * @param options property options to use instead of the previously\n   *     configured options\n   * @param useNewValue if true, the newValue argument is used instead of\n   *     reading the property value. This is important to use if the reactive\n   *     property is a standard private accessor, as opposed to a plain\n   *     property, since private members can't be dynamically read by name.\n   * @param newValue the new value of the property. This is only used if\n   *     `useNewValue` is true.\n   * @category updates\n   */\n  requestUpdate(\n    name?: PropertyKey,\n    oldValue?: unknown,\n    options?: PropertyDeclaration,\n    useNewValue = false,\n    newValue?: unknown\n  ): void {\n    // If we have a property key, perform property update steps.\n    if (name !== undefined) {\n      if (DEV_MODE && (name as unknown) instanceof Event) {\n        issueWarning(\n          ``,\n          `The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: () => this.requestUpdate()`\n        );\n      }\n      const ctor = this.constructor as typeof ReactiveElement;\n      if (useNewValue === false) {\n        newValue = this[name as keyof this];\n      }\n      options ??= ctor.getPropertyOptions(name);\n      const changed =\n        (options.hasChanged ?? notEqual)(newValue, oldValue) ||\n        // When there is no change, check a corner case that can occur when\n        // 1. there's a initial value which was not reflected\n        // 2. the property is subsequently set to this value.\n        // For example, `prop: {useDefault: true, reflect: true}`\n        // and el.prop = 'foo'. This should be considered a change if the\n        // attribute is not set because we will now reflect the property to the attribute.\n        (options.useDefault &&\n          options.reflect &&\n          newValue === this.__defaultValues?.get(name) &&\n          !this.hasAttribute(ctor.__attributeNameForProperty(name, options)!));\n      if (changed) {\n        this._$changeProperty(name, oldValue, options);\n      } else {\n        // Abort the request if the property should not be considered changed.\n        return;\n      }\n    }\n    if (this.isUpdatePending === false) {\n      this.__updatePromise = this.__enqueueUpdate();\n    }\n  }\n\n  /**\n   * @internal\n   */\n  _$changeProperty(\n    name: PropertyKey,\n    oldValue: unknown,\n    {useDefault, reflect, wrapped}: PropertyDeclaration,\n    initializeValue?: unknown\n  ) {\n    // Record default value when useDefault is used. This allows us to\n    // restore this value when the attribute is removed.\n    if (useDefault && !(this.__defaultValues ??= new Map()).has(name)) {\n      this.__defaultValues.set(\n        name,\n        initializeValue ?? oldValue ?? this[name as keyof this]\n      );\n      // if this is not wrapping an accessor, it must be an initial setting\n      // and in this case we do not want to record the change or reflect.\n      if (wrapped !== true || initializeValue !== undefined) {\n        return;\n      }\n    }\n    // TODO (justinfagnani): Create a benchmark of Map.has() + Map.set(\n    // vs just Map.set()\n    if (!this._$changedProperties.has(name)) {\n      // On the initial change, the old value should be `undefined`, except\n      // with `useDefault`\n      if (!this.hasUpdated && !useDefault) {\n        oldValue = undefined;\n      }\n      this._$changedProperties.set(name, oldValue);\n    }\n    // Add to reflecting properties set.\n    // Note, it's important that every change has a chance to add the\n    // property to `__reflectingProperties`. This ensures setting\n    // attribute + property reflects correctly.\n    if (reflect === true && this.__reflectingProperty !== name) {\n      (this.__reflectingProperties ??= new Set<PropertyKey>()).add(name);\n    }\n  }\n\n  /**\n   * Sets up the element to asynchronously update.\n   */\n  private async __enqueueUpdate() {\n    this.isUpdatePending = true;\n    try {\n      // Ensure any previous update has resolved before updating.\n      // This `await` also ensures that property changes are batched.\n      await this.__updatePromise;\n    } catch (e) {\n      // Refire any previous errors async so they do not disrupt the update\n      // cycle. Errors are refired so developers have a chance to observe\n      // them, and this can be done by implementing\n      // `window.onunhandledrejection`.\n      Promise.reject(e);\n    }\n    const result = this.scheduleUpdate();\n    // If `scheduleUpdate` returns a Promise, we await it. This is done to\n    // enable coordinating updates with a scheduler. Note, the result is\n    // checked to avoid delaying an additional microtask unless we need to.\n    if (result != null) {\n      await result;\n    }\n    return !this.isUpdatePending;\n  }\n\n  /**\n   * Schedules an element update. You can override this method to change the\n   * timing of updates by returning a Promise. The update will await the\n   * returned Promise, and you should resolve the Promise to allow the update\n   * to proceed. If this method is overridden, `super.scheduleUpdate()`\n   * must be called.\n   *\n   * For instance, to schedule updates to occur just before the next frame:\n   *\n   * ```ts\n   * override protected async scheduleUpdate(): Promise<unknown> {\n   *   await new Promise((resolve) => requestAnimationFrame(() => resolve()));\n   *   super.scheduleUpdate();\n   * }\n   * ```\n   * @category updates\n   */\n  protected scheduleUpdate(): void | Promise<unknown> {\n    const result = this.performUpdate();\n    if (\n      DEV_MODE &&\n      (this.constructor as typeof ReactiveElement).enabledWarnings!.includes(\n        'async-perform-update'\n      ) &&\n      typeof (result as unknown as Promise<unknown> | undefined)?.then ===\n        'function'\n    ) {\n      issueWarning(\n        'async-perform-update',\n        `Element ${this.localName} returned a Promise from performUpdate(). ` +\n          `This behavior is deprecated and will be removed in a future ` +\n          `version of ReactiveElement.`\n      );\n    }\n    return result;\n  }\n\n  /**\n   * Performs an element update. Note, if an exception is thrown during the\n   * update, `firstUpdated` and `updated` will not be called.\n   *\n   * Call `performUpdate()` to immediately process a pending update. This should\n   * generally not be needed, but it can be done in rare cases when you need to\n   * update synchronously.\n   *\n   * @category updates\n   */\n  protected performUpdate(): void {\n    // Abort any update if one is not pending when this is called.\n    // This can happen if `performUpdate` is called early to \"flush\"\n    // the update.\n    if (!this.isUpdatePending) {\n      return;\n    }\n    debugLogEvent?.({kind: 'update'});\n    if (!this.hasUpdated) {\n      // Create renderRoot before first update. This occurs in `connectedCallback`\n      // but is done here to support out of tree calls to `enableUpdating`/`performUpdate`.\n      (this as Mutable<typeof this, 'renderRoot'>).renderRoot ??=\n        this.createRenderRoot();\n      if (DEV_MODE) {\n        // Produce warning if any reactive properties on the prototype are\n        // shadowed by class fields. Instance fields set before upgrade are\n        // deleted by this point, so any own property is caused by class field\n        // initialization in the constructor.\n        const ctor = this.constructor as typeof ReactiveElement;\n        const shadowedProperties = [...ctor.elementProperties.keys()].filter(\n          (p) => this.hasOwnProperty(p) && p in getPrototypeOf(this)\n        );\n        if (shadowedProperties.length) {\n          throw new Error(\n            `The following properties on element ${this.localName} will not ` +\n              `trigger updates as expected because they are set using class ` +\n              `fields: ${shadowedProperties.join(', ')}. ` +\n              `Native class fields and some compiled output will overwrite ` +\n              `accessors used for detecting changes. See ` +\n              `https://lit.dev/msg/class-field-shadowing ` +\n              `for more information.`\n          );\n        }\n      }\n      // Mixin instance properties once, if they exist.\n      if (this.__instanceProperties) {\n        // TODO (justinfagnani): should we use the stored value? Could a new value\n        // have been set since we stored the own property value?\n        for (const [p, value] of this.__instanceProperties) {\n          this[p as keyof this] = value as this[keyof this];\n        }\n        this.__instanceProperties = undefined;\n      }\n      // Trigger initial value reflection and populate the initial\n      // `changedProperties` map, but only for the case of properties created\n      // via `createProperty` on accessors, which will not have already\n      // populated the `changedProperties` map since they are not set.\n      // We can't know if these accessors had initializers, so we just set\n      // them anyway - a difference from experimental decorators on fields and\n      // standard decorators on auto-accessors.\n      // For context see:\n      // https://github.com/lit/lit/pull/4183#issuecomment-1711959635\n      const elementProperties = (this.constructor as typeof ReactiveElement)\n        .elementProperties;\n      if (elementProperties.size > 0) {\n        for (const [p, options] of elementProperties) {\n          const {wrapped} = options;\n          const value = this[p as keyof this];\n          if (\n            wrapped === true &&\n            !this._$changedProperties.has(p) &&\n            value !== undefined\n          ) {\n            this._$changeProperty(p, undefined, options, value);\n          }\n        }\n      }\n    }\n    let shouldUpdate = false;\n    const changedProperties = this._$changedProperties;\n    try {\n      shouldUpdate = this.shouldUpdate(changedProperties);\n      if (shouldUpdate) {\n        this.willUpdate(changedProperties);\n        this.__controllers?.forEach((c) => c.hostUpdate?.());\n        this.update(changedProperties);\n      } else {\n        this.__markUpdated();\n      }\n    } catch (e) {\n      // Prevent `firstUpdated` and `updated` from running when there's an\n      // update exception.\n      shouldUpdate = false;\n      // Ensure element can accept additional updates after an exception.\n      this.__markUpdated();\n      throw e;\n    }\n    // The update is no longer considered pending and further updates are now allowed.\n    if (shouldUpdate) {\n      this._$didUpdate(changedProperties);\n    }\n  }\n\n  /**\n   * Invoked before `update()` to compute values needed during the update.\n   *\n   * Implement `willUpdate` to compute property values that depend on other\n   * properties and are used in the rest of the update process.\n   *\n   * ```ts\n   * willUpdate(changedProperties) {\n   *   // only need to check changed properties for an expensive computation.\n   *   if (changedProperties.has('firstName') || changedProperties.has('lastName')) {\n   *     this.sha = computeSHA(`${this.firstName} ${this.lastName}`);\n   *   }\n   * }\n   *\n   * render() {\n   *   return html`SHA: ${this.sha}`;\n   * }\n   * ```\n   *\n   * @category updates\n   */\n  protected willUpdate(_changedProperties: PropertyValues): void {}\n\n  // Note, this is an override point for polyfill-support.\n  // @internal\n  _$didUpdate(changedProperties: PropertyValues) {\n    this.__controllers?.forEach((c) => c.hostUpdated?.());\n    if (!this.hasUpdated) {\n      this.hasUpdated = true;\n      this.firstUpdated(changedProperties);\n    }\n    this.updated(changedProperties);\n    if (\n      DEV_MODE &&\n      this.isUpdatePending &&\n      (this.constructor as typeof ReactiveElement).enabledWarnings!.includes(\n        'change-in-update'\n      )\n    ) {\n      issueWarning(\n        'change-in-update',\n        `Element ${this.localName} scheduled an update ` +\n          `(generally because a property was set) ` +\n          `after an update completed, causing a new update to be scheduled. ` +\n          `This is inefficient and should be avoided unless the next update ` +\n          `can only be scheduled as a side effect of the previous update.`\n      );\n    }\n  }\n\n  private __markUpdated() {\n    this._$changedProperties = new Map();\n    this.isUpdatePending = false;\n  }\n\n  /**\n   * Returns a Promise that resolves when the element has completed updating.\n   * The Promise value is a boolean that is `true` if the element completed the\n   * update without triggering another update. The Promise result is `false` if\n   * a property was set inside `updated()`. If the Promise is rejected, an\n   * exception was thrown during the update.\n   *\n   * To await additional asynchronous work, override the `getUpdateComplete`\n   * method. For example, it is sometimes useful to await a rendered element\n   * before fulfilling this Promise. To do this, first await\n   * `super.getUpdateComplete()`, then any subsequent state.\n   *\n   * @return A promise of a boolean that resolves to true if the update completed\n   *     without triggering another update.\n   * @category updates\n   */\n  get updateComplete(): Promise<boolean> {\n    return this.getUpdateComplete();\n  }\n\n  /**\n   * Override point for the `updateComplete` promise.\n   *\n   * It is not safe to override the `updateComplete` getter directly due to a\n   * limitation in TypeScript which means it is not possible to call a\n   * superclass getter (e.g. `super.updateComplete.then(...)`) when the target\n   * language is ES5 (https://github.com/microsoft/TypeScript/issues/338).\n   * This method should be overridden instead. For example:\n   *\n   * ```ts\n   * class MyElement extends LitElement {\n   *   override async getUpdateComplete() {\n   *     const result = await super.getUpdateComplete();\n   *     await this._myChild.updateComplete;\n   *     return result;\n   *   }\n   * }\n   * ```\n   *\n   * @return A promise of a boolean that resolves to true if the update completed\n   *     without triggering another update.\n   * @category updates\n   */\n  protected getUpdateComplete(): Promise<boolean> {\n    return this.__updatePromise;\n  }\n\n  /**\n   * Controls whether or not `update()` should be called when the element requests\n   * an update. By default, this method always returns `true`, but this can be\n   * customized to control when to update.\n   *\n   * @param _changedProperties Map of changed properties with old values\n   * @category updates\n   */\n  protected shouldUpdate(_changedProperties: PropertyValues): boolean {\n    return true;\n  }\n\n  /**\n   * Updates the element. This method reflects property values to attributes.\n   * It can be overridden to render and keep updated element DOM.\n   * Setting properties inside this method will *not* trigger\n   * another update.\n   *\n   * @param _changedProperties Map of changed properties with old values\n   * @category updates\n   */\n  protected update(_changedProperties: PropertyValues) {\n    // The forEach() expression will only run when __reflectingProperties is\n    // defined, and it returns undefined, setting __reflectingProperties to\n    // undefined\n    this.__reflectingProperties &&= this.__reflectingProperties.forEach((p) =>\n      this.__propertyToAttribute(p, this[p as keyof this])\n    ) as undefined;\n    this.__markUpdated();\n  }\n\n  /**\n   * Invoked whenever the element is updated. Implement to perform\n   * post-updating tasks via DOM APIs, for example, focusing an element.\n   *\n   * Setting properties inside this method will trigger the element to update\n   * again after this update cycle completes.\n   *\n   * @param _changedProperties Map of changed properties with old values\n   * @category updates\n   */\n  protected updated(_changedProperties: PropertyValues) {}\n\n  /**\n   * Invoked when the element is first updated. Implement to perform one time\n   * work on the element after update.\n   *\n   * ```ts\n   * firstUpdated() {\n   *   this.renderRoot.getElementById('my-text-area').focus();\n   * }\n   * ```\n   *\n   * Setting properties inside this method will trigger the element to update\n   * again after this update cycle completes.\n   *\n   * @param _changedProperties Map of changed properties with old values\n   * @category updates\n   */\n  protected firstUpdated(_changedProperties: PropertyValues) {}\n}\n// Assigned here to work around a jscompiler bug with static fields\n// when compiling to ES5.\n// https://github.com/google/closure-compiler/issues/3177\n(ReactiveElement as unknown as Record<string, unknown>)[\n  JSCompiler_renameProperty('elementProperties', ReactiveElement)\n] = new Map();\n(ReactiveElement as unknown as Record<string, unknown>)[\n  JSCompiler_renameProperty('finalized', ReactiveElement)\n] = new Map();\n\n// Apply polyfills if available\npolyfillSupport?.({ReactiveElement});\n\n// Dev mode warnings...\nif (DEV_MODE) {\n  // Default warning set.\n  ReactiveElement.enabledWarnings = [\n    'change-in-update',\n    'async-perform-update',\n  ];\n  const ensureOwnWarnings = function (ctor: typeof ReactiveElement) {\n    if (\n      !ctor.hasOwnProperty(JSCompiler_renameProperty('enabledWarnings', ctor))\n    ) {\n      ctor.enabledWarnings = ctor.enabledWarnings!.slice();\n    }\n  };\n  ReactiveElement.enableWarning = function (\n    this: typeof ReactiveElement,\n    warning: WarningKind\n  ) {\n    ensureOwnWarnings(this);\n    if (!this.enabledWarnings!.includes(warning)) {\n      this.enabledWarnings!.push(warning);\n    }\n  };\n  ReactiveElement.disableWarning = function (\n    this: typeof ReactiveElement,\n    warning: WarningKind\n  ) {\n    ensureOwnWarnings(this);\n    const i = this.enabledWarnings!.indexOf(warning);\n    if (i >= 0) {\n      this.enabledWarnings!.splice(i, 1);\n    }\n  };\n}\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for ReactiveElement usage.\n(global.reactiveElementVersions ??= []).push('2.1.2');\nif (DEV_MODE && global.reactiveElementVersions.length > 1) {\n  queueMicrotask(() => {\n    issueWarning!(\n      'multiple-versions',\n      `Multiple versions of Lit loaded. Loading multiple versions ` +\n        `is not recommended.`\n    );\n  });\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n// IMPORTANT: these imports must be type-only\nimport type {Directive, DirectiveResult, PartInfo} from './directive.js';\nimport type {TrustedHTML, TrustedTypesWindow} from 'trusted-types/lib/index.js';\n\nconst DEV_MODE = true;\nconst ENABLE_EXTRA_SECURITY_HOOKS = true;\nconst ENABLE_SHADYDOM_NOPATCH = true;\nconst NODE_MODE = false;\n\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace LitUnstable {\n  /**\n   * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n   * we will emit 'lit-debug' events to window, with live details about the update and render\n   * lifecycle. These can be useful for writing debug tooling and visualizations.\n   *\n   * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n   * making certain operations that are normally very cheap (like a no-op render) much slower,\n   * because we must copy data and dispatch events.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-namespace\n  export namespace DebugLog {\n    export type Entry =\n      | TemplatePrep\n      | TemplateInstantiated\n      | TemplateInstantiatedAndUpdated\n      | TemplateUpdating\n      | BeginRender\n      | EndRender\n      | CommitPartEntry\n      | SetPartValue;\n    export interface TemplatePrep {\n      kind: 'template prep';\n      template: Template;\n      strings: TemplateStringsArray;\n      clonableTemplate: HTMLTemplateElement;\n      parts: TemplatePart[];\n    }\n    export interface BeginRender {\n      kind: 'begin render';\n      id: number;\n      value: unknown;\n      container: RenderRootNode;\n      options: RenderOptions | undefined;\n      part: ChildPart | undefined;\n    }\n    export interface EndRender {\n      kind: 'end render';\n      id: number;\n      value: unknown;\n      container: RenderRootNode;\n      options: RenderOptions | undefined;\n      part: ChildPart;\n    }\n    export interface TemplateInstantiated {\n      kind: 'template instantiated';\n      template: Template | CompiledTemplate;\n      instance: TemplateInstance;\n      options: RenderOptions | undefined;\n      fragment: Node;\n      parts: Array<Part | undefined>;\n      values: unknown[];\n    }\n    export interface TemplateInstantiatedAndUpdated {\n      kind: 'template instantiated and updated';\n      template: Template | CompiledTemplate;\n      instance: TemplateInstance;\n      options: RenderOptions | undefined;\n      fragment: Node;\n      parts: Array<Part | undefined>;\n      values: unknown[];\n    }\n    export interface TemplateUpdating {\n      kind: 'template updating';\n      template: Template | CompiledTemplate;\n      instance: TemplateInstance;\n      options: RenderOptions | undefined;\n      parts: Array<Part | undefined>;\n      values: unknown[];\n    }\n    export interface SetPartValue {\n      kind: 'set part';\n      part: Part;\n      value: unknown;\n      valueIndex: number;\n      values: unknown[];\n      templateInstance: TemplateInstance;\n    }\n\n    export type CommitPartEntry =\n      | CommitNothingToChildEntry\n      | CommitText\n      | CommitNode\n      | CommitAttribute\n      | CommitProperty\n      | CommitBooleanAttribute\n      | CommitEventListener\n      | CommitToElementBinding;\n\n    export interface CommitNothingToChildEntry {\n      kind: 'commit nothing to child';\n      start: ChildNode;\n      end: ChildNode | null;\n      parent: Disconnectable | undefined;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitText {\n      kind: 'commit text';\n      node: Text;\n      value: unknown;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitNode {\n      kind: 'commit node';\n      start: Node;\n      parent: Disconnectable | undefined;\n      value: Node;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitAttribute {\n      kind: 'commit attribute';\n      element: Element;\n      name: string;\n      value: unknown;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitProperty {\n      kind: 'commit property';\n      element: Element;\n      name: string;\n      value: unknown;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitBooleanAttribute {\n      kind: 'commit boolean attribute';\n      element: Element;\n      name: string;\n      value: boolean;\n      options: RenderOptions | undefined;\n    }\n\n    export interface CommitEventListener {\n      kind: 'commit event listener';\n      element: Element;\n      name: string;\n      value: unknown;\n      oldListener: unknown;\n      options: RenderOptions | undefined;\n      // True if we're removing the old event listener (e.g. because settings changed, or value is nothing)\n      removeListener: boolean;\n      // True if we're adding a new event listener (e.g. because first render, or settings changed)\n      addListener: boolean;\n    }\n\n    export interface CommitToElementBinding {\n      kind: 'commit to element binding';\n      element: Element;\n      value: unknown;\n      options: RenderOptions | undefined;\n    }\n  }\n}\n\ninterface DebugLoggingWindow {\n  // Even in dev mode, we generally don't want to emit these events, as that's\n  // another level of cost, so only emit them when DEV_MODE is true _and_ when\n  // window.emitLitDebugEvents is true.\n  emitLitDebugLogEvents?: boolean;\n}\n\n/**\n * Useful for visualizing and logging insights into what the Lit template system is doing.\n *\n * Compiled out of prod mode builds.\n */\nconst debugLogEvent = DEV_MODE\n  ? (event: LitUnstable.DebugLog.Entry) => {\n      const shouldEmit = (global as unknown as DebugLoggingWindow)\n        .emitLitDebugLogEvents;\n      if (!shouldEmit) {\n        return;\n      }\n      global.dispatchEvent(\n        new CustomEvent<LitUnstable.DebugLog.Entry>('lit-debug', {\n          detail: event,\n        })\n      );\n    }\n  : undefined;\n// Used for connecting beginRender and endRender events when there are nested\n// renders when errors are thrown preventing an endRender event from being\n// called.\nlet debugLogRenderId = 0;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n  global.litIssuedWarnings ??= new Set();\n\n  /**\n   * Issue a warning if we haven't already, based either on `code` or `warning`.\n   * Warnings are disabled automatically only by `warning`; disabling via `code`\n   * can be done by users.\n   */\n  issueWarning = (code: string, warning: string) => {\n    warning += code\n      ? ` See https://lit.dev/msg/${code} for more information.`\n      : '';\n    if (\n      !global.litIssuedWarnings!.has(warning) &&\n      !global.litIssuedWarnings!.has(code)\n    ) {\n      console.warn(warning);\n      global.litIssuedWarnings!.add(warning);\n    }\n  };\n\n  queueMicrotask(() => {\n    issueWarning(\n      'dev-mode',\n      `Lit is in dev mode. Not recommended for production!`\n    );\n  });\n}\n\nconst wrap =\n  ENABLE_SHADYDOM_NOPATCH &&\n  global.ShadyDOM?.inUse &&\n  global.ShadyDOM?.noPatch === true\n    ? (global.ShadyDOM!.wrap as <T extends Node>(node: T) => T)\n    : <T extends Node>(node: T) => node;\n\nconst trustedTypes = (global as unknown as TrustedTypesWindow).trustedTypes;\n\n/**\n * Our TrustedTypePolicy for HTML which is declared using the html template\n * tag function.\n *\n * That HTML is a developer-authored constant, and is parsed with innerHTML\n * before any untrusted expressions have been mixed in. Therefor it is\n * considered safe by construction.\n */\nconst policy = trustedTypes\n  ? trustedTypes.createPolicy('lit-html', {\n      createHTML: (s) => s,\n    })\n  : undefined;\n\n/**\n * Used to sanitize any value before it is written into the DOM. This can be\n * used to implement a security policy of allowed and disallowed values in\n * order to prevent XSS attacks.\n *\n * One way of using this callback would be to check attributes and properties\n * against a list of high risk fields, and require that values written to such\n * fields be instances of a class which is safe by construction. Closure's Safe\n * HTML Types is one implementation of this technique (\n * https://github.com/google/safe-html-types/blob/master/doc/safehtml-types.md).\n * The TrustedTypes polyfill in API-only mode could also be used as a basis\n * for this technique (https://github.com/WICG/trusted-types).\n *\n * @param node The HTML node (usually either a #text node or an Element) that\n *     is being written to. Note that this is just an exemplar node, the write\n *     may take place against another instance of the same class of node.\n * @param name The name of an attribute or property (for example, 'href').\n * @param type Indicates whether the write that's about to be performed will\n *     be to a property or a node.\n * @return A function that will sanitize this class of writes.\n */\nexport type SanitizerFactory = (\n  node: Node,\n  name: string,\n  type: 'property' | 'attribute'\n) => ValueSanitizer;\n\n/**\n * A function which can sanitize values that will be written to a specific kind\n * of DOM sink.\n *\n * See SanitizerFactory.\n *\n * @param value The value to sanitize. Will be the actual value passed into\n *     the lit-html template literal, so this could be of any type.\n * @return The value to write to the DOM. Usually the same as the input value,\n *     unless sanitization is needed.\n */\nexport type ValueSanitizer = (value: unknown) => unknown;\n\nconst identityFunction: ValueSanitizer = (value: unknown) => value;\nconst noopSanitizer: SanitizerFactory = (\n  _node: Node,\n  _name: string,\n  _type: 'property' | 'attribute'\n) => identityFunction;\n\n/** Sets the global sanitizer factory. */\nconst setSanitizer = (newSanitizer: SanitizerFactory) => {\n  if (!ENABLE_EXTRA_SECURITY_HOOKS) {\n    return;\n  }\n  if (sanitizerFactoryInternal !== noopSanitizer) {\n    throw new Error(\n      `Attempted to overwrite existing lit-html security policy.` +\n        ` setSanitizeDOMValueFactory should be called at most once.`\n    );\n  }\n  sanitizerFactoryInternal = newSanitizer;\n};\n\n/**\n * Only used in internal tests, not a part of the public API.\n */\nconst _testOnlyClearSanitizerFactoryDoNotCallOrElse = () => {\n  sanitizerFactoryInternal = noopSanitizer;\n};\n\nconst createSanitizer: SanitizerFactory = (node, name, type) => {\n  return sanitizerFactoryInternal(node, name, type);\n};\n\n// Added to an attribute name to mark the attribute as bound so we can find\n// it easily.\nconst boundAttributeSuffix = '$lit$';\n\n// This marker is used in many syntactic positions in HTML, so it must be\n// a valid element name and attribute name. We don't support dynamic names (yet)\n// but this at least ensures that the parse tree is closer to the template\n// intention.\nconst marker = `lit$${Math.random().toFixed(9).slice(2)}$`;\n\n// String used to tell if a comment is a marker comment\nconst markerMatch = '?' + marker;\n\n// Text used to insert a comment marker node. We use processing instruction\n// syntax because it's slightly smaller, but parses as a comment node.\nconst nodeMarker = `<${markerMatch}>`;\n\nconst d =\n  NODE_MODE && global.document === undefined\n    ? ({\n        createTreeWalker() {\n          return {};\n        },\n      } as unknown as Document)\n    : document;\n\n// Creates a dynamic marker. We never have to search for these in the DOM.\nconst createMarker = () => d.createComment('');\n\n// https://tc39.github.io/ecma262/#sec-typeof-operator\ntype Primitive = null | undefined | boolean | number | string | symbol | bigint;\nconst isPrimitive = (value: unknown): value is Primitive =>\n  value === null || (typeof value != 'object' && typeof value != 'function');\nconst isArray = Array.isArray;\nconst isIterable = (value: unknown): value is Iterable<unknown> =>\n  isArray(value) ||\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  typeof (value as any)?.[Symbol.iterator] === 'function';\n\nconst SPACE_CHAR = `[ \\t\\n\\f\\r]`;\nconst ATTR_VALUE_CHAR = `[^ \\t\\n\\f\\r\"'\\`<>=]`;\nconst NAME_CHAR = `[^\\\\s\"'>=/]`;\n\n// These regexes represent the five parsing states that we care about in the\n// Template's HTML scanner. They match the *end* of the state they're named\n// after.\n// Depending on the match, we transition to a new state. If there's no match,\n// we stay in the same state.\n// Note that the regexes are stateful. We utilize lastIndex and sync it\n// across the multiple regexes used. In addition to the five regexes below\n// we also dynamically create a regex to find the matching end tags for raw\n// text elements.\n\n/**\n * End of text is: `<` followed by:\n *   (comment start) or (tag) or (dynamic tag binding)\n */\nconst textEndRegex = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g;\nconst COMMENT_START = 1;\nconst TAG_NAME = 2;\nconst DYNAMIC_TAG_NAME = 3;\n\nconst commentEndRegex = /-->/g;\n/**\n * Comments not started with <!--, like </{, can be ended by a single `>`\n */\nconst comment2EndRegex = />/g;\n\n/**\n * The tagEnd regex matches the end of the \"inside an opening\" tag syntax\n * position. It either matches a `>`, an attribute-like sequence, or the end\n * of the string after a space (attribute-name position ending).\n *\n * See attributes in the HTML spec:\n * https://www.w3.org/TR/html5/syntax.html#elements-attributes\n *\n * \" \\t\\n\\f\\r\" are HTML space characters:\n * https://infra.spec.whatwg.org/#ascii-whitespace\n *\n * So an attribute is:\n *  * The name: any character except a whitespace character, (\"), ('), \">\",\n *    \"=\", or \"/\". Note: this is different from the HTML spec which also excludes control characters.\n *  * Followed by zero or more space characters\n *  * Followed by \"=\"\n *  * Followed by zero or more space characters\n *  * Followed by:\n *    * Any character except space, ('), (\"), \"<\", \">\", \"=\", (`), or\n *    * (\") then any non-(\"), or\n *    * (') then any non-(')\n */\nconst tagEndRegex = new RegExp(\n  `>|${SPACE_CHAR}(?:(${NAME_CHAR}+)(${SPACE_CHAR}*=${SPACE_CHAR}*(?:${ATTR_VALUE_CHAR}|(\"|')|))|$)`,\n  'g'\n);\nconst ENTIRE_MATCH = 0;\nconst ATTRIBUTE_NAME = 1;\nconst SPACES_AND_EQUALS = 2;\nconst QUOTE_CHAR = 3;\n\nconst singleQuoteAttrEndRegex = /'/g;\nconst doubleQuoteAttrEndRegex = /\"/g;\n/**\n * Matches the raw text elements.\n *\n * Comments are not parsed within raw text elements, so we need to search their\n * text content for marker strings.\n */\nconst rawTextElement = /^(?:script|style|textarea|title)$/i;\n\n/** TemplateResult types */\nconst HTML_RESULT = 1;\nconst SVG_RESULT = 2;\nconst MATHML_RESULT = 3;\n\ntype ResultType = typeof HTML_RESULT | typeof SVG_RESULT | typeof MATHML_RESULT;\n\n// TemplatePart types\n// IMPORTANT: these must match the values in PartType\nconst ATTRIBUTE_PART = 1;\nconst CHILD_PART = 2;\nconst PROPERTY_PART = 3;\nconst BOOLEAN_ATTRIBUTE_PART = 4;\nconst EVENT_PART = 5;\nconst ELEMENT_PART = 6;\nconst COMMENT_PART = 7;\n\n/**\n * The return type of the template tag functions, {@linkcode html} and\n * {@linkcode svg} when it hasn't been compiled by @lit-labs/compiler.\n *\n * A `TemplateResult` object holds all the information about a template\n * expression required to render it: the template strings, expression values,\n * and type of template (html or svg).\n *\n * `TemplateResult` objects do not create any DOM on their own. To create or\n * update DOM you need to render the `TemplateResult`. See\n * [Rendering](https://lit.dev/docs/components/rendering) for more information.\n *\n */\nexport type UncompiledTemplateResult<T extends ResultType = ResultType> = {\n  // This property needs to remain unminified.\n  ['_$litType$']: T;\n  strings: TemplateStringsArray;\n  values: unknown[];\n};\n\n/**\n * This is a template result that may be either uncompiled or compiled.\n *\n * In the future, TemplateResult will be this type. If you want to explicitly\n * note that a template result is potentially compiled, you can reference this\n * type and it will continue to behave the same through the next major version\n * of Lit. This can be useful for code that wants to prepare for the next\n * major version of Lit.\n */\nexport type MaybeCompiledTemplateResult<T extends ResultType = ResultType> =\n  | UncompiledTemplateResult<T>\n  | CompiledTemplateResult;\n\n/**\n * The return type of the template tag functions, {@linkcode html} and\n * {@linkcode svg}.\n *\n * A `TemplateResult` object holds all the information about a template\n * expression required to render it: the template strings, expression values,\n * and type of template (html or svg).\n *\n * `TemplateResult` objects do not create any DOM on their own. To create or\n * update DOM you need to render the `TemplateResult`. See\n * [Rendering](https://lit.dev/docs/components/rendering) for more information.\n *\n * In Lit 4, this type will be an alias of\n * MaybeCompiledTemplateResult, so that code will get type errors if it assumes\n * that Lit templates are not compiled. When deliberately working with only\n * one, use either {@linkcode CompiledTemplateResult} or\n * {@linkcode UncompiledTemplateResult} explicitly.\n */\nexport type TemplateResult<T extends ResultType = ResultType> =\n  UncompiledTemplateResult<T>;\n\nexport type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;\n\nexport type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;\n\nexport type MathMLTemplateResult = TemplateResult<typeof MATHML_RESULT>;\n\n/**\n * A TemplateResult that has been compiled by @lit-labs/compiler, skipping the\n * prepare step.\n */\nexport interface CompiledTemplateResult {\n  // This is a factory in order to make template initialization lazy\n  // and allow ShadyRenderOptions scope to be passed in.\n  // This property needs to remain unminified.\n  ['_$litType$']: CompiledTemplate;\n  values: unknown[];\n}\n\nexport interface CompiledTemplate extends Omit<Template, 'el'> {\n  // el is overridden to be optional. We initialize it on first render\n  el?: HTMLTemplateElement;\n\n  // The prepared HTML string to create a template element from.\n  // The type is a TemplateStringsArray to guarantee that the value came from\n  // source code, preventing a JSON injection attack.\n  h: TemplateStringsArray;\n}\n\n/**\n * Generates a template literal tag function that returns a TemplateResult with\n * the given result type.\n */\nconst tag =\n  <T extends ResultType>(type: T) =>\n  (strings: TemplateStringsArray, ...values: unknown[]): TemplateResult<T> => {\n    // Warn against templates octal escape sequences\n    // We do this here rather than in render so that the warning is closer to the\n    // template definition.\n    if (DEV_MODE && strings.some((s) => s === undefined)) {\n      console.warn(\n        'Some template strings are undefined.\\n' +\n          'This is probably caused by illegal octal escape sequences.'\n      );\n    }\n    if (DEV_MODE) {\n      // Import static-html.js results in a circular dependency which g3 doesn't\n      // handle. Instead we know that static values must have the field\n      // `_$litStatic$`.\n      if (\n        values.some((val) => (val as {_$litStatic$: unknown})?.['_$litStatic$'])\n      ) {\n        issueWarning(\n          '',\n          `Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\\n` +\n            `Please use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions`\n        );\n      }\n    }\n    return {\n      // This property needs to remain unminified.\n      ['_$litType$']: type,\n      strings,\n      values,\n    };\n  };\n\n/**\n * Interprets a template literal as an HTML template that can efficiently\n * render to and update a container.\n *\n * ```ts\n * const header = (title: string) => html`<h1>${title}</h1>`;\n * ```\n *\n * The `html` tag returns a description of the DOM to render as a value. It is\n * lazy, meaning no work is done until the template is rendered. When rendering,\n * if a template comes from the same expression as a previously rendered result,\n * it's efficiently updated instead of replaced.\n */\nexport const html = tag(HTML_RESULT);\n\n/**\n * Interprets a template literal as an SVG fragment that can efficiently render\n * to and update a container.\n *\n * ```ts\n * const rect = svg`<rect width=\"10\" height=\"10\"></rect>`;\n *\n * const myImage = html`\n *   <svg viewBox=\"0 0 10 10\" xmlns=\"http://www.w3.org/2000/svg\">\n *     ${rect}\n *   </svg>`;\n * ```\n *\n * The `svg` *tag function* should only be used for SVG fragments, or elements\n * that would be contained **inside** an `<svg>` HTML element. A common error is\n * placing an `<svg>` *element* in a template tagged with the `svg` tag\n * function. The `<svg>` element is an HTML element and should be used within a\n * template tagged with the {@linkcode html} tag function.\n *\n * In LitElement usage, it's invalid to return an SVG fragment from the\n * `render()` method, as the SVG fragment will be contained within the element's\n * shadow root and thus not be properly contained within an `<svg>` HTML\n * element.\n */\nexport const svg = tag(SVG_RESULT);\n\n/**\n * Interprets a template literal as MathML fragment that can efficiently render\n * to and update a container.\n *\n * ```ts\n * const num = mathml`<mn>1</mn>`;\n *\n * const eq = html`\n *   <math>\n *     ${num}\n *   </math>`;\n * ```\n *\n * The `mathml` *tag function* should only be used for MathML fragments, or\n * elements that would be contained **inside** a `<math>` HTML element. A common\n * error is placing a `<math>` *element* in a template tagged with the `mathml`\n * tag function. The `<math>` element is an HTML element and should be used\n * within a template tagged with the {@linkcode html} tag function.\n *\n * In LitElement usage, it's invalid to return an MathML fragment from the\n * `render()` method, as the MathML fragment will be contained within the\n * element's shadow root and thus not be properly contained within a `<math>`\n * HTML element.\n */\nexport const mathml = tag(MATHML_RESULT);\n\n/**\n * A sentinel value that signals that a value was handled by a directive and\n * should not be written to the DOM.\n */\nexport const noChange = Symbol.for('lit-noChange');\n\n/**\n * A sentinel value that signals a ChildPart to fully clear its content.\n *\n * ```ts\n * const button = html`${\n *  user.isAdmin\n *    ? html`<button>DELETE</button>`\n *    : nothing\n * }`;\n * ```\n *\n * Prefer using `nothing` over other falsy values as it provides a consistent\n * behavior between various expression binding contexts.\n *\n * In child expressions, `undefined`, `null`, `''`, and `nothing` all behave the\n * same and render no nodes. In attribute expressions, `nothing` _removes_ the\n * attribute, while `undefined` and `null` will render an empty string. In\n * property expressions `nothing` becomes `undefined`.\n */\nexport const nothing = Symbol.for('lit-nothing');\n\n/**\n * The cache of prepared templates, keyed by the tagged TemplateStringsArray\n * and _not_ accounting for the specific template tag used. This means that\n * template tags cannot be dynamic - they must statically be one of html, svg,\n * or attr. This restriction simplifies the cache lookup, which is on the hot\n * path for rendering.\n */\nconst templateCache = new WeakMap<TemplateStringsArray, Template>();\n\n/**\n * Object specifying options for controlling lit-html rendering. Note that\n * while `render` may be called multiple times on the same `container` (and\n * `renderBefore` reference node) to efficiently update the rendered content,\n * only the options passed in during the first render are respected during\n * the lifetime of renders to that unique `container` + `renderBefore`\n * combination.\n */\nexport interface RenderOptions {\n  /**\n   * An object to use as the `this` value for event listeners. It's often\n   * useful to set this to the host component rendering a template.\n   */\n  host?: object;\n  /**\n   * A DOM node before which to render content in the container.\n   */\n  renderBefore?: ChildNode | null;\n  /**\n   * Node used for cloning the template (`importNode` will be called on this\n   * node). This controls the `ownerDocument` of the rendered DOM, along with\n   * any inherited context. Defaults to the global `document`.\n   */\n  creationScope?: {importNode(node: Node, deep?: boolean): Node};\n  /**\n   * The initial connected state for the top-level part being rendered. If no\n   * `isConnected` option is set, `AsyncDirective`s will be connected by\n   * default. Set to `false` if the initial render occurs in a disconnected tree\n   * and `AsyncDirective`s should see `isConnected === false` for their initial\n   * render. The `part.setConnected()` method must be used subsequent to initial\n   * render to change the connected state of the part.\n   */\n  isConnected?: boolean;\n}\n\n/**\n * The root DOM node for rendering.\n */\nexport type RenderRootNode = HTMLElement | SVGElement | DocumentFragment;\n\nconst walker = d.createTreeWalker(\n  d,\n  129 /* NodeFilter.SHOW_{ELEMENT|COMMENT} */\n);\n\nlet sanitizerFactoryInternal: SanitizerFactory = noopSanitizer;\n\n//\n// Classes only below here, const variable declarations only above here...\n//\n// Keeping variable declarations and classes together improves minification.\n// Interfaces and type aliases can be interleaved freely.\n//\n\n// Type for classes that have a `_directive` or `_directives[]` field, used by\n// `resolveDirective`\nexport interface DirectiveParent {\n  _$parent?: DirectiveParent;\n  _$isConnected: boolean;\n  __directive?: Directive;\n  __directives?: Array<Directive | undefined>;\n}\n\nfunction trustFromTemplateString(\n  tsa: TemplateStringsArray,\n  stringFromTSA: string\n): TrustedHTML {\n  // A security check to prevent spoofing of Lit template results.\n  // In the future, we may be able to replace this with Array.isTemplateObject,\n  // though we might need to make that check inside of the html and svg\n  // functions, because precompiled templates don't come in as\n  // TemplateStringArray objects.\n  if (!isArray(tsa) || !tsa.hasOwnProperty('raw')) {\n    let message = 'invalid template strings array';\n    if (DEV_MODE) {\n      message = `\n          Internal Error: expected template strings to be an array\n          with a 'raw' field. Faking a template strings array by\n          calling html or svg like an ordinary function is effectively\n          the same as calling unsafeHtml and can lead to major security\n          issues, e.g. opening your code up to XSS attacks.\n          If you're using the html or svg tagged template functions normally\n          and still seeing this error, please file a bug at\n          https://github.com/lit/lit/issues/new?template=bug_report.md\n          and include information about your build tooling, if any.\n        `\n        .trim()\n        .replace(/\\n */g, '\\n');\n    }\n    throw new Error(message);\n  }\n  return policy !== undefined\n    ? policy.createHTML(stringFromTSA)\n    : (stringFromTSA as unknown as TrustedHTML);\n}\n\n/**\n * Returns an HTML string for the given TemplateStringsArray and result type\n * (HTML or SVG), along with the case-sensitive bound attribute names in\n * template order. The HTML contains comment markers denoting the `ChildPart`s\n * and suffixes on bound attributes denoting the `AttributeParts`.\n *\n * @param strings template strings array\n * @param type HTML or SVG\n * @return Array containing `[html, attrNames]` (array returned for terseness,\n *     to avoid object fields since this code is shared with non-minified SSR\n *     code)\n */\nconst getTemplateHtml = (\n  strings: TemplateStringsArray,\n  type: ResultType\n): [TrustedHTML, Array<string>] => {\n  // Insert makers into the template HTML to represent the position of\n  // bindings. The following code scans the template strings to determine the\n  // syntactic position of the bindings. They can be in text position, where\n  // we insert an HTML comment, attribute value position, where we insert a\n  // sentinel string and re-write the attribute name, or inside a tag where\n  // we insert the sentinel string.\n  const l = strings.length - 1;\n  // Stores the case-sensitive bound attribute names in the order of their\n  // parts. ElementParts are also reflected in this array as undefined\n  // rather than a string, to disambiguate from attribute bindings.\n  const attrNames: Array<string> = [];\n  let html =\n    type === SVG_RESULT ? '<svg>' : type === MATHML_RESULT ? '<math>' : '';\n\n  // When we're inside a raw text tag (not it's text content), the regex\n  // will still be tagRegex so we can find attributes, but will switch to\n  // this regex when the tag ends.\n  let rawTextEndRegex: RegExp | undefined;\n\n  // The current parsing state, represented as a reference to one of the\n  // regexes\n  let regex = textEndRegex;\n\n  for (let i = 0; i < l; i++) {\n    const s = strings[i];\n    // The index of the end of the last attribute name. When this is\n    // positive at end of a string, it means we're in an attribute value\n    // position and need to rewrite the attribute name.\n    // We also use a special value of -2 to indicate that we encountered\n    // the end of a string in attribute name position.\n    let attrNameEndIndex = -1;\n    let attrName: string | undefined;\n    let lastIndex = 0;\n    let match!: RegExpExecArray | null;\n\n    // The conditions in this loop handle the current parse state, and the\n    // assignments to the `regex` variable are the state transitions.\n    while (lastIndex < s.length) {\n      // Make sure we start searching from where we previously left off\n      regex.lastIndex = lastIndex;\n      match = regex.exec(s);\n      if (match === null) {\n        break;\n      }\n      lastIndex = regex.lastIndex;\n      if (regex === textEndRegex) {\n        if (match[COMMENT_START] === '!--') {\n          regex = commentEndRegex;\n        } else if (match[COMMENT_START] !== undefined) {\n          // We started a weird comment, like </{\n          regex = comment2EndRegex;\n        } else if (match[TAG_NAME] !== undefined) {\n          if (rawTextElement.test(match[TAG_NAME])) {\n            // Record if we encounter a raw-text element. We'll switch to\n            // this regex at the end of the tag.\n            rawTextEndRegex = new RegExp(`</${match[TAG_NAME]}`, 'g');\n          }\n          regex = tagEndRegex;\n        } else if (match[DYNAMIC_TAG_NAME] !== undefined) {\n          if (DEV_MODE) {\n            throw new Error(\n              'Bindings in tag names are not supported. Please use static templates instead. ' +\n                'See https://lit.dev/docs/templates/expressions/#static-expressions'\n            );\n          }\n          regex = tagEndRegex;\n        }\n      } else if (regex === tagEndRegex) {\n        if (match[ENTIRE_MATCH] === '>') {\n          // End of a tag. If we had started a raw-text element, use that\n          // regex\n          regex = rawTextEndRegex ?? textEndRegex;\n          // We may be ending an unquoted attribute value, so make sure we\n          // clear any pending attrNameEndIndex\n          attrNameEndIndex = -1;\n        } else if (match[ATTRIBUTE_NAME] === undefined) {\n          // Attribute name position\n          attrNameEndIndex = -2;\n        } else {\n          attrNameEndIndex = regex.lastIndex - match[SPACES_AND_EQUALS].length;\n          attrName = match[ATTRIBUTE_NAME];\n          regex =\n            match[QUOTE_CHAR] === undefined\n              ? tagEndRegex\n              : match[QUOTE_CHAR] === '\"'\n                ? doubleQuoteAttrEndRegex\n                : singleQuoteAttrEndRegex;\n        }\n      } else if (\n        regex === doubleQuoteAttrEndRegex ||\n        regex === singleQuoteAttrEndRegex\n      ) {\n        regex = tagEndRegex;\n      } else if (regex === commentEndRegex || regex === comment2EndRegex) {\n        regex = textEndRegex;\n      } else {\n        // Not one of the five state regexes, so it must be the dynamically\n        // created raw text regex and we're at the close of that element.\n        regex = tagEndRegex;\n        rawTextEndRegex = undefined;\n      }\n    }\n\n    if (DEV_MODE) {\n      // If we have a attrNameEndIndex, which indicates that we should\n      // rewrite the attribute name, assert that we're in a valid attribute\n      // position - either in a tag, or a quoted attribute value.\n      console.assert(\n        attrNameEndIndex === -1 ||\n          regex === tagEndRegex ||\n          regex === singleQuoteAttrEndRegex ||\n          regex === doubleQuoteAttrEndRegex,\n        'unexpected parse state B'\n      );\n    }\n\n    // We have four cases:\n    //  1. We're in text position, and not in a raw text element\n    //     (regex === textEndRegex): insert a comment marker.\n    //  2. We have a non-negative attrNameEndIndex which means we need to\n    //     rewrite the attribute name to add a bound attribute suffix.\n    //  3. We're at the non-first binding in a multi-binding attribute, use a\n    //     plain marker.\n    //  4. We're somewhere else inside the tag. If we're in attribute name\n    //     position (attrNameEndIndex === -2), add a sequential suffix to\n    //     generate a unique attribute name.\n\n    // Detect a binding next to self-closing tag end and insert a space to\n    // separate the marker from the tag end:\n    const end =\n      regex === tagEndRegex && strings[i + 1].startsWith('/>') ? ' ' : '';\n    html +=\n      regex === textEndRegex\n        ? s + nodeMarker\n        : attrNameEndIndex >= 0\n          ? (attrNames.push(attrName!),\n            s.slice(0, attrNameEndIndex) +\n              boundAttributeSuffix +\n              s.slice(attrNameEndIndex)) +\n            marker +\n            end\n          : s + marker + (attrNameEndIndex === -2 ? i : end);\n  }\n\n  const htmlResult: string | TrustedHTML =\n    html +\n    (strings[l] || '<?>') +\n    (type === SVG_RESULT ? '</svg>' : type === MATHML_RESULT ? '</math>' : '');\n\n  // Returned as an array for terseness\n  return [trustFromTemplateString(strings, htmlResult), attrNames];\n};\n\n/** @internal */\nexport type {Template};\nclass Template {\n  /** @internal */\n  el!: HTMLTemplateElement;\n\n  parts: Array<TemplatePart> = [];\n\n  constructor(\n    // This property needs to remain unminified.\n    {strings, ['_$litType$']: type}: UncompiledTemplateResult,\n    options?: RenderOptions\n  ) {\n    let node: Node | null;\n    let nodeIndex = 0;\n    let attrNameIndex = 0;\n    const partCount = strings.length - 1;\n    const parts = this.parts;\n\n    // Create template element\n    const [html, attrNames] = getTemplateHtml(strings, type);\n    this.el = Template.createElement(html, options);\n    walker.currentNode = this.el.content;\n\n    // Re-parent SVG or MathML nodes into template root\n    if (type === SVG_RESULT || type === MATHML_RESULT) {\n      const wrapper = this.el.content.firstChild!;\n      wrapper.replaceWith(...wrapper.childNodes);\n    }\n\n    // Walk the template to find binding markers and create TemplateParts\n    while ((node = walker.nextNode()) !== null && parts.length < partCount) {\n      if (node.nodeType === 1) {\n        if (DEV_MODE) {\n          const tag = (node as Element).localName;\n          // Warn if `textarea` includes an expression and throw if `template`\n          // does since these are not supported. We do this by checking\n          // innerHTML for anything that looks like a marker. This catches\n          // cases like bindings in textarea there markers turn into text nodes.\n          if (\n            /^(?:textarea|template)$/i!.test(tag) &&\n            (node as Element).innerHTML.includes(marker)\n          ) {\n            const m =\n              `Expressions are not supported inside \\`${tag}\\` ` +\n              `elements. See https://lit.dev/msg/expression-in-${tag} for more ` +\n              `information.`;\n            if (tag === 'template') {\n              throw new Error(m);\n            } else issueWarning('', m);\n          }\n        }\n        // TODO (justinfagnani): for attempted dynamic tag names, we don't\n        // increment the bindingIndex, and it'll be off by 1 in the element\n        // and off by two after it.\n        if ((node as Element).hasAttributes()) {\n          for (const name of (node as Element).getAttributeNames()) {\n            if (name.endsWith(boundAttributeSuffix)) {\n              const realName = attrNames[attrNameIndex++];\n              const value = (node as Element).getAttribute(name)!;\n              const statics = value.split(marker);\n              const m = /([.?@])?(.*)/.exec(realName)!;\n              parts.push({\n                type: ATTRIBUTE_PART,\n                index: nodeIndex,\n                name: m[2],\n                strings: statics,\n                ctor:\n                  m[1] === '.'\n                    ? PropertyPart\n                    : m[1] === '?'\n                      ? BooleanAttributePart\n                      : m[1] === '@'\n                        ? EventPart\n                        : AttributePart,\n              });\n              (node as Element).removeAttribute(name);\n            } else if (name.startsWith(marker)) {\n              parts.push({\n                type: ELEMENT_PART,\n                index: nodeIndex,\n              });\n              (node as Element).removeAttribute(name);\n            }\n          }\n        }\n        // TODO (justinfagnani): benchmark the regex against testing for each\n        // of the 3 raw text element names.\n        if (rawTextElement.test((node as Element).tagName)) {\n          // For raw text elements we need to split the text content on\n          // markers, create a Text node for each segment, and create\n          // a TemplatePart for each marker.\n          const strings = (node as Element).textContent!.split(marker);\n          const lastIndex = strings.length - 1;\n          if (lastIndex > 0) {\n            (node as Element).textContent = trustedTypes\n              ? (trustedTypes.emptyScript as unknown as '')\n              : '';\n            // Generate a new text node for each literal section\n            // These nodes are also used as the markers for child parts\n            for (let i = 0; i < lastIndex; i++) {\n              (node as Element).append(strings[i], createMarker());\n              // Walk past the marker node we just added\n              walker.nextNode();\n              parts.push({type: CHILD_PART, index: ++nodeIndex});\n            }\n            // Note because this marker is added after the walker's current\n            // node, it will be walked to in the outer loop (and ignored), so\n            // we don't need to adjust nodeIndex here\n            (node as Element).append(strings[lastIndex], createMarker());\n          }\n        }\n      } else if (node.nodeType === 8) {\n        const data = (node as Comment).data;\n        if (data === markerMatch) {\n          parts.push({type: CHILD_PART, index: nodeIndex});\n        } else {\n          let i = -1;\n          while ((i = (node as Comment).data.indexOf(marker, i + 1)) !== -1) {\n            // Comment node has a binding marker inside, make an inactive part\n            // The binding won't work, but subsequent bindings will\n            parts.push({type: COMMENT_PART, index: nodeIndex});\n            // Move to the end of the match\n            i += marker.length - 1;\n          }\n        }\n      }\n      nodeIndex++;\n    }\n\n    if (DEV_MODE) {\n      // If there was a duplicate attribute on a tag, then when the tag is\n      // parsed into an element the attribute gets de-duplicated. We can detect\n      // this mismatch if we haven't precisely consumed every attribute name\n      // when preparing the template. This works because `attrNames` is built\n      // from the template string and `attrNameIndex` comes from processing the\n      // resulting DOM.\n      if (attrNames.length !== attrNameIndex) {\n        throw new Error(\n          `Detected duplicate attribute bindings. This occurs if your template ` +\n            `has duplicate attributes on an element tag. For example ` +\n            `\"<input ?disabled=\\${true} ?disabled=\\${false}>\" contains a ` +\n            `duplicate \"disabled\" attribute. The error was detected in ` +\n            `the following template: \\n` +\n            '`' +\n            strings.join('${...}') +\n            '`'\n        );\n      }\n    }\n\n    // We could set walker.currentNode to another node here to prevent a memory\n    // leak, but every time we prepare a template, we immediately render it\n    // and re-use the walker in new TemplateInstance._clone().\n    debugLogEvent &&\n      debugLogEvent({\n        kind: 'template prep',\n        template: this,\n        clonableTemplate: this.el,\n        parts: this.parts,\n        strings,\n      });\n  }\n\n  // Overridden via `litHtmlPolyfillSupport` to provide platform support.\n  /** @nocollapse */\n  static createElement(html: TrustedHTML, _options?: RenderOptions) {\n    const el = d.createElement('template');\n    el.innerHTML = html as unknown as string;\n    return el;\n  }\n}\n\nexport interface Disconnectable {\n  _$parent?: Disconnectable;\n  _$disconnectableChildren?: Set<Disconnectable>;\n  // Rather than hold connection state on instances, Disconnectables recursively\n  // fetch the connection state from the RootPart they are connected in via\n  // getters up the Disconnectable tree via _$parent references. This pushes the\n  // cost of tracking the isConnected state to `AsyncDirectives`, and avoids\n  // needing to pass all Disconnectables (parts, template instances, and\n  // directives) their connection state each time it changes, which would be\n  // costly for trees that have no AsyncDirectives.\n  _$isConnected: boolean;\n}\n\nfunction resolveDirective(\n  part: ChildPart | AttributePart | ElementPart,\n  value: unknown,\n  parent: DirectiveParent = part,\n  attributeIndex?: number\n): unknown {\n  // Bail early if the value is explicitly noChange. Note, this means any\n  // nested directive is still attached and is not run.\n  if (value === noChange) {\n    return value;\n  }\n  let currentDirective =\n    attributeIndex !== undefined\n      ? (parent as AttributePart).__directives?.[attributeIndex]\n      : (parent as ChildPart | ElementPart | Directive).__directive;\n  const nextDirectiveConstructor = isPrimitive(value)\n    ? undefined\n    : // This property needs to remain unminified.\n      (value as DirectiveResult)['_$litDirective$'];\n  if (currentDirective?.constructor !== nextDirectiveConstructor) {\n    // This property needs to remain unminified.\n    currentDirective?.['_$notifyDirectiveConnectionChanged']?.(false);\n    if (nextDirectiveConstructor === undefined) {\n      currentDirective = undefined;\n    } else {\n      currentDirective = new nextDirectiveConstructor(part as PartInfo);\n      currentDirective._$initialize(part, parent, attributeIndex);\n    }\n    if (attributeIndex !== undefined) {\n      ((parent as AttributePart).__directives ??= [])[attributeIndex] =\n        currentDirective;\n    } else {\n      (parent as ChildPart | Directive).__directive = currentDirective;\n    }\n  }\n  if (currentDirective !== undefined) {\n    value = resolveDirective(\n      part,\n      currentDirective._$resolve(part, (value as DirectiveResult).values),\n      currentDirective,\n      attributeIndex\n    );\n  }\n  return value;\n}\n\nexport type {TemplateInstance};\n/**\n * An updateable instance of a Template. Holds references to the Parts used to\n * update the template instance.\n */\nclass TemplateInstance implements Disconnectable {\n  _$template: Template;\n  _$parts: Array<Part | undefined> = [];\n\n  /** @internal */\n  _$parent: ChildPart;\n  /** @internal */\n  _$disconnectableChildren?: Set<Disconnectable> = undefined;\n\n  constructor(template: Template, parent: ChildPart) {\n    this._$template = template;\n    this._$parent = parent;\n  }\n\n  // Called by ChildPart parentNode getter\n  get parentNode() {\n    return this._$parent.parentNode;\n  }\n\n  // See comment in Disconnectable interface for why this is a getter\n  get _$isConnected() {\n    return this._$parent._$isConnected;\n  }\n\n  // This method is separate from the constructor because we need to return a\n  // DocumentFragment and we don't want to hold onto it with an instance field.\n  _clone(options: RenderOptions | undefined) {\n    const {\n      el: {content},\n      parts: parts,\n    } = this._$template;\n    const fragment = (options?.creationScope ?? d).importNode(content, true);\n    walker.currentNode = fragment;\n\n    let node = walker.nextNode()!;\n    let nodeIndex = 0;\n    let partIndex = 0;\n    let templatePart = parts[0];\n\n    while (templatePart !== undefined) {\n      if (nodeIndex === templatePart.index) {\n        let part: Part | undefined;\n        if (templatePart.type === CHILD_PART) {\n          part = new ChildPart(\n            node as HTMLElement,\n            node.nextSibling,\n            this,\n            options\n          );\n        } else if (templatePart.type === ATTRIBUTE_PART) {\n          part = new templatePart.ctor(\n            node as HTMLElement,\n            templatePart.name,\n            templatePart.strings,\n            this,\n            options\n          );\n        } else if (templatePart.type === ELEMENT_PART) {\n          part = new ElementPart(node as HTMLElement, this, options);\n        }\n        this._$parts.push(part);\n        templatePart = parts[++partIndex];\n      }\n      if (nodeIndex !== templatePart?.index) {\n        node = walker.nextNode()!;\n        nodeIndex++;\n      }\n    }\n    // We need to set the currentNode away from the cloned tree so that we\n    // don't hold onto the tree even if the tree is detached and should be\n    // freed.\n    walker.currentNode = d;\n    return fragment;\n  }\n\n  _update(values: Array<unknown>) {\n    let i = 0;\n    for (const part of this._$parts) {\n      if (part !== undefined) {\n        debugLogEvent &&\n          debugLogEvent({\n            kind: 'set part',\n            part,\n            value: values[i],\n            valueIndex: i,\n            values,\n            templateInstance: this,\n          });\n        if ((part as AttributePart).strings !== undefined) {\n          (part as AttributePart)._$setValue(values, part as AttributePart, i);\n          // The number of values the part consumes is part.strings.length - 1\n          // since values are in between template spans. We increment i by 1\n          // later in the loop, so increment it by part.strings.length - 2 here\n          i += (part as AttributePart).strings!.length - 2;\n        } else {\n          part._$setValue(values[i]);\n        }\n      }\n      i++;\n    }\n  }\n}\n\n/*\n * Parts\n */\ntype AttributeTemplatePart = {\n  readonly type: typeof ATTRIBUTE_PART;\n  readonly index: number;\n  readonly name: string;\n  readonly ctor: typeof AttributePart;\n  readonly strings: ReadonlyArray<string>;\n};\ntype ChildTemplatePart = {\n  readonly type: typeof CHILD_PART;\n  readonly index: number;\n};\ntype ElementTemplatePart = {\n  readonly type: typeof ELEMENT_PART;\n  readonly index: number;\n};\ntype CommentTemplatePart = {\n  readonly type: typeof COMMENT_PART;\n  readonly index: number;\n};\n\n/**\n * A TemplatePart represents a dynamic part in a template, before the template\n * is instantiated. When a template is instantiated Parts are created from\n * TemplateParts.\n */\ntype TemplatePart =\n  | ChildTemplatePart\n  | AttributeTemplatePart\n  | ElementTemplatePart\n  | CommentTemplatePart;\n\nexport type Part =\n  | ChildPart\n  | AttributePart\n  | PropertyPart\n  | BooleanAttributePart\n  | ElementPart\n  | EventPart;\n\nexport type {ChildPart};\nclass ChildPart implements Disconnectable {\n  readonly type = CHILD_PART;\n  readonly options: RenderOptions | undefined;\n  _$committedValue: unknown = nothing;\n  /** @internal */\n  __directive?: Directive;\n  /** @internal */\n  _$startNode: ChildNode;\n  /** @internal */\n  _$endNode: ChildNode | null;\n  private _textSanitizer: ValueSanitizer | undefined;\n  /** @internal */\n  _$parent: Disconnectable | undefined;\n  /**\n   * Connection state for RootParts only (i.e. ChildPart without _$parent\n   * returned from top-level `render`). This field is unused otherwise. The\n   * intention would be clearer if we made `RootPart` a subclass of `ChildPart`\n   * with this field (and a different _$isConnected getter), but the subclass\n   * caused a perf regression, possibly due to making call sites polymorphic.\n   * @internal\n   */\n  __isConnected: boolean;\n\n  // See comment in Disconnectable interface for why this is a getter\n  get _$isConnected() {\n    // ChildParts that are not at the root should always be created with a\n    // parent; only RootChildNode's won't, so they return the local isConnected\n    // state\n    return this._$parent?._$isConnected ?? this.__isConnected;\n  }\n\n  // The following fields will be patched onto ChildParts when required by\n  // AsyncDirective\n  /** @internal */\n  _$disconnectableChildren?: Set<Disconnectable> = undefined;\n  /** @internal */\n  _$notifyConnectionChanged?(\n    isConnected: boolean,\n    removeFromParent?: boolean,\n    from?: number\n  ): void;\n  /** @internal */\n  _$reparentDisconnectables?(parent: Disconnectable): void;\n\n  constructor(\n    startNode: ChildNode,\n    endNode: ChildNode | null,\n    parent: TemplateInstance | ChildPart | undefined,\n    options: RenderOptions | undefined\n  ) {\n    this._$startNode = startNode;\n    this._$endNode = endNode;\n    this._$parent = parent;\n    this.options = options;\n    // Note __isConnected is only ever accessed on RootParts (i.e. when there is\n    // no _$parent); the value on a non-root-part is \"don't care\", but checking\n    // for parent would be more code\n    this.__isConnected = options?.isConnected ?? true;\n    if (ENABLE_EXTRA_SECURITY_HOOKS) {\n      // Explicitly initialize for consistent class shape.\n      this._textSanitizer = undefined;\n    }\n  }\n\n  /**\n   * The parent node into which the part renders its content.\n   *\n   * A ChildPart's content consists of a range of adjacent child nodes of\n   * `.parentNode`, possibly bordered by 'marker nodes' (`.startNode` and\n   * `.endNode`).\n   *\n   * - If both `.startNode` and `.endNode` are non-null, then the part's content\n   * consists of all siblings between `.startNode` and `.endNode`, exclusively.\n   *\n   * - If `.startNode` is non-null but `.endNode` is null, then the part's\n   * content consists of all siblings following `.startNode`, up to and\n   * including the last child of `.parentNode`. If `.endNode` is non-null, then\n   * `.startNode` will always be non-null.\n   *\n   * - If both `.endNode` and `.startNode` are null, then the part's content\n   * consists of all child nodes of `.parentNode`.\n   */\n  get parentNode(): Node {\n    let parentNode: Node = wrap(this._$startNode).parentNode!;\n    const parent = this._$parent;\n    if (\n      parent !== undefined &&\n      parentNode?.nodeType === 11 /* Node.DOCUMENT_FRAGMENT */\n    ) {\n      // If the parentNode is a DocumentFragment, it may be because the DOM is\n      // still in the cloned fragment during initial render; if so, get the real\n      // parentNode the part will be committed into by asking the parent.\n      parentNode = (parent as ChildPart | TemplateInstance).parentNode;\n    }\n    return parentNode;\n  }\n\n  /**\n   * The part's leading marker node, if any. See `.parentNode` for more\n   * information.\n   */\n  get startNode(): Node | null {\n    return this._$startNode;\n  }\n\n  /**\n   * The part's trailing marker node, if any. See `.parentNode` for more\n   * information.\n   */\n  get endNode(): Node | null {\n    return this._$endNode;\n  }\n\n  _$setValue(value: unknown, directiveParent: DirectiveParent = this): void {\n    if (DEV_MODE && this.parentNode === null) {\n      throw new Error(\n        `This \\`ChildPart\\` has no \\`parentNode\\` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's \\`innerHTML\\` or \\`textContent\\` can do this.`\n      );\n    }\n    value = resolveDirective(this, value, directiveParent);\n    if (isPrimitive(value)) {\n      // Non-rendering child values. It's important that these do not render\n      // empty text nodes to avoid issues with preventing default <slot>\n      // fallback content.\n      if (value === nothing || value == null || value === '') {\n        if (this._$committedValue !== nothing) {\n          debugLogEvent &&\n            debugLogEvent({\n              kind: 'commit nothing to child',\n              start: this._$startNode,\n              end: this._$endNode,\n              parent: this._$parent,\n              options: this.options,\n            });\n          this._$clear();\n        }\n        this._$committedValue = nothing;\n      } else if (value !== this._$committedValue && value !== noChange) {\n        this._commitText(value);\n      }\n      // This property needs to remain unminified.\n    } else if ((value as TemplateResult)['_$litType$'] !== undefined) {\n      this._commitTemplateResult(value as TemplateResult);\n    } else if ((value as Node).nodeType !== undefined) {\n      if (DEV_MODE && this.options?.host === value) {\n        this._commitText(\n          `[probable mistake: rendered a template's host in itself ` +\n            `(commonly caused by writing \\${this} in a template]`\n        );\n        console.warn(\n          `Attempted to render the template host`,\n          value,\n          `inside itself. This is almost always a mistake, and in dev mode `,\n          `we render some warning text. In production however, we'll `,\n          `render it, which will usually result in an error, and sometimes `,\n          `in the element disappearing from the DOM.`\n        );\n        return;\n      }\n      this._commitNode(value as Node);\n    } else if (isIterable(value)) {\n      this._commitIterable(value);\n    } else {\n      // Fallback, will render the string representation\n      this._commitText(value);\n    }\n  }\n\n  private _insert<T extends Node>(node: T) {\n    return wrap(wrap(this._$startNode).parentNode!).insertBefore(\n      node,\n      this._$endNode\n    );\n  }\n\n  private _commitNode(value: Node): void {\n    if (this._$committedValue !== value) {\n      this._$clear();\n      if (\n        ENABLE_EXTRA_SECURITY_HOOKS &&\n        sanitizerFactoryInternal !== noopSanitizer\n      ) {\n        const parentNodeName = this._$startNode.parentNode?.nodeName;\n        if (parentNodeName === 'STYLE' || parentNodeName === 'SCRIPT') {\n          let message = 'Forbidden';\n          if (DEV_MODE) {\n            if (parentNodeName === 'STYLE') {\n              message =\n                `Lit does not support binding inside style nodes. ` +\n                `This is a security risk, as style injection attacks can ` +\n                `exfiltrate data and spoof UIs. ` +\n                `Consider instead using css\\`...\\` literals ` +\n                `to compose styles, and do dynamic styling with ` +\n                `css custom properties, ::parts, <slot>s, ` +\n                `and by mutating the DOM rather than stylesheets.`;\n            } else {\n              message =\n                `Lit does not support binding inside script nodes. ` +\n                `This is a security risk, as it could allow arbitrary ` +\n                `code execution.`;\n            }\n          }\n          throw new Error(message);\n        }\n      }\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'commit node',\n          start: this._$startNode,\n          parent: this._$parent,\n          value: value,\n          options: this.options,\n        });\n      this._$committedValue = this._insert(value);\n    }\n  }\n\n  private _commitText(value: unknown): void {\n    // If the committed value is a primitive it means we called _commitText on\n    // the previous render, and we know that this._$startNode.nextSibling is a\n    // Text node. We can now just replace the text content (.data) of the node.\n    if (\n      this._$committedValue !== nothing &&\n      isPrimitive(this._$committedValue)\n    ) {\n      const node = wrap(this._$startNode).nextSibling as Text;\n      if (ENABLE_EXTRA_SECURITY_HOOKS) {\n        if (this._textSanitizer === undefined) {\n          this._textSanitizer = createSanitizer(node, 'data', 'property');\n        }\n        value = this._textSanitizer(value);\n      }\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'commit text',\n          node,\n          value,\n          options: this.options,\n        });\n      (node as Text).data = value as string;\n    } else {\n      if (ENABLE_EXTRA_SECURITY_HOOKS) {\n        const textNode = d.createTextNode('');\n        this._commitNode(textNode);\n        // When setting text content, for security purposes it matters a lot\n        // what the parent is. For example, <style> and <script> need to be\n        // handled with care, while <span> does not. So first we need to put a\n        // text node into the document, then we can sanitize its content.\n        if (this._textSanitizer === undefined) {\n          this._textSanitizer = createSanitizer(textNode, 'data', 'property');\n        }\n        value = this._textSanitizer(value);\n        debugLogEvent &&\n          debugLogEvent({\n            kind: 'commit text',\n            node: textNode,\n            value,\n            options: this.options,\n          });\n        textNode.data = value as string;\n      } else {\n        this._commitNode(d.createTextNode(value as string));\n        debugLogEvent &&\n          debugLogEvent({\n            kind: 'commit text',\n            node: wrap(this._$startNode).nextSibling as Text,\n            value,\n            options: this.options,\n          });\n      }\n    }\n    this._$committedValue = value;\n  }\n\n  private _commitTemplateResult(\n    result: TemplateResult | CompiledTemplateResult\n  ): void {\n    // This property needs to remain unminified.\n    const {values, ['_$litType$']: type} = result;\n    // If $litType$ is a number, result is a plain TemplateResult and we get\n    // the template from the template cache. If not, result is a\n    // CompiledTemplateResult and _$litType$ is a CompiledTemplate and we need\n    // to create the <template> element the first time we see it.\n    const template: Template | CompiledTemplate =\n      typeof type === 'number'\n        ? this._$getTemplate(result as UncompiledTemplateResult)\n        : (type.el === undefined &&\n            (type.el = Template.createElement(\n              trustFromTemplateString(type.h, type.h[0]),\n              this.options\n            )),\n          type);\n\n    if ((this._$committedValue as TemplateInstance)?._$template === template) {\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'template updating',\n          template,\n          instance: this._$committedValue as TemplateInstance,\n          parts: (this._$committedValue as TemplateInstance)._$parts,\n          options: this.options,\n          values,\n        });\n      (this._$committedValue as TemplateInstance)._update(values);\n    } else {\n      const instance = new TemplateInstance(template as Template, this);\n      const fragment = instance._clone(this.options);\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'template instantiated',\n          template,\n          instance,\n          parts: instance._$parts,\n          options: this.options,\n          fragment,\n          values,\n        });\n      instance._update(values);\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'template instantiated and updated',\n          template,\n          instance,\n          parts: instance._$parts,\n          options: this.options,\n          fragment,\n          values,\n        });\n      this._commitNode(fragment);\n      this._$committedValue = instance;\n    }\n  }\n\n  // Overridden via `litHtmlPolyfillSupport` to provide platform support.\n  /** @internal */\n  _$getTemplate(result: UncompiledTemplateResult) {\n    let template = templateCache.get(result.strings);\n    if (template === undefined) {\n      templateCache.set(result.strings, (template = new Template(result)));\n    }\n    return template;\n  }\n\n  private _commitIterable(value: Iterable<unknown>): void {\n    // For an Iterable, we create a new InstancePart per item, then set its\n    // value to the item. This is a little bit of overhead for every item in\n    // an Iterable, but it lets us recurse easily and efficiently update Arrays\n    // of TemplateResults that will be commonly returned from expressions like:\n    // array.map((i) => html`${i}`), by reusing existing TemplateInstances.\n\n    // If value is an array, then the previous render was of an\n    // iterable and value will contain the ChildParts from the previous\n    // render. If value is not an array, clear this part and make a new\n    // array for ChildParts.\n    if (!isArray(this._$committedValue)) {\n      this._$committedValue = [];\n      this._$clear();\n    }\n\n    // Lets us keep track of how many items we stamped so we can clear leftover\n    // items from a previous render\n    const itemParts = this._$committedValue as ChildPart[];\n    let partIndex = 0;\n    let itemPart: ChildPart | undefined;\n\n    for (const item of value) {\n      if (partIndex === itemParts.length) {\n        // If no existing part, create a new one\n        // TODO (justinfagnani): test perf impact of always creating two parts\n        // instead of sharing parts between nodes\n        // https://github.com/lit/lit/issues/1266\n        itemParts.push(\n          (itemPart = new ChildPart(\n            this._insert(createMarker()),\n            this._insert(createMarker()),\n            this,\n            this.options\n          ))\n        );\n      } else {\n        // Reuse an existing part\n        itemPart = itemParts[partIndex];\n      }\n      itemPart._$setValue(item);\n      partIndex++;\n    }\n\n    if (partIndex < itemParts.length) {\n      // itemParts always have end nodes\n      this._$clear(\n        itemPart && wrap(itemPart._$endNode!).nextSibling,\n        partIndex\n      );\n      // Truncate the parts array so _value reflects the current state\n      itemParts.length = partIndex;\n    }\n  }\n\n  /**\n   * Removes the nodes contained within this Part from the DOM.\n   *\n   * @param start Start node to clear from, for clearing a subset of the part's\n   *     DOM (used when truncating iterables)\n   * @param from  When `start` is specified, the index within the iterable from\n   *     which ChildParts are being removed, used for disconnecting directives\n   *     in those Parts.\n   *\n   * @internal\n   */\n  _$clear(\n    start: ChildNode | null = wrap(this._$startNode).nextSibling,\n    from?: number\n  ) {\n    this._$notifyConnectionChanged?.(false, true, from);\n    while (start !== this._$endNode) {\n      // The non-null assertion is safe because if _$startNode.nextSibling is\n      // null, then _$endNode is also null, and we would not have entered this\n      // loop.\n      const n = wrap(start!).nextSibling;\n      wrap(start!).remove();\n      start = n;\n    }\n  }\n\n  /**\n   * Implementation of RootPart's `isConnected`. Note that this method\n   * should only be called on `RootPart`s (the `ChildPart` returned from a\n   * top-level `render()` call). It has no effect on non-root ChildParts.\n   * @param isConnected Whether to set\n   * @internal\n   */\n  setConnected(isConnected: boolean) {\n    if (this._$parent === undefined) {\n      this.__isConnected = isConnected;\n      this._$notifyConnectionChanged?.(isConnected);\n    } else if (DEV_MODE) {\n      throw new Error(\n        'part.setConnected() may only be called on a ' +\n          'RootPart returned from render().'\n      );\n    }\n  }\n}\n\n/**\n * A top-level `ChildPart` returned from `render` that manages the connected\n * state of `AsyncDirective`s created throughout the tree below it.\n */\nexport interface RootPart extends ChildPart {\n  /**\n   * Sets the connection state for `AsyncDirective`s contained within this root\n   * ChildPart.\n   *\n   * lit-html does not automatically monitor the connectedness of DOM rendered;\n   * as such, it is the responsibility of the caller to `render` to ensure that\n   * `part.setConnected(false)` is called before the part object is potentially\n   * discarded, to ensure that `AsyncDirective`s have a chance to dispose of\n   * any resources being held. If a `RootPart` that was previously\n   * disconnected is subsequently re-connected (and its `AsyncDirective`s should\n   * re-connect), `setConnected(true)` should be called.\n   *\n   * @param isConnected Whether directives within this tree should be connected\n   * or not\n   */\n  setConnected(isConnected: boolean): void;\n}\n\nexport type {AttributePart};\nclass AttributePart implements Disconnectable {\n  readonly type:\n    | typeof ATTRIBUTE_PART\n    | typeof PROPERTY_PART\n    | typeof BOOLEAN_ATTRIBUTE_PART\n    | typeof EVENT_PART = ATTRIBUTE_PART;\n  readonly element: HTMLElement;\n  readonly name: string;\n  readonly options: RenderOptions | undefined;\n\n  /**\n   * If this attribute part represents an interpolation, this contains the\n   * static strings of the interpolation. For single-value, complete bindings,\n   * this is undefined.\n   */\n  readonly strings?: ReadonlyArray<string>;\n  /** @internal */\n  _$committedValue: unknown | Array<unknown> = nothing;\n  /** @internal */\n  __directives?: Array<Directive | undefined>;\n  /** @internal */\n  _$parent: Disconnectable;\n  /** @internal */\n  _$disconnectableChildren?: Set<Disconnectable> = undefined;\n\n  protected _sanitizer: ValueSanitizer | undefined;\n\n  get tagName() {\n    return this.element.tagName;\n  }\n\n  // See comment in Disconnectable interface for why this is a getter\n  get _$isConnected() {\n    return this._$parent._$isConnected;\n  }\n\n  constructor(\n    element: HTMLElement,\n    name: string,\n    strings: ReadonlyArray<string>,\n    parent: Disconnectable,\n    options: RenderOptions | undefined\n  ) {\n    this.element = element;\n    this.name = name;\n    this._$parent = parent;\n    this.options = options;\n    if (strings.length > 2 || strings[0] !== '' || strings[1] !== '') {\n      this._$committedValue = new Array(strings.length - 1).fill(new String());\n      this.strings = strings;\n    } else {\n      this._$committedValue = nothing;\n    }\n    if (ENABLE_EXTRA_SECURITY_HOOKS) {\n      this._sanitizer = undefined;\n    }\n  }\n\n  /**\n   * Sets the value of this part by resolving the value from possibly multiple\n   * values and static strings and committing it to the DOM.\n   * If this part is single-valued, `this._strings` will be undefined, and the\n   * method will be called with a single value argument. If this part is\n   * multi-value, `this._strings` will be defined, and the method is called\n   * with the value array of the part's owning TemplateInstance, and an offset\n   * into the value array from which the values should be read.\n   * This method is overloaded this way to eliminate short-lived array slices\n   * of the template instance values, and allow a fast-path for single-valued\n   * parts.\n   *\n   * @param value The part value, or an array of values for multi-valued parts\n   * @param valueIndex the index to start reading values from. `undefined` for\n   *   single-valued parts\n   * @param noCommit causes the part to not commit its value to the DOM. Used\n   *   in hydration to prime attribute parts with their first-rendered value,\n   *   but not set the attribute, and in SSR to no-op the DOM operation and\n   *   capture the value for serialization.\n   *\n   * @internal\n   */\n  _$setValue(\n    value: unknown | Array<unknown>,\n    directiveParent: DirectiveParent = this,\n    valueIndex?: number,\n    noCommit?: boolean\n  ) {\n    const strings = this.strings;\n\n    // Whether any of the values has changed, for dirty-checking\n    let change = false;\n\n    if (strings === undefined) {\n      // Single-value binding case\n      value = resolveDirective(this, value, directiveParent, 0);\n      change =\n        !isPrimitive(value) ||\n        (value !== this._$committedValue && value !== noChange);\n      if (change) {\n        this._$committedValue = value;\n      }\n    } else {\n      // Interpolation case\n      const values = value as Array<unknown>;\n      value = strings[0];\n\n      let i, v;\n      for (i = 0; i < strings.length - 1; i++) {\n        v = resolveDirective(this, values[valueIndex! + i], directiveParent, i);\n\n        if (v === noChange) {\n          // If the user-provided value is `noChange`, use the previous value\n          v = (this._$committedValue as Array<unknown>)[i];\n        }\n        change ||=\n          !isPrimitive(v) || v !== (this._$committedValue as Array<unknown>)[i];\n        if (v === nothing) {\n          value = nothing;\n        } else if (value !== nothing) {\n          value += (v ?? '') + strings[i + 1];\n        }\n        // We always record each value, even if one is `nothing`, for future\n        // change detection.\n        (this._$committedValue as Array<unknown>)[i] = v;\n      }\n    }\n    if (change && !noCommit) {\n      this._commitValue(value);\n    }\n  }\n\n  /** @internal */\n  _commitValue(value: unknown) {\n    if (value === nothing) {\n      (wrap(this.element) as Element).removeAttribute(this.name);\n    } else {\n      if (ENABLE_EXTRA_SECURITY_HOOKS) {\n        if (this._sanitizer === undefined) {\n          this._sanitizer = sanitizerFactoryInternal(\n            this.element,\n            this.name,\n            'attribute'\n          );\n        }\n        value = this._sanitizer(value ?? '');\n      }\n      debugLogEvent &&\n        debugLogEvent({\n          kind: 'commit attribute',\n          element: this.element,\n          name: this.name,\n          value,\n          options: this.options,\n        });\n      (wrap(this.element) as Element).setAttribute(\n        this.name,\n        (value ?? '') as string\n      );\n    }\n  }\n}\n\nexport type {PropertyPart};\nclass PropertyPart extends AttributePart {\n  override readonly type = PROPERTY_PART;\n\n  /** @internal */\n  override _commitValue(value: unknown) {\n    if (ENABLE_EXTRA_SECURITY_HOOKS) {\n      if (this._sanitizer === undefined) {\n        this._sanitizer = sanitizerFactoryInternal(\n          this.element,\n          this.name,\n          'property'\n        );\n      }\n      value = this._sanitizer(value);\n    }\n    debugLogEvent &&\n      debugLogEvent({\n        kind: 'commit property',\n        element: this.element,\n        name: this.name,\n        value,\n        options: this.options,\n      });\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    (this.element as any)[this.name] = value === nothing ? undefined : value;\n  }\n}\n\nexport type {BooleanAttributePart};\nclass BooleanAttributePart extends AttributePart {\n  override readonly type = BOOLEAN_ATTRIBUTE_PART;\n\n  /** @internal */\n  override _commitValue(value: unknown) {\n    debugLogEvent &&\n      debugLogEvent({\n        kind: 'commit boolean attribute',\n        element: this.element,\n        name: this.name,\n        value: !!(value && value !== nothing),\n        options: this.options,\n      });\n    (wrap(this.element) as Element).toggleAttribute(\n      this.name,\n      !!value && value !== nothing\n    );\n  }\n}\n\ntype EventListenerWithOptions = EventListenerOrEventListenerObject &\n  Partial<AddEventListenerOptions>;\n\n/**\n * An AttributePart that manages an event listener via add/removeEventListener.\n *\n * This part works by adding itself as the event listener on an element, then\n * delegating to the value passed to it. This reduces the number of calls to\n * add/removeEventListener if the listener changes frequently, such as when an\n * inline function is used as a listener.\n *\n * Because event options are passed when adding listeners, we must take case\n * to add and remove the part as a listener when the event options change.\n */\nexport type {EventPart};\nclass EventPart extends AttributePart {\n  override readonly type = EVENT_PART;\n\n  constructor(\n    element: HTMLElement,\n    name: string,\n    strings: ReadonlyArray<string>,\n    parent: Disconnectable,\n    options: RenderOptions | undefined\n  ) {\n    super(element, name, strings, parent, options);\n\n    if (DEV_MODE && this.strings !== undefined) {\n      throw new Error(\n        `A \\`<${element.localName}>\\` has a \\`@${name}=...\\` listener with ` +\n          'invalid content. Event listeners in templates must have exactly ' +\n          'one expression and no surrounding text.'\n      );\n    }\n  }\n\n  // EventPart does not use the base _$setValue/_resolveValue implementation\n  // since the dirty checking is more complex\n  /** @internal */\n  override _$setValue(\n    newListener: unknown,\n    directiveParent: DirectiveParent = this\n  ) {\n    newListener =\n      resolveDirective(this, newListener, directiveParent, 0) ?? nothing;\n    if (newListener === noChange) {\n      return;\n    }\n    const oldListener = this._$committedValue;\n\n    // If the new value is nothing or any options change we have to remove the\n    // part as a listener.\n    const shouldRemoveListener =\n      (newListener === nothing && oldListener !== nothing) ||\n      (newListener as EventListenerWithOptions).capture !==\n        (oldListener as EventListenerWithOptions).capture ||\n      (newListener as EventListenerWithOptions).once !==\n        (oldListener as EventListenerWithOptions).once ||\n      (newListener as EventListenerWithOptions).passive !==\n        (oldListener as EventListenerWithOptions).passive;\n\n    // If the new value is not nothing and we removed the listener, we have\n    // to add the part as a listener.\n    const shouldAddListener =\n      newListener !== nothing &&\n      (oldListener === nothing || shouldRemoveListener);\n\n    debugLogEvent &&\n      debugLogEvent({\n        kind: 'commit event listener',\n        element: this.element,\n        name: this.name,\n        value: newListener,\n        options: this.options,\n        removeListener: shouldRemoveListener,\n        addListener: shouldAddListener,\n        oldListener,\n      });\n    if (shouldRemoveListener) {\n      this.element.removeEventListener(\n        this.name,\n        this,\n        oldListener as EventListenerWithOptions\n      );\n    }\n    if (shouldAddListener) {\n      this.element.addEventListener(\n        this.name,\n        this,\n        newListener as EventListenerWithOptions\n      );\n    }\n    this._$committedValue = newListener;\n  }\n\n  handleEvent(event: Event) {\n    if (typeof this._$committedValue === 'function') {\n      this._$committedValue.call(this.options?.host ?? this.element, event);\n    } else {\n      (this._$committedValue as EventListenerObject).handleEvent(event);\n    }\n  }\n}\n\nexport type {ElementPart};\nclass ElementPart implements Disconnectable {\n  readonly type = ELEMENT_PART;\n\n  /** @internal */\n  __directive?: Directive;\n\n  // This is to ensure that every Part has a _$committedValue\n  _$committedValue: undefined;\n\n  /** @internal */\n  _$parent!: Disconnectable;\n\n  /** @internal */\n  _$disconnectableChildren?: Set<Disconnectable> = undefined;\n\n  options: RenderOptions | undefined;\n\n  constructor(\n    public element: Element,\n    parent: Disconnectable,\n    options: RenderOptions | undefined\n  ) {\n    this._$parent = parent;\n    this.options = options;\n  }\n\n  // See comment in Disconnectable interface for why this is a getter\n  get _$isConnected() {\n    return this._$parent._$isConnected;\n  }\n\n  _$setValue(value: unknown): void {\n    debugLogEvent &&\n      debugLogEvent({\n        kind: 'commit to element binding',\n        element: this.element,\n        value,\n        options: this.options,\n      });\n    resolveDirective(this, value);\n  }\n}\n\n/**\n * END USERS SHOULD NOT RELY ON THIS OBJECT.\n *\n * Private exports for use by other Lit packages, not intended for use by\n * external users.\n *\n * We currently do not make a mangled rollup build of the lit-ssr code. In order\n * to keep a number of (otherwise private) top-level exports mangled in the\n * client side code, we export a _$LH object containing those members (or\n * helper methods for accessing private fields of those members), and then\n * re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the\n * client-side code is being used in `dev` mode or `prod` mode.\n *\n * This has a unique name, to disambiguate it from private exports in\n * lit-element, which re-exports all of lit-html.\n *\n * @private\n */\nexport const _$LH = {\n  // Used in lit-ssr\n  _boundAttributeSuffix: boundAttributeSuffix,\n  _marker: marker,\n  _markerMatch: markerMatch,\n  _HTML_RESULT: HTML_RESULT,\n  _getTemplateHtml: getTemplateHtml,\n  // Used in tests and private-ssr-support\n  _TemplateInstance: TemplateInstance,\n  _isIterable: isIterable,\n  _resolveDirective: resolveDirective,\n  _ChildPart: ChildPart,\n  _AttributePart: AttributePart,\n  _BooleanAttributePart: BooleanAttributePart,\n  _EventPart: EventPart,\n  _PropertyPart: PropertyPart,\n  _ElementPart: ElementPart,\n};\n\n// Apply polyfills if available\nconst polyfillSupport = DEV_MODE\n  ? global.litHtmlPolyfillSupportDevMode\n  : global.litHtmlPolyfillSupport;\npolyfillSupport?.(Template, ChildPart);\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for lit-html usage.\n(global.litHtmlVersions ??= []).push('3.3.3');\nif (DEV_MODE && global.litHtmlVersions.length > 1) {\n  queueMicrotask(() => {\n    issueWarning!(\n      'multiple-versions',\n      `Multiple versions of Lit loaded. ` +\n        `Loading multiple versions is not recommended.`\n    );\n  });\n}\n\n/**\n * Renders a value, usually a lit-html TemplateResult, to the container.\n *\n * This example renders the text \"Hello, Zoe!\" inside a paragraph tag, appending\n * it to the container `document.body`.\n *\n * ```js\n * import {html, render} from 'lit';\n *\n * const name = \"Zoe\";\n * render(html`<p>Hello, ${name}!</p>`, document.body);\n * ```\n *\n * @param value Any [renderable\n *   value](https://lit.dev/docs/templates/expressions/#child-expressions),\n *   typically a {@linkcode TemplateResult} created by evaluating a template tag\n *   like {@linkcode html} or {@linkcode svg}.\n * @param container A DOM container to render to. The first render will append\n *   the rendered value to the container, and subsequent renders will\n *   efficiently update the rendered value if the same result type was\n *   previously rendered there.\n * @param options See {@linkcode RenderOptions} for options documentation.\n * @see\n * {@link https://lit.dev/docs/libraries/standalone-templates/#rendering-lit-html-templates| Rendering Lit HTML Templates}\n */\nexport const render = (\n  value: unknown,\n  container: RenderRootNode,\n  options?: RenderOptions\n): RootPart => {\n  if (DEV_MODE && container == null) {\n    // Give a clearer error message than\n    //     Uncaught TypeError: Cannot read properties of null (reading\n    //     '_$litPart$')\n    // which reads like an internal Lit error.\n    throw new TypeError(`The container to render into may not be ${container}`);\n  }\n  const renderId = DEV_MODE ? debugLogRenderId++ : 0;\n  const partOwnerNode = options?.renderBefore ?? container;\n  // This property needs to remain unminified.\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  let part: ChildPart = (partOwnerNode as any)['_$litPart$'];\n  debugLogEvent &&\n    debugLogEvent({\n      kind: 'begin render',\n      id: renderId,\n      value,\n      container,\n      options,\n      part,\n    });\n  if (part === undefined) {\n    const endNode = options?.renderBefore ?? null;\n    // This property needs to remain unminified.\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    (partOwnerNode as any)['_$litPart$'] = part = new ChildPart(\n      container.insertBefore(createMarker(), endNode),\n      endNode,\n      undefined,\n      options ?? {}\n    );\n  }\n  part._$setValue(value);\n  debugLogEvent &&\n    debugLogEvent({\n      kind: 'end render',\n      id: renderId,\n      value,\n      container,\n      options,\n      part,\n    });\n  return part as RootPart;\n};\n\nif (ENABLE_EXTRA_SECURITY_HOOKS) {\n  render.setSanitizer = setSanitizer;\n  render.createSanitizer = createSanitizer;\n  if (DEV_MODE) {\n    render._testOnlyClearSanitizerFactoryDoNotCallOrElse =\n      _testOnlyClearSanitizerFactoryDoNotCallOrElse;\n  }\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * The main LitElement module, which defines the {@linkcode LitElement} base\n * class and related APIs.\n *\n * LitElement components can define a template and a set of observed\n * properties. Changing an observed property triggers a re-render of the\n * element.\n *\n * Import {@linkcode LitElement} and {@linkcode html} from this module to\n * create a component:\n *\n *  ```js\n * import {LitElement, html} from 'lit-element';\n *\n * class MyElement extends LitElement {\n *\n *   // Declare observed properties\n *   static get properties() {\n *     return {\n *       adjective: {}\n *     }\n *   }\n *\n *   constructor() {\n *     this.adjective = 'awesome';\n *   }\n *\n *   // Define the element's template\n *   render() {\n *     return html`<p>your ${adjective} template here</p>`;\n *   }\n * }\n *\n * customElements.define('my-element', MyElement);\n * ```\n *\n * `LitElement` extends {@linkcode ReactiveElement} and adds lit-html\n * templating. The `ReactiveElement` class is provided for users that want to\n * build their own custom element base classes that don't use lit-html.\n *\n * @packageDocumentation\n */\nimport {PropertyValues, ReactiveElement} from '@lit/reactive-element';\nimport {render, RenderOptions, noChange, RootPart} from 'lit-html';\nexport * from '@lit/reactive-element';\nexport * from 'lit-html';\n\nimport {LitUnstable} from 'lit-html';\nimport {ReactiveUnstable} from '@lit/reactive-element';\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace Unstable {\n  /**\n   * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n   * we will emit 'lit-debug' events to window, with live details about the update and render\n   * lifecycle. These can be useful for writing debug tooling and visualizations.\n   *\n   * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n   * making certain operations that are normally very cheap (like a no-op render) much slower,\n   * because we must copy data and dispatch events.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-namespace\n  export namespace DebugLog {\n    export type Entry =\n      | LitUnstable.DebugLog.Entry\n      | ReactiveUnstable.DebugLog.Entry;\n  }\n}\n/*\n * When using Closure Compiler, JSCompiler_renameProperty(property, object) is\n * replaced at compile time by the munged name for object[property]. We cannot\n * alias this function, so we have to use a small shim that has the same\n * behavior when not compiling.\n */\n/*@__INLINE__*/\nconst JSCompiler_renameProperty = <P extends PropertyKey>(\n  prop: P,\n  _obj: unknown\n): P => prop;\n\nconst DEV_MODE = true;\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n  // Ensure warnings are issued only 1x, even if multiple versions of Lit\n  // are loaded.\n  global.litIssuedWarnings ??= new Set();\n\n  /**\n   * Issue a warning if we haven't already, based either on `code` or `warning`.\n   * Warnings are disabled automatically only by `warning`; disabling via `code`\n   * can be done by users.\n   */\n  issueWarning = (code: string, warning: string) => {\n    warning += ` See https://lit.dev/msg/${code} for more information.`;\n    if (\n      !global.litIssuedWarnings!.has(warning) &&\n      !global.litIssuedWarnings!.has(code)\n    ) {\n      console.warn(warning);\n      global.litIssuedWarnings!.add(warning);\n    }\n  };\n}\n\n/**\n * Base element class that manages element properties and attributes, and\n * renders a lit-html template.\n *\n * To define a component, subclass `LitElement` and implement a\n * `render` method to provide the component's template. Define properties\n * using the {@linkcode LitElement.properties properties} property or the\n * {@linkcode property} decorator.\n */\nexport class LitElement extends ReactiveElement {\n  // This property needs to remain unminified.\n  static ['_$litElement$'] = true;\n\n  /**\n   * @category rendering\n   */\n  readonly renderOptions: RenderOptions = {host: this};\n\n  private __childPart: RootPart | undefined = undefined;\n\n  /**\n   * @category rendering\n   */\n  protected override createRenderRoot() {\n    const renderRoot = super.createRenderRoot();\n    // When adoptedStyleSheets are shimmed, they are inserted into the\n    // shadowRoot by createRenderRoot. Adjust the renderBefore node so that\n    // any styles in Lit content render before adoptedStyleSheets. This is\n    // important so that adoptedStyleSheets have precedence over styles in\n    // the shadowRoot.\n    this.renderOptions.renderBefore ??= renderRoot!.firstChild as ChildNode;\n    return renderRoot;\n  }\n\n  /**\n   * Updates the element. This method reflects property values to attributes\n   * and calls `render` to render DOM via lit-html. Setting properties inside\n   * this method will *not* trigger another update.\n   * @param changedProperties Map of changed properties with old values\n   * @category updates\n   */\n  protected override update(changedProperties: PropertyValues) {\n    // Setting properties in `render` should not trigger an update. Since\n    // updates are allowed after super.update, it's important to call `render`\n    // before that.\n    const value = this.render();\n    if (!this.hasUpdated) {\n      this.renderOptions.isConnected = this.isConnected;\n    }\n    super.update(changedProperties);\n    this.__childPart = render(value, this.renderRoot, this.renderOptions);\n  }\n\n  /**\n   * Invoked when the component is added to the document's DOM.\n   *\n   * In `connectedCallback()` you should setup tasks that should only occur when\n   * the element is connected to the document. The most common of these is\n   * adding event listeners to nodes external to the element, like a keydown\n   * event handler added to the window.\n   *\n   * ```ts\n   * connectedCallback() {\n   *   super.connectedCallback();\n   *   addEventListener('keydown', this._handleKeydown);\n   * }\n   * ```\n   *\n   * Typically, anything done in `connectedCallback()` should be undone when the\n   * element is disconnected, in `disconnectedCallback()`.\n   *\n   * @category lifecycle\n   */\n  override connectedCallback() {\n    super.connectedCallback();\n    this.__childPart?.setConnected(true);\n  }\n\n  /**\n   * Invoked when the component is removed from the document's DOM.\n   *\n   * This callback is the main signal to the element that it may no longer be\n   * used. `disconnectedCallback()` should ensure that nothing is holding a\n   * reference to the element (such as event listeners added to nodes external\n   * to the element), so that it is free to be garbage collected.\n   *\n   * ```ts\n   * disconnectedCallback() {\n   *   super.disconnectedCallback();\n   *   window.removeEventListener('keydown', this._handleKeydown);\n   * }\n   * ```\n   *\n   * An element may be re-connected after being disconnected.\n   *\n   * @category lifecycle\n   */\n  override disconnectedCallback() {\n    super.disconnectedCallback();\n    this.__childPart?.setConnected(false);\n  }\n\n  /**\n   * Invoked on each update to perform rendering tasks. This method may return\n   * any value renderable by lit-html's `ChildPart` - typically a\n   * `TemplateResult`. Setting properties inside this method will *not* trigger\n   * the element to update.\n   * @category rendering\n   */\n  protected render(): unknown {\n    return noChange;\n  }\n}\n\n/**\n * Ensure this class is marked as `finalized` as an optimization ensuring\n * it will not needlessly try to `finalize`.\n *\n * Note this property name is a string to prevent breaking Closure JS Compiler\n * optimizations. See @lit/reactive-element for more information.\n */\n(LitElement as unknown as Record<string, unknown>)[\n  JSCompiler_renameProperty('finalized', LitElement)\n] = true;\n\n// Install hydration if available\nglobal.litElementHydrateSupport?.({LitElement});\n\n// Apply polyfills if available\nconst polyfillSupport = DEV_MODE\n  ? global.litElementPolyfillSupportDevMode\n  : global.litElementPolyfillSupport;\npolyfillSupport?.({LitElement});\n\n/**\n * END USERS SHOULD NOT RELY ON THIS OBJECT.\n *\n * Private exports for use by other Lit packages, not intended for use by\n * external users.\n *\n * We currently do not make a mangled rollup build of the lit-ssr code. In order\n * to keep a number of (otherwise private) top-level exports  mangled in the\n * client side code, we export a _$LE object containing those members (or\n * helper methods for accessing private fields of those members), and then\n * re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the\n * client-side code is being used in `dev` mode or `prod` mode.\n *\n * This has a unique name, to disambiguate it from private exports in\n * lit-html, since this module re-exports all of lit-html.\n *\n * @private\n */\nexport const _$LE = {\n  _$attributeToProperty: (\n    el: LitElement,\n    name: string,\n    value: string | null\n  ) => {\n    // eslint-disable-next-line\n    (el as any)._$attributeToProperty(name, value);\n  },\n  // eslint-disable-next-line\n  _$changedProperties: (el: LitElement) => (el as any)._$changedProperties,\n};\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for LitElement usage.\n(global.litElementVersions ??= []).push('4.2.2');\nif (DEV_MODE && global.litElementVersions.length > 1) {\n  queueMicrotask(() => {\n    issueWarning!(\n      'multiple-versions',\n      `Multiple versions of Lit loaded. Loading multiple versions ` +\n        `is not recommended.`\n    );\n  });\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport type {Constructor} from './base.js';\n\n/**\n * Allow for custom element classes with private constructors\n */\ntype CustomElementClass = Omit<typeof HTMLElement, 'new'>;\n\nexport type CustomElementDecorator = {\n  // legacy\n  (cls: CustomElementClass): void;\n\n  // standard\n  (\n    target: CustomElementClass,\n    context: ClassDecoratorContext<Constructor<HTMLElement>>\n  ): void;\n};\n\n/**\n * Class decorator factory that defines the decorated class as a custom element.\n *\n * ```js\n * @customElement('my-element')\n * class MyElement extends LitElement {\n *   render() {\n *     return html``;\n *   }\n * }\n * ```\n * @category Decorator\n * @param tagName The tag name of the custom element to define.\n */\nexport const customElement =\n  (tagName: string): CustomElementDecorator =>\n  (\n    classOrTarget: CustomElementClass | Constructor<HTMLElement>,\n    context?: ClassDecoratorContext<Constructor<HTMLElement>>\n  ) => {\n    if (context !== undefined) {\n      context.addInitializer(() => {\n        customElements.define(\n          tagName,\n          classOrTarget as CustomElementConstructor\n        );\n      });\n    } else {\n      customElements.define(tagName, classOrTarget as CustomElementConstructor);\n    }\n  };\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {\n  type PropertyDeclaration,\n  type ReactiveElement,\n  defaultConverter,\n  notEqual,\n} from '../reactive-element.js';\nimport type {Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n  // Ensure warnings are issued only 1x, even if multiple versions of Lit\n  // are loaded.\n  globalThis.litIssuedWarnings ??= new Set();\n\n  /**\n   * Issue a warning if we haven't already, based either on `code` or `warning`.\n   * Warnings are disabled automatically only by `warning`; disabling via `code`\n   * can be done by users.\n   */\n  issueWarning = (code: string, warning: string) => {\n    warning += ` See https://lit.dev/msg/${code} for more information.`;\n    if (\n      !globalThis.litIssuedWarnings!.has(warning) &&\n      !globalThis.litIssuedWarnings!.has(code)\n    ) {\n      console.warn(warning);\n      globalThis.litIssuedWarnings!.add(warning);\n    }\n  };\n}\n\n// Overloads for property decorator so that TypeScript can infer the correct\n// return type when a decorator is used as an accessor decorator or a setter\n// decorator.\nexport type PropertyDecorator = {\n  // accessor decorator signature\n  <C extends Interface<ReactiveElement>, V>(\n    target: ClassAccessorDecoratorTarget<C, V>,\n    context: ClassAccessorDecoratorContext<C, V>\n  ): ClassAccessorDecoratorResult<C, V>;\n\n  // setter decorator signature\n  <C extends Interface<ReactiveElement>, V>(\n    target: (value: V) => void,\n    context: ClassSetterDecoratorContext<C, V>\n  ): (this: C, value: V) => void;\n\n  // legacy decorator signature\n  (\n    protoOrDescriptor: Object,\n    name: PropertyKey,\n    descriptor?: PropertyDescriptor\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  ): any;\n};\n\nconst legacyProperty = (\n  options: PropertyDeclaration | undefined,\n  proto: Object,\n  name: PropertyKey\n) => {\n  const hasOwnProperty = proto.hasOwnProperty(name);\n  (proto.constructor as typeof ReactiveElement).createProperty(name, options);\n  // For accessors (which have a descriptor on the prototype) we need to\n  // return a descriptor, otherwise TypeScript overwrites the descriptor we\n  // define in createProperty() with the original descriptor. We don't do this\n  // for fields, which don't have a descriptor, because this could overwrite\n  // descriptor defined by other decorators.\n  return hasOwnProperty\n    ? Object.getOwnPropertyDescriptor(proto, name)\n    : undefined;\n};\n\n// This is duplicated from a similar variable in reactive-element.ts, but\n// actually makes sense to have this default defined with the decorator, so\n// that different decorators could have different defaults.\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n  attribute: true,\n  type: String,\n  converter: defaultConverter,\n  reflect: false,\n  hasChanged: notEqual,\n};\n\n// Temporary type, until google3 is on TypeScript 5.2\ntype StandardPropertyContext<C, V> = (\n  | ClassAccessorDecoratorContext<C, V>\n  | ClassSetterDecoratorContext<C, V>\n) & {metadata: object};\n\n/**\n * Wraps a class accessor or setter so that `requestUpdate()` is called with the\n * property name and old value when the accessor is set.\n */\nexport const standardProperty = <C extends Interface<ReactiveElement>, V>(\n  options: PropertyDeclaration = defaultPropertyDeclaration,\n  target: ClassAccessorDecoratorTarget<C, V> | ((value: V) => void),\n  context: StandardPropertyContext<C, V>\n): ClassAccessorDecoratorResult<C, V> | ((this: C, value: V) => void) => {\n  const {kind, metadata} = context;\n\n  if (DEV_MODE && metadata == null) {\n    issueWarning(\n      'missing-class-metadata',\n      `The class ${target} is missing decorator metadata. This ` +\n        `could mean that you're using a compiler that supports decorators ` +\n        `but doesn't support decorator metadata, such as TypeScript 5.1. ` +\n        `Please update your compiler.`\n    );\n  }\n\n  // Store the property options\n  let properties = globalThis.litPropertyMetadata.get(metadata);\n  if (properties === undefined) {\n    globalThis.litPropertyMetadata.set(metadata, (properties = new Map()));\n  }\n  if (kind === 'setter') {\n    options = Object.create(options);\n    options.wrapped = true;\n  }\n  properties.set(context.name, options);\n\n  if (kind === 'accessor') {\n    // Standard decorators cannot dynamically modify the class, so we can't\n    // replace a field with accessors. The user must use the new `accessor`\n    // keyword instead.\n    const {name} = context;\n    return {\n      set(this: ReactiveElement, v: V) {\n        const oldValue = (\n          target as ClassAccessorDecoratorTarget<C, V>\n        ).get.call(this as unknown as C);\n        (target as ClassAccessorDecoratorTarget<C, V>).set.call(\n          this as unknown as C,\n          v\n        );\n        this.requestUpdate(name, oldValue, options, true, v);\n      },\n      init(this: ReactiveElement, v: V): V {\n        if (v !== undefined) {\n          this._$changeProperty(name, undefined, options, v);\n        }\n        return v;\n      },\n    } as unknown as ClassAccessorDecoratorResult<C, V>;\n  } else if (kind === 'setter') {\n    const {name} = context;\n    return function (this: ReactiveElement, value: V) {\n      const oldValue = this[name as keyof ReactiveElement];\n      (target as (value: V) => void).call(this, value);\n      this.requestUpdate(name, oldValue, options, true, value);\n    } as unknown as (this: C, value: V) => void;\n  }\n  throw new Error(`Unsupported decorator location: ${kind}`);\n};\n\n/**\n * A class field or accessor decorator which creates a reactive property that\n * reflects a corresponding attribute value. When a decorated property is set\n * the element will update and render. A {@linkcode PropertyDeclaration} may\n * optionally be supplied to configure property features.\n *\n * This decorator should only be used for public fields. As public fields,\n * properties should be considered as primarily settable by element users,\n * either via attribute or the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the {@linkcode state} decorator.\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating public\n * properties should typically not be done for non-primitive (object or array)\n * properties. In other cases when an element needs to manage state, a private\n * property decorated via the {@linkcode state} decorator should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n *\n * ```ts\n * class MyElement {\n *   @property({ type: Boolean })\n *   clicked = false;\n * }\n * ```\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function property(options?: PropertyDeclaration): PropertyDecorator {\n  return <C extends Interface<ReactiveElement>, V>(\n    protoOrTarget:\n      | object\n      | ClassAccessorDecoratorTarget<C, V>\n      | ((value: V) => void),\n    nameOrContext:\n      | PropertyKey\n      | ClassAccessorDecoratorContext<C, V>\n      | ClassSetterDecoratorContext<C, V>\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  ): any => {\n    return (\n      typeof nameOrContext === 'object'\n        ? standardProperty<C, V>(\n            options,\n            protoOrTarget as\n              | ClassAccessorDecoratorTarget<C, V>\n              | ((value: V) => void),\n            nameOrContext as StandardPropertyContext<C, V>\n          )\n        : legacyProperty(\n            options,\n            protoOrTarget as Object,\n            nameOrContext as PropertyKey\n          )\n    ) as PropertyDecorator;\n  };\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {property} from './property.js';\n\nexport interface StateDeclaration<Type = unknown> {\n  /**\n   * A function that indicates if a property should be considered changed when\n   * it is set. The function should take the `newValue` and `oldValue` and\n   * return `true` if an update should be requested.\n   */\n  hasChanged?(value: Type, oldValue: Type): boolean;\n}\n\n/**\n * @deprecated use StateDeclaration\n */\nexport type InternalPropertyDeclaration<Type = unknown> =\n  StateDeclaration<Type>;\n\n/**\n * Declares a private or protected reactive property that still triggers\n * updates to the element when it changes. It does not reflect from the\n * corresponding attribute.\n *\n * Properties declared this way must not be used from HTML or HTML templating\n * systems, they're solely for properties internal to the element. These\n * properties may be renamed by optimization tools like closure compiler.\n * @category Decorator\n */\nexport function state(options?: StateDeclaration) {\n  return property({\n    ...options,\n    // Add both `state` and `attribute` because we found a third party\n    // controller that is keying off of PropertyOptions.state to determine\n    // whether a field is a private internal property or not.\n    state: true,\n    attribute: false,\n  });\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Generates a public interface type that removes private and protected fields.\n * This allows accepting otherwise incompatible versions of the type (e.g. from\n * multiple copies of the same package in `node_modules`).\n */\nexport type Interface<T> = {\n  [K in keyof T]: T[K];\n};\n\nexport type Constructor<T> = {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  new (...args: any[]): T;\n};\n\n/**\n * Wraps up a few best practices when returning a property descriptor from a\n * decorator.\n *\n * Marks the defined property as configurable, and enumerable, and handles\n * the case where we have a busted Reflect.decorate zombiefill (e.g. in Angular\n * apps).\n *\n * @internal\n */\nexport const desc = (\n  obj: object,\n  name: PropertyKey | ClassAccessorDecoratorContext<unknown, unknown>,\n  descriptor: PropertyDescriptor\n) => {\n  // For backwards compatibility, we keep them configurable and enumerable.\n  descriptor.configurable = true;\n  descriptor.enumerable = true;\n  if (\n    // We check for Reflect.decorate each time, in case the zombiefill\n    // is applied via lazy loading some Angular code.\n    (Reflect as typeof Reflect & {decorate?: unknown}).decorate &&\n    typeof name !== 'object'\n  ) {\n    // If we're called as a legacy decorator, and Reflect.decorate is present\n    // then we have no guarantees that the returned descriptor will be\n    // defined on the class, so we must apply it directly ourselves.\n\n    Object.defineProperty(obj, name, descriptor);\n  }\n  return descriptor;\n};\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport type {ReactiveElement} from '../reactive-element.js';\nimport {desc, type Interface} from './base.js';\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n  // Ensure warnings are issued only 1x, even if multiple versions of Lit\n  // are loaded.\n  globalThis.litIssuedWarnings ??= new Set();\n\n  /**\n   * Issue a warning if we haven't already, based either on `code` or `warning`.\n   * Warnings are disabled automatically only by `warning`; disabling via `code`\n   * can be done by users.\n   */\n  issueWarning = (code: string, warning: string) => {\n    warning += code\n      ? ` See https://lit.dev/msg/${code} for more information.`\n      : '';\n    if (\n      !globalThis.litIssuedWarnings!.has(warning) &&\n      !globalThis.litIssuedWarnings!.has(code)\n    ) {\n      console.warn(warning);\n      globalThis.litIssuedWarnings!.add(warning);\n    }\n  };\n}\n\nexport type QueryDecorator = {\n  // legacy\n  (\n    proto: Interface<ReactiveElement>,\n    name: PropertyKey,\n    descriptor?: PropertyDescriptor\n    // Note TypeScript requires the return type to be `void|any`\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  ): void | any;\n\n  // standard\n  <C extends Interface<ReactiveElement>, V extends Element | null>(\n    value: ClassAccessorDecoratorTarget<C, V>,\n    context: ClassAccessorDecoratorContext<C, V>\n  ): ClassAccessorDecoratorResult<C, V>;\n};\n\n/**\n * A property decorator that converts a class property into a getter that\n * executes a querySelector on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n * @param cache An optional boolean which when true performs the DOM query only\n *     once and caches the result.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n *   @query('#first')\n *   first: HTMLDivElement;\n *\n *   render() {\n *     return html`\n *       <div id=\"first\"></div>\n *       <div id=\"second\"></div>\n *     `;\n *   }\n * }\n * ```\n * @category Decorator\n */\nexport function query(selector: string, cache?: boolean): QueryDecorator {\n  return (<C extends Interface<ReactiveElement>, V extends Element | null>(\n    protoOrTarget: ClassAccessorDecoratorTarget<C, V>,\n    nameOrContext: PropertyKey | ClassAccessorDecoratorContext<C, V>,\n    descriptor?: PropertyDescriptor\n  ) => {\n    const doQuery = (el: Interface<ReactiveElement>): V => {\n      const result = (el.renderRoot?.querySelector(selector) ?? null) as V;\n      if (DEV_MODE && result === null && cache && !el.hasUpdated) {\n        const name =\n          typeof nameOrContext === 'object'\n            ? nameOrContext.name\n            : nameOrContext;\n        issueWarning(\n          '',\n          `@query'd field ${JSON.stringify(String(name))} with the 'cache' ` +\n            `flag set for selector '${selector}' has been accessed before ` +\n            `the first update and returned null. This is expected if the ` +\n            `renderRoot tree has not been provided beforehand (e.g. via ` +\n            `Declarative Shadow DOM). Therefore the value hasn't been cached.`\n        );\n      }\n      // TODO: if we want to allow users to assert that the query will never\n      // return null, we need a new option and to throw here if the result\n      // is null.\n      return result;\n    };\n    if (cache) {\n      // Accessors to wrap from either:\n      //   1. The decorator target, in the case of standard decorators\n      //   2. The property descriptor, in the case of experimental decorators\n      //      on auto-accessors.\n      //   3. Functions that access our own cache-key property on the instance,\n      //      in the case of experimental decorators on fields.\n      const {get, set} =\n        typeof nameOrContext === 'object'\n          ? protoOrTarget\n          : (descriptor ??\n            (() => {\n              const key = DEV_MODE\n                ? Symbol(`${String(nameOrContext)} (@query() cache)`)\n                : Symbol();\n              type WithCache = ReactiveElement & {\n                [key: symbol]: Element | null;\n              };\n              return {\n                get() {\n                  return (this as WithCache)[key];\n                },\n                set(v) {\n                  (this as WithCache)[key] = v;\n                },\n              };\n            })());\n      return desc(protoOrTarget, nameOrContext, {\n        get(this: ReactiveElement): V {\n          let result: V = get!.call(this);\n          if (result === undefined) {\n            result = doQuery(this);\n            if (result !== null || this.hasUpdated) {\n              set!.call(this, result);\n            }\n          }\n          return result;\n        },\n      });\n    } else {\n      // This object works as the return type for both standard and\n      // experimental decorators.\n      return desc(protoOrTarget, nameOrContext, {\n        get(this: ReactiveElement) {\n          return doQuery(this);\n        },\n      });\n    }\n  }) as QueryDecorator;\n}\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  __decorateClass,\n  __privateAdd,\n  __privateGet,\n  __privateSet\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/styles/component/host.styles.ts\nimport { css } from \"lit\";\nvar host_styles_default = css`\n  :host {\n    box-sizing: border-box;\n  }\n\n  :host *,\n  :host *::before,\n  :host *::after {\n    box-sizing: inherit;\n  }\n\n  [hidden],\n  :host([hidden]) {\n    display: none !important;\n  }\n`;\n\n// src/internal/webawesome-element.ts\nimport { LitElement, isServer } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nvar HAS_ENDING_COLON = /;\\s+$/;\nfunction camelToKebab(str) {\n  return str.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);\n}\nfunction buildStyleAttribute(options) {\n  const { property: property2, value, element } = options;\n  if (value) {\n    let style = element.getAttribute(\"style\") || \"\";\n    if (style) {\n      if (!style.match(HAS_ENDING_COLON)) {\n        style += \";\";\n      }\n      style += \" \";\n    }\n    const str = `${property2}: ${value}`;\n    if (style.includes(str)) {\n      return;\n    }\n    return `${style}${str};`;\n  }\n  return null;\n}\nvar _hasRecordedInitialProperties;\nvar WebAwesomeElement = class extends LitElement {\n  constructor() {\n    super();\n    __privateAdd(this, _hasRecordedInitialProperties, false);\n    this.initialReflectedProperties = /* @__PURE__ */ new Map();\n    this.didSSR = isServer || Boolean(this.shadowRoot);\n    /**\n     * @internal Methods for setting and checking custom states.\n     */\n    this.customStates = {\n      /** Adds or removes the specified custom state. */\n      set: (customState, active) => {\n        if (!Boolean(this.internals?.states)) return;\n        try {\n          if (active) {\n            this.internals.states.add(customState);\n          } else {\n            this.internals.states.delete(customState);\n          }\n        } catch (e) {\n          if (String(e).includes(\"must start with '--'\")) {\n            console.error(\"Your browser implements an outdated version of CustomStateSet. Consider using a polyfill\");\n          } else {\n            throw e;\n          }\n        }\n      },\n      /** Determines whether or not the element currently has the specified state. */\n      has: (customState) => {\n        if (!Boolean(this.internals?.states)) return false;\n        try {\n          return this.internals.states.has(customState);\n        } catch {\n          return false;\n        }\n      }\n    };\n    try {\n      this.internals = this.attachInternals();\n    } catch {\n      console.error(\"Element internals are not supported in your browser. Consider using a polyfill\");\n    }\n    this.customStates.set(\"wa-defined\", true);\n    let Self = this.constructor;\n    for (let [property2, spec] of Self.elementProperties) {\n      if (spec.default === \"inherit\" && spec.initial !== void 0 && typeof property2 === \"string\") {\n        this.customStates.set(`initial-${property2}-${spec.initial}`, true);\n      }\n    }\n  }\n  /** Prepends host styles to the component's styles. */\n  static get styles() {\n    const styles = Array.isArray(this.css) ? this.css : this.css ? [this.css] : [];\n    return [host_styles_default, ...styles];\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    if (!this.didSSR) {\n      this.shadowRoot?.prepend(\n        document.createComment(\n          ` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(\"wa-\", \"\")} `\n        )\n      );\n    }\n    if (this.didSSR) {\n      this.updateComplete.then(() => {\n        this.shadowRoot?.prepend(\n          document.createComment(\n            ` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(\"wa-\", \"\")} `\n          )\n        );\n      });\n    }\n  }\n  attributeChangedCallback(name, oldValue, newValue) {\n    if (!__privateGet(this, _hasRecordedInitialProperties)) {\n      this.constructor.elementProperties.forEach(\n        (obj, prop) => {\n          if (obj.reflect && this[prop] != null) {\n            this.initialReflectedProperties.set(prop, this[prop]);\n          }\n        }\n      );\n      __privateSet(this, _hasRecordedInitialProperties, true);\n    }\n    super.attributeChangedCallback(name, oldValue, newValue);\n  }\n  willUpdate(changedProperties) {\n    super.willUpdate(changedProperties);\n    this.initialReflectedProperties.forEach((value, prop) => {\n      if (changedProperties.has(prop) && this[prop] == null) {\n        this[prop] = value;\n      }\n    });\n  }\n  firstUpdated(changedProperties) {\n    super.firstUpdated(changedProperties);\n    if (this.didSSR) {\n      this.shadowRoot?.querySelectorAll(\"slot\").forEach((slotElement) => {\n        slotElement.dispatchEvent(new Event(\"slotchange\", { bubbles: true, composed: false, cancelable: false }));\n      });\n    }\n  }\n  update(changedProperties) {\n    try {\n      super.update(changedProperties);\n    } catch (e) {\n      if (this.didSSR && !this.hasUpdated) {\n        const event = new Event(\"lit-hydration-error\", { bubbles: true, composed: true, cancelable: false });\n        event.error = e;\n        this.dispatchEvent(event);\n      }\n      throw e;\n    }\n  }\n  /**\n   * @internal\n   * Internal way to set styles across both client and server\n   */\n  setStyle(property2, value) {\n    if (!this.style) {\n      const str = buildStyleAttribute({\n        // because this is going to be serialized to an HTML style attribute, need to transform the casing.\n        property: camelToKebab(property2),\n        value,\n        element: this\n      });\n      if (str) {\n        this.setAttribute(\"style\", str);\n      }\n      return;\n    }\n    this.style[property2] = value;\n  }\n  /**\n   * @internal\n   * Internal way to set a CSS custom property across both client and server.\n   */\n  setStyleProperty(property2, value) {\n    if (!this.style) {\n      const str = buildStyleAttribute({\n        // because this is going to be serialized to an HTML style attribute, need to transform the casing.\n        property: property2,\n        value,\n        element: this\n      });\n      if (str) {\n        this.setAttribute(\"style\", str);\n      }\n      return;\n    }\n    this.style.setProperty(property2, value);\n  }\n  /**\n   * @internal Given a native event, this function cancels it and dispatches it again from the host element using the desired\n   * event options.\n   */\n  relayNativeEvent(event, eventOptions) {\n    event.stopImmediatePropagation();\n    this.dispatchEvent(\n      new event.constructor(event.type, {\n        ...event,\n        ...eventOptions\n      })\n    );\n  }\n};\n_hasRecordedInitialProperties = new WeakMap();\n__decorateClass([\n  property()\n], WebAwesomeElement.prototype, \"dir\", 2);\n__decorateClass([\n  property()\n], WebAwesomeElement.prototype, \"lang\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true, attribute: \"did-ssr\" })\n], WebAwesomeElement.prototype, \"didSSR\", 2);\n\nexport {\n  host_styles_default,\n  WebAwesomeElement\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  WaInvalidEvent\n} from \"./chunk.VC3BPUZJ.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/internal/webawesome-form-associated-element.ts\nimport { isServer } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\n// src/internal/validators/custom-error-validator.ts\nvar CustomErrorValidator = () => {\n  return {\n    observedAttributes: [\"custom-error\"],\n    checkValidity(element) {\n      const validity = {\n        message: \"\",\n        isValid: true,\n        invalidKeys: []\n      };\n      if (element.customError) {\n        validity.message = element.customError;\n        validity.isValid = false;\n        validity.invalidKeys = [\"customError\"];\n      }\n      return validity;\n    }\n  };\n};\n\n// src/internal/webawesome-form-associated-element.ts\nvar WebAwesomeFormAssociatedElement = class extends WebAwesomeElement {\n  constructor() {\n    super();\n    this.name = null;\n    this.disabled = false;\n    this.required = false;\n    this.assumeInteractionOn = [\"input\"];\n    this.validators = [];\n    this.valueHasChanged = false;\n    this.hasInteracted = false;\n    this.customError = null;\n    this.emittedEvents = [];\n    this.emitInvalid = (e) => {\n      if (e.target !== this) return;\n      this.hasInteracted = true;\n      this.dispatchEvent(new WaInvalidEvent());\n    };\n    this.handleInteraction = (event) => {\n      const emittedEvents = this.emittedEvents;\n      if (!emittedEvents.includes(event.type)) {\n        emittedEvents.push(event.type);\n      }\n      if (emittedEvents.length === this.assumeInteractionOn?.length) {\n        this.hasInteracted = true;\n      }\n    };\n    if (\"addEventListener\" in this) {\n      this.addEventListener(\"invalid\", this.emitInvalid);\n    }\n  }\n  /**\n   * Validators are static because they have `observedAttributes`, essentially attributes to \"watch\"\n   * for changes. Whenever these attributes change, we want to be notified and update the validator.\n   */\n  static get validators() {\n    return isServer ? [] : [CustomErrorValidator()];\n  }\n  // Append all Validator \"observedAttributes\" into the \"observedAttributes\" so they can run.\n  static get observedAttributes() {\n    const parentAttrs = new Set(super.observedAttributes || []);\n    for (const validator of this.validators) {\n      if (!validator.observedAttributes) {\n        continue;\n      }\n      for (const attr of validator.observedAttributes) {\n        parentAttrs.add(attr);\n      }\n    }\n    return [...parentAttrs];\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.updateValidity();\n      });\n    } else {\n      this.updateValidity();\n    }\n    this.assumeInteractionOn.forEach((event) => {\n      this.addEventListener?.(event, this.handleInteraction);\n    });\n  }\n  firstUpdated(...args) {\n    super.firstUpdated(...args);\n    this.updateValidity();\n  }\n  willUpdate(changedProperties) {\n    if (!isServer && changedProperties.has(\"customError\")) {\n      if (!this.customError) {\n        this.customError = null;\n      }\n      this.setCustomValidity(this.customError || \"\");\n    }\n    if (changedProperties.has(\"value\") || changedProperties.has(\"disabled\") || changedProperties.has(\"defaultValue\")) {\n      const value = this.value;\n      this.updateFormValue(value);\n    }\n    if (changedProperties.has(\"disabled\")) {\n      this.customStates.set(\"disabled\", this.disabled);\n      if (this.hasAttribute(\"disabled\") || !isServer && !this.matches(\":disabled\")) {\n        this.toggleAttribute(\"disabled\", this.disabled);\n      }\n    }\n    super.willUpdate(changedProperties);\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => this.updateValidity());\n    } else {\n      this.updateValidity();\n    }\n  }\n  /**\n   * @internal\n   */\n  updateFormValue(value) {\n    if (Array.isArray(value)) {\n      if (this.name) {\n        const formData = new FormData();\n        for (const val of value) {\n          formData.append(this.name, val);\n        }\n        this.setValue(formData, formData);\n      }\n    } else {\n      this.setValue(value, value);\n    }\n  }\n  get labels() {\n    return this.internals.labels;\n  }\n  getForm() {\n    return this.internals.form;\n  }\n  /**\n   * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n   * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n   * the same document or shadow root for this to work.\n   */\n  set form(val) {\n    if (val) {\n      this.setAttribute(\"form\", val);\n    } else {\n      this.removeAttribute(\"form\");\n    }\n  }\n  get form() {\n    return this.internals.form;\n  }\n  get validity() {\n    return this.internals.validity;\n  }\n  // Not sure if this supports `novalidate`. Will need to test.\n  get willValidate() {\n    return this.internals.willValidate;\n  }\n  get validationMessage() {\n    return this.internals.validationMessage;\n  }\n  checkValidity() {\n    this.updateValidity();\n    return this.internals.checkValidity();\n  }\n  reportValidity() {\n    this.updateValidity();\n    this.hasInteracted = true;\n    return this.internals.reportValidity();\n  }\n  /**\n   * Override this to change where constraint validation popups are anchored.\n   */\n  get validationTarget() {\n    return this.input || void 0;\n  }\n  setValidity(...args) {\n    const flags = args[0];\n    const message = args[1];\n    let anchor = args[2];\n    if (!anchor) {\n      anchor = this.validationTarget;\n    }\n    this.internals.setValidity(flags, message, anchor || void 0);\n    this.requestUpdate(\"validity\");\n    this.setCustomStates();\n  }\n  setCustomStates() {\n    const required = Boolean(this.required);\n    const isValid = this.internals.validity.valid;\n    const hasInteracted = this.hasInteracted;\n    this.customStates.set(\"required\", required);\n    this.customStates.set(\"optional\", !required);\n    this.customStates.set(\"invalid\", !isValid);\n    this.customStates.set(\"valid\", isValid);\n    this.customStates.set(\"user-invalid\", !isValid && hasInteracted);\n    this.customStates.set(\"user-valid\", isValid && hasInteracted);\n  }\n  /**\n   * Do not use this when creating a \"Validator\". This is intended for end users of components.\n   * We track manually defined custom errors so we don't clear them on accident in our validators.\n   *\n   */\n  setCustomValidity(message) {\n    if (!message) {\n      this.customError = null;\n      this.setValidity({});\n      return;\n    }\n    this.customError = message;\n    this.setValidity({ customError: true }, message, this.validationTarget);\n  }\n  formResetCallback() {\n    this.resetValidity();\n    this.hasInteracted = false;\n    this.valueHasChanged = false;\n    this.emittedEvents = [];\n    this.updateValidity();\n  }\n  formDisabledCallback(isDisabled) {\n    this.disabled = isDisabled;\n    this.updateValidity();\n  }\n  /**\n   * Called when the browser is trying to restore element\u2019s state to state in which case reason is \"restore\", or when\n   * the browser is trying to fulfill autofill on behalf of user in which case reason is \"autocomplete\". In the case of\n   * \"restore\", state is a string, File, or FormData object previously set as the second argument to setFormValue.\n   */\n  formStateRestoreCallback(state, reason) {\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.value = state;\n        if (reason === \"restore\") {\n          this.resetValidity();\n        }\n        this.updateValidity();\n      });\n    } else {\n      this.value = state;\n      if (reason === \"restore\") {\n        this.resetValidity();\n      }\n      this.updateValidity();\n    }\n  }\n  setValue(...args) {\n    const [value, state] = args;\n    this.internals.setFormValue(value, state);\n  }\n  get allValidators() {\n    const staticValidators = this.constructor.validators || [];\n    const validators = this.validators || [];\n    return [...staticValidators, ...validators];\n  }\n  /**\n   * Reset validity is a way of removing manual custom errors and native validation.\n   */\n  resetValidity() {\n    this.setCustomValidity(\"\");\n    this.setValidity({});\n  }\n  updateValidity() {\n    if (this.disabled || this.hasAttribute(\"disabled\") || !this.willValidate) {\n      this.resetValidity();\n      return;\n    }\n    const validators = this.allValidators;\n    if (!validators?.length) {\n      return;\n    }\n    const flags = {\n      // Don't trust custom errors from the Browser. Safari breaks the spec.\n      customError: Boolean(this.customError)\n    };\n    const formControl = this.validationTarget || this.input || void 0;\n    let finalMessage = \"\";\n    for (const validator of validators) {\n      const { isValid, message, invalidKeys } = validator.checkValidity(this);\n      if (isValid) {\n        continue;\n      }\n      if (!finalMessage) {\n        finalMessage = message;\n      }\n      if (invalidKeys?.length >= 0) {\n        invalidKeys.forEach((str) => flags[str] = true);\n      }\n    }\n    if (!finalMessage) {\n      finalMessage = this.validationMessage;\n    }\n    this.setValidity(flags, finalMessage, formControl);\n  }\n};\nWebAwesomeFormAssociatedElement.formAssociated = true;\n__decorateClass([\n  property({ reflect: true })\n], WebAwesomeFormAssociatedElement.prototype, \"name\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WebAwesomeFormAssociatedElement.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ state: true, attribute: false })\n], WebAwesomeFormAssociatedElement.prototype, \"valueHasChanged\", 2);\n__decorateClass([\n  property({ state: true, attribute: false })\n], WebAwesomeFormAssociatedElement.prototype, \"hasInteracted\", 2);\n__decorateClass([\n  property({ attribute: \"custom-error\", reflect: true })\n], WebAwesomeFormAssociatedElement.prototype, \"customError\", 2);\n__decorateClass([\n  property({ attribute: false, state: true, type: Object })\n], WebAwesomeFormAssociatedElement.prototype, \"validity\", 1);\n\nexport {\n  WebAwesomeFormAssociatedElement\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/size.ts\nvar DEPRECATION_MAP = {\n  small: \"s\",\n  medium: \"m\",\n  large: \"l\"\n};\nvar warned = /* @__PURE__ */ new Set();\nfunction warnDeprecatedSize(tagName, value) {\n  if (value in DEPRECATION_MAP && !warned.has(`${tagName}:${value}`)) {\n    warned.add(`${tagName}:${value}`);\n    console.warn(\n      `[${tagName}] size=\"${value}\" is deprecated. Use size=\"${DEPRECATION_MAP[value]}\" instead. The long-form value will be removed in the next major version.`\n    );\n  }\n}\n\nexport {\n  warnDeprecatedSize\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/slot.ts\nvar HasSlotController = class {\n  constructor(host, ...slotNames) {\n    this.slotNames = [];\n    this.handleSlotChange = (event) => {\n      const slot = event.target;\n      if (this.slotNames.includes(\"[default]\") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {\n        this.host.requestUpdate();\n      }\n    };\n    (this.host = host).addController(this);\n    this.slotNames = slotNames;\n  }\n  hasDefaultSlot() {\n    if (!this.host.childNodes) {\n      return false;\n    }\n    return [...this.host.childNodes].some((node) => {\n      if (node.nodeType === Node.TEXT_NODE && node.textContent.trim() !== \"\") {\n        return true;\n      }\n      if (node.nodeType === Node.ELEMENT_NODE) {\n        const el = node;\n        const tagName = el.tagName.toLowerCase();\n        if (tagName === \"wa-visually-hidden\") {\n          return false;\n        }\n        if (!el.hasAttribute(\"slot\")) {\n          return true;\n        }\n      }\n      return false;\n    });\n  }\n  hasNamedSlot(name) {\n    return this.host.querySelector?.(`:scope > [slot=\"${name}\"]`) !== null;\n  }\n  /**\n   * @param slotName     - Name of the slot to look for\n   * @param propertyName - Generally we infer via `withHeader` property on the host, but in cases where its different, you can specify a manual property name.\n   */\n  test(slotName, propertyName) {\n    if (propertyName && this.host.didSSR && !this.host.hasUpdated) {\n      return Boolean(this.host[propertyName]);\n    }\n    return slotName === \"[default]\" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);\n  }\n  hostConnected() {\n    const shadowRoot = this.host.shadowRoot;\n    if (shadowRoot && \"addEventListener\" in shadowRoot) {\n      shadowRoot.addEventListener(\"slotchange\", this.handleSlotChange);\n    }\n  }\n  hostDisconnected() {\n    const shadowRoot = this.host.shadowRoot;\n    if (shadowRoot && \"removeEventListener\" in shadowRoot) {\n      shadowRoot.removeEventListener(\"slotchange\", this.handleSlotChange);\n    }\n  }\n};\n\nexport {\n  HasSlotController\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/styles/component/size.styles.ts\nimport { css } from \"lit\";\nvar size_styles_default = css`\n  :host([size='xs']) {\n    font-size: var(--wa-font-size-xs);\n  }\n\n  :host([size='s']),\n  :host([size='small']) {\n    font-size: var(--wa-font-size-s);\n  }\n\n  :host([size='m']),\n  :host([size='medium']) {\n    font-size: var(--wa-font-size-m);\n  }\n\n  :host([size='l']),\n  :host([size='large']) {\n    font-size: var(--wa-font-size-l);\n  }\n\n  :host([size='xl']) {\n    font-size: var(--wa-font-size-xl);\n  }\n`;\n\nexport {\n  size_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/button/button.styles.ts\nimport { css } from \"lit\";\nvar button_styles_default = css`\n  @layer wa-component {\n    :host {\n      display: inline-block;\n\n      /* Workaround because Chrome doesn't like :host(:has()) below\n       * https://issues.chromium.org/issues/40062355\n       * Firefox doesn't like this nested rule, so both are needed */\n      &:has(wa-badge) {\n        position: relative;\n      }\n    }\n\n    /* Apply relative positioning only when needed to position wa-badge\n     * This avoids creating a new stacking context for every button */\n    :host(:has(wa-badge)) {\n      position: relative;\n    }\n  }\n\n  .button {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    text-decoration: none;\n    user-select: none;\n    -webkit-user-select: none;\n    white-space: nowrap;\n    vertical-align: middle;\n    transition-property: background, border, box-shadow, color, opacity, transform;\n    transition-duration: var(--wa-transition-fast);\n    transition-timing-function: var(--wa-transition-easing);\n    transform-origin: center;\n    cursor: pointer;\n    padding: 0 var(--wa-form-control-padding-inline);\n    font-family: inherit;\n    font-size: inherit;\n    font-weight: var(--wa-font-weight-action);\n    height: var(--wa-form-control-height);\n    width: 100%;\n\n    background-color: var(--wa-color-fill-loud, var(--wa-color-neutral-fill-loud));\n\n    border-color: transparent;\n    color: var(--wa-color-on-loud, var(--wa-color-neutral-on-loud));\n    border-start-start-radius: var(--_button-start-start-radius, var(--wa-form-control-border-radius));\n    border-start-end-radius: var(--_button-start-end-radius, var(--wa-form-control-border-radius));\n    border-end-start-radius: var(--_button-end-start-radius, var(--wa-form-control-border-radius));\n    border-end-end-radius: var(--_button-end-end-radius, var(--wa-form-control-border-radius));\n    border-style: var(--wa-form-control-border-style);\n    border-width: var(--wa-form-control-border-width);\n  }\n\n  /* Hover and active transforms */\n  .button:not(.disabled):not(.loading) {\n    @media (hover: hover) {\n      &:hover {\n        transform: var(--wa-button-transform-hover);\n      }\n    }\n    &:active {\n      transform: var(--wa-button-transform-active);\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n      &:hover,\n      &:active {\n        transform: none;\n      }\n    }\n  }\n\n  /* Appearance modifiers */\n  :host([appearance='plain']) {\n    /* Indentation overrides for grouping */\n    margin-inline-start: var(--_button-horizontal-indent);\n    margin-block-start: var(--_button-vertical-indent);\n\n    .button {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: transparent;\n      border-color: transparent;\n    }\n    @media (hover: hover) {\n      .button:not(.disabled):not(.loading):hover {\n        color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n        background-color: var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet));\n      }\n    }\n    .button:not(.disabled):not(.loading):active {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: color-mix(\n        in oklab,\n        var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet)),\n        var(--wa-color-mix-active)\n      );\n    }\n  }\n\n  :host([appearance='outlined']) {\n    /* Indentation overrides for grouping outlined */\n    margin-inline-start: var(--_button-horizontal-indent-outlined);\n    margin-block-start: var(--_button-vertical-indent-outlined);\n\n    .button {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: transparent;\n      border-color: var(--wa-color-border-loud, var(--wa-color-neutral-border-loud));\n    }\n    @media (hover: hover) {\n      .button:not(.disabled):not(.loading):hover {\n        color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n        background-color: var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet));\n      }\n    }\n    .button:not(.disabled):not(.loading):active {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: color-mix(\n        in oklab,\n        var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet)),\n        var(--wa-color-mix-active)\n      );\n    }\n  }\n\n  :host([appearance='filled']) {\n    /* Indentation overrides for grouping */\n    margin-inline-start: var(--_button-horizontal-indent);\n    margin-block-start: var(--_button-vertical-indent);\n\n    .button {\n      color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n      background-color: var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal));\n      border-color: transparent;\n    }\n    @media (hover: hover) {\n      .button:not(.disabled):not(.loading):hover {\n        color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n        background-color: color-mix(\n          in oklab,\n          var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal)),\n          var(--wa-color-mix-hover)\n        );\n      }\n    }\n    .button:not(.disabled):not(.loading):active {\n      color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n      background-color: color-mix(\n        in oklab,\n        var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal)),\n        var(--wa-color-mix-active)\n      );\n    }\n  }\n\n  :host([appearance='filled-outlined']) {\n    /* Indentation overrides for grouping outlined */\n    margin-inline-start: var(--_button-horizontal-indent-outlined);\n    margin-block-start: var(--_button-vertical-indent-outlined);\n\n    .button {\n      color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n      background-color: var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal));\n      border-color: var(--wa-color-border-normal, var(--wa-color-neutral-border-normal));\n    }\n    @media (hover: hover) {\n      .button:not(.disabled):not(.loading):hover {\n        color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n        background-color: color-mix(\n          in oklab,\n          var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal)),\n          var(--wa-color-mix-hover)\n        );\n      }\n    }\n    .button:not(.disabled):not(.loading):active {\n      color: var(--wa-color-on-normal, var(--wa-color-neutral-on-normal));\n      background-color: color-mix(\n        in oklab,\n        var(--wa-color-fill-normal, var(--wa-color-neutral-fill-normal)),\n        var(--wa-color-mix-active)\n      );\n    }\n  }\n\n  :host([appearance='accent']) {\n    /* Indentation overrides for grouping */\n    margin-inline-start: var(--_button-horizontal-indent);\n    margin-block-start: var(--_button-vertical-indent);\n\n    .button {\n      color: var(--wa-color-on-loud, var(--wa-color-neutral-on-loud));\n      background-color: var(--wa-color-fill-loud, var(--wa-color-neutral-fill-loud));\n      border-color: transparent;\n    }\n    @media (hover: hover) {\n      .button:not(.disabled):not(.loading):hover {\n        background-color: color-mix(\n          in oklab,\n          var(--wa-color-fill-loud, var(--wa-color-neutral-fill-loud)),\n          var(--wa-color-mix-hover)\n        );\n      }\n    }\n    .button:not(.disabled):not(.loading):active {\n      background-color: color-mix(\n        in oklab,\n        var(--wa-color-fill-loud, var(--wa-color-neutral-fill-loud)),\n        var(--wa-color-mix-active)\n      );\n    }\n  }\n\n  /* Focus states */\n  .button:focus {\n    outline: none;\n  }\n\n  .button:focus-visible {\n    outline: var(--wa-focus-ring);\n    outline-offset: var(--wa-focus-ring-offset);\n  }\n\n  /* Disabled state */\n  :host([disabled]) {\n    opacity: 0.5;\n    cursor: not-allowed;\n\n    /* When disabled, prevent mouse events from bubbling up from children */\n    .button {\n      pointer-events: none;\n    }\n  }\n\n  /* Keep it last so Safari doesn't stop parsing this block */\n  .button::-moz-focus-inner {\n    border: 0;\n  }\n\n  /* Icon buttons */\n  .button.is-icon-button {\n    outline-offset: 2px;\n    width: var(--wa-form-control-height);\n    aspect-ratio: 1;\n  }\n\n  /* Icon buttons with a caret need to grow to fit both the icon and the caret */\n  .button.is-icon-button.caret {\n    width: auto;\n    aspect-ratio: auto;\n    min-width: var(--wa-form-control-height);\n  }\n\n  /* Pill modifier */\n  :host([pill]) .button {\n    border-start-start-radius: var(--_button-start-start-radius, var(--wa-border-radius-pill));\n    border-start-end-radius: var(--_button-start-end-radius, var(--wa-border-radius-pill));\n    border-end-start-radius: var(--_button-end-start-radius, var(--wa-border-radius-pill));\n    border-end-end-radius: var(--_button-end-end-radius, var(--wa-border-radius-pill));\n  }\n\n  /*\n   * Label\n   */\n\n  .start,\n  .end {\n    flex: 0 0 auto;\n    display: flex;\n    align-items: center;\n    pointer-events: none;\n  }\n\n  .label {\n    display: inline-block;\n  }\n\n  .is-icon-button .label {\n    display: flex;\n    justify-content: center;\n  }\n\n  .label::slotted(wa-icon) {\n    align-self: center;\n  }\n\n  /*\n   * Caret modifier\n   */\n\n  wa-icon[part='caret'] {\n    display: flex;\n    align-self: center;\n    align-items: center;\n\n    &::part(svg) {\n      width: 0.875em;\n      height: 0.875em;\n    }\n\n    .button:has(&) .end {\n      display: none;\n    }\n  }\n\n  /*\n   * Loading modifier\n   */\n\n  .loading {\n    position: relative;\n    cursor: wait;\n\n    .start,\n    .label,\n    .end,\n    .caret {\n      /* Hidden with opacity, not visibility, so the label stays in the accessibility tree */\n      opacity: 0;\n\n      /* Unlike visibility: hidden, opacity leaves the content clickable */\n      pointer-events: none;\n    }\n\n    wa-spinner {\n      --indicator-color: currentColor;\n      --track-color: color-mix(in oklab, currentColor, transparent 90%);\n\n      position: absolute;\n      font-size: 1em;\n      height: 1em;\n      width: 1em;\n      top: calc(50% - 0.5em);\n      left: calc(50% - 0.5em);\n    }\n  }\n\n  /*\n   * Badges\n   */\n\n  .button ::slotted(wa-badge) {\n    border-color: var(--wa-color-surface-default);\n    position: absolute;\n    inset-block-start: 0;\n    inset-inline-end: 0;\n    translate: 50% -50%;\n    pointer-events: none;\n  }\n\n  :host(:dir(rtl)) ::slotted(wa-badge) {\n    translate: -50% -50%;\n  }\n\n  /*\n  * Button spacing\n  */\n\n  slot[name='start']::slotted(*) {\n    margin-inline-end: 0.75em;\n  }\n\n  slot[name='end']::slotted(*),\n  .button:not(.visually-hidden-label) [part='caret'] {\n    margin-inline-start: 0.75em;\n  }\n`;\n\nexport {\n  button_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/styles/component/variants.styles.ts\nimport { css } from \"lit\";\nvar variants_styles_default = css`\n  :where(:root),\n  .wa-neutral,\n  :host([variant='neutral']) {\n    --wa-color-fill-loud: var(--wa-color-neutral-fill-loud);\n    --wa-color-fill-normal: var(--wa-color-neutral-fill-normal);\n    --wa-color-fill-quiet: var(--wa-color-neutral-fill-quiet);\n    --wa-color-border-loud: var(--wa-color-neutral-border-loud);\n    --wa-color-border-normal: var(--wa-color-neutral-border-normal);\n    --wa-color-border-quiet: var(--wa-color-neutral-border-quiet);\n    --wa-color-on-loud: var(--wa-color-neutral-on-loud);\n    --wa-color-on-normal: var(--wa-color-neutral-on-normal);\n    --wa-color-on-quiet: var(--wa-color-neutral-on-quiet);\n  }\n\n  .wa-brand,\n  :host([variant='brand']) {\n    --wa-color-fill-loud: var(--wa-color-brand-fill-loud);\n    --wa-color-fill-normal: var(--wa-color-brand-fill-normal);\n    --wa-color-fill-quiet: var(--wa-color-brand-fill-quiet);\n    --wa-color-border-loud: var(--wa-color-brand-border-loud);\n    --wa-color-border-normal: var(--wa-color-brand-border-normal);\n    --wa-color-border-quiet: var(--wa-color-brand-border-quiet);\n    --wa-color-on-loud: var(--wa-color-brand-on-loud);\n    --wa-color-on-normal: var(--wa-color-brand-on-normal);\n    --wa-color-on-quiet: var(--wa-color-brand-on-quiet);\n  }\n\n  .wa-success,\n  :host([variant='success']) {\n    --wa-color-fill-loud: var(--wa-color-success-fill-loud);\n    --wa-color-fill-normal: var(--wa-color-success-fill-normal);\n    --wa-color-fill-quiet: var(--wa-color-success-fill-quiet);\n    --wa-color-border-loud: var(--wa-color-success-border-loud);\n    --wa-color-border-normal: var(--wa-color-success-border-normal);\n    --wa-color-border-quiet: var(--wa-color-success-border-quiet);\n    --wa-color-on-loud: var(--wa-color-success-on-loud);\n    --wa-color-on-normal: var(--wa-color-success-on-normal);\n    --wa-color-on-quiet: var(--wa-color-success-on-quiet);\n  }\n\n  .wa-warning,\n  :host([variant='warning']) {\n    --wa-color-fill-loud: var(--wa-color-warning-fill-loud);\n    --wa-color-fill-normal: var(--wa-color-warning-fill-normal);\n    --wa-color-fill-quiet: var(--wa-color-warning-fill-quiet);\n    --wa-color-border-loud: var(--wa-color-warning-border-loud);\n    --wa-color-border-normal: var(--wa-color-warning-border-normal);\n    --wa-color-border-quiet: var(--wa-color-warning-border-quiet);\n    --wa-color-on-loud: var(--wa-color-warning-on-loud);\n    --wa-color-on-normal: var(--wa-color-warning-on-normal);\n    --wa-color-on-quiet: var(--wa-color-warning-on-quiet);\n  }\n\n  .wa-danger,\n  :host([variant='danger']) {\n    --wa-color-fill-loud: var(--wa-color-danger-fill-loud);\n    --wa-color-fill-normal: var(--wa-color-danger-fill-normal);\n    --wa-color-fill-quiet: var(--wa-color-danger-fill-quiet);\n    --wa-color-border-loud: var(--wa-color-danger-border-loud);\n    --wa-color-border-normal: var(--wa-color-danger-border-normal);\n    --wa-color-border-quiet: var(--wa-color-danger-border-quiet);\n    --wa-color-on-loud: var(--wa-color-danger-on-loud);\n    --wa-color-on-normal: var(--wa-color-danger-on-normal);\n    --wa-color-on-quiet: var(--wa-color-danger-on-quiet);\n  }\n`;\n\nexport {\n  variants_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/watch.ts\nfunction watch(propertyName, options) {\n  const resolvedOptions = {\n    waitUntilFirstUpdate: false,\n    ...options\n  };\n  return (proto, decoratedFnName) => {\n    const { update } = proto;\n    const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];\n    proto.update = function(changedProps) {\n      watchedProperties.forEach((property) => {\n        const key = property;\n        if (changedProps.has(key)) {\n          const oldValue = changedProps.get(key);\n          const newValue = this[key];\n          if (oldValue !== newValue) {\n            if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {\n              this[decoratedFnName](oldValue, newValue);\n            }\n          }\n        }\n      });\n      update.call(this, changedProps);\n    };\n  };\n}\n\nexport {\n  watch\n};\n", "const connectedElements = new Set();\nconst translations = new Map();\nlet fallback;\nlet documentDirection = 'ltr';\nlet documentLanguage = 'en';\nconst isClient = typeof MutationObserver !== 'undefined' &&\n    typeof document !== 'undefined' &&\n    typeof document.documentElement !== 'undefined';\nif (isClient) {\n    const documentElementObserver = new MutationObserver(update);\n    documentDirection = document.documentElement.dir || 'ltr';\n    documentLanguage = document.documentElement.lang || navigator.language;\n    documentElementObserver.observe(document.documentElement, {\n        attributes: true,\n        attributeFilter: ['dir', 'lang']\n    });\n}\nexport function registerTranslation(...translation) {\n    translation.map(t => {\n        const code = t.$code.toLowerCase();\n        if (translations.has(code)) {\n            translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t));\n        }\n        else {\n            translations.set(code, t);\n        }\n        if (!fallback) {\n            fallback = t;\n        }\n    });\n    update();\n}\nexport function update() {\n    if (isClient) {\n        documentDirection = document.documentElement.dir || 'ltr';\n        documentLanguage = document.documentElement.lang || navigator.language;\n    }\n    [...connectedElements.keys()].map(el => {\n        if (typeof el.requestUpdate === 'function') {\n            el.requestUpdate();\n        }\n    });\n}\nexport class LocalizeController {\n    constructor(host) {\n        this.host = host;\n        this.host.addController(this);\n    }\n    hostConnected() {\n        connectedElements.add(this.host);\n    }\n    hostDisconnected() {\n        connectedElements.delete(this.host);\n    }\n    dir() {\n        return `${this.host.dir || documentDirection}`.toLowerCase();\n    }\n    lang() {\n        const lang = `${this.host.lang || documentLanguage}`.toLowerCase().replace(/_/g, '-');\n        try {\n            new Intl.Locale(lang);\n            return lang;\n        }\n        catch (_a) {\n            return fallback ? fallback.$code.toLowerCase() : 'en';\n        }\n    }\n    getTranslationData(lang) {\n        var _a, _b;\n        let locale;\n        try {\n            locale = new Intl.Locale(lang.replace(/_/g, '-'));\n        }\n        catch (_c) {\n            return { locale: undefined, language: '', region: '', primary: undefined, secondary: undefined };\n        }\n        const language = locale.language.toLowerCase();\n        const region = (_b = (_a = locale.region) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '';\n        const primary = translations.get(`${language}-${region}`);\n        const secondary = translations.get(language);\n        return { locale, language, region, primary, secondary };\n    }\n    exists(key, options) {\n        var _a;\n        const { primary, secondary } = this.getTranslationData((_a = options.lang) !== null && _a !== void 0 ? _a : this.lang());\n        options = Object.assign({ includeFallback: false }, options);\n        if ((primary && primary[key]) ||\n            (secondary && secondary[key]) ||\n            (options.includeFallback && fallback && fallback[key])) {\n            return true;\n        }\n        return false;\n    }\n    term(key, ...args) {\n        const { primary, secondary } = this.getTranslationData(this.lang());\n        let term;\n        if (primary && primary[key]) {\n            term = primary[key];\n        }\n        else if (secondary && secondary[key]) {\n            term = secondary[key];\n        }\n        else if (fallback && fallback[key]) {\n            term = fallback[key];\n        }\n        else {\n            console.error(`No translation found for: ${String(key)}`);\n            return String(key);\n        }\n        if (typeof term === 'function') {\n            return term(...args);\n        }\n        return term;\n    }\n    date(dateToFormat, options) {\n        dateToFormat = new Date(dateToFormat);\n        return new Intl.DateTimeFormat(this.lang(), options).format(dateToFormat);\n    }\n    number(numberToFormat, options) {\n        numberToFormat = Number(numberToFormat);\n        return isNaN(numberToFormat) ? '' : new Intl.NumberFormat(this.lang(), options).format(numberToFormat);\n    }\n    relativeTime(value, unit, options) {\n        return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n    }\n}\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/translations/en.ts\nimport { registerTranslation } from \"@shoelace-style/localize\";\nvar translation = {\n  $code: \"en\",\n  $name: \"English\",\n  $dir: \"ltr\",\n  allTagsRemoved: \"All tags removed\",\n  am: \"AM\",\n  autosizeColumn: \"Autosize column\",\n  captions: \"Captions\",\n  carousel: \"Carousel\",\n  chooseDate: \"Choose date\",\n  chooseDecade: \"Choose decade\",\n  chooseMonth: \"Choose month\",\n  chooseTime: \"Choose time\",\n  chooseYear: \"Choose year\",\n  clearEntry: \"Clear entry\",\n  clearFilter: \"Clear filter\",\n  clearSort: \"Clear sort\",\n  close: \"Close\",\n  closeCalendar: \"Close calendar\",\n  closeTimeInput: \"Close time picker\",\n  collapseRow: \"Collapse row\",\n  columnMenu: \"Column options\",\n  columnMovedToPosition: (label, position, total) => `${label} moved to position ${position} of ${total}`,\n  columns: \"Columns\",\n  compactPageXOfY: (page, total) => `${page} of ${total}`,\n  completed: \"Completed\",\n  copied: \"Copied\",\n  copy: \"Copy\",\n  createOption: (value) => `Create \"${value}\"`,\n  currentlyPlaying: \"currently playing\",\n  currentValue: \"Current value\",\n  date: \"Date\",\n  datePickerKeyboardHelp: \"Use arrow keys to change values; press Alt+Down Arrow to open the calendar.\",\n  day: \"Day\",\n  dayPeriod: \"AM/PM\",\n  decrement: \"Decrement\",\n  deselectAllRows: \"Deselect all rows\",\n  disabled: \"Disabled\",\n  dropFileHere: \"Drop file here or click to browse\",\n  dropFilesHere: \"Drop files here or click to browse\",\n  empty: \"Empty\",\n  endDate: \"End date\",\n  enterFullscreen: \"Enter fullscreen\",\n  error: \"Error\",\n  exitFullscreen: \"Exit fullscreen\",\n  expandRow: \"Expand row\",\n  filterByColumn: (label) => `Filter by ${label}`,\n  filterFrom: \"From\",\n  filterMax: \"Max\",\n  filterMin: \"Min\",\n  filterTo: \"To\",\n  firstPage: \"First page\",\n  goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,\n  hideColumn: \"Hide column\",\n  hidePassword: \"Hide password\",\n  hour: \"Hour\",\n  incompleteDate: \"Enter a valid date.\",\n  increment: \"Increment\",\n  jumpBackwardX: (count) => `Jump back ${count} pages`,\n  jumpForwardX: (count) => `Jump forward ${count} pages`,\n  lastPage: \"Last page\",\n  loading: \"Loading\",\n  locked: \"Locked\",\n  minute: \"Minute\",\n  month: \"Month\",\n  moreOptions: \"More Options\",\n  mute: \"Mute\",\n  nextDecade: \"Next decade\",\n  nextMonth: \"Next month\",\n  nextPage: \"Next page\",\n  nextSlide: \"Next slide\",\n  nextVideo: \"Next Video\",\n  nextYear: \"Next year\",\n  noData: \"No data\",\n  noOptions: \"No options\",\n  noResults: \"No matching results\",\n  notCompleted: \"Not completed\",\n  now: \"Now\",\n  numCharacters: (num) => {\n    if (num === 1) return \"1 character\";\n    return `${num} characters`;\n  },\n  numCharactersRemaining: (num) => {\n    if (num === 1) return \"1 character remaining\";\n    return `${num} characters remaining`;\n  },\n  numOptionsAvailable: (num) => {\n    if (num === 0) return \"No options available\";\n    if (num === 1) return \"1 option available\";\n    return `${num} options available`;\n  },\n  numOptionsSelected: (num) => {\n    if (num === 0) return \"No options selected\";\n    if (num === 1) return \"1 option selected\";\n    return `${num} options selected`;\n  },\n  numRowsCopied: (num) => num === 1 ? \"1 row copied\" : `${num} rows copied`,\n  numRowsSelected: (num) => num === 1 ? \"1 row selected\" : `${num} rows selected`,\n  optionPosition: (label, position, total) => `${label}, ${position} of ${total}`,\n  optionsLoadError: \"Options could not be loaded\",\n  pageXOfY: (page, total) => `Page ${page} of ${total}`,\n  pagination: \"Pagination\",\n  pause: \"Pause\",\n  pauseAnimation: \"Pause animation\",\n  pictureInPicture: \"Picture in picture\",\n  pinLeft: \"Pin left\",\n  pinRight: \"Pin right\",\n  play: \"Play\",\n  playAnimation: \"Play animation\",\n  playbackSpeed: \"Playback speed\",\n  playlist: \"Playlist\",\n  pm: \"PM\",\n  previousDecade: \"Previous decade\",\n  previousMonth: \"Previous month\",\n  previousPage: \"Previous page\",\n  previousSlide: \"Previous slide\",\n  previousVideo: \"Previous video\",\n  previousYear: \"Previous year\",\n  progress: \"Progress\",\n  rangeTooLong: (max) => {\n    if (max === 1) return \"Select a range no longer than 1 day\";\n    return `Select a range no longer than ${max} days`;\n  },\n  rangeTooShort: (min) => {\n    if (min === 1) return \"Select a range at least 1 day long\";\n    return `Select a range at least ${min} days long`;\n  },\n  readonly: \"Read-only\",\n  remove: \"Remove\",\n  resetColumns: \"Reset columns\",\n  resize: \"Resize\",\n  resizeColumn: \"Resize column\",\n  rowsPerPage: \"Rows per page\",\n  scrollableRegion: \"Scrollable region\",\n  scrollToEnd: \"Scroll to end\",\n  scrollToStart: \"Scroll to start\",\n  search: \"Search\",\n  second: \"Second\",\n  seek: \"Seek\",\n  seekProgress: (current, duration) => `${current} of ${duration}`,\n  selectAColorFromTheScreen: \"Select a color from the screen\",\n  selectAllRows: \"Select all rows\",\n  selected: \"Selected\",\n  selectedDateLabel: (date) => `Selected: ${date}`,\n  selectedRangeLabel: (range) => `Selected range: ${range}`,\n  selectGroup: \"Select group\",\n  selectionCleared: \"Selection cleared\",\n  selectRow: \"Select row\",\n  showingNofMRows: (shown, total) => `Showing ${shown} of ${total} rows`,\n  showingXtoYofZ: (start, end, total) => `${start}\\u2013${end} of ${total}`,\n  showPassword: \"Show password\",\n  slideNum: (slide) => `Slide ${slide}`,\n  sortAscending: \"Sort ascending\",\n  sortColumn: \"Sort column\",\n  sortDescending: \"Sort descending\",\n  startDate: \"Start date\",\n  steps: \"Steps\",\n  stepXOfY: (step, total) => `Step ${step} of ${total}`,\n  tagAdded: (tag) => `${tag} added`,\n  tagAlreadyAdded: (tag) => `${tag} is already added`,\n  tagInputKeyboardHelp: \"Press Backspace or Delete to remove this tag.\",\n  tagRemoved: (tag) => `${tag} removed`,\n  time: \"Time\",\n  timeInputKeyboardHelp: \"Use arrow keys to change values; press Alt+Down Arrow to open the time picker.\",\n  today: \"Today\",\n  toggleColorFormat: \"Toggle color format\",\n  tooFewTags: (min) => min === 1 ? \"Add at least 1 tag\" : `Add at least ${min} tags`,\n  tooManyTags: (max) => max === 1 ? \"Add no more than 1 tag\" : `Add no more than ${max} tags`,\n  unmute: \"Unmute\",\n  unpin: \"Unpin\",\n  unpinColumn: \"Unpin column\",\n  videoPlayer: \"Video player\",\n  volume: \"Volume\",\n  year: \"Year\",\n  zoomIn: \"Zoom in\",\n  zoomOut: \"Zoom out\"\n};\nregisterTranslation(translation);\nvar en_default = translation;\n\nexport {\n  en_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  en_default\n} from \"./chunk.M45NRQFW.js\";\n\n// src/utilities/localize.ts\nimport { LocalizeController as DefaultLocalizationController, registerTranslation } from \"@shoelace-style/localize\";\nimport { registerTranslation as registerTranslation2 } from \"@shoelace-style/localize\";\nvar LocalizeController = class extends DefaultLocalizationController {\n  lang() {\n    if (this.host.didSSR && !this.host.hasUpdated) {\n      return this.host.lang || \"en\";\n    }\n    return super.lang();\n  }\n};\nregisterTranslation(en_default);\n\nexport {\n  LocalizeController,\n  registerTranslation2 as registerTranslation\n};\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {Disconnectable, Part} from './lit-html.js';\n\nexport {\n  AttributePart,\n  BooleanAttributePart,\n  ChildPart,\n  ElementPart,\n  EventPart,\n  Part,\n  PropertyPart,\n} from './lit-html.js';\n\nexport interface DirectiveClass {\n  new (part: PartInfo): Directive;\n}\n\n/**\n * This utility type extracts the signature of a directive class's render()\n * method so we can use it for the type of the generated directive function.\n */\nexport type DirectiveParameters<C extends Directive> = Parameters<C['render']>;\n\n/**\n * A generated directive function doesn't evaluate the directive, but just\n * returns a DirectiveResult object that captures the arguments.\n */\nexport interface DirectiveResult<C extends DirectiveClass = DirectiveClass> {\n  /**\n   * This property needs to remain unminified.\n   * @internal\n   */\n  ['_$litDirective$']: C;\n  /** @internal */\n  values: DirectiveParameters<InstanceType<C>>;\n}\n\nexport const PartType = {\n  ATTRIBUTE: 1,\n  CHILD: 2,\n  PROPERTY: 3,\n  BOOLEAN_ATTRIBUTE: 4,\n  EVENT: 5,\n  ELEMENT: 6,\n} as const;\n\nexport type PartType = (typeof PartType)[keyof typeof PartType];\n\nexport interface ChildPartInfo {\n  readonly type: typeof PartType.CHILD;\n}\n\nexport interface AttributePartInfo {\n  readonly type:\n    | typeof PartType.ATTRIBUTE\n    | typeof PartType.PROPERTY\n    | typeof PartType.BOOLEAN_ATTRIBUTE\n    | typeof PartType.EVENT;\n  readonly strings?: ReadonlyArray<string>;\n  readonly name: string;\n  readonly tagName: string;\n}\n\nexport interface ElementPartInfo {\n  readonly type: typeof PartType.ELEMENT;\n}\n\n/**\n * Information about the part a directive is bound to.\n *\n * This is useful for checking that a directive is attached to a valid part,\n * such as with directive that can only be used on attribute bindings.\n */\nexport type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;\n\n/**\n * Creates a user-facing directive function from a Directive class. This\n * function has the same parameters as the directive's render() method.\n */\nexport const directive =\n  <C extends DirectiveClass>(c: C) =>\n  (...values: DirectiveParameters<InstanceType<C>>): DirectiveResult<C> => ({\n    // This property needs to remain unminified.\n    ['_$litDirective$']: c,\n    values,\n  });\n\n/**\n * Base class for creating custom directives. Users should extend this class,\n * implement `render` and/or `update`, and then pass their subclass to\n * `directive`.\n */\nexport abstract class Directive implements Disconnectable {\n  //@internal\n  __part!: Part;\n  //@internal\n  __attributeIndex: number | undefined;\n  //@internal\n  __directive?: Directive;\n\n  //@internal\n  _$parent!: Disconnectable;\n\n  // These will only exist on the AsyncDirective subclass\n  //@internal\n  _$disconnectableChildren?: Set<Disconnectable>;\n  // This property needs to remain unminified.\n  //@internal\n  ['_$notifyDirectiveConnectionChanged']?(isConnected: boolean): void;\n\n  constructor(_partInfo: PartInfo) {}\n\n  // See comment in Disconnectable interface for why this is a getter\n  get _$isConnected() {\n    return this._$parent._$isConnected;\n  }\n\n  /** @internal */\n  _$initialize(\n    part: Part,\n    parent: Disconnectable,\n    attributeIndex: number | undefined\n  ) {\n    this.__part = part;\n    this._$parent = parent;\n    this.__attributeIndex = attributeIndex;\n  }\n  /** @internal */\n  _$resolve(part: Part, props: Array<unknown>): unknown {\n    return this.update(part, props);\n  }\n\n  abstract render(...props: Array<unknown>): unknown;\n\n  update(_part: Part, props: Array<unknown>): unknown {\n    return this.render(...props);\n  }\n}\n", "/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {AttributePart, noChange} from '../lit-html.js';\nimport {\n  directive,\n  Directive,\n  DirectiveParameters,\n  PartInfo,\n  PartType,\n} from '../directive.js';\n\n/**\n * A key-value set of class names to truthy values.\n */\nexport interface ClassInfo {\n  [name: string]: string | boolean | number;\n}\n\nclass ClassMapDirective extends Directive {\n  /**\n   * Stores the ClassInfo object applied to a given AttributePart.\n   * Used to unset existing values when a new ClassInfo object is applied.\n   */\n  private _previousClasses?: Set<string>;\n  private _staticClasses?: Set<string>;\n\n  constructor(partInfo: PartInfo) {\n    super(partInfo);\n    if (\n      partInfo.type !== PartType.ATTRIBUTE ||\n      partInfo.name !== 'class' ||\n      (partInfo.strings?.length as number) > 2\n    ) {\n      throw new Error(\n        '`classMap()` can only be used in the `class` attribute ' +\n          'and must be the only part in the attribute.'\n      );\n    }\n  }\n\n  render(classInfo: ClassInfo) {\n    // Add spaces to ensure separation from static classes\n    return (\n      ' ' +\n      Object.keys(classInfo)\n        .filter((key) => classInfo[key])\n        .join(' ') +\n      ' '\n    );\n  }\n\n  override update(part: AttributePart, [classInfo]: DirectiveParameters<this>) {\n    // Remember dynamic classes on the first render\n    if (this._previousClasses === undefined) {\n      this._previousClasses = new Set();\n      if (part.strings !== undefined) {\n        this._staticClasses = new Set(\n          part.strings\n            .join(' ')\n            .split(/\\s/)\n            .filter((s) => s !== '')\n        );\n      }\n      for (const name in classInfo) {\n        if (classInfo[name] && !this._staticClasses?.has(name)) {\n          this._previousClasses.add(name);\n        }\n      }\n      return this.render(classInfo);\n    }\n\n    const classList = part.element.classList;\n\n    // Remove old classes that no longer apply\n    for (const name of this._previousClasses) {\n      if (!(name in classInfo)) {\n        classList.remove(name);\n        this._previousClasses!.delete(name);\n      }\n    }\n\n    // Add or remove classes based on their classMap value\n    for (const name in classInfo) {\n      // We explicitly want a loose truthy check of `value` because it seems\n      // more convenient that '' and 0 are skipped.\n      const value = !!classInfo[name];\n      if (\n        value !== this._previousClasses.has(name) &&\n        !this._staticClasses?.has(name)\n      ) {\n        if (value) {\n          classList.add(name);\n          this._previousClasses.add(name);\n        } else {\n          classList.remove(name);\n          this._previousClasses.delete(name);\n        }\n      }\n    }\n    return noChange;\n  }\n}\n\n/**\n * A directive that applies dynamic CSS classes.\n *\n * This must be used in the `class` attribute and must be the only part used in\n * the attribute. It takes each property in the `classInfo` argument and adds\n * the property name to the element's `classList` if the property value is\n * truthy; if the property value is falsy, the property name is removed from\n * the element's `class`.\n *\n * For example `{foo: bar}` applies the class `foo` if the value of `bar` is\n * truthy.\n *\n * @param classInfo\n */\nexport const classMap = directive(ClassMapDirective);\n\n/**\n * The type of the class that powers this directive. Necessary for naming the\n * directive's return type.\n */\nexport type {ClassMapDirective};\n", "/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing} from '../lit-html.js';\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = <T>(value: T) => value ?? nothing;\n", "/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n// Any new exports need to be added to the export statement in\n// `packages/lit/src/index.all.ts`.\n\nimport {\n  html as coreHtml,\n  svg as coreSvg,\n  mathml as coreMathml,\n  TemplateResult,\n} from './lit-html.js';\n\nexport interface StaticValue {\n  /** The value to interpolate as-is into the template. */\n  _$litStatic$: string;\n\n  /**\n   * A value that can't be decoded from ordinary JSON, make it harder for\n   * an attacker-controlled data that goes through JSON.parse to produce a valid\n   * StaticValue.\n   */\n  r: typeof brand;\n}\n\n/**\n * Prevents JSON injection attacks.\n *\n * The goals of this brand:\n *   1) fast to check\n *   2) code is small on the wire\n *   3) multiple versions of Lit in a single page will all produce mutually\n *      interoperable StaticValues\n *   4) normal JSON.parse (without an unusual reviver) can not produce a\n *      StaticValue\n *\n * Symbols satisfy (1), (2), and (4). We use Symbol.for to satisfy (3), but\n * we don't care about the key, so we break ties via (2) and use the empty\n * string.\n */\nconst brand = Symbol.for('');\n\n/** Safely extracts the string part of a StaticValue. */\nconst unwrapStaticValue = (value: unknown): string | undefined => {\n  if ((value as Partial<StaticValue>)?.r !== brand) {\n    return undefined;\n  }\n  return (value as Partial<StaticValue>)?.['_$litStatic$'];\n};\n\n/**\n * Wraps a string so that it behaves like part of the static template\n * strings instead of a dynamic value.\n *\n * Users must take care to ensure that adding the static string to the template\n * results in well-formed HTML, or else templates may break unexpectedly.\n *\n * Note that this function is unsafe to use on untrusted content, as it will be\n * directly parsed into HTML. Do not pass user input to this function\n * without sanitizing it.\n *\n * Static values can be changed, but they will cause a complete re-render\n * since they effectively create a new template.\n */\nexport const unsafeStatic = (value: string): StaticValue => ({\n  ['_$litStatic$']: value,\n  r: brand,\n});\n\nconst textFromStatic = (value: StaticValue) => {\n  if (value['_$litStatic$'] !== undefined) {\n    return value['_$litStatic$'];\n  } else {\n    throw new Error(\n      `Value passed to 'literal' function must be a 'literal' result: ${value}. Use 'unsafeStatic' to pass non-literal values, but\n            take care to ensure page security.`\n    );\n  }\n};\n\n/**\n * Tags a string literal so that it behaves like part of the static template\n * strings instead of a dynamic value.\n *\n * The only values that may be used in template expressions are other tagged\n * `literal` results or `unsafeStatic` values (note that untrusted content\n * should never be passed to `unsafeStatic`).\n *\n * Users must take care to ensure that adding the static string to the template\n * results in well-formed HTML, or else templates may break unexpectedly.\n *\n * Static values can be changed, but they will cause a complete re-render since\n * they effectively create a new template.\n */\nexport const literal = (\n  strings: TemplateStringsArray,\n  ...values: unknown[]\n): StaticValue => ({\n  ['_$litStatic$']: values.reduce(\n    (acc, v, idx) => acc + textFromStatic(v as StaticValue) + strings[idx + 1],\n    strings[0]\n  ) as string,\n  r: brand,\n});\n\nconst stringsCache = new Map<string, TemplateStringsArray>();\n\n/**\n * Wraps a lit-html template tag (`html` or `svg`) to add static value support.\n */\nexport const withStatic =\n  (coreTag: typeof coreHtml | typeof coreSvg | typeof coreMathml) =>\n  (strings: TemplateStringsArray, ...values: unknown[]): TemplateResult => {\n    const l = values.length;\n    let staticValue: string | undefined;\n    let dynamicValue: unknown;\n    const staticStrings: Array<string> = [];\n    const dynamicValues: Array<unknown> = [];\n    let i = 0;\n    let hasStatics = false;\n    let s: string;\n\n    while (i < l) {\n      s = strings[i];\n      // Collect any unsafeStatic values, and their following template strings\n      // so that we treat a run of template strings and unsafe static values as\n      // a single template string.\n      while (\n        i < l &&\n        ((dynamicValue = values[i]),\n        (staticValue = unwrapStaticValue(dynamicValue))) !== undefined\n      ) {\n        s += staticValue + strings[++i];\n        hasStatics = true;\n      }\n      // If the last value is static, we don't need to push it.\n      if (i !== l) {\n        dynamicValues.push(dynamicValue);\n      }\n      staticStrings.push(s);\n      i++;\n    }\n    // If the last value isn't static (which would have consumed the last\n    // string), then we need to add the last string.\n    if (i === l) {\n      staticStrings.push(strings[l]);\n    }\n\n    if (hasStatics) {\n      const key = staticStrings.join('$$lit$$');\n      strings = stringsCache.get(key)!;\n      if (strings === undefined) {\n        // Beware: in general this pattern is unsafe, and doing so may bypass\n        // lit's security checks and allow an attacker to execute arbitrary\n        // code and inject arbitrary content.\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        (staticStrings as any).raw = staticStrings;\n        stringsCache.set(\n          key,\n          (strings = staticStrings as unknown as TemplateStringsArray)\n        );\n      }\n      values = dynamicValues;\n    }\n    return coreTag(strings, ...values);\n  };\n\n/**\n * Interprets a template literal as an HTML template that can efficiently\n * render to and update a container.\n *\n * Includes static value support from `lit-html/static.js`.\n */\nexport const html = withStatic(coreHtml);\n\n/**\n * Interprets a template literal as an SVG template that can efficiently\n * render to and update a container.\n *\n * Includes static value support from `lit-html/static.js`.\n */\nexport const svg = withStatic(coreSvg);\n\n/**\n * Interprets a template literal as MathML fragment that can efficiently render\n * to and update a container.\n *\n * Includes static value support from `lit-html/static.js`.\n */\nexport const mathml = withStatic(coreMathml);\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  MirrorValidator\n} from \"./chunk.R7QX4M6R.js\";\nimport {\n  WebAwesomeFormAssociatedElement\n} from \"./chunk.KBXNFZQL.js\";\nimport {\n  WaInvalidEvent\n} from \"./chunk.VC3BPUZJ.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  button_styles_default\n} from \"./chunk.S35PLDPD.js\";\nimport {\n  variants_styles_default\n} from \"./chunk.XNTP7DEQ.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/button/button.ts\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { html, literal } from \"lit/static-html.js\";\nvar WaButton = class extends WebAwesomeFormAssociatedElement {\n  constructor() {\n    super(...arguments);\n    this.assumeInteractionOn = [\"click\"];\n    this.hasSlotController = new HasSlotController(this, \"[default]\", \"start\", \"end\");\n    this.localize = new LocalizeController(this);\n    this.invalid = false;\n    this.isIconButton = false;\n    this.title = \"\";\n    this.variant = \"neutral\";\n    this.appearance = \"accent\";\n    this.size = \"m\";\n    this.withCaret = false;\n    this.withStart = false;\n    this.withEnd = false;\n    this.disabled = false;\n    this.loading = false;\n    this.pill = false;\n    this.type = \"button\";\n  }\n  static get validators() {\n    return [...super.validators, MirrorValidator()];\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  constructLightDOMButton() {\n    const button = document.createElement(\"button\");\n    for (const attribute of this.attributes) {\n      if (attribute.name === \"style\") {\n        continue;\n      }\n      button.setAttribute(attribute.name, attribute.value);\n    }\n    button.type = this.type;\n    button.style.position = \"absolute !important\";\n    button.style.width = \"0 !important\";\n    button.style.height = \"0 !important\";\n    button.style.clipPath = \"inset(50%) !important\";\n    button.style.overflow = \"hidden !important\";\n    button.style.whiteSpace = \"nowrap !important\";\n    if (this.name) {\n      button.name = this.name;\n    }\n    button.value = this.value || \"\";\n    return button;\n  }\n  handleClick(event) {\n    if (this.disabled || this.loading) {\n      event.preventDefault();\n      event.stopImmediatePropagation();\n      return;\n    }\n    if (this.type !== \"submit\" && this.type !== \"reset\") {\n      return;\n    }\n    const form = this.getForm();\n    if (!form) return;\n    const lightDOMButton = this.constructLightDOMButton();\n    this.parentElement?.append(lightDOMButton);\n    lightDOMButton.click();\n    lightDOMButton.remove();\n  }\n  handleInvalid() {\n    this.dispatchEvent(new WaInvalidEvent());\n  }\n  handleLabelSlotChange() {\n    const nodes = this.labelSlot.assignedNodes({ flatten: true });\n    let hasIconLabel = false;\n    let hasIcon = false;\n    let hasText = false;\n    let hasOtherElements = false;\n    [...nodes].forEach((node) => {\n      if (node.nodeType === Node.ELEMENT_NODE) {\n        const element = node;\n        if (element.localName === \"wa-icon\") {\n          hasIcon = true;\n          if (!hasIconLabel) hasIconLabel = element.label !== void 0;\n        } else {\n          hasOtherElements = true;\n        }\n      } else if (node.nodeType === Node.TEXT_NODE) {\n        const text = node.textContent?.trim() || \"\";\n        if (text.length > 0) {\n          hasText = true;\n        }\n      }\n    });\n    this.isIconButton = hasIcon && !hasText && !hasOtherElements;\n    this.customStates.set(\"icon-button\", this.isIconButton);\n    if (this.isIconButton && !hasIconLabel) {\n      console.warn(\n        'Icon buttons must have a label for screen readers. Add <wa-icon label=\"...\"> to remove this warning.',\n        this\n      );\n    }\n  }\n  isButton() {\n    return this.href ? false : true;\n  }\n  isLink() {\n    return this.href ? true : false;\n  }\n  handleDisabledChange() {\n    this.customStates.set(\"disabled\", this.disabled);\n    this.updateValidity();\n  }\n  handleHrefChange() {\n    this.customStates.set(\"link\", this.isLink());\n  }\n  handleLoadingChange() {\n    this.customStates.set(\"loading\", this.loading);\n  }\n  // eslint-disable-next-line\n  setValue(..._args) {\n  }\n  /** Simulates a click on the button. */\n  click() {\n    this.button.click();\n  }\n  /** Sets focus on the button. */\n  focus(options) {\n    this.button.focus(options);\n  }\n  /** Removes focus from the button. */\n  blur() {\n    this.button.blur();\n  }\n  render() {\n    const isLink = this.isLink();\n    const tag = isLink ? literal`a` : literal`button`;\n    return html`\n      <${tag}\n        part=\"base button\"\n        class=${classMap({\n      button: true,\n      caret: this.withCaret,\n      disabled: this.disabled,\n      loading: this.loading,\n      rtl: this.localize.dir() === \"rtl\",\n      \"has-label\": this.hasSlotController.test(\"[default]\"),\n      \"has-start\": this.hasSlotController.test(\"start\", \"withStart\"),\n      \"has-end\": this.hasSlotController.test(\"end\", \"withEnd\"),\n      \"is-icon-button\": this.isIconButton\n    })}\n        ?disabled=${ifDefined(isLink ? void 0 : this.disabled)}\n        type=${ifDefined(isLink ? void 0 : this.type)}\n        title=${this.title}\n        name=${ifDefined(isLink ? void 0 : this.name)}\n        value=${ifDefined(isLink ? void 0 : this.value)}\n        href=${ifDefined(isLink ? this.href : void 0)}\n        target=${ifDefined(isLink ? this.target : void 0)}\n        download=${ifDefined(isLink ? this.download : void 0)}\n        rel=${ifDefined(isLink && this.rel ? this.rel : void 0)}\n        role=${ifDefined(isLink ? void 0 : \"button\")}\n        aria-disabled=${ifDefined(isLink && this.disabled ? \"true\" : void 0)}\n        aria-busy=${this.loading ? \"true\" : \"false\"}\n        tabindex=${this.disabled ? \"-1\" : \"0\"}\n        @invalid=${this.isButton() ? this.handleInvalid : null}\n        @click=${this.handleClick}\n      >\n        <slot name=\"start\" part=\"start\" class=\"start\"></slot>\n        <slot part=\"label\" class=\"label\" @slotchange=${this.handleLabelSlotChange}></slot>\n        <slot name=\"end\" part=\"end\" class=\"end\"></slot>\n        ${this.withCaret ? html`\n                <wa-icon part=\"caret\" class=\"caret\" library=\"system\" name=\"chevron-down\" variant=\"solid\"></wa-icon>\n              ` : \"\"}\n        ${this.loading ? html`<wa-spinner part=\"spinner\"></wa-spinner>` : \"\"}\n      </${tag}>\n    `;\n  }\n};\nWaButton.shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\nWaButton.css = [button_styles_default, variants_styles_default, size_styles_default];\n__decorateClass([\n  query(\".button\")\n], WaButton.prototype, \"button\", 2);\n__decorateClass([\n  query(\"slot:not([name])\")\n], WaButton.prototype, \"labelSlot\", 2);\n__decorateClass([\n  state()\n], WaButton.prototype, \"invalid\", 2);\n__decorateClass([\n  state()\n], WaButton.prototype, \"isIconButton\", 2);\n__decorateClass([\n  property()\n], WaButton.prototype, \"title\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"variant\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"appearance\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaButton.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property({ attribute: \"with-caret\", type: Boolean, reflect: true })\n], WaButton.prototype, \"withCaret\", 2);\n__decorateClass([\n  property({ attribute: \"with-start\", type: Boolean })\n], WaButton.prototype, \"withStart\", 2);\n__decorateClass([\n  property({ attribute: \"with-end\", type: Boolean })\n], WaButton.prototype, \"withEnd\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaButton.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaButton.prototype, \"loading\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaButton.prototype, \"pill\", 2);\n__decorateClass([\n  property()\n], WaButton.prototype, \"type\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"name\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"value\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaButton.prototype, \"href\", 2);\n__decorateClass([\n  property()\n], WaButton.prototype, \"target\", 2);\n__decorateClass([\n  property()\n], WaButton.prototype, \"rel\", 2);\n__decorateClass([\n  property()\n], WaButton.prototype, \"download\", 2);\n__decorateClass([\n  property({ attribute: \"formaction\" })\n], WaButton.prototype, \"formAction\", 2);\n__decorateClass([\n  property({ attribute: \"formenctype\" })\n], WaButton.prototype, \"formEnctype\", 2);\n__decorateClass([\n  property({ attribute: \"formmethod\" })\n], WaButton.prototype, \"formMethod\", 2);\n__decorateClass([\n  property({ attribute: \"formnovalidate\", type: Boolean })\n], WaButton.prototype, \"formNoValidate\", 2);\n__decorateClass([\n  property({ attribute: \"formtarget\" })\n], WaButton.prototype, \"formTarget\", 2);\n__decorateClass([\n  watch(\"disabled\", { waitUntilFirstUpdate: true })\n], WaButton.prototype, \"handleDisabledChange\", 1);\n__decorateClass([\n  watch(\"href\")\n], WaButton.prototype, \"handleHrefChange\", 1);\n__decorateClass([\n  watch(\"loading\", { waitUntilFirstUpdate: true })\n], WaButton.prototype, \"handleLoadingChange\", 1);\nWaButton = __decorateClass([\n  customElement(\"wa-button\")\n], WaButton);\nWaButton.disableWarning?.(\"change-in-update\");\n\nexport {\n  WaButton\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/spinner/spinner.styles.ts\nimport { css } from \"lit\";\nvar spinner_styles_default = css`\n  :host {\n    --track-width: 2px;\n    --track-color: var(--wa-color-neutral-fill-normal);\n    --indicator-color: var(--wa-color-brand-fill-loud);\n    --speed: 2s;\n    --size: 1em;\n\n    /*\n      Resizing a spinner element using anything but font-size will break the animation because the animation uses em\n      units. Therefore, if a spinner is used in a flex container without \\`flex: none\\` applied, the spinner can\n      grow/shrink and break the animation. The use of \\`flex: none\\` on the host element prevents this by always having\n      the spinner sized according to its actual dimensions.\n    */\n    flex: none;\n    display: inline-flex;\n    width: var(--size);\n    height: var(--size);\n  }\n\n  svg {\n    width: 100%;\n    height: 100%;\n    aspect-ratio: 1;\n    animation: spin var(--speed) linear infinite;\n  }\n\n  .track,\n  .indicator {\n    --radius: calc(var(--size) / 2 - var(--track-width) / 2);\n    --circumference: calc(var(--radius) * 2 * 3.141592654);\n\n    cx: calc(var(--size) / 2);\n    cy: calc(var(--size) / 2);\n    r: var(--radius);\n    fill: none;\n    stroke-width: var(--track-width);\n  }\n\n  .track {\n    stroke: var(--track-color);\n  }\n\n  .indicator {\n    stroke: var(--indicator-color);\n    stroke-linecap: round;\n    stroke-dasharray: calc(0.597 * var(--circumference)), calc(0.796 * var(--circumference));\n    stroke-dashoffset: calc(-0.04 * var(--circumference));\n    animation: dash 1.5s ease-in-out infinite;\n  }\n\n  @keyframes spin {\n    0% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  @keyframes dash {\n    0% {\n      stroke-dasharray: calc(0.008 * var(--circumference)), calc(1.194 * var(--circumference));\n      stroke-dashoffset: 0;\n    }\n    50% {\n      stroke-dasharray: calc(0.716 * var(--circumference)), calc(1.194 * var(--circumference));\n      stroke-dashoffset: calc(-0.278 * var(--circumference));\n    }\n    100% {\n      stroke-dasharray: calc(0.716 * var(--circumference)), calc(1.194 * var(--circumference));\n      stroke-dashoffset: calc(-0.987 * var(--circumference));\n    }\n  }\n`;\n\nexport {\n  spinner_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  spinner_styles_default\n} from \"./chunk.W7A2VLCT.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/spinner/spinner.ts\nimport { html } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nvar WaSpinner = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    this.localize = new LocalizeController(this);\n  }\n  render() {\n    return html`\n      <svg\n        part=\"base spinner\"\n        role=\"progressbar\"\n        aria-label=${this.localize.term(\"loading\")}\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <circle class=\"track\" />\n        <circle class=\"indicator\" />\n      </svg>\n    `;\n  }\n};\nWaSpinner.css = spinner_styles_default;\nWaSpinner = __decorateClass([\n  customElement(\"wa-spinner\")\n], WaSpinner);\n\nexport {\n  WaSpinner\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/error.ts\nvar WaErrorEvent = class extends Event {\n  constructor() {\n    super(\"wa-error\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaErrorEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/load.ts\nvar WaLoadEvent = class extends Event {\n  constructor() {\n    super(\"wa-load\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaLoadEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/icon/icon.styles.ts\nimport { css } from \"lit\";\nvar icon_styles_default = css`\n  :host {\n    --primary-color: currentColor;\n    --primary-opacity: 1;\n    --secondary-color: currentColor;\n    --secondary-opacity: 0.4;\n    --rotate-angle: 0deg;\n\n    box-sizing: content-box;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    vertical-align: -0.125em;\n  }\n\n  /* #region Canvas \u2014 the box the icon is centered within (mirrors Font Awesome's icon canvas). Orthogonal to font-size. */\n\n  /* Fixed width (default): 1.25em \u00D7 1em (20 \u00D7 16px) */\n  :host(:not([canvas])),\n  :host([canvas='fixed']) {\n    width: 1.25em;\n    height: 1em;\n    min-width: 1.25em; /* <-- this is what Safari respects for intrinsic */\n    min-height: 1em;\n  }\n\n  /* Auto: hug the icon's width. \\`auto-width\\` is the deprecated alias for canvas=\"auto\". */\n  :host([canvas='auto']),\n  :host([auto-width]:not([canvas])) {\n    width: auto;\n    height: 1em;\n  }\n\n  /* Square: 1.25em \u00D7 1.25em (20 \u00D7 20px) */\n  :host([canvas='square']) {\n    width: 1.25em;\n    height: 1.25em;\n    min-width: 1.25em;\n    min-height: 1.25em;\n  }\n\n  /* Roomy: 1.5em \u00D7 1.5em (24 \u00D7 24px) */\n  :host([canvas='roomy']) {\n    width: 1.5em;\n    height: 1.5em;\n    min-width: 1.5em;\n    min-height: 1.5em;\n  }\n\n  /* #endregion */\n\n  svg {\n    /* NOTE: Avoid setting fill here. A stylesheet rule beats SVG presentation attributes, breaking stroke-based\n       libraries like Lucide (fill=\"none\" stroke=\"currentColor\") and attribute-based mutators (issue #1733). The default\n       library applies fill=\"currentColor\" in its mutator instead. */\n    height: 1em;\n    overflow: visible;\n    width: auto;\n\n    /* Duotone colors with path-specific opacity fallback */\n    path[data-duotone-primary] {\n      color: var(--primary-color);\n      opacity: var(--path-opacity, var(--primary-opacity));\n    }\n\n    path[data-duotone-secondary] {\n      color: var(--secondary-color);\n      opacity: var(--path-opacity, var(--secondary-opacity));\n    }\n  }\n\n  /* Rotation */\n  :host([rotate]) {\n    transform: rotate(var(--rotate-angle, 0deg));\n  }\n\n  /* Flipping */\n  :host([flip='x']) {\n    transform: scaleX(-1);\n  }\n  :host([flip='y']) {\n    transform: scaleY(-1);\n  }\n  :host([flip='both']) {\n    transform: scale(-1, -1);\n  }\n\n  /* Rotation and Flipping combined */\n  :host([rotate][flip='x']) {\n    transform: rotate(var(--rotate-angle, 0deg)) scaleX(-1);\n  }\n  :host([rotate][flip='y']) {\n    transform: rotate(var(--rotate-angle, 0deg)) scaleY(-1);\n  }\n  :host([rotate][flip='both']) {\n    transform: rotate(var(--rotate-angle, 0deg)) scale(-1, -1);\n  }\n\n  /* #region Animations \u2014 ported from Font Awesome 7.3 (--fa-* props mapped to wa-icon's --* names) */\n\n  :host([animation='beat']) {\n    animation-name: beat;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='bounce']) {\n    animation-name: bounce;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n  }\n\n  :host([animation='fade']) {\n    animation-name: fade;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='beat-fade']) {\n    animation-name: beat-fade;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='flip']) {\n    animation-name: flip;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1.5s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='flip-360']) {\n    animation-name: flip-360;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='shake']) {\n    animation-name: shake;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 0.75s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n  }\n\n  :host([animation='spin']) {\n    animation-name: spin;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 2s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='spin-pulse']) {\n    animation-name: spin;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, steps(8));\n  }\n\n  /* spin-reverse is FA's reverse modifier expressed as a standalone value; reverse any spin via --animation-direction: reverse */\n  :host([animation='spin-reverse']) {\n    animation-name: spin;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, reverse);\n    animation-duration: var(--animation-duration, 2s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='spin-snap']) {\n    animation-name: spin-snap;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 3s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='spin-snap-4']) {\n    animation-name: spin-snap-4;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 2.4s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='spin-snap-8']) {\n    animation-name: spin-snap-8;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 4s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='buzz']) {\n    animation-name: buzz;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 0.6s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, linear);\n  }\n\n  :host([animation='wag']) {\n    animation-name: wag;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 0.9s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-out);\n    transform-origin: bottom center;\n  }\n\n  :host([animation='float']) {\n    animation-name: float;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 3s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-in-out);\n    will-change: transform;\n  }\n\n  :host([animation='swing']) {\n    animation-name: swing;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 1.2s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-out);\n    transform-origin: top center;\n  }\n\n  :host([animation='jello']) {\n    animation-name: jello;\n    animation-delay: var(--animation-delay, 0s);\n    animation-direction: var(--animation-direction, normal);\n    animation-duration: var(--animation-duration, 0.9s);\n    animation-iteration-count: var(--animation-iteration-count, infinite);\n    animation-timing-function: var(--animation-timing, ease-out);\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    :host([animation='beat']),\n    :host([animation='bounce']),\n    :host([animation='fade']),\n    :host([animation='beat-fade']),\n    :host([animation='flip']),\n    :host([animation='flip-360']),\n    :host([animation='shake']),\n    :host([animation='spin']),\n    :host([animation='spin-pulse']),\n    :host([animation='spin-reverse']),\n    :host([animation='spin-snap']),\n    :host([animation='spin-snap-4']),\n    :host([animation='spin-snap-8']),\n    :host([animation='buzz']),\n    :host([animation='wag']),\n    :host([animation='float']),\n    :host([animation='swing']),\n    :host([animation='jello']) {\n      animation: none !important;\n      transition: none !important;\n    }\n  }\n\n  /* #endregion */\n\n  /* #region Keyframes \u2014 ported verbatim from Font Awesome 7.3 */\n\n  @keyframes beat {\n    0% {\n      transform: scale(1);\n    }\n    25% {\n      transform: scale(calc(1.25 * var(--beat-scale, 1.25)));\n    }\n    45% {\n      transform: scale(calc(1.22 * var(--beat-scale, 1.22)));\n    }\n    65% {\n      transform: scale(calc(1.25 * var(--beat-scale, 1.25)));\n    }\n    90% {\n      transform: scale(1);\n    }\n  }\n\n  @keyframes bounce {\n    0% {\n      transform: scale(1, 1) translateY(0);\n      /* No fallback by design (ported from FA 7.3): the first segment uses the user's --animation-timing or the CSS\n         initial ease, while the explicit cubic-beziers on later stops drive the bounce physics. */\n      animation-timing-function: var(--animation-timing);\n    }\n    14% {\n      transform: scale(var(--bounce-start-scale-x, 1.06), var(--bounce-start-scale-y, 0.94))\n        translateY(var(--bounce-anticipation, 3px));\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n    }\n    32% {\n      transform: scale(var(--bounce-jump-scale-x, 0.94), var(--bounce-jump-scale-y, 1.12))\n        translateY(calc(-1 * var(--bounce-height, 0.5em)));\n      animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n    }\n    52% {\n      transform: scale(1, 1) translateY(calc(-1 * var(--bounce-height, 0.5em) * 1.1));\n      animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n    }\n    70% {\n      transform: scale(var(--bounce-land-scale-x, 1.06), var(--bounce-land-scale-y, 0.92)) translateY(0);\n      animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\n    }\n    85% {\n      transform: scale(0.98, 1.04) translateY(calc(-2px * var(--bounce-rebound, 1)));\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n    }\n    100% {\n      transform: scale(1, 1) translateY(0);\n    }\n  }\n\n  @keyframes fade {\n    0% {\n      opacity: 1;\n      transform: scale(1);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n    }\n    40% {\n      opacity: var(--fade-opacity, 0.4);\n      transform: scale(0.98);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    100% {\n      opacity: 1;\n      transform: scale(1);\n    }\n  }\n\n  @keyframes beat-fade {\n    0% {\n      opacity: var(--beat-fade-opacity, 0.4);\n      transform: scale(1);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n    }\n    25% {\n      opacity: calc(var(--beat-fade-opacity, 0.4) + 0.4);\n      transform: scale(var(--beat-fade-scale, 1.28));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    45% {\n      opacity: 1;\n      transform: scale(var(--beat-fade-scale, 1.25));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    65% {\n      opacity: calc(var(--beat-fade-opacity, 0.4) + 0.4);\n      transform: scale(var(--beat-fade-scale, 1.28));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    100% {\n      opacity: var(--beat-fade-opacity, 0.4);\n      transform: scale(1);\n    }\n  }\n\n  @keyframes flip {\n    0% {\n      transform: perspective(2em) scale(1) rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), 0deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n    }\n    8% {\n      transform: perspective(2em) scale(var(--flip-anticipation-scale, 0.95))\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), 0deg);\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n    }\n    35% {\n      transform: perspective(2em) scale(1)\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), calc(var(--flip-angle, -360deg) * 0.6));\n      animation-timing-function: linear;\n    }\n    65% {\n      transform: perspective(2em) scale(1)\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), calc(var(--flip-angle, -360deg) * 0.5));\n      animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n    }\n    92% {\n      transform: perspective(2em) scale(1)\n        rotate3d(\n          var(--flip-x, 0),\n          var(--flip-y, 1),\n          var(--flip-z, 0),\n          calc(var(--flip-angle, -360deg) * var(--flip-overshoot, 1.04))\n        );\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n    }\n    100% {\n      transform: perspective(2em) scale(1)\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), var(--flip-angle, -360deg));\n    }\n  }\n\n  @keyframes flip-360 {\n    0% {\n      transform: perspective(2em) scale(1) rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), 0deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n    }\n    8% {\n      transform: perspective(2em) scale(var(--flip-anticipation-scale, 0.95))\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), 0deg);\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n    }\n    50% {\n      transform: perspective(2em) scale(1)\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), calc(var(--flip-angle, -360deg) * 0.6));\n      animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n    }\n    80% {\n      transform: perspective(2em) scale(1)\n        rotate3d(\n          var(--flip-x, 0),\n          var(--flip-y, 1),\n          var(--flip-z, 0),\n          calc(var(--flip-angle, -360deg) * var(--flip-overshoot, 1.04))\n        );\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n    }\n    100% {\n      transform: perspective(2em) scale(1)\n        rotate3d(var(--flip-x, 0), var(--flip-y, 1), var(--flip-z, 0), var(--flip-angle, -360deg));\n    }\n  }\n\n  @keyframes shake {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n    }\n    8% {\n      transform: rotate(35deg) translateX(1px);\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    20% {\n      transform: rotate(-22deg) translateX(-1px);\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    35% {\n      transform: rotate(15deg) translateX(1px);\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    50% {\n      transform: rotate(-9deg);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    65% {\n      transform: rotate(5deg);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    78% {\n      transform: rotate(-3deg);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    90% {\n      transform: rotate(1deg);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    100% {\n      transform: rotate(0deg);\n    }\n  }\n\n  @keyframes spin {\n    0% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  @keyframes spin-snap {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    12% {\n      transform: rotate(60deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    16.67% {\n      transform: rotate(60deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    28.67% {\n      transform: rotate(120deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    33.33% {\n      transform: rotate(120deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    45.33% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    50% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    62% {\n      transform: rotate(240deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    66.67% {\n      transform: rotate(240deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    78.67% {\n      transform: rotate(300deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    83.33% {\n      transform: rotate(300deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    95.33% {\n      transform: rotate(360deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  @keyframes spin-snap-4 {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    15% {\n      transform: rotate(90deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    25% {\n      transform: rotate(90deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    40% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    50% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    65% {\n      transform: rotate(270deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    75% {\n      transform: rotate(270deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    90% {\n      transform: rotate(360deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  @keyframes spin-snap-8 {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    9% {\n      transform: rotate(45deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    12.5% {\n      transform: rotate(45deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    21.5% {\n      transform: rotate(90deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    25% {\n      transform: rotate(90deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    34% {\n      transform: rotate(135deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    37.5% {\n      transform: rotate(135deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    46.5% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    50% {\n      transform: rotate(180deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    59% {\n      transform: rotate(225deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    62.5% {\n      transform: rotate(225deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    71.5% {\n      transform: rotate(270deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    75% {\n      transform: rotate(270deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    84% {\n      transform: rotate(315deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    87.5% {\n      transform: rotate(315deg);\n      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n    }\n    96.5% {\n      transform: rotate(360deg);\n      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  @keyframes buzz {\n    0% {\n      transform: translateX(0) rotate(0deg);\n      animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\n    }\n    5% {\n      transform: translateX(var(--buzz-distance, 4px)) rotate(0.5deg);\n    }\n    10% {\n      transform: translateX(calc(-1 * var(--buzz-distance, 4px))) rotate(-0.5deg);\n    }\n    15% {\n      transform: translateX(var(--buzz-distance, 4px)) rotate(0.3deg);\n    }\n    20% {\n      transform: translateX(calc(-1 * var(--buzz-distance, 4px))) rotate(-0.3deg);\n    }\n    25% {\n      transform: translateX(calc(var(--buzz-distance, 4px) * 0.7)) rotate(0.2deg);\n    }\n    30% {\n      transform: translateX(calc(-1 * var(--buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\n    }\n    35% {\n      transform: translateX(calc(var(--buzz-distance, 4px) * 0.4)) rotate(0.1deg);\n    }\n    40% {\n      transform: translateX(0) rotate(0deg);\n    }\n    100% {\n      transform: translateX(0) rotate(0deg);\n    }\n  }\n\n  @keyframes wag {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n    }\n    12% {\n      transform: rotate(var(--wag-angle, 12deg));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    24% {\n      transform: rotate(2deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n    }\n    36% {\n      transform: rotate(calc(var(--wag-angle, 12deg) * 0.85));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    48% {\n      transform: rotate(1deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n    }\n    58% {\n      transform: rotate(calc(var(--wag-angle, 12deg) * 0.6));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    68% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(0deg);\n    }\n  }\n\n  @keyframes float {\n    0% {\n      transform: translateY(0) translateX(0) rotate(0deg)\n        scale(var(--float-squash-x, 1.02), var(--float-squash-y, 0.98));\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n    }\n    15% {\n      transform: translateY(calc(-0.4 * var(--float-height, 6px))) translateX(var(--float-drift, 1px))\n        rotate(var(--float-tilt, 1deg)) scale(1, 1);\n      animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n    }\n    35% {\n      transform: translateY(calc(-1 * var(--float-height, 6px))) translateX(0) rotate(0deg)\n        scale(var(--float-stretch-x, 0.98), var(--float-stretch-y, 1.03));\n      animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\n    }\n    50% {\n      transform: translateY(calc(-0.92 * var(--float-height, 6px))) translateX(calc(-0.5 * var(--float-drift, 1px)))\n        rotate(calc(-0.5 * var(--float-tilt, 1deg))) scale(0.995, 1.01);\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n    }\n    70% {\n      transform: translateY(calc(-0.3 * var(--float-height, 6px))) translateX(calc(-1 * var(--float-drift, 1px)))\n        rotate(calc(-1 * var(--float-tilt, 1deg))) scale(1, 1);\n      animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n    }\n    90% {\n      transform: translateY(calc(0.05 * var(--float-height, 6px))) translateX(0) rotate(0deg)\n        scale(var(--float-squash-x, 1.02), var(--float-squash-y, 0.98));\n      animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n    }\n    100% {\n      transform: translateY(0) translateX(0) rotate(0deg)\n        scale(var(--float-squash-x, 1.02), var(--float-squash-y, 0.98));\n    }\n  }\n\n  @keyframes swing {\n    0% {\n      transform: rotate(0deg);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n    }\n    8% {\n      transform: rotate(var(--swing-angle, 22deg));\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    18% {\n      transform: rotate(calc(-1 * var(--swing-angle, 22deg) * 0.85));\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    28% {\n      transform: rotate(calc(var(--swing-angle, 22deg) * 0.65));\n      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\n    }\n    38% {\n      transform: rotate(calc(-1 * var(--swing-angle, 22deg) * 0.45));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    48% {\n      transform: rotate(calc(var(--swing-angle, 22deg) * 0.25));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    56% {\n      transform: rotate(calc(-1 * var(--swing-angle, 22deg) * 0.1));\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    64% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(0deg);\n    }\n  }\n\n  @keyframes jello {\n    0% {\n      transform: scale(1, 1);\n      animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n    }\n    12% {\n      transform: scale(var(--jello-scale-x, 1.15), calc(2 - var(--jello-scale-x, 1.15)));\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    24% {\n      transform: scale(calc(2 - var(--jello-scale-y, 1.12)), var(--jello-scale-y, 1.12));\n      animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n    }\n    36% {\n      transform: scale(\n        calc(1 + (var(--jello-scale-x, 1.15) - 1) * 0.5),\n        calc(2 - (1 + (var(--jello-scale-x, 1.15) - 1) * 0.5))\n      );\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    48% {\n      transform: scale(\n        calc(2 - (1 + (var(--jello-scale-y, 1.12) - 1) * 0.3)),\n        calc(1 + (var(--jello-scale-y, 1.12) - 1) * 0.3)\n      );\n      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n    }\n    58% {\n      transform: scale(1.02, 0.98);\n      animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    }\n    68% {\n      transform: scale(1, 1);\n    }\n    100% {\n      transform: scale(1, 1);\n    }\n  }\n\n  /* #endregion */\n`;\n\nexport {\n  icon_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/utilities/base-path.ts\nvar basePath = \"\";\nvar iconPath = \"\";\nvar kitCode = \"\";\nfunction setBasePath(path) {\n  basePath = path;\n}\nfunction getBasePath(subpath = \"\") {\n  if (!basePath) {\n    const el = document.querySelector(\"[data-webawesome]\");\n    if (el?.hasAttribute(\"data-webawesome\")) {\n      const rootRelativeUrl = new URL(el.getAttribute(\"data-webawesome\") ?? \"\", window.location.href).pathname;\n      setBasePath(rootRelativeUrl);\n    } else {\n      const scripts = [...document.getElementsByTagName(\"script\")];\n      const waScript = scripts.find(\n        (script) => script.src.endsWith(\"webawesome.js\") || script.src.endsWith(\"webawesome.loader.js\") || script.src.endsWith(\"webawesome.ssr-loader.js\")\n      );\n      if (waScript) {\n        const path = String(waScript.getAttribute(\"src\"));\n        setBasePath(path.split(\"/\").slice(0, -1).join(\"/\"));\n      }\n    }\n  }\n  return basePath.replace(/\\/$/, \"\") + (subpath ? `/${subpath.replace(/^\\//, \"\")}` : ``);\n}\nfunction setIconPath(path) {\n  iconPath = path;\n}\nfunction getIconPath() {\n  return iconPath.replace(/\\/$/, \"\");\n}\nfunction setKitCode(code) {\n  kitCode = code;\n}\nfunction getKitCode() {\n  if (!kitCode) {\n    const el = document.querySelector(\"[data-fa-kit-code]\");\n    if (el) {\n      setKitCode(el.getAttribute(\"data-fa-kit-code\") || \"\");\n    }\n  }\n  return kitCode;\n}\n\nexport {\n  setBasePath,\n  getBasePath,\n  setIconPath,\n  getIconPath,\n  setKitCode,\n  getKitCode\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  getIconPath,\n  getKitCode\n} from \"./chunk.HGBRCPUS.js\";\n\n// src/components/icon/library.default.ts\nvar FA_VERSION = \"7.3.0\";\nfunction getIconFolder(_name, family, variant) {\n  let folder = \"solid\";\n  if (family === \"chisel\") {\n    folder = \"chisel-regular\";\n  }\n  if (family === \"etch\") {\n    folder = \"etch-solid\";\n  }\n  if (family === \"graphite\") {\n    folder = \"graphite-thin\";\n  }\n  if (family === \"jelly\") {\n    folder = \"jelly-regular\";\n    if (variant === \"duo-regular\") folder = \"jelly-duo-regular\";\n    if (variant === \"fill-regular\") folder = \"jelly-fill-regular\";\n  }\n  if (family === \"jelly-duo\") {\n    folder = \"jelly-duo-regular\";\n  }\n  if (family === \"jelly-fill\") {\n    folder = \"jelly-fill-regular\";\n  }\n  if (family === \"notdog\") {\n    if (variant === \"solid\") folder = \"notdog-solid\";\n    if (variant === \"duo-solid\") folder = \"notdog-duo-solid\";\n  }\n  if (family === \"notdog-duo\") {\n    folder = \"notdog-duo-solid\";\n  }\n  if (family === \"slab\") {\n    if (variant === \"solid\" || variant === \"regular\") folder = \"slab-regular\";\n    if (variant === \"press-regular\") folder = \"slab-press-regular\";\n  }\n  if (family === \"slab-press\") {\n    folder = \"slab-press-regular\";\n  }\n  if (family === \"slab-duo\") {\n    folder = \"slab-duo-regular\";\n  }\n  if (family === \"slab-press-duo\") {\n    folder = \"slab-press-duo-regular\";\n  }\n  if (family === \"thumbprint\") {\n    folder = \"thumbprint-light\";\n  }\n  if (family === \"utility\") {\n    folder = \"utility-semibold\";\n  }\n  if (family === \"utility-duo\") {\n    folder = \"utility-duo-semibold\";\n  }\n  if (family === \"utility-fill\") {\n    folder = \"utility-fill-semibold\";\n  }\n  if (family === \"whiteboard\") {\n    folder = \"whiteboard-semibold\";\n  }\n  if (family === \"mosaic\") {\n    folder = \"mosaic-solid\";\n  }\n  if (family === \"pixel\") {\n    folder = \"pixel-regular\";\n  }\n  if (family === \"vellum\") {\n    folder = \"vellum-solid\";\n  }\n  if (family === \"classic\") {\n    if (variant === \"thin\") folder = \"thin\";\n    if (variant === \"light\") folder = \"light\";\n    if (variant === \"regular\") folder = \"regular\";\n    if (variant === \"solid\") folder = \"solid\";\n  }\n  if (family === \"duotone\") {\n    if (variant === \"thin\") folder = \"duotone-thin\";\n    if (variant === \"light\") folder = \"duotone-light\";\n    if (variant === \"regular\") folder = \"duotone-regular\";\n    if (variant === \"solid\") folder = \"duotone\";\n  }\n  if (family === \"sharp\") {\n    if (variant === \"thin\") folder = \"sharp-thin\";\n    if (variant === \"light\") folder = \"sharp-light\";\n    if (variant === \"regular\") folder = \"sharp-regular\";\n    if (variant === \"solid\") folder = \"sharp-solid\";\n  }\n  if (family === \"sharp-duotone\") {\n    if (variant === \"thin\") folder = \"sharp-duotone-thin\";\n    if (variant === \"light\") folder = \"sharp-duotone-light\";\n    if (variant === \"regular\") folder = \"sharp-duotone-regular\";\n    if (variant === \"solid\") folder = \"sharp-duotone-solid\";\n  }\n  if (family === \"brands\") {\n    folder = \"brands\";\n  }\n  return folder;\n}\nfunction getIconUrl(name, family, variant) {\n  const folder = getIconFolder(name, family, variant);\n  const iconBase = getIconPath();\n  if (iconBase) {\n    return `${iconBase}/${folder}/${name}.svg`;\n  }\n  const kitCode = getKitCode();\n  const isPro = kitCode.length > 0;\n  return isPro ? `https://ka-p.fontawesome.com/releases/v${FA_VERSION}/svgs/${folder}/${name}.svg?token=${encodeURIComponent(kitCode)}` : `https://ka-f.fontawesome.com/releases/v${FA_VERSION}/svgs/${folder}/${name}.svg`;\n}\nvar library = {\n  name: \"default\",\n  resolver: (name, family = \"classic\", variant = \"solid\") => {\n    return getIconUrl(name, family, variant);\n  },\n  mutator: (svg, hostEl) => {\n    if (!svg.hasAttribute(\"fill\")) {\n      svg.setAttribute(\"fill\", \"currentColor\");\n    }\n    if (hostEl?.family && !svg.hasAttribute(\"data-duotone-initialized\")) {\n      const { family, variant } = hostEl;\n      if (\n        // Duotone\n        family === \"duotone\" || // Sharp duotone\n        family === \"sharp-duotone\" || // Notdog duo (correct usage: family=\"notdog-duo\")\n        family === \"notdog-duo\" || // NOTE: family=\"notdog\" variant=\"duo-solid\" is deprecated\n        family === \"notdog\" && variant === \"duo-solid\" || // Jelly duo (correct usage: family=\"jelly-duo\")\n        family === \"jelly-duo\" || // NOTE: family=\"jelly\" variant=\"duo-regular\" is deprecated\n        family === \"jelly\" && variant === \"duo-regular\" || // Utility duo (correct usage: family=\"utility-duo\")\n        family === \"utility-duo\" || // Slab duo (new in 7.3)\n        family === \"slab-duo\" || family === \"slab-press-duo\" || // Thumbprint\n        family === \"thumbprint\"\n      ) {\n        const paths = [...svg.querySelectorAll(\"path\")];\n        const primaryPath = paths.find((p) => !p.hasAttribute(\"opacity\"));\n        const secondaryPath = paths.find((p) => p.hasAttribute(\"opacity\"));\n        if (!primaryPath || !secondaryPath) return;\n        primaryPath.setAttribute(\"data-duotone-primary\", \"\");\n        secondaryPath.setAttribute(\"data-duotone-secondary\", \"\");\n        if (hostEl.swapOpacity && primaryPath && secondaryPath) {\n          const originalOpacity = secondaryPath.getAttribute(\"opacity\") || \"0.4\";\n          primaryPath.style.setProperty(\"--path-opacity\", originalOpacity);\n          secondaryPath.style.setProperty(\"--path-opacity\", \"1\");\n        }\n        svg.setAttribute(\"data-duotone-initialized\", \"\");\n      }\n    }\n  }\n};\nvar library_default_default = library;\n\nexport {\n  getIconFolder,\n  library_default_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/icon/library.system.ts\nfunction dataUri(svg) {\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\nvar icons = {\n  //\n  // Solid variant\n  //\n  solid: {\n    \"arrow-down\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"/></svg>`,\n    \"arrow-up\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3 160 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z\"/></svg>`,\n    backward: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M236.3 107.1C247.9 96 265 92.9 279.7 99.2C294.4 105.5 304 120 304 136L304 272.3L476.3 107.2C487.9 96 505 92.9 519.7 99.2C534.4 105.5 544 120 544 136L544 504C544 520 534.4 534.5 519.7 540.8C505 547.1 487.9 544 476.3 532.9L304 367.7L304 504C304 520 294.4 534.5 279.7 540.8C265 547.1 247.9 544 236.3 532.9L44.3 348.9C36.5 341.3 32 330.9 32 320C32 309.1 36.5 298.7 44.3 291.1L236.3 107.1z\"/></svg>`,\n    \"backward-step\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M491 100.8C478.1 93.8 462.3 94.5 450 102.6L192 272.1L192 128C192 110.3 177.7 96 160 96C142.3 96 128 110.3 128 128L128 512C128 529.7 142.3 544 160 544C177.7 544 192 529.7 192 512L192 367.9L450 537.5C462.3 545.6 478 546.3 491 539.3C504 532.3 512 518.8 512 504.1L512 136.1C512 121.4 503.9 107.9 491 100.9z\"/></svg>`,\n    bars: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path d=\"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z\"/></svg>`,\n    \"angles-left\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M77.3 256 214.7 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256zm192 0L406.7 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256z\"/></svg>`,\n    \"angles-right\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M434.7 256 297.3 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L434.7 256zm-192 0L105.3 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256z\"/></svg>`,\n    check: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>`,\n    \"chevron-down\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z\"/></svg>`,\n    \"chevron-left\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>`,\n    \"chevron-right\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>`,\n    circle: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>`,\n    \"closed-captioning\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M64 192C64 156.7 92.7 128 128 128L512 128C547.3 128 576 156.7 576 192L576 448C576 483.3 547.3 512 512 512L128 512C92.7 512 64 483.3 64 448L64 192zM216 272L248 272C252.4 272 256 275.6 256 280C256 293.3 266.7 304 280 304C293.3 304 304 293.3 304 280C304 249.1 278.9 224 248 224L216 224C185.1 224 160 249.1 160 280L160 360C160 390.9 185.1 416 216 416L248 416C278.9 416 304 390.9 304 360C304 346.7 293.3 336 280 336C266.7 336 256 346.7 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 280C208 275.6 211.6 272 216 272zM384 280C384 275.6 387.6 272 392 272L424 272C428.4 272 432 275.6 432 280C432 293.3 442.7 304 456 304C469.3 304 480 293.3 480 280C480 249.1 454.9 224 424 224L392 224C361.1 224 336 249.1 336 280L336 360C336 390.9 361.1 416 392 416L424 416C454.9 416 480 390.9 480 360C480 346.7 469.3 336 456 336C442.7 336 432 346.7 432 360C432 364.4 428.4 368 424 368L392 368C387.6 368 384 364.4 384 360L384 280z\"/></svg>`,\n    \"closed-captioning-slash\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M39 39.1C48.4 29.7 63.6 29.7 72.9 39.1L161.8 128L512 128C547.3 128 576 156.7 576 192L576 448C576 473.5 561.1 495.4 539.6 505.8L601 567.1C610.4 576.5 610.4 591.7 601 601C591.6 610.3 576.4 610.4 567.1 601L39 73.1C29.7 63.7 29.7 48.5 39 39.1zM384 350.1L384 279.9C384 275.5 387.6 271.9 392 271.9L424 271.9C428.4 271.9 432 275.5 432 279.9C432 293.2 442.7 303.9 456 303.9C469.3 303.9 480 293.2 480 279.9C480 249 454.9 223.9 424 223.9L392 223.9C361.1 223.9 336 249 336 279.9L336 302.1L384 350.1zM445.5 411.6C465.7 403.2 480 383.2 480 359.9C480 346.6 469.3 335.9 456 335.9C442.7 335.9 432 346.6 432 359.9C432 364.3 428.4 367.9 424 367.9L401.8 367.9L445.5 411.6zM162.3 264.1C160.8 269.1 160 274.5 160 280L160 360C160 390.9 185.1 416 216 416L248 416C266.1 416 282.1 407.5 292.4 394.2L410.2 512L128 512C92.7 512 64 483.3 64 448L64 192C64 184.2 65.4 176.7 68 169.8L162.3 264.1zM256.1 357.9C256 358.6 256 359.3 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 309.8L256.1 357.9z\"/></svg>`,\n    compress: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z\"/></svg>`,\n    ellipsis: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M96 320C96 289.1 121.1 264 152 264C182.9 264 208 289.1 208 320C208 350.9 182.9 376 152 376C121.1 376 96 350.9 96 320zM264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320zM488 264C518.9 264 544 289.1 544 320C544 350.9 518.9 376 488 376C457.1 376 432 350.9 432 320C432 289.1 457.1 264 488 264z\"/></svg>`,\n    \"ellipsis-vertical\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z\"/></svg>`,\n    expand: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 96C110.3 96 96 110.3 96 128L96 224C96 241.7 110.3 256 128 256C145.7 256 160 241.7 160 224L160 160L224 160C241.7 160 256 145.7 256 128C256 110.3 241.7 96 224 96L128 96zM160 416C160 398.3 145.7 384 128 384C110.3 384 96 398.3 96 416L96 512C96 529.7 110.3 544 128 544L224 544C241.7 544 256 529.7 256 512C256 494.3 241.7 480 224 480L160 480L160 416zM416 96C398.3 96 384 110.3 384 128C384 145.7 398.3 160 416 160L480 160L480 224C480 241.7 494.3 256 512 256C529.7 256 544 241.7 544 224L544 128C544 110.3 529.7 96 512 96L416 96zM544 416C544 398.3 529.7 384 512 384C494.3 384 480 398.3 480 416L480 480L416 480C398.3 480 384 494.3 384 512C384 529.7 398.3 544 416 544L512 544C529.7 544 544 529.7 544 512L544 416z\"/></svg>`,\n    eyedropper: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z\"/></svg>`,\n    filter: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z\"/></svg>`,\n    forward: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M403.7 107.1C392.1 96 375 92.9 360.3 99.2C345.6 105.5 336 120 336 136L336 272.3L163.7 107.2C152.1 96 135 92.9 120.3 99.2C105.6 105.5 96 120 96 136L96 504C96 520 105.6 534.5 120.3 540.8C135 547.1 152.1 544 163.7 532.9L336 367.7L336 504C336 520 345.6 534.5 360.3 540.8C375 547.1 392.1 544 403.7 532.9L595.7 348.9C603.6 341.4 608 330.9 608 320C608 309.1 603.5 298.7 595.7 291.1L403.7 107.1z\"/></svg>`,\n    file: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z\"/></svg>`,\n    \"file-audio\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM389.8 307.7C380.7 301.4 368.3 303.6 362 312.7C355.7 321.8 357.9 334.2 367 340.5C390.9 357.2 406.4 384.8 406.4 416C406.4 447.2 390.8 474.9 367 491.5C357.9 497.8 355.7 510.3 362 519.3C368.3 528.3 380.8 530.6 389.8 524.3C423.9 500.5 446.4 460.8 446.4 416C446.4 371.2 424 331.5 389.8 307.7zM208 376C199.2 376 192 383.2 192 392L192 440C192 448.8 199.2 456 208 456L232 456L259.2 490C262.2 493.8 266.8 496 271.7 496L272 496C280.8 496 288 488.8 288 480L288 352C288 343.2 280.8 336 272 336L271.7 336C266.8 336 262.2 338.2 259.2 342L232 376L208 376zM336 448.2C336 458.9 346.5 466.4 354.9 459.8C367.8 449.5 376 433.7 376 416C376 398.3 367.8 382.5 354.9 372.2C346.5 365.5 336 373.1 336 383.8L336 448.3z\"/></svg>`,\n    \"file-code\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM282.2 359.6C290.8 349.5 289.7 334.4 279.6 325.8C269.5 317.2 254.4 318.3 245.8 328.4L197.8 384.4C190.1 393.4 190.1 406.6 197.8 415.6L245.8 471.6C254.4 481.7 269.6 482.8 279.6 474.2C289.6 465.6 290.8 450.4 282.2 440.4L247.6 400L282.2 359.6zM394.2 328.4C385.6 318.3 370.4 317.2 360.4 325.8C350.4 334.4 349.2 349.6 357.8 359.6L392.4 400L357.8 440.4C349.2 450.5 350.3 465.6 360.4 474.2C370.5 482.8 385.6 481.7 394.2 471.6L442.2 415.6C449.9 406.6 449.9 393.4 442.2 384.4L394.2 328.4z\"/></svg>`,\n    \"file-excel\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM292 330.7C284.6 319.7 269.7 316.7 258.7 324C247.7 331.3 244.7 346.3 252 357.3L291.2 416L252 474.7C244.6 485.7 247.6 500.6 258.7 508C269.8 515.4 284.6 512.4 292 501.3L320 459.3L348 501.3C355.4 512.3 370.3 515.3 381.3 508C392.3 500.7 395.3 485.7 388 474.7L348.8 416L388 357.3C395.4 346.3 392.4 331.4 381.3 324C370.2 316.6 355.4 319.6 348 330.7L320 372.7L292 330.7z\"/></svg>`,\n    \"file-image\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320C192 337.7 206.3 352 224 352C241.7 352 256 337.7 256 320zM220.6 512L419.4 512C435.2 512 448 499.2 448 483.4C448 476.1 445.2 469 440.1 463.7L343.3 361.9C337.3 355.6 328.9 352 320.1 352L319.8 352C311 352 302.7 355.6 296.6 361.9L199.9 463.7C194.8 469 192 476.1 192 483.4C192 499.2 204.8 512 220.6 512z\"/></svg>`,\n    \"file-pdf\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 64C92.7 64 64 92.7 64 128L64 512C64 547.3 92.7 576 128 576L208 576L208 464C208 428.7 236.7 400 272 400L448 400L448 234.5C448 217.5 441.3 201.2 429.3 189.2L322.7 82.7C310.7 70.7 294.5 64 277.5 64L128 64zM389.5 240L296 240C282.7 240 272 229.3 272 216L272 122.5L389.5 240zM272 444C261 444 252 453 252 464L252 592C252 603 261 612 272 612C283 612 292 603 292 592L292 564L304 564C337.1 564 364 537.1 364 504C364 470.9 337.1 444 304 444L272 444zM304 524L292 524L292 484L304 484C315 484 324 493 324 504C324 515 315 524 304 524zM400 444C389 444 380 453 380 464L380 592C380 603 389 612 400 612L432 612C460.7 612 484 588.7 484 560L484 496C484 467.3 460.7 444 432 444L400 444zM420 572L420 484L432 484C438.6 484 444 489.4 444 496L444 560C444 566.6 438.6 572 432 572L420 572zM508 464L508 592C508 603 517 612 528 612C539 612 548 603 548 592L548 548L576 548C587 548 596 539 596 528C596 517 587 508 576 508L548 508L548 484L576 484C587 484 596 475 596 464C596 453 587 444 576 444L528 444C517 444 508 453 508 464z\"/></svg>`,\n    \"file-powerpoint\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM280 320C266.7 320 256 330.7 256 344L256 488C256 501.3 266.7 512 280 512C293.3 512 304 501.3 304 488L304 464L328 464C367.8 464 400 431.8 400 392C400 352.2 367.8 320 328 320L280 320zM328 416L304 416L304 368L328 368C341.3 368 352 378.7 352 392C352 405.3 341.3 416 328 416z\"/></svg>`,\n    \"file-video\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM208 368L208 464C208 481.7 222.3 496 240 496L336 496C353.7 496 368 481.7 368 464L368 440L403 475C406.2 478.2 410.5 480 415 480C424.4 480 432 472.4 432 463L432 368.9C432 359.5 424.4 351.9 415 351.9C410.5 351.9 406.2 353.7 403 356.9L368 391.9L368 367.9C368 350.2 353.7 335.9 336 335.9L240 335.9C222.3 335.9 208 350.2 208 367.9z\"/></svg>`,\n    \"file-word\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM263.4 338.8C260.5 325.9 247.7 317.7 234.8 320.6C221.9 323.5 213.7 336.3 216.6 349.2L248.6 493.2C250.9 503.7 260 511.4 270.8 512C281.6 512.6 291.4 505.9 294.8 495.6L320 419.9L345.2 495.6C348.6 505.8 358.4 512.5 369.2 512C380 511.5 389.1 503.8 391.4 493.2L423.4 349.2C426.3 336.3 418.1 323.4 405.2 320.6C392.3 317.8 379.4 325.9 376.6 338.8L363.4 398.2L342.8 336.4C339.5 326.6 330.4 320 320 320C309.6 320 300.5 326.6 297.2 336.4L276.6 398.2L263.4 338.8z\"/></svg>`,\n    \"file-zipper\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM192 136C192 149.3 202.7 160 216 160L264 160C277.3 160 288 149.3 288 136C288 122.7 277.3 112 264 112L216 112C202.7 112 192 122.7 192 136zM192 232C192 245.3 202.7 256 216 256L264 256C277.3 256 288 245.3 288 232C288 218.7 277.3 208 264 208L216 208C202.7 208 192 218.7 192 232zM256 304L224 304C206.3 304 192 318.3 192 336L192 384C192 410.5 213.5 432 240 432C266.5 432 288 410.5 288 384L288 336C288 318.3 273.7 304 256 304zM240 368C248.8 368 256 375.2 256 384C256 392.8 248.8 400 240 400C231.2 400 224 392.8 224 384C224 375.2 231.2 368 240 368z\"/></svg>`,\n    \"forward-step\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M21 36.8c12.9-7 28.7-6.3 41 1.8L320 208.1 320 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 384c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-144.1-258 169.6c-12.3 8.1-28 8.8-41 1.8S0 454.7 0 440L0 72C0 57.3 8.1 43.8 21 36.8z\"/></svg>`,\n    gauge: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z\"/></svg>`,\n    gear: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 400C364.5 399.8 400.2 363.9 400 319.7C399.8 275.5 363.9 239.8 319.7 240C275.5 240.2 239.8 276.1 240 320.3C240.2 364.5 276.1 400.2 320.3 400z\"/></svg>`,\n    \"grip-vertical\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>`,\n    indeterminate: `<svg part=\"indeterminate-icon\" class=\"icon\" viewBox=\"0 0 16 16\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\"><g stroke=\"currentColor\" stroke-width=\"2\"><g transform=\"translate(2.285714 6.857143)\"><path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"/></g></g></g></svg>`,\n    \"magnifying-glass\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>`,\n    minus: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/></svg>`,\n    pause: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z\"/></svg>`,\n    \"picture-in-picture\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M448 32c35.3 0 64 28.7 64 64l0 112-64 0 0-112-384 0 0 320 144 0 0 64-144 0-6.5-.3c-30.1-3.1-54.1-27-57.1-57.1L0 416 0 96C0 62.9 25.2 35.6 57.5 32.3L64 32 448 32zm16 224c26.5 0 48 21.5 48 48l0 128c0 26.5-21.5 48-48 48l-160 0c-26.5 0-48-21.5-48-48l0-128c0-26.5 21.5-48 48-48l160 0z\"/></svg>`,\n    play: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z\"/></svg>`,\n    \"play-circle\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z\"/></svg>`,\n    plus: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z\"/></svg>`,\n    star: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>`,\n    \"table-columns\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z\"/></svg>`,\n    thumbtack: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M32 32C32 14.3 46.3 0 64 0L320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-29.5 0 10.3 134.1c37.1 21.2 65.8 56.4 78.2 99.7l3.8 13.4c2.8 9.7 .8 20-5.2 28.1S362 352 352 352L32 352c-10 0-19.5-4.7-25.5-12.7s-8-18.4-5.2-28.1L5 297.8c12.4-43.3 41-78.5 78.2-99.7L93.5 64 64 64C46.3 64 32 49.7 32 32zM160 400l64 0 0 112c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-112z\"/></svg>`,\n    \"up-down\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M406.6 502.6l96-96c9.2-9.2 11.9-22.9 6.9-34.9S492.9 352 480 352l-64 0 0-320c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 320-64 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l96 96c12.5 12.5 32.8 12.5 45.3 0zM150.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-9.2 9.2-11.9 22.9-6.9 34.9S19.1 160 32 160l64 0 0 320c0 17.7 14.3 32 32 32s32-14.3 32-32l0-320 64 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-96-96z\"/></svg>`,\n    upload: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M352 173.3L352 384C352 401.7 337.7 416 320 416C302.3 416 288 401.7 288 384L288 173.3L246.6 214.7C234.1 227.2 213.8 227.2 201.3 214.7C188.8 202.2 188.8 181.9 201.3 169.4L297.3 73.4C309.8 60.9 330.1 60.9 342.6 73.4L438.6 169.4C451.1 181.9 451.1 202.2 438.6 214.7C426.1 227.2 405.8 227.2 393.3 214.7L352 173.3zM320 464C364.2 464 400 428.2 400 384L480 384C515.3 384 544 412.7 544 448L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 448C96 412.7 124.7 384 160 384L240 384C240 428.2 275.8 464 320 464zM464 488C477.3 488 488 477.3 488 464C488 450.7 477.3 440 464 440C450.7 440 440 450.7 440 464C440 477.3 450.7 488 464 488z\"/></svg>`,\n    user: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z\"/></svg>`,\n    volume: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM441.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C443.3 170.7 464 210.9 464 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z\"/></svg>`,\n    \"volume-low\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM380.6 181.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z\"/></svg>`,\n    \"volume-xmark\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM367 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z\"/></svg>`,\n    xmark: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z\"/></svg>`\n  },\n  //\n  // Regular variant\n  //\n  regular: {\n    calendar: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M216 64C229.3 64 240 74.7 240 88L240 128L400 128L400 88C400 74.7 410.7 64 424 64C437.3 64 448 74.7 448 88L448 128L480 128C515.3 128 544 156.7 544 192L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 192C96 156.7 124.7 128 160 128L192 128L192 88C192 74.7 202.7 64 216 64zM216 176L160 176C151.2 176 144 183.2 144 192L144 240L496 240L496 192C496 183.2 488.8 176 480 176L216 176zM144 288L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 288L144 288z\"/></svg>`,\n    \"circle-question\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z\"/></svg>`,\n    \"circle-xmark\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z\"/></svg>`,\n    clock: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d=\"M528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320zM64 320C64 461.4 178.6 576 320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320zM296 184L296 320C296 328 300 335.5 306.7 340L402.7 404C413.7 411.4 428.6 408.4 436 397.3C443.4 386.2 440.4 371.4 429.3 364L344 307.2L344 184C344 170.7 333.3 160 320 160C306.7 160 296 170.7 296 184z\"/></svg>`,\n    copy: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z\"/></svg>`,\n    eye: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z\"/></svg>`,\n    \"eye-slash\": `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z\"/></svg>`,\n    star: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path d=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>`\n  }\n};\nvar systemLibrary = {\n  name: \"system\",\n  resolver: (name, _family = \"classic\", variant = \"solid\") => {\n    let collection = icons[variant];\n    let svg = collection[name] ?? icons.regular[name] ?? icons.regular[\"circle-question\"];\n    if (svg) {\n      return dataUri(svg);\n    }\n    return \"\";\n  },\n  mutator: (svg) => {\n    if (!svg.hasAttribute(\"fill\")) {\n      svg.setAttribute(\"fill\", \"currentColor\");\n    }\n  }\n};\nvar library_system_default = systemLibrary;\n\nexport {\n  icons,\n  library_system_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  library_default_default\n} from \"./chunk.KKI7M5DP.js\";\nimport {\n  library_system_default\n} from \"./chunk.YPRC5XZF.js\";\n\n// src/components/icon/library.ts\nvar defaultIconFamily = \"classic\";\nvar registry = [library_default_default, library_system_default];\nvar watchedIcons = /* @__PURE__ */ new Set();\nfunction watchIcon(icon) {\n  watchedIcons.add(icon);\n}\nfunction unwatchIcon(icon) {\n  watchedIcons.delete(icon);\n}\nfunction getIconLibrary(name) {\n  return registry.find((lib) => lib.name === name);\n}\nfunction registerIconLibrary(name, options) {\n  unregisterIconLibrary(name);\n  registry.push({\n    name,\n    resolver: options.resolver,\n    mutator: options.mutator,\n    spriteSheet: options.spriteSheet\n  });\n  watchedIcons.forEach((icon) => {\n    if (icon.library === name) {\n      icon.setIcon();\n    }\n  });\n}\nfunction unregisterIconLibrary(name) {\n  registry = registry.filter((lib) => lib.name !== name);\n}\nfunction setDefaultIconFamily(family) {\n  defaultIconFamily = family;\n  watchedIcons.forEach((icon) => icon.setIcon());\n}\nfunction getDefaultIconFamily() {\n  return defaultIconFamily;\n}\n\nexport {\n  watchIcon,\n  unwatchIcon,\n  getIconLibrary,\n  registerIconLibrary,\n  unregisterIconLibrary,\n  setDefaultIconFamily,\n  getDefaultIconFamily\n};\n", "/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {\n  _$LH,\n  Part,\n  DirectiveParent,\n  CompiledTemplateResult,\n  MaybeCompiledTemplateResult,\n  UncompiledTemplateResult,\n} from './lit-html.js';\nimport {\n  DirectiveResult,\n  DirectiveClass,\n  PartInfo,\n  AttributePartInfo,\n} from './directive.js';\ntype Primitive = null | undefined | boolean | number | string | symbol | bigint;\n\nconst {_ChildPart: ChildPart} = _$LH;\n\ntype ChildPart = InstanceType<typeof ChildPart>;\n\nconst ENABLE_SHADYDOM_NOPATCH = true;\n\nconst wrap =\n  ENABLE_SHADYDOM_NOPATCH &&\n  window.ShadyDOM?.inUse &&\n  window.ShadyDOM?.noPatch === true\n    ? window.ShadyDOM!.wrap\n    : (node: Node) => node;\n\n/**\n * Tests if a value is a primitive value.\n *\n * See https://tc39.github.io/ecma262/#sec-typeof-operator\n */\nexport const isPrimitive = (value: unknown): value is Primitive =>\n  value === null || (typeof value != 'object' && typeof value != 'function');\n\nexport const TemplateResultType = {\n  HTML: 1,\n  SVG: 2,\n  MATHML: 3,\n} as const;\n\nexport type TemplateResultType =\n  (typeof TemplateResultType)[keyof typeof TemplateResultType];\n\ntype IsTemplateResult = {\n  (val: unknown): val is MaybeCompiledTemplateResult;\n  <T extends TemplateResultType>(\n    val: unknown,\n    type: T\n  ): val is UncompiledTemplateResult<T>;\n};\n\n/**\n * Tests if a value is a TemplateResult or a CompiledTemplateResult.\n */\nexport const isTemplateResult: IsTemplateResult = (\n  value: unknown,\n  type?: TemplateResultType\n): value is UncompiledTemplateResult =>\n  type === undefined\n    ? // This property needs to remain unminified.\n      (value as UncompiledTemplateResult)?.['_$litType$'] !== undefined\n    : (value as UncompiledTemplateResult)?.['_$litType$'] === type;\n\n/**\n * Tests if a value is a CompiledTemplateResult.\n */\nexport const isCompiledTemplateResult = (\n  value: unknown\n): value is CompiledTemplateResult => {\n  return (value as CompiledTemplateResult)?.['_$litType$']?.h != null;\n};\n\n/**\n * Tests if a value is a DirectiveResult.\n */\nexport const isDirectiveResult = (value: unknown): value is DirectiveResult =>\n  // This property needs to remain unminified.\n  (value as DirectiveResult)?.['_$litDirective$'] !== undefined;\n\n/**\n * Retrieves the Directive class for a DirectiveResult\n */\nexport const getDirectiveClass = (value: unknown): DirectiveClass | undefined =>\n  // This property needs to remain unminified.\n  (value as DirectiveResult)?.['_$litDirective$'];\n\n/**\n * Tests whether a part has only a single-expression with no strings to\n * interpolate between.\n *\n * Only AttributePart and PropertyPart can have multiple expressions.\n * Multi-expression parts have a `strings` property and single-expression\n * parts do not.\n */\nexport const isSingleExpression = (part: PartInfo) =>\n  (part as AttributePartInfo).strings === undefined;\n\nconst createMarker = () => document.createComment('');\n\n/**\n * Inserts a ChildPart into the given container ChildPart's DOM, either at the\n * end of the container ChildPart, or before the optional `refPart`.\n *\n * This does not add the part to the containerPart's committed value. That must\n * be done by callers.\n *\n * @param containerPart Part within which to add the new ChildPart\n * @param refPart Part before which to add the new ChildPart; when omitted the\n *     part added to the end of the `containerPart`\n * @param part Part to insert, or undefined to create a new part\n */\nexport const insertPart = (\n  containerPart: ChildPart,\n  refPart?: ChildPart,\n  part?: ChildPart\n): ChildPart => {\n  const container = wrap(containerPart._$startNode).parentNode!;\n\n  const refNode =\n    refPart === undefined ? containerPart._$endNode : refPart._$startNode;\n\n  if (part === undefined) {\n    const startNode = wrap(container).insertBefore(createMarker(), refNode);\n    const endNode = wrap(container).insertBefore(createMarker(), refNode);\n    part = new ChildPart(\n      startNode,\n      endNode,\n      containerPart,\n      containerPart.options\n    );\n  } else {\n    const endNode = wrap(part._$endNode!).nextSibling;\n    const oldParent = part._$parent;\n    const parentChanged = oldParent !== containerPart;\n    if (parentChanged) {\n      part._$reparentDisconnectables?.(containerPart);\n      // Note that although `_$reparentDisconnectables` updates the part's\n      // `_$parent` reference after unlinking from its current parent, that\n      // method only exists if Disconnectables are present, so we need to\n      // unconditionally set it here\n      part._$parent = containerPart;\n      // Since the _$isConnected getter is somewhat costly, only\n      // read it once we know the subtree has directives that need\n      // to be notified\n      let newConnectionState;\n      if (\n        part._$notifyConnectionChanged !== undefined &&\n        (newConnectionState = containerPart._$isConnected) !==\n          oldParent!._$isConnected\n      ) {\n        part._$notifyConnectionChanged(newConnectionState);\n      }\n    }\n    if (endNode !== refNode || parentChanged) {\n      let start: Node | null = part._$startNode;\n      while (start !== endNode) {\n        const n: Node | null = wrap(start!).nextSibling;\n        wrap(container).insertBefore(start!, refNode);\n        start = n;\n      }\n    }\n  }\n\n  return part;\n};\n\n/**\n * Sets the value of a Part.\n *\n * Note that this should only be used to set/update the value of user-created\n * parts (i.e. those created using `insertPart`); it should not be used\n * by directives to set the value of the directive's container part. Directives\n * should return a value from `update`/`render` to update their part state.\n *\n * For directives that require setting their part value asynchronously, they\n * should extend `AsyncDirective` and call `this.setValue()`.\n *\n * @param part Part to set\n * @param value Value to set\n * @param index For `AttributePart`s, the index to set\n * @param directiveParent Used internally; should not be set by user\n */\nexport const setChildPartValue = <T extends ChildPart>(\n  part: T,\n  value: unknown,\n  directiveParent: DirectiveParent = part\n): T => {\n  part._$setValue(value, directiveParent);\n  return part;\n};\n\n// A sentinel value that can never appear as a part value except when set by\n// live(). Used to force a dirty-check to fail and cause a re-render.\nconst RESET_VALUE = {};\n\n/**\n * Sets the committed value of a ChildPart directly without triggering the\n * commit stage of the part.\n *\n * This is useful in cases where a directive needs to update the part such\n * that the next update detects a value change or not. When value is omitted,\n * the next update will be guaranteed to be detected as a change.\n *\n * @param part\n * @param value\n */\nexport const setCommittedValue = (part: Part, value: unknown = RESET_VALUE) =>\n  (part._$committedValue = value);\n\n/**\n * Returns the committed value of a ChildPart.\n *\n * The committed value is used for change detection and efficient updates of\n * the part. It can differ from the value set by the template or directive in\n * cases where the template value is transformed before being committed.\n *\n * - `TemplateResult`s are committed as a `TemplateInstance`\n * - Iterables are committed as `Array<ChildPart>`\n * - All other types are committed as the template value or value returned or\n *   set by a directive.\n *\n * @param part\n */\nexport const getCommittedValue = (part: ChildPart) => part._$committedValue;\n\n/**\n * Removes a ChildPart from the DOM, including any of its content and markers.\n *\n * Note: The only difference between this and clearPart() is that this also\n * removes the part's start node. This means that the ChildPart must own its\n * start node, ie it must be a marker node specifically for this part and not an\n * anchor from surrounding content.\n *\n * @param part The Part to remove\n */\nexport const removePart = (part: ChildPart) => {\n  part._$clear();\n  part._$startNode.remove();\n};\n\nexport const clearPart = (part: ChildPart) => {\n  part._$clear();\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  WaErrorEvent\n} from \"./chunk.YDQCS2HK.js\";\nimport {\n  WaLoadEvent\n} from \"./chunk.WDIIGUNP.js\";\nimport {\n  icon_styles_default\n} from \"./chunk.O74G5RVH.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  getDefaultIconFamily,\n  getIconLibrary,\n  unwatchIcon,\n  watchIcon\n} from \"./chunk.UDRJMWVZ.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/icon/icon.ts\nimport { html } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators.js\";\nimport { isTemplateResult } from \"lit/directive-helpers.js\";\nvar CACHEABLE_ERROR = Symbol();\nvar RETRYABLE_ERROR = Symbol();\nvar parser;\nvar iconCache = /* @__PURE__ */ new Map();\nvar WaIcon = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    this.svg = null;\n    this.autoWidth = false;\n    this.swapOpacity = false;\n    this.label = \"\";\n    this.library = \"default\";\n    this.rotate = 0;\n    /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n    this.resolveIcon = async (url, library) => {\n      let fileData;\n      if (library?.spriteSheet) {\n        if (!this.hasUpdated) {\n          await this.updateComplete;\n        }\n        this.svg = html`<svg part=\"svg\">\n        <use part=\"use\" href=\"${url}\"></use>\n      </svg>`;\n        await this.updateComplete;\n        const svg = this.shadowRoot.querySelector(\"[part='svg']\");\n        if (typeof library.mutator === \"function\") {\n          library.mutator(svg, this);\n        }\n        return this.svg;\n      }\n      try {\n        fileData = await fetch(url, { mode: \"cors\" });\n        if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n      } catch {\n        return RETRYABLE_ERROR;\n      }\n      try {\n        const div = document.createElement(\"div\");\n        div.innerHTML = await fileData.text();\n        const svg = div.firstElementChild;\n        if (svg?.tagName?.toLowerCase() !== \"svg\") return CACHEABLE_ERROR;\n        if (!parser) parser = new DOMParser();\n        const doc = parser.parseFromString(svg.outerHTML, \"text/html\");\n        const svgEl = doc.body.querySelector(\"svg\");\n        if (!svgEl) return CACHEABLE_ERROR;\n        svgEl.part.add(\"svg\");\n        return document.adoptNode(svgEl);\n      } catch {\n        return CACHEABLE_ERROR;\n      }\n    };\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    watchIcon(this);\n  }\n  firstUpdated(changedProperties) {\n    super.firstUpdated(changedProperties);\n    if (this.hasAttribute(\"rotate\")) {\n      this.style.setProperty(\"--rotate-angle\", `${this.rotate}deg`);\n    }\n    this.setIcon();\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    unwatchIcon(this);\n  }\n  async getIconSource() {\n    const library = getIconLibrary(this.library);\n    const family = this.family || getDefaultIconFamily();\n    if (this.name && library) {\n      const autoWidth = this.canvas === \"auto\" || this.autoWidth;\n      let url;\n      try {\n        url = await library.resolver(this.name, family, this.variant, autoWidth);\n      } catch {\n        url = void 0;\n      }\n      return { url, fromLibrary: true };\n    }\n    return {\n      url: this.src,\n      fromLibrary: false\n    };\n  }\n  handleLabelChange() {\n    const hasLabel = typeof this.label === \"string\" && this.label.length > 0;\n    if (hasLabel) {\n      this.setAttribute(\"role\", \"img\");\n      this.setAttribute(\"aria-label\", this.label);\n      this.removeAttribute(\"aria-hidden\");\n    } else {\n      this.removeAttribute(\"role\");\n      this.removeAttribute(\"aria-label\");\n      this.setAttribute(\"aria-hidden\", \"true\");\n    }\n  }\n  async setIcon() {\n    const { url, fromLibrary } = await this.getIconSource();\n    const library = fromLibrary ? getIconLibrary(this.library) : void 0;\n    if (!url) {\n      this.svg = null;\n      return;\n    }\n    let iconResolver = iconCache.get(url);\n    if (!iconResolver) {\n      iconResolver = this.resolveIcon(url, library);\n      iconCache.set(url, iconResolver);\n    }\n    const svg = await iconResolver;\n    if (svg === RETRYABLE_ERROR) {\n      iconCache.delete(url);\n    }\n    const sourceAfterFetch = await this.getIconSource();\n    if (url !== sourceAfterFetch.url) {\n      return;\n    }\n    if (isTemplateResult(svg)) {\n      this.svg = svg;\n      return;\n    }\n    switch (svg) {\n      case RETRYABLE_ERROR:\n      case CACHEABLE_ERROR:\n        this.svg = null;\n        this.dispatchEvent(new WaErrorEvent());\n        break;\n      default:\n        this.svg = svg.cloneNode(true);\n        library?.mutator?.(this.svg, this);\n        this.dispatchEvent(new WaLoadEvent());\n    }\n  }\n  willUpdate(changedProperties) {\n    if (!this.style) {\n      this.setStyleProperty(\"--rotate-angle\", `${this.rotate}deg`);\n    }\n    return super.willUpdate(changedProperties);\n  }\n  updated(changedProperties) {\n    super.updated(changedProperties);\n    const library = getIconLibrary(this.library);\n    if (this.hasAttribute(\"rotate\")) {\n      this.style.setProperty(\"--rotate-angle\", `${this.rotate}deg`);\n    }\n    const svg = this.shadowRoot?.querySelector(\"svg\");\n    if (svg) {\n      library?.mutator?.(svg, this);\n    }\n  }\n  render() {\n    if (this.hasUpdated) {\n      return this.svg;\n    }\n    return html`<svg part=\"svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"></svg>`;\n  }\n};\nWaIcon.css = icon_styles_default;\n__decorateClass([\n  state()\n], WaIcon.prototype, \"svg\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaIcon.prototype, \"name\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaIcon.prototype, \"family\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaIcon.prototype, \"variant\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaIcon.prototype, \"canvas\", 2);\n__decorateClass([\n  property({ attribute: \"auto-width\", type: Boolean, reflect: true })\n], WaIcon.prototype, \"autoWidth\", 2);\n__decorateClass([\n  property({ attribute: \"swap-opacity\", type: Boolean, reflect: true })\n], WaIcon.prototype, \"swapOpacity\", 2);\n__decorateClass([\n  property()\n], WaIcon.prototype, \"src\", 2);\n__decorateClass([\n  property()\n], WaIcon.prototype, \"label\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaIcon.prototype, \"library\", 2);\n__decorateClass([\n  property({ type: Number, reflect: true })\n], WaIcon.prototype, \"rotate\", 2);\n__decorateClass([\n  property({ type: String, reflect: true })\n], WaIcon.prototype, \"flip\", 2);\n__decorateClass([\n  property({ type: String, reflect: true })\n], WaIcon.prototype, \"animation\", 2);\n__decorateClass([\n  watch(\"label\")\n], WaIcon.prototype, \"handleLabelChange\", 1);\n__decorateClass([\n  watch([\"family\", \"name\", \"library\", \"variant\", \"src\", \"autoWidth\", \"canvas\", \"swapOpacity\"], {\n    waitUntilFirstUpdate: true\n  })\n], WaIcon.prototype, \"setIcon\", 1);\nWaIcon = __decorateClass([\n  customElement(\"wa-icon\")\n], WaIcon);\n\nexport {\n  WaIcon\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/checkbox/checkbox.styles.ts\nimport { css } from \"lit\";\nvar checkbox_styles_default = css`\n  :host {\n    --checked-icon-color: var(--wa-color-brand-on-loud);\n    --checked-icon-scale: 0.8;\n\n    display: inline-flex;\n    color: var(--wa-form-control-value-color);\n    font-family: inherit;\n    font-weight: var(--wa-form-control-value-font-weight);\n    line-height: var(--wa-form-control-value-line-height);\n    user-select: none;\n    -webkit-user-select: none;\n  }\n\n  [part~='control'] {\n    display: inline-flex;\n    flex: 0 0 auto;\n    position: relative;\n    align-items: center;\n    justify-content: center;\n    width: var(--wa-form-control-toggle-size);\n    height: var(--wa-form-control-toggle-size);\n    border-color: var(--wa-form-control-border-color);\n    border-radius: min(\n      calc(var(--wa-form-control-toggle-size) * 0.375),\n      var(--wa-border-radius-s)\n    ); /* min prevents entirely circular checkbox */\n    border-style: var(--wa-border-style);\n    border-width: var(--wa-form-control-border-width);\n    background-color: var(--wa-form-control-background-color);\n    transition:\n      background var(--wa-transition-normal),\n      border-color var(--wa-transition-fast),\n      box-shadow var(--wa-transition-fast),\n      color var(--wa-transition-fast);\n    transition-timing-function: var(--wa-transition-easing);\n\n    margin-inline-end: 0.5em;\n  }\n\n  [part~='base'] {\n    display: flex;\n    align-items: flex-start;\n    position: relative;\n    color: currentColor;\n    vertical-align: middle;\n    cursor: pointer;\n  }\n\n  [part~='label'] {\n    display: inline;\n  }\n\n  /* Checked */\n  [part~='control']:has(:checked, :indeterminate) {\n    color: var(--checked-icon-color);\n    border-color: var(--wa-form-control-activated-color);\n    background-color: var(--wa-form-control-activated-color);\n  }\n\n  /* Focus */\n  [part~='control']:has(> input:focus-visible:not(:disabled)) {\n    outline: var(--wa-focus-ring);\n    outline-offset: var(--wa-focus-ring-offset);\n  }\n\n  /* Disabled */\n  :host [part~='base']:has(input:disabled) {\n    opacity: 0.5;\n    cursor: not-allowed;\n  }\n\n  input {\n    position: absolute;\n    padding: 0;\n    margin: 0;\n    height: 100%;\n    width: 100%;\n    opacity: 0;\n    pointer-events: none;\n  }\n\n  [part~='icon'] {\n    display: flex;\n    scale: var(--checked-icon-scale);\n\n    /* Without this, Safari renders the icon slightly to the left */\n    &::part(svg) {\n      translate: 0.0009765625em;\n    }\n\n    input:not(:checked, :indeterminate) + & {\n      visibility: hidden;\n    }\n  }\n\n  :host([required]) [part~='label']::after {\n    content: var(--wa-form-control-required-content);\n    color: var(--wa-form-control-required-content-color);\n    margin-inline-start: var(--wa-form-control-required-content-offset);\n  }\n`;\n\nexport {\n  checkbox_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/validators/required-validator.ts\nvar RequiredValidator = (options = {}) => {\n  let { validationElement, validationProperty } = options;\n  if (!validationElement) {\n    if (typeof document !== \"undefined\" && \"createElement\" in document) {\n      validationElement = Object.assign(document.createElement(\"input\"), { required: true });\n    }\n  }\n  if (!validationProperty) {\n    validationProperty = \"value\";\n  }\n  const obj = {\n    observedAttributes: [\"required\"],\n    message: validationElement?.validationMessage,\n    // @TODO: Add a translation.\n    checkValidity(element) {\n      const validity = {\n        message: \"\",\n        isValid: true,\n        invalidKeys: []\n      };\n      const isRequired = element.required ?? element.hasAttribute(\"required\");\n      if (!isRequired) {\n        return validity;\n      }\n      const value = element[validationProperty];\n      const isEmpty = !value;\n      if (isEmpty) {\n        validity.message = typeof obj.message === \"function\" ? obj.message(element) : obj.message || \"\";\n        validity.isValid = false;\n        validity.invalidKeys.push(\"valueMissing\");\n      }\n      return validity;\n    }\n  };\n  return obj;\n};\n\nexport {\n  RequiredValidator\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/styles/component/form-control.styles.ts\nimport { css } from \"lit\";\nvar form_control_styles_default = css`\n  :host {\n    display: flex;\n    flex-direction: column;\n  }\n\n  /* Treat wrapped labels, inputs, and hints as direct children of the host element */\n  [part~='form-control'] {\n    display: contents;\n  }\n\n  /* Label */\n  :is([part~='form-control-label'], [part~='label']):has(*:not(:empty)),\n  :is([part~='form-control-label'], [part~='label']).has-label {\n    display: inline-flex;\n    color: var(--wa-form-control-label-color);\n    font-weight: var(--wa-form-control-label-font-weight);\n    line-height: var(--wa-form-control-label-line-height);\n    margin-block-end: 0.5em;\n  }\n\n  :host([required]) :is([part~='form-control-label'], [part~='label'])::after {\n    content: var(--wa-form-control-required-content);\n    margin-inline-start: var(--wa-form-control-required-content-offset);\n    color: var(--wa-form-control-required-content-color);\n  }\n\n  /* Help text */\n  [part~='hint'] {\n    display: block;\n    color: var(--wa-form-control-hint-color);\n    font-weight: var(--wa-form-control-hint-font-weight);\n    line-height: var(--wa-form-control-hint-line-height);\n    margin-block-start: 0.5em;\n    font-size: var(--wa-font-size-smaller);\n\n    &:not(.has-slotted, .has-hint, .has-count) {\n      display: none;\n    }\n  }\n`;\n\nexport {\n  form_control_styles_default\n};\n", "/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {AttributePart, noChange, nothing} from '../lit-html.js';\nimport {\n  directive,\n  Directive,\n  DirectiveParameters,\n  DirectiveResult,\n  PartInfo,\n  PartType,\n} from '../directive.js';\nimport {isSingleExpression, setCommittedValue} from '../directive-helpers.js';\n\nclass LiveDirective<T> extends Directive {\n  constructor(partInfo: PartInfo) {\n    super(partInfo);\n    if (\n      !(\n        partInfo.type === PartType.PROPERTY ||\n        partInfo.type === PartType.ATTRIBUTE ||\n        partInfo.type === PartType.BOOLEAN_ATTRIBUTE\n      )\n    ) {\n      throw new Error(\n        'The `live` directive is not allowed on child or event bindings'\n      );\n    }\n    if (!isSingleExpression(partInfo)) {\n      throw new Error('`live` bindings can only contain a single expression');\n    }\n  }\n\n  render(value: T): T {\n    return value;\n  }\n\n  override update(part: AttributePart, [value]: DirectiveParameters<this>) {\n    if (value === noChange || value === nothing) {\n      return value;\n    }\n    const element = part.element;\n    const name = part.name;\n\n    if (part.type === PartType.PROPERTY) {\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      if (value === (element as any)[name]) {\n        return noChange;\n      }\n    } else if (part.type === PartType.BOOLEAN_ATTRIBUTE) {\n      if (!!value === element.hasAttribute(name)) {\n        return noChange;\n      }\n    } else if (part.type === PartType.ATTRIBUTE) {\n      if (element.getAttribute(name) === String(value)) {\n        return noChange;\n      }\n    }\n    // Resets the part's value, causing its dirty-check to fail so that it\n    // always sets the value.\n    setCommittedValue(part);\n    return value;\n  }\n}\n\ninterface Live {\n  <T>(value: T): DirectiveResult<typeof LiveDirective<T>>;\n}\n\n/**\n * Checks binding values against live DOM values, instead of previously bound\n * values, when determining whether to update the value.\n *\n * This is useful for cases where the DOM value may change from outside of\n * lit-html, such as with a binding to an `<input>` element's `value` property,\n * a content editable elements text, or to a custom element that changes it's\n * own properties or attributes.\n *\n * In these cases if the DOM value changes, but the value set through lit-html\n * bindings hasn't, lit-html won't know to update the DOM value and will leave\n * it alone. If this is not what you want--if you want to overwrite the DOM\n * value with the bound value no matter what--use the `live()` directive:\n *\n * ```js\n * html`<input .value=${live(x)}>`\n * ```\n *\n * `live()` performs a strict equality check against the live DOM value, and if\n * the new value is equal to the live value, does nothing. This means that\n * `live()` should not be used when the binding will cause a type conversion. If\n * you use `live()` with an attribute binding, make sure that only strings are\n * passed in, or the binding will update every render.\n */\nexport const live: Live = directive(LiveDirective);\n\n/**\n * The type of the class that powers this directive. Necessary for naming the\n * directive's return type.\n */\nexport type {LiveDirective};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  checkbox_styles_default\n} from \"./chunk.YB6263IP.js\";\nimport {\n  RequiredValidator\n} from \"./chunk.GWSUX3V5.js\";\nimport {\n  form_control_styles_default\n} from \"./chunk.JPBXG7RE.js\";\nimport {\n  WebAwesomeFormAssociatedElement\n} from \"./chunk.KBXNFZQL.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/checkbox/checkbox.ts\nimport { html, isServer } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { live } from \"lit/directives/live.js\";\nvar WaCheckbox = class extends WebAwesomeFormAssociatedElement {\n  constructor() {\n    super(...arguments);\n    this.hasSlotController = new HasSlotController(this, \"hint\");\n    this.title = \"\";\n    // make reactive to pass through\n    this._value = this.getAttribute(\"value\") ?? null;\n    this.size = \"m\";\n    this.disabled = false;\n    this.indeterminate = false;\n    this._checked = null;\n    this.defaultChecked = this.hasAttribute(\"checked\");\n    this.required = false;\n    this.hint = \"\";\n  }\n  static get validators() {\n    const validators = isServer ? [] : [\n      RequiredValidator({\n        validationProperty: \"checked\",\n        // Use a checkbox so we get \"free\" translation strings.\n        validationElement: Object.assign(document.createElement(\"input\"), {\n          type: \"checkbox\",\n          required: true\n        })\n      })\n    ];\n    return [...super.validators, ...validators];\n  }\n  /** The value of the checkbox, submitted as a name/value pair with form data. */\n  get value() {\n    return this._value ?? \"on\";\n  }\n  set value(val) {\n    this._value = val;\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  get checked() {\n    if (this.valueHasChanged) {\n      return Boolean(this._checked);\n    }\n    return this._checked ?? this.defaultChecked;\n  }\n  set checked(val) {\n    this._checked = Boolean(val);\n    this.valueHasChanged = true;\n  }\n  handleClick() {\n    this.hasInteracted = true;\n    this.checked = !this.checked;\n    this.indeterminate = false;\n    this.updateComplete.then(() => {\n      this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n    });\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.handleDefaultCheckedChange();\n      });\n      return;\n    }\n    this.handleDefaultCheckedChange();\n  }\n  handleDefaultCheckedChange() {\n    this.handleValueOrCheckedChange();\n  }\n  handleValueOrCheckedChange() {\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.handleValueOrCheckedChange();\n      });\n      return;\n    }\n    this.setValue(this.checked ? this.value : null, this._value);\n    this.updateValidity();\n  }\n  handleStateChange() {\n    if (this.hasUpdated) {\n      this.input.checked = this.checked;\n      this.input.indeterminate = this.indeterminate;\n    }\n    this.customStates.set(\"checked\", this.checked);\n    this.customStates.set(\"indeterminate\", this.indeterminate);\n    this.updateValidity();\n  }\n  handleDisabledChange() {\n    this.customStates.set(\"disabled\", this.disabled);\n  }\n  willUpdate(changedProperties) {\n    super.willUpdate(changedProperties);\n    if (changedProperties.has(\"value\") || changedProperties.has(\"checked\") || changedProperties.has(\"defaultChecked\") || changedProperties.has(\"disabled\")) {\n      this.handleValueOrCheckedChange();\n    }\n  }\n  formResetCallback() {\n    this._checked = null;\n    super.formResetCallback();\n    this.handleValueOrCheckedChange();\n  }\n  /** Simulates a click on the checkbox. */\n  click() {\n    this.input.click();\n  }\n  /** Sets focus on the checkbox. */\n  focus(options) {\n    this.input.focus(options);\n  }\n  /** Removes focus from the checkbox. */\n  blur() {\n    this.input.blur();\n  }\n  render() {\n    const hasHintSlot = isServer ? true : this.hasSlotController.test(\"hint\");\n    const hasHint = this.hint ? true : !!hasHintSlot;\n    const isIndeterminate = !this.checked && this.indeterminate;\n    const iconName = isIndeterminate ? \"indeterminate\" : \"check\";\n    const iconState = isIndeterminate ? \"indeterminate\" : \"checked\";\n    const checkedAttribute = this.didSSR && !this.hasUpdated ? this.checked : this.defaultChecked;\n    const checkedProperty = this.didSSR && !this.hasUpdated ? null : live(this.checked);\n    return html`\n      <label part=\"base checkbox\">\n        <span part=\"control\">\n          <input\n            class=\"input\"\n            type=\"checkbox\"\n            title=${this.title}\n            name=${ifDefined(this.name)}\n            value=${ifDefined(this.value)}\n            .indeterminate=${live(this.indeterminate)}\n            .checked=${ifDefined(checkedProperty)}\n            ?checked=${checkedAttribute}\n            ?disabled=${this.disabled}\n            ?required=${this.required}\n            aria-checked=${this.indeterminate ? \"mixed\" : this.checked ? \"true\" : \"false\"}\n            aria-describedby=\"hint\"\n            @click=${this.handleClick}\n          />\n\n          <wa-icon part=\"${iconState}-icon icon\" library=\"system\" name=${iconName}></wa-icon>\n        </span>\n\n        <slot part=\"label\"></slot>\n      </label>\n\n      <slot\n        id=\"hint\"\n        part=\"hint\"\n        name=\"hint\"\n        aria-hidden=${hasHint ? \"false\" : \"true\"}\n        class=\"${classMap({ \"has-slotted\": hasHint })}\"\n      >\n        ${this.hint}\n      </slot>\n    `;\n  }\n};\nWaCheckbox.css = [form_control_styles_default, size_styles_default, checkbox_styles_default];\nWaCheckbox.shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n__decorateClass([\n  query('input[type=\"checkbox\"]')\n], WaCheckbox.prototype, \"input\", 2);\n__decorateClass([\n  property()\n], WaCheckbox.prototype, \"title\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaCheckbox.prototype, \"value\", 1);\n__decorateClass([\n  property({ reflect: true })\n], WaCheckbox.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaCheckbox.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property({ type: Boolean })\n], WaCheckbox.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaCheckbox.prototype, \"indeterminate\", 2);\n__decorateClass([\n  property({ type: Boolean, attribute: false })\n], WaCheckbox.prototype, \"checked\", 1);\n__decorateClass([\n  property({ type: Boolean, reflect: true, attribute: \"checked\" })\n], WaCheckbox.prototype, \"defaultChecked\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaCheckbox.prototype, \"required\", 2);\n__decorateClass([\n  property()\n], WaCheckbox.prototype, \"hint\", 2);\n__decorateClass([\n  watch([\"checked\", \"defaultChecked\"])\n], WaCheckbox.prototype, \"handleDefaultCheckedChange\", 1);\n__decorateClass([\n  watch([\"checked\", \"indeterminate\"])\n], WaCheckbox.prototype, \"handleStateChange\", 1);\n__decorateClass([\n  watch(\"disabled\")\n], WaCheckbox.prototype, \"handleDisabledChange\", 1);\nWaCheckbox = __decorateClass([\n  customElement(\"wa-checkbox\")\n], WaCheckbox);\nWaCheckbox.disableWarning?.(\"change-in-update\");\n\nexport {\n  WaCheckbox\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/rendered-watcher.ts\nimport { isServer } from \"lit\";\nvar RenderedWatcher = class {\n  constructor(element, callback) {\n    this.element = element;\n    this.callback = callback;\n  }\n  /**\n   * Starts watching and reports the current state on the next frame. Additional targets also act as change signals,\n   * e.g. an internal element that always has a non-zero box when rendered.\n   */\n  start(...additionalTargets) {\n    if (isServer) {\n      return;\n    }\n    this.observer ?? (this.observer = new ResizeObserver(() => this.check()));\n    this.observer.observe(this.element);\n    for (const target of additionalTargets) {\n      this.observer.observe(target);\n    }\n    this.initialCheckHandle ?? (this.initialCheckHandle = requestAnimationFrame(() => {\n      this.initialCheckHandle = void 0;\n      this.check();\n    }));\n  }\n  /** Stops watching. */\n  stop() {\n    if (this.initialCheckHandle !== void 0) {\n      cancelAnimationFrame(this.initialCheckHandle);\n      this.initialCheckHandle = void 0;\n    }\n    this.observer?.disconnect();\n  }\n  check() {\n    this.callback(this.element.getClientRects().length > 0);\n  }\n};\n\nexport {\n  RenderedWatcher\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/offset.ts\nfunction getOffset(element, parent) {\n  return {\n    top: Math.round(element.getBoundingClientRect().top - parent.getBoundingClientRect().top),\n    left: Math.round(element.getBoundingClientRect().left - parent.getBoundingClientRect().left)\n  };\n}\nfunction isEventInsideRect(event, el) {\n  const rect = el.getBoundingClientRect();\n  return event.clientX >= rect.left && event.clientX <= rect.right && event.clientY >= rect.top && event.clientY <= rect.bottom;\n}\n\n// src/internal/scroll.ts\nvar locks = /* @__PURE__ */ new Set();\nfunction getScrollbarWidth() {\n  const documentWidth = document.documentElement.clientWidth;\n  return Math.abs(window.innerWidth - documentWidth);\n}\nfunction getExistingBodyPadding() {\n  const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, \"\"));\n  if (isNaN(padding) || !padding) {\n    return 0;\n  }\n  return padding;\n}\nfunction lockBodyScrolling(lockingEl) {\n  locks.add(lockingEl);\n  if (!document.documentElement.classList.contains(\"wa-scroll-lock\")) {\n    const scrollbarWidth = getScrollbarWidth() + getExistingBodyPadding();\n    let scrollbarGutterProperty = getComputedStyle(document.documentElement).scrollbarGutter;\n    if (!scrollbarGutterProperty || scrollbarGutterProperty === \"auto\") {\n      scrollbarGutterProperty = \"stable\";\n    }\n    if (scrollbarWidth < 2) {\n      scrollbarGutterProperty = \"\";\n    }\n    document.documentElement.style.setProperty(\"--wa-scroll-lock-gutter\", scrollbarGutterProperty);\n    document.documentElement.classList.add(\"wa-scroll-lock\");\n    document.documentElement.style.setProperty(\"--wa-scroll-lock-size\", `${scrollbarWidth}px`);\n  }\n}\nfunction unlockBodyScrolling(lockingEl) {\n  locks.delete(lockingEl);\n  if (locks.size === 0) {\n    document.documentElement.classList.remove(\"wa-scroll-lock\");\n    document.documentElement.style.removeProperty(\"--wa-scroll-lock-size\");\n  }\n}\nfunction scrollIntoView(element, container, direction = \"vertical\", behavior = \"smooth\") {\n  const offset = getOffset(element, container);\n  const offsetTop = offset.top + container.scrollTop;\n  const offsetLeft = offset.left + container.scrollLeft;\n  const minX = container.scrollLeft;\n  const maxX = container.scrollLeft + container.offsetWidth;\n  const minY = container.scrollTop;\n  const maxY = container.scrollTop + container.offsetHeight;\n  if (direction === \"horizontal\" || direction === \"both\") {\n    if (offsetLeft < minX) {\n      container.scrollTo({ left: offsetLeft, behavior });\n    } else if (offsetLeft + element.clientWidth > maxX) {\n      container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n    }\n  }\n  if (direction === \"vertical\" || direction === \"both\") {\n    if (offsetTop < minY) {\n      container.scrollTo({ top: offsetTop, behavior });\n    } else if (offsetTop + element.clientHeight > maxY) {\n      container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n    }\n  }\n}\n\nexport {\n  isEventInsideRect,\n  lockBodyScrolling,\n  unlockBodyScrolling,\n  scrollIntoView\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/parse.ts\nfunction parseSpaceDelimitedTokens(input) {\n  return input.split(\" \").map((token) => token.trim()).filter((token) => token !== \"\");\n}\n\nexport {\n  parseSpaceDelimitedTokens\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/show.ts\nvar WaShowEvent = class extends Event {\n  constructor() {\n    super(\"wa-show\", { bubbles: true, cancelable: true, composed: true });\n  }\n};\n\nexport {\n  WaShowEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/hide.ts\nvar WaHideEvent = class extends Event {\n  constructor(detail) {\n    super(\"wa-hide\", { bubbles: true, cancelable: true, composed: true });\n    this.detail = detail;\n  }\n};\n\nexport {\n  WaHideEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/after-hide.ts\nvar WaAfterHideEvent = class extends Event {\n  constructor() {\n    super(\"wa-after-hide\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaAfterHideEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/after-show.ts\nvar WaAfterShowEvent = class extends Event {\n  constructor() {\n    super(\"wa-after-show\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaAfterShowEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/dialog/dialog.styles.ts\nimport { css } from \"lit\";\nvar dialog_styles_default = css`\n  :host {\n    --width: 31rem;\n    --spacing: var(--wa-space-l);\n    --backdrop-filter: none;\n    --show-duration: var(--wa-transition-normal);\n    --hide-duration: var(--wa-transition-normal);\n\n    display: none;\n  }\n\n  :host([open]) {\n    display: block;\n  }\n\n  .dialog {\n    display: flex;\n    flex-direction: column;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    width: var(--width);\n    max-width: calc(100% - var(--wa-space-2xl));\n    max-height: calc(100% - var(--wa-space-2xl));\n    color: inherit;\n    background-color: var(--wa-color-surface-raised);\n    border-radius: var(--wa-panel-border-radius);\n    border: none;\n    box-shadow: var(--wa-shadow-l);\n    padding: 0;\n    margin: auto;\n\n    &.show {\n      animation: show-dialog var(--show-duration) ease;\n\n      &::backdrop {\n        animation: show-backdrop var(--show-duration, 200ms) ease;\n      }\n    }\n\n    &.hide {\n      animation: show-dialog var(--hide-duration) ease reverse;\n\n      &::backdrop {\n        animation: show-backdrop var(--hide-duration, 200ms) ease reverse;\n      }\n    }\n\n    &.pulse {\n      animation: pulse 250ms ease;\n    }\n  }\n\n  .dialog:focus {\n    outline: none;\n  }\n\n  /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */\n  @media screen and (max-width: 420px) {\n    .dialog {\n      max-height: 80vh;\n    }\n  }\n\n  .open {\n    display: flex;\n    opacity: 1;\n  }\n\n  .header {\n    flex: 0 0 auto;\n    display: flex;\n    flex-wrap: nowrap;\n\n    padding-inline-start: var(--spacing);\n    padding-block-end: 0;\n\n    /* Subtract the close button's padding so that the X is visually aligned with the edges of the dialog content */\n    padding-inline-end: calc(var(--spacing) - var(--wa-form-control-padding-block));\n    padding-block-start: calc(var(--spacing) - var(--wa-form-control-padding-block));\n  }\n\n  .title {\n    align-self: center;\n    flex: 1 1 auto;\n    font-family: inherit;\n    font-size: var(--wa-font-size-l);\n    font-weight: var(--wa-font-weight-heading);\n    line-height: var(--wa-line-height-condensed);\n    margin: 0;\n  }\n\n  .header-actions {\n    align-self: start;\n    display: flex;\n    flex-shrink: 0;\n    flex-wrap: wrap;\n    justify-content: end;\n    gap: var(--wa-space-2xs);\n    padding-inline-start: var(--spacing);\n  }\n\n  .header-actions wa-button,\n  .header-actions ::slotted(wa-button) {\n    flex: 0 0 auto;\n    display: flex;\n    align-items: center;\n  }\n\n  .body {\n    flex: 1 1 auto;\n    display: block;\n    padding: var(--spacing);\n    overflow: auto;\n    -webkit-overflow-scrolling: touch;\n\n    &:focus {\n      outline: none;\n    }\n\n    &:focus-visible {\n      outline: var(--wa-focus-ring);\n      outline-offset: var(--wa-focus-ring-offset);\n    }\n  }\n\n  .footer {\n    flex: 0 0 auto;\n    display: flex;\n    flex-wrap: wrap;\n    gap: var(--wa-space-xs);\n    justify-content: end;\n    padding: var(--spacing);\n    padding-block-start: 0;\n  }\n\n  .footer ::slotted(wa-button:not(:first-of-type)) {\n    margin-inline-start: var(--wa-spacing-xs);\n  }\n\n  .dialog::backdrop {\n    /*\n      NOTE: the ::backdrop element doesn't inherit properly in Safari yet, but it will in 17.4! At that time, we can\n      remove the fallback values here.\n    */\n    background-color: var(--wa-color-overlay-modal, rgb(0 0 0 / 0.25));\n    backdrop-filter: var(--backdrop-filter);\n  }\n\n  @keyframes pulse {\n    0% {\n      scale: 1;\n    }\n    50% {\n      scale: 1.02;\n    }\n    100% {\n      scale: 1;\n    }\n  }\n\n  @keyframes show-dialog {\n    from {\n      opacity: 0;\n      scale: 0.8;\n    }\n    to {\n      opacity: 1;\n      scale: 1;\n    }\n  }\n\n  @keyframes show-backdrop {\n    from {\n      opacity: 0;\n    }\n    to {\n      opacity: 1;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .dialog {\n      border: solid 1px white;\n    }\n  }\n`;\n\nexport {\n  dialog_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/dismissible-stack.ts\nvar dismissibleStack = [];\nfunction registerDismissible(key) {\n  unregisterDismissible(key);\n  dismissibleStack.push(key);\n}\nfunction unregisterDismissible(key) {\n  for (let i = dismissibleStack.length - 1; i >= 0; i--) {\n    if (dismissibleStack[i] === key) {\n      dismissibleStack.splice(i, 1);\n      break;\n    }\n  }\n}\nfunction isTopDismissible(key) {\n  return dismissibleStack.length > 0 && dismissibleStack[dismissibleStack.length - 1] === key;\n}\n\nexport {\n  registerDismissible,\n  unregisterDismissible,\n  isTopDismissible\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/animate.ts\nasync function animate(el, keyframes, options) {\n  return el.animate(keyframes, options).finished.catch(() => {\n  });\n}\nfunction animateWithClass(el, className) {\n  return new Promise((resolve) => {\n    const controller = new AbortController();\n    const { signal } = controller;\n    if (el.classList.contains(className)) {\n      return;\n    }\n    el.classList.add(className);\n    let resolved = false;\n    let onEnd = () => {\n      if (resolved) {\n        return;\n      }\n      resolved = true;\n      el.classList.remove(className);\n      resolve();\n      controller.abort();\n    };\n    el.addEventListener(\"animationend\", onEnd, { once: true, signal });\n    el.addEventListener(\"animationcancel\", onEnd, { once: true, signal });\n    requestAnimationFrame(() => {\n      if (!resolved && el.getAnimations().length === 0) {\n        onEnd();\n      }\n    });\n  });\n}\nfunction parseDuration(duration) {\n  duration = duration.toString().toLowerCase();\n  if (duration.indexOf(\"ms\") > -1) {\n    return parseFloat(duration) || 0;\n  }\n  if (duration.indexOf(\"s\") > -1) {\n    return (parseFloat(duration) || 0) * 1e3;\n  }\n  return parseFloat(duration) || 0;\n}\nfunction prefersReducedMotion() {\n  const query = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n  return query.matches;\n}\n\nexport {\n  animate,\n  animateWithClass,\n  parseDuration,\n  prefersReducedMotion\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  RenderedWatcher\n} from \"./chunk.HKHINDC2.js\";\nimport {\n  isEventInsideRect,\n  lockBodyScrolling,\n  unlockBodyScrolling\n} from \"./chunk.DITA2S5A.js\";\nimport {\n  parseSpaceDelimitedTokens\n} from \"./chunk.RMZ7BVDM.js\";\nimport {\n  WaShowEvent\n} from \"./chunk.4ZAKP7NY.js\";\nimport {\n  WaHideEvent\n} from \"./chunk.MQODJ75V.js\";\nimport {\n  WaAfterHideEvent\n} from \"./chunk.3NKIHICW.js\";\nimport {\n  WaAfterShowEvent\n} from \"./chunk.PX3HMKF7.js\";\nimport {\n  dialog_styles_default\n} from \"./chunk.XTG2LNFG.js\";\nimport {\n  isTopDismissible,\n  registerDismissible,\n  unregisterDismissible\n} from \"./chunk.3H2FQERJ.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  animateWithClass\n} from \"./chunk.L6CIKOFQ.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/dialog/dialog.ts\nimport { html, isServer } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nvar WaDialog = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    this.localize = new LocalizeController(this);\n    this.hasSlotController = new HasSlotController(this, \"footer\", \"header-actions\", \"label\");\n    this.renderedWatcher = new RenderedWatcher(this, (isRendered) => this.handleRenderedChange(isRendered));\n    this.open = false;\n    this.label = \"\";\n    this.withoutHeader = false;\n    this.lightDismiss = false;\n    this.withFooter = false;\n    this.withLabel = false;\n    this.handleDocumentKeyDown = (event) => {\n      if (event.key === \"Escape\" && this.open && isTopDismissible(this)) {\n        event.preventDefault();\n        event.stopPropagation();\n        this.requestClose(this.dialog);\n      }\n    };\n  }\n  firstUpdated(changedProperties) {\n    super.firstUpdated(changedProperties);\n    if (this.open) {\n      this.addOpenListeners();\n      this.dialog.showModal();\n      lockBodyScrolling(this);\n      this.renderedWatcher.start(this.dialog);\n    }\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    this.renderedWatcher.stop();\n    unlockBodyScrolling(this);\n    this.removeOpenListeners();\n  }\n  async requestClose(source) {\n    const waHideEvent = new WaHideEvent({ source });\n    this.dispatchEvent(waHideEvent);\n    if (waHideEvent.defaultPrevented) {\n      this.open = true;\n      animateWithClass(this.dialog, \"pulse\");\n      return;\n    }\n    this.removeOpenListeners();\n    await animateWithClass(this.dialog, \"hide\");\n    this.open = false;\n    this.dialog.close();\n    unlockBodyScrolling(this);\n    this.renderedWatcher.stop();\n    const trigger = this.originalTrigger;\n    if (typeof trigger?.focus === \"function\") {\n      setTimeout(() => trigger.focus());\n    }\n    this.dispatchEvent(new WaAfterHideEvent());\n  }\n  addOpenListeners() {\n    document.addEventListener(\"keydown\", this.handleDocumentKeyDown);\n    registerDismissible(this);\n  }\n  removeOpenListeners() {\n    document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n    unregisterDismissible(this);\n  }\n  handleDialogCancel(event) {\n    event.preventDefault();\n    if (!this.dialog.classList.contains(\"hide\") && event.target === this.dialog && isTopDismissible(this)) {\n      this.requestClose(this.dialog);\n    }\n  }\n  handleDialogClick(event) {\n    const target = event.target;\n    const button = target.closest('[data-dialog=\"close\"]');\n    if (button) {\n      event.stopPropagation();\n      this.requestClose(button);\n    }\n  }\n  async handleDialogPointerDown(event) {\n    if (event.target === this.dialog && !isEventInsideRect(event, this.dialog)) {\n      if (this.lightDismiss) {\n        this.requestClose(this.dialog);\n      } else {\n        await animateWithClass(this.dialog, \"pulse\");\n      }\n    }\n  }\n  /**\n   * Suspends the modal when third-party CSS (e.g. cookie banner blockers) hides an open dialog, so the page isn't\n   * left scroll locked and inert. \"open\" stays true so the modal resumes if the dialog is rendered again.\n   */\n  handleRenderedChange(isRendered) {\n    if (!this.open) {\n      this.renderedWatcher.stop();\n      return;\n    }\n    if (!isRendered && this.dialog.open) {\n      this.removeOpenListeners();\n      this.dialog.close();\n      unlockBodyScrolling(this);\n    } else if (isRendered && !this.dialog.open) {\n      this.addOpenListeners();\n      this.dialog.showModal();\n      lockBodyScrolling(this);\n    }\n  }\n  handleOpenChange() {\n    if (this.open && !this.dialog.open) {\n      this.show();\n    } else if (!this.open && this.dialog.open) {\n      this.open = true;\n      this.requestClose(this.dialog);\n    } else if (!this.open) {\n      this.renderedWatcher.stop();\n    }\n  }\n  /** Shows the dialog. */\n  async show() {\n    const waShowEvent = new WaShowEvent();\n    this.dispatchEvent(waShowEvent);\n    if (waShowEvent.defaultPrevented) {\n      this.open = false;\n      return;\n    }\n    this.addOpenListeners();\n    this.originalTrigger = document.activeElement;\n    this.open = true;\n    this.dialog.showModal();\n    lockBodyScrolling(this);\n    this.renderedWatcher.start(this.dialog);\n    requestAnimationFrame(() => {\n      const elementToFocus = this.querySelector(\"[autofocus]\");\n      if (elementToFocus && typeof elementToFocus.focus === \"function\") {\n        elementToFocus.focus();\n      } else {\n        this.dialog.focus();\n      }\n    });\n    await animateWithClass(this.dialog, \"show\");\n    this.dispatchEvent(new WaAfterShowEvent());\n  }\n  render() {\n    const hasHeader = !this.withoutHeader;\n    const hasFooter = this.hasSlotController.test(\"footer\", \"withFooter\");\n    const hasLabel = this.label.length > 0 || this.hasSlotController.test(\"label\", \"withLabel\");\n    return html`\n      <dialog\n        part=\"dialog\"\n        aria-labelledby=${ifDefined(hasHeader && hasLabel ? \"title\" : void 0)}\n        aria-label=${ifDefined(!hasHeader && this.label ? this.label : void 0)}\n        class=${classMap({\n      dialog: true,\n      open: this.open\n    })}\n        @cancel=${this.handleDialogCancel}\n        @click=${this.handleDialogClick}\n        @pointerdown=${this.handleDialogPointerDown}\n      >\n        ${hasHeader ? html`\n              <div part=\"header\" class=\"header\">\n                <h2 part=\"title\" class=\"title\" id=\"title\">\n                  <!-- If there's no label, use an invisible character to prevent the header from collapsing -->\n                  <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(8203)} </slot>\n                </h2>\n                <div part=\"header-actions\" class=\"header-actions\">\n                  <slot name=\"header-actions\"></slot>\n                  <wa-button\n                    part=\"close-button\"\n                    exportparts=\"base:close-button__base\"\n                    class=\"close\"\n                    appearance=\"plain\"\n                    @click=\"${(event) => this.requestClose(event.target)}\"\n                  >\n                    <wa-icon\n                      name=\"xmark\"\n                      label=${this.localize.term(\"close\")}\n                      library=\"system\"\n                      variant=\"solid\"\n                    ></wa-icon>\n                  </wa-button>\n                </div>\n              </div>\n            ` : \"\"}\n\n        <div part=\"body\" class=\"body\"><slot></slot></div>\n\n        <!-- Use a hidden element so we still get \"slotchange\" events. -->\n        <div part=\"footer\" class=\"footer\" ?hidden=${!hasFooter}>\n          <slot name=\"footer\"></slot>\n        </div>\n      </dialog>\n    `;\n  }\n};\nWaDialog.css = dialog_styles_default;\n__decorateClass([\n  query(\".dialog\")\n], WaDialog.prototype, \"dialog\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaDialog.prototype, \"open\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaDialog.prototype, \"label\", 2);\n__decorateClass([\n  property({ attribute: \"without-header\", type: Boolean, reflect: true })\n], WaDialog.prototype, \"withoutHeader\", 2);\n__decorateClass([\n  property({ attribute: \"light-dismiss\", type: Boolean })\n], WaDialog.prototype, \"lightDismiss\", 2);\n__decorateClass([\n  property({ attribute: \"with-footer\", type: Boolean })\n], WaDialog.prototype, \"withFooter\", 2);\n__decorateClass([\n  property({ attribute: \"with-label\", type: Boolean })\n], WaDialog.prototype, \"withLabel\", 2);\n__decorateClass([\n  watch(\"open\", { waitUntilFirstUpdate: true })\n], WaDialog.prototype, \"handleOpenChange\", 1);\nWaDialog = __decorateClass([\n  customElement(\"wa-dialog\")\n], WaDialog);\nif (!isServer) {\n  document.addEventListener(\"click\", (event) => {\n    const dialogAttrEl = event.target.closest(\"[data-dialog]\");\n    if (dialogAttrEl instanceof Element) {\n      const [command, id] = parseSpaceDelimitedTokens(dialogAttrEl.getAttribute(\"data-dialog\") || \"\");\n      if (command === \"open\" && id?.length) {\n        const doc = dialogAttrEl.getRootNode();\n        const dialog = doc.getElementById(id);\n        if (dialog?.localName === \"wa-dialog\") {\n          dialog.open = true;\n        } else {\n          console.warn(`A dialog with an ID of \"${id}\" could not be found in this document.`);\n        }\n      }\n    }\n  });\n  document.addEventListener(\"pointerdown\", () => {\n  });\n}\n\nexport {\n  WaDialog\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/clear.ts\nvar WaClearEvent = class extends Event {\n  constructor() {\n    super(\"wa-clear\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaClearEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/submit-on-enter.ts\nfunction submitOnEnter(event, el) {\n  const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n  if (event.key === \"Enter\" && !hasModifier) {\n    setTimeout(() => {\n      if (!event.defaultPrevented && !event.isComposing) {\n        submitForm(el);\n      }\n    });\n  }\n}\nvar submittableTags = /* @__PURE__ */ new Map([\n  [\"input\", true],\n  [\"wa-input\", true],\n  [\"wa-tag-input\", true],\n  [\"wa-number-input\", true],\n  [\"wa-otp-input\", true],\n  [\"wa-slider\", true]\n]);\nvar submittableTypes = /* @__PURE__ */ new Map([\n  [\"button\", false],\n  [\"checkbox\", false],\n  [\"color\", false],\n  [\"date\", false],\n  [\"datetime-local\", false],\n  [\"email\", true],\n  [\"file\", false],\n  [\"hidden\", false],\n  [\"image\", false],\n  [\"month\", false],\n  [\"number\", true],\n  [\"password\", true],\n  [\"radio\", false],\n  [\"range\", false],\n  [\"reset\", true],\n  [\"search\", true],\n  [\"submit\", false],\n  [\"tel\", true],\n  [\"text\", true],\n  [\"time\", false],\n  [\"url\", true],\n  [\"week\", false]\n]);\nvar isSubmittableElement = (el) => {\n  const tagName = el?.localName;\n  if (!tagName) {\n    return false;\n  }\n  const isSubmittableTag = Boolean(submittableTags.get(tagName));\n  if (!isSubmittableTag) {\n    return false;\n  }\n  if (tagName !== \"input\" && tagName !== \"wa-input\") {\n    return true;\n  }\n  const type = el.type;\n  return Boolean(submittableTypes.get(type));\n};\nfunction submitForm(el) {\n  let form = null;\n  if (\"form\" in el) {\n    form = el.form;\n  }\n  if (!form && \"getForm\" in el) {\n    form = el.getForm();\n  }\n  if (!form) {\n    return;\n  }\n  const formElements = Array.from(form.elements);\n  let submittableFormElements = 0;\n  for (const el2 of formElements) {\n    if (isSubmittableElement(el2)) {\n      submittableFormElements += 1;\n    }\n  }\n  if (submittableFormElements === 1) {\n    form.requestSubmit(null);\n    return;\n  }\n  const button = formElements.find((el2) => {\n    return el2.type === \"submit\" && !el2.matches(\":disabled\");\n  });\n  if (!button) {\n    return;\n  }\n  if ([\"input\", \"button\"].includes(button.localName)) {\n    form.requestSubmit(button);\n  } else {\n    button.click();\n  }\n}\n\nexport {\n  submitOnEnter,\n  submitForm\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/input/input.styles.ts\nimport { css } from \"lit\";\nvar input_styles_default = css`\n  :host {\n    border-width: 0;\n  }\n\n  :host(:focus) {\n    outline: none;\n  }\n\n  .text-field {\n    display: flex;\n    align-items: stretch;\n    justify-content: start;\n    position: relative;\n    transition: inherit;\n    height: var(--wa-form-control-height);\n    border-color: var(--wa-form-control-border-color);\n    border-radius: var(--wa-form-control-border-radius);\n    border-style: var(--wa-form-control-border-style);\n    border-width: var(--wa-form-control-border-width);\n    cursor: text;\n    color: var(--wa-form-control-value-color);\n    font-size: var(--wa-form-control-value-font-size);\n    font-family: inherit;\n    font-weight: var(--wa-form-control-value-font-weight);\n    line-height: var(--wa-form-control-value-line-height);\n    vertical-align: middle;\n    width: 100%;\n    transition:\n      background-color var(--wa-transition-normal),\n      border-color var(--wa-transition-normal),\n      outline-color var(--wa-transition-fast);\n    transition-timing-function: var(--wa-transition-easing);\n    background-color: var(--wa-form-control-background-color);\n    box-shadow: var(--box-shadow);\n    padding: 0 var(--wa-form-control-padding-inline);\n    outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;\n    outline-offset: var(--wa-focus-ring-offset);\n\n    /* Only ring the field when the text input has focus, not inner buttons */\n    &:has(input:focus, textarea:focus) {\n      outline-color: var(--wa-color-focus);\n    }\n\n    /* Style disabled inputs */\n    &:has(:disabled) {\n      cursor: not-allowed;\n      opacity: 0.5;\n    }\n  }\n\n  /* Appearance modifiers */\n  :host([appearance='outlined']) .text-field {\n    background-color: var(--wa-form-control-background-color);\n    border-color: var(--wa-form-control-border-color);\n  }\n\n  :host([appearance='filled']) .text-field {\n    background-color: var(--wa-color-neutral-fill-quiet);\n    border-color: var(--wa-color-neutral-fill-quiet);\n  }\n\n  :host([appearance='filled-outlined']) .text-field {\n    background-color: var(--wa-color-neutral-fill-quiet);\n    border-color: var(--wa-form-control-border-color);\n  }\n\n  :host([pill]) .text-field {\n    border-radius: var(--wa-border-radius-pill) !important;\n  }\n\n  .text-field {\n    /* Show autofill styles over the entire text field, not just the native <input> */\n    &:has(:autofill),\n    &:has(:-webkit-autofill) {\n      background-color: var(--wa-color-brand-fill-quiet) !important;\n    }\n\n    input,\n    textarea {\n      /*\n      Fixes an alignment issue with placeholders.\n      https://github.com/shoelace-style/webawesome/issues/342\n    */\n      height: 100%;\n\n      padding: 0;\n      border: none;\n      outline: none;\n      box-shadow: none;\n      margin: 0;\n      cursor: inherit;\n      -webkit-appearance: none;\n      font: inherit;\n\n      /* Turn off Safari's autofill styles */\n      &:-webkit-autofill,\n      &:-webkit-autofill:hover,\n      &:-webkit-autofill:focus,\n      &:-webkit-autofill:active {\n        -webkit-background-clip: text;\n        background-color: transparent;\n        -webkit-text-fill-color: inherit;\n      }\n    }\n  }\n\n  input {\n    flex: 1 1 auto;\n    min-width: 0;\n    height: 100%;\n    transition: inherit;\n\n    /* prettier-ignore */\n    background-color: rgb(118 118 118 / 0); /* ensures proper placeholder styles in webkit's date input */\n    height: calc(var(--wa-form-control-height) - var(--border-width) * 2);\n    padding-block: 0;\n    color: inherit;\n\n    &:autofill {\n      &,\n      &:hover,\n      &:focus,\n      &:active {\n        box-shadow: none;\n        caret-color: var(--wa-form-control-value-color);\n      }\n    }\n\n    &::placeholder {\n      color: var(--wa-form-control-placeholder-color);\n      user-select: none;\n      -webkit-user-select: none;\n    }\n\n    &::-webkit-search-decoration,\n    &::-webkit-search-cancel-button,\n    &::-webkit-search-results-button,\n    &::-webkit-search-results-decoration {\n      -webkit-appearance: none;\n    }\n\n    &:focus {\n      outline: none;\n    }\n  }\n\n  textarea {\n    &:autofill {\n      &,\n      &:hover,\n      &:focus,\n      &:active {\n        box-shadow: none;\n        caret-color: var(--wa-form-control-value-color);\n      }\n    }\n\n    &::placeholder {\n      color: var(--wa-form-control-placeholder-color);\n      user-select: none;\n      -webkit-user-select: none;\n    }\n  }\n\n  .start,\n  .end {\n    display: inline-flex;\n    flex: 0 0 auto;\n    align-items: center;\n    cursor: default;\n\n    &::slotted(wa-icon) {\n      color: var(--wa-color-neutral-on-quiet);\n    }\n  }\n\n  .start::slotted(*) {\n    margin-inline-end: var(--wa-form-control-padding-inline);\n  }\n\n  .end::slotted(*) {\n    margin-inline-start: var(--wa-form-control-padding-inline);\n  }\n\n  /*\n   * Clearable + Password Toggle\n   */\n\n  .clear,\n  .password-toggle {\n    position: relative;\n    display: inline-flex;\n    align-self: center;\n    align-items: center;\n    justify-content: center;\n    aspect-ratio: 1;\n    height: 1.5em;\n    font-size: inherit;\n    color: var(--wa-color-neutral-on-quiet);\n    border: none;\n    border-radius: var(--wa-border-radius-s);\n    background: none;\n    padding: 0;\n    transition: var(--wa-transition-normal) color;\n    cursor: pointer;\n    /* The box is wider than the glyph, so overhang half of that growth on each side. Keeps the\n       glyph flush with the field's trailing padding edge, like every other form control. */\n    margin-inline-start: calc(var(--wa-form-control-padding-inline) - 0.125em);\n    margin-inline-end: -0.125em;\n\n    &::after {\n      content: '';\n      position: absolute;\n      inset-inline: 0;\n      height: var(--wa-form-control-height);\n    }\n\n    @media (hover: hover) {\n      &:hover {\n        color: color-mix(in oklab, currentColor, var(--wa-color-mix-hover));\n      }\n    }\n\n    &:active {\n      color: color-mix(in oklab, currentColor, var(--wa-color-mix-active));\n    }\n\n    &:focus {\n      outline: none;\n    }\n\n    &:focus-visible {\n      outline: var(--wa-focus-ring);\n      outline-offset: var(--wa-focus-ring-offset);\n    }\n  }\n\n  /* Don't show the browser's password toggle in Edge */\n  ::-ms-reveal {\n    display: none;\n  }\n\n  /* Hide the built-in number spinner */\n  :host([without-spin-buttons]) input[type='number'] {\n    -moz-appearance: textfield;\n\n    &::-webkit-outer-spin-button,\n    &::-webkit-inner-spin-button {\n      -webkit-appearance: none;\n      display: none;\n    }\n  }\n`;\n\nexport {\n  input_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  WaClearEvent\n} from \"./chunk.JTOY5KP3.js\";\nimport {\n  submitOnEnter\n} from \"./chunk.4XYGFHPR.js\";\nimport {\n  input_styles_default\n} from \"./chunk.3ZKPD2O5.js\";\nimport {\n  form_control_styles_default\n} from \"./chunk.JPBXG7RE.js\";\nimport {\n  MirrorValidator\n} from \"./chunk.R7QX4M6R.js\";\nimport {\n  WebAwesomeFormAssociatedElement\n} from \"./chunk.KBXNFZQL.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/input/input.ts\nimport { html, isServer } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { live } from \"lit/directives/live.js\";\nvar WaInput = class extends WebAwesomeFormAssociatedElement {\n  constructor() {\n    super(...arguments);\n    this.assumeInteractionOn = [\"blur\", \"input\"];\n    this.hasSlotController = new HasSlotController(this, \"hint\", \"label\");\n    this.localize = new LocalizeController(this);\n    this.title = \"\";\n    this.type = \"text\";\n    this._value = null;\n    this.defaultValue = this.getAttribute(\"value\") || null;\n    this.size = \"m\";\n    this.appearance = \"outlined\";\n    this.pill = false;\n    this.label = \"\";\n    this.hint = \"\";\n    this.withClear = false;\n    this.placeholder = \"\";\n    this.readonly = false;\n    this.passwordToggle = false;\n    this.passwordVisible = false;\n    this.withoutSpinButtons = false;\n    this.required = false;\n    this.spellcheck = true;\n    this.withLabel = false;\n    this.withHint = false;\n  }\n  static get validators() {\n    return isServer ? [] : [...super.validators, MirrorValidator()];\n  }\n  /** The current value of the input, submitted as a name/value pair with form data. */\n  get value() {\n    if (this.valueHasChanged) {\n      return this._value;\n    }\n    return this._value ?? this.defaultValue;\n  }\n  set value(val) {\n    if (this._value === val) {\n      return;\n    }\n    this.valueHasChanged = true;\n    this._value = val;\n  }\n  /**\n   * @internal\n   */\n  updateFormValue(value) {\n    if (value == null) {\n      this.setValue(\"\", null);\n      return;\n    }\n    super.updateFormValue(value);\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  handleChange(event) {\n    this.value = this.input.value;\n    this.relayNativeEvent(event, { bubbles: true, composed: true });\n  }\n  handleClearClick(event) {\n    event.preventDefault();\n    if (this.value !== \"\") {\n      this.value = \"\";\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new WaClearEvent());\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n      });\n    }\n    this.input.focus();\n  }\n  handleInput() {\n    this.value = this.input.value;\n  }\n  handleKeyDown(event) {\n    submitOnEnter(event, this);\n  }\n  handlePasswordToggle() {\n    this.passwordVisible = !this.passwordVisible;\n  }\n  updated(changedProperties) {\n    super.updated(changedProperties);\n    if (changedProperties.has(\"value\") || changedProperties.has(\"defaultValue\") || changedProperties.has(\"type\")) {\n      const sanitizingTypes = [\"number\", \"date\", \"time\", \"datetime-local\"];\n      if (this.input && sanitizingTypes.includes(this.type) && this.value && this.input.value !== this.value) {\n        this._value = this.input.value;\n      }\n      this.customStates.set(\"blank\", !this.value);\n      this.updateValidity();\n    }\n  }\n  handleStepChange() {\n    this.input.step = String(this.step);\n    this.updateValidity();\n  }\n  /** Sets focus on the input. */\n  focus(options) {\n    this.input.focus(options);\n  }\n  /** Removes focus from the input. */\n  blur() {\n    this.input.blur();\n  }\n  /** Selects all the text in the input. */\n  select() {\n    this.input.select();\n  }\n  /** Sets the start and end positions of the text selection (0-based). */\n  setSelectionRange(selectionStart, selectionEnd, selectionDirection = \"none\") {\n    this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n  }\n  /** Replaces a range of text with a new string. */\n  setRangeText(replacement, start, end, selectMode = \"preserve\") {\n    const selectionStart = start ?? this.input.selectionStart;\n    const selectionEnd = end ?? this.input.selectionEnd;\n    this.input.setRangeText(replacement, selectionStart, selectionEnd, selectMode);\n    if (this.value !== this.input.value) {\n      this.value = this.input.value;\n    }\n  }\n  /** Displays the browser picker for an input element (only works if the browser supports it for the input type). */\n  showPicker() {\n    if (\"showPicker\" in HTMLInputElement.prototype) {\n      this.input.showPicker();\n    }\n  }\n  /** Increments the value of a numeric input type by the value of the step attribute. */\n  stepUp() {\n    this.input.stepUp();\n    if (this.value !== this.input.value) {\n      this.value = this.input.value;\n    }\n  }\n  /** Decrements the value of a numeric input type by the value of the step attribute. */\n  stepDown() {\n    this.input.stepDown();\n    if (this.value !== this.input.value) {\n      this.value = this.input.value;\n    }\n  }\n  formResetCallback() {\n    this.value = null;\n    if (this.input) {\n      this.input.value = this.value;\n    }\n    super.formResetCallback();\n  }\n  render() {\n    const hasLabelSlot = this.hasSlotController.test(\"label\", \"withLabel\");\n    const hasHintSlot = this.hasSlotController.test(\"hint\", \"withHint\");\n    const hasLabel = this.label ? true : !!hasLabelSlot;\n    const hasHint = this.hint ? true : !!hasHintSlot;\n    const hasClearIcon = this.withClear && !this.disabled && !this.readonly;\n    const isClearIconVisible = (\n      // prevents hydration mismatch errors.\n      (!this.didSSR || this.hasUpdated) && hasClearIcon && (typeof this.value === \"number\" || this.value && this.value.length > 0)\n    );\n    return html`\n      <label\n        part=\"form-control-label label\"\n        class=${classMap({\n      label: true,\n      \"has-label\": hasLabel\n    })}\n        for=\"input\"\n        aria-hidden=${hasLabel ? \"false\" : \"true\"}\n      >\n        <slot name=\"label\">${this.label}</slot>\n      </label>\n\n      <div part=\"base input-wrapper\" class=\"text-field\">\n        <slot name=\"start\" part=\"start\" class=\"start\"></slot>\n\n        <input\n          part=\"input\"\n          id=\"input\"\n          class=\"control\"\n          type=${this.type === \"password\" && this.passwordVisible ? \"text\" : this.type}\n          title=${this.title}\n          name=${ifDefined(this.name)}\n          ?disabled=${this.disabled}\n          ?readonly=${this.readonly}\n          ?required=${this.required}\n          placeholder=${ifDefined(this.placeholder)}\n          minlength=${ifDefined(this.minlength)}\n          maxlength=${ifDefined(this.maxlength)}\n          min=${ifDefined(this.min)}\n          max=${ifDefined(this.max)}\n          step=${ifDefined(this.step)}\n          .value=${live(this.value ?? \"\")}\n          autocapitalize=${ifDefined(this.autocapitalize)}\n          autocomplete=${ifDefined(this.autocomplete)}\n          autocorrect=${this.autocorrect ? \"on\" : \"off\"}\n          ?autofocus=${this.autofocus}\n          spellcheck=${this.spellcheck}\n          pattern=${ifDefined(this.pattern)}\n          enterkeyhint=${ifDefined(this.enterkeyhint)}\n          inputmode=${ifDefined(this.inputmode)}\n          aria-describedby=\"hint\"\n          @change=${this.handleChange}\n          @input=${this.handleInput}\n          @keydown=${this.handleKeyDown}\n        />\n\n        ${isClearIconVisible ? html`\n              <button\n                part=\"clear-button\"\n                class=\"clear\"\n                type=\"button\"\n                aria-label=${this.localize.term(\"clearEntry\")}\n                @click=${this.handleClearClick}\n                tabindex=\"-1\"\n              >\n                <slot name=\"clear-icon\">\n                  <wa-icon name=\"circle-xmark\" library=\"system\" variant=\"regular\"></wa-icon>\n                </slot>\n              </button>\n            ` : \"\"}\n        ${this.passwordToggle && !this.disabled ? html`\n              <button\n                part=\"password-toggle-button\"\n                class=\"password-toggle\"\n                type=\"button\"\n                aria-label=${this.localize.term(this.passwordVisible ? \"hidePassword\" : \"showPassword\")}\n                @click=${this.handlePasswordToggle}\n              >\n                ${!this.passwordVisible ? html`\n                      <slot name=\"show-password-icon\">\n                        <wa-icon name=\"eye\" library=\"system\" variant=\"regular\"></wa-icon>\n                      </slot>\n                    ` : html`\n                      <slot name=\"hide-password-icon\">\n                        <wa-icon name=\"eye-slash\" library=\"system\" variant=\"regular\"></wa-icon>\n                      </slot>\n                    `}\n              </button>\n            ` : \"\"}\n\n        <slot name=\"end\" part=\"end\" class=\"end\"></slot>\n      </div>\n\n      <slot\n        id=\"hint\"\n        part=\"hint\"\n        name=\"hint\"\n        class=${classMap({\n      \"has-slotted\": hasHint\n    })}\n        aria-hidden=${hasHint ? \"false\" : \"true\"}\n        >${this.hint}</slot\n      >\n    `;\n  }\n};\nWaInput.css = [size_styles_default, form_control_styles_default, input_styles_default];\nWaInput.shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n__decorateClass([\n  query(\"input\")\n], WaInput.prototype, \"input\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"title\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaInput.prototype, \"type\", 2);\n__decorateClass([\n  state()\n], WaInput.prototype, \"value\", 1);\n__decorateClass([\n  property({ attribute: \"value\", reflect: true })\n], WaInput.prototype, \"defaultValue\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaInput.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaInput.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property({ reflect: true })\n], WaInput.prototype, \"appearance\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaInput.prototype, \"pill\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"label\", 2);\n__decorateClass([\n  property({ attribute: \"hint\" })\n], WaInput.prototype, \"hint\", 2);\n__decorateClass([\n  property({ attribute: \"with-clear\", type: Boolean })\n], WaInput.prototype, \"withClear\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"placeholder\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaInput.prototype, \"readonly\", 2);\n__decorateClass([\n  property({ attribute: \"password-toggle\", type: Boolean })\n], WaInput.prototype, \"passwordToggle\", 2);\n__decorateClass([\n  property({ attribute: \"password-visible\", type: Boolean })\n], WaInput.prototype, \"passwordVisible\", 2);\n__decorateClass([\n  property({ attribute: \"without-spin-buttons\", type: Boolean, reflect: true })\n], WaInput.prototype, \"withoutSpinButtons\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaInput.prototype, \"required\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"pattern\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaInput.prototype, \"minlength\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaInput.prototype, \"maxlength\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"min\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"max\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"step\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"autocapitalize\", 2);\n__decorateClass([\n  property({\n    type: Boolean,\n    converter: {\n      fromAttribute: (value) => !value || value === \"off\" ? false : true,\n      toAttribute: (value) => value ? \"on\" : \"off\"\n    }\n  })\n], WaInput.prototype, \"autocorrect\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"autocomplete\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaInput.prototype, \"autofocus\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"enterkeyhint\", 2);\n__decorateClass([\n  property({\n    type: Boolean,\n    converter: {\n      // Allow \"true|false\" attribute values but keep the property boolean\n      fromAttribute: (value) => !value || value === \"false\" ? false : true,\n      toAttribute: (value) => value ? \"true\" : \"false\"\n    }\n  })\n], WaInput.prototype, \"spellcheck\", 2);\n__decorateClass([\n  property()\n], WaInput.prototype, \"inputmode\", 2);\n__decorateClass([\n  property({ attribute: \"with-label\", type: Boolean })\n], WaInput.prototype, \"withLabel\", 2);\n__decorateClass([\n  property({ attribute: \"with-hint\", type: Boolean })\n], WaInput.prototype, \"withHint\", 2);\n__decorateClass([\n  watch(\"step\", { waitUntilFirstUpdate: true })\n], WaInput.prototype, \"handleStepChange\", 1);\nWaInput = __decorateClass([\n  customElement(\"wa-input\")\n], WaInput);\nWaInput.disableWarning?.(\"change-in-update\");\n\nexport {\n  WaInput\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/select/select.styles.ts\nimport { css } from \"lit\";\nvar select_styles_default = css`\n  :host {\n    --tag-max-size: 10ch;\n    --show-duration: var(--wa-transition-fast);\n    --hide-duration: var(--wa-transition-fast);\n  }\n\n  /* Add ellipses to multi select options */\n  :host wa-tag::part(content) {\n    display: initial;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    overflow: hidden;\n    max-width: var(--tag-max-size);\n  }\n\n  :host .disabled [part~='combobox'] {\n    opacity: 0.5;\n    cursor: not-allowed;\n    outline: none;\n  }\n\n  :host .enabled:is(.open, :focus-within) [part~='combobox'] {\n    outline-color: var(--wa-color-focus);\n  }\n\n  /** The popup */\n  .select {\n    flex: 1 1 auto;\n    display: inline-flex;\n    width: 100%;\n    position: relative;\n    vertical-align: middle;\n\n    /* Pass through from select to the popup */\n    --show-duration: inherit;\n    --hide-duration: inherit;\n\n    &::part(popup) {\n      z-index: 900;\n    }\n\n    &[data-current-placement^='top']::part(popup) {\n      transform-origin: bottom;\n    }\n\n    &[data-current-placement^='bottom']::part(popup) {\n      transform-origin: top;\n    }\n  }\n\n  /* Combobox */\n  .combobox {\n    flex: 1;\n    display: flex;\n    width: 100%;\n    min-width: 0;\n    align-items: center;\n    justify-content: start;\n\n    min-height: var(--wa-form-control-height);\n\n    background-color: var(--wa-form-control-background-color);\n    border-color: var(--wa-form-control-border-color);\n    border-radius: var(--wa-form-control-border-radius);\n    border-style: var(--wa-form-control-border-style);\n    border-width: var(--wa-form-control-border-width);\n    color: var(--wa-form-control-value-color);\n    cursor: pointer;\n    font-family: inherit;\n    font-weight: var(--wa-form-control-value-font-weight);\n    line-height: var(--wa-form-control-value-line-height);\n    overflow: hidden;\n    padding: 0 var(--wa-form-control-padding-inline);\n    position: relative;\n    vertical-align: middle;\n    transition:\n      background-color var(--wa-transition-normal),\n      border-color var(--wa-transition-normal),\n      outline-color var(--wa-transition-fast);\n    transition-timing-function: var(--wa-transition-easing);\n    outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;\n    outline-offset: var(--wa-focus-ring-offset);\n\n    /* Pills */\n    :host([pill]) & {\n      border-radius: var(--wa-border-radius-pill);\n    }\n  }\n\n  /* Appearance modifiers */\n  :host([appearance='outlined']) .combobox {\n    background-color: var(--wa-form-control-background-color);\n    border-color: var(--wa-form-control-border-color);\n  }\n\n  :host([appearance='filled']) .combobox {\n    background-color: var(--wa-color-neutral-fill-quiet);\n    border-color: var(--wa-color-neutral-fill-quiet);\n  }\n\n  :host([appearance='filled-outlined']) .combobox {\n    background-color: var(--wa-color-neutral-fill-quiet);\n    border-color: var(--wa-form-control-border-color);\n  }\n\n  .display-input {\n    position: relative;\n    width: 100%;\n    font: inherit;\n    border: none;\n    background: none;\n    line-height: var(--wa-form-control-value-line-height);\n    color: var(--wa-form-control-value-color);\n    cursor: inherit;\n    overflow: hidden;\n    padding: 0;\n    margin: 0;\n    -webkit-appearance: none;\n\n    &:focus {\n      outline: none;\n    }\n\n    &::placeholder {\n      color: var(--wa-form-control-placeholder-color);\n    }\n  }\n\n  /* Manage spacing when tags are present */\n  :host([multiple]) {\n    --_padding-with-tags: calc(var(--wa-form-control-height) * 0.1 - var(--wa-form-control-border-width));\n\n    & .combobox:has(.tags wa-tag) {\n      padding-block: var(--_padding-with-tags);\n      padding-inline-start: var(--_padding-with-tags);\n    }\n  }\n\n  /* Visually hide the display input when multiple is enabled */\n  :host([multiple]) .combobox:has(.tags wa-tag) .display-input {\n    position: absolute;\n    z-index: -1;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0;\n  }\n\n  .value-input {\n    position: absolute;\n    z-index: -1;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0;\n    padding: 0;\n    margin: 0;\n  }\n\n  .tags {\n    display: flex;\n    flex: 1;\n    align-items: center;\n    flex-wrap: wrap;\n    gap: 0.25em;\n\n    /* Nested inside the box, so a step down from the box's radius */\n    & wa-tag:not([pill]) {\n      border-radius: var(--wa-border-radius-s);\n    }\n\n    .disabled & {\n      cursor: not-allowed !important;\n    }\n  }\n\n  /* Start and End */\n\n  .start,\n  .end {\n    flex: 0;\n    display: inline-flex;\n    align-items: center;\n    color: var(--wa-color-neutral-on-quiet);\n  }\n\n  .end::slotted(*) {\n    margin-inline-start: var(--wa-form-control-padding-inline);\n  }\n\n  .start::slotted(*) {\n    margin-inline-end: var(--wa-form-control-padding-inline);\n  }\n\n  :host([multiple]) .combobox:has(.tags wa-tag) .start::slotted(*) {\n    margin-inline-start: calc(var(--wa-form-control-padding-inline) - var(--_padding-with-tags));\n  }\n\n  /* Clear button */\n  [part~='clear-button'] {\n    flex: 0 0 auto;\n    display: inline-flex;\n    align-self: stretch;\n    align-items: center;\n    justify-content: center;\n    inline-size: 1.5em;\n    font-size: inherit;\n    color: var(--wa-color-neutral-on-quiet);\n    border: none;\n    background: none;\n    padding: 0;\n    transition: color var(--wa-transition-normal);\n    cursor: pointer;\n    /* The box is wider than the glyph, so overhang half that growth on each side. Keeps the glyph\n       on the same trailing axis as the segmented-field pickers' clear buttons. */\n    margin-inline-start: calc(var(--wa-form-control-padding-inline) - 0.125em);\n    margin-inline-end: -0.125em;\n\n    &:focus {\n      outline: none;\n    }\n\n    @media (hover: hover) {\n      &:hover {\n        color: color-mix(in oklab, currentColor, var(--wa-color-mix-hover));\n      }\n    }\n\n    &:active {\n      color: color-mix(in oklab, currentColor, var(--wa-color-mix-active));\n    }\n  }\n\n  /* Expand icon */\n  .expand-icon {\n    flex: 0 0 auto;\n    display: flex;\n    align-items: center;\n    color: var(--wa-color-neutral-on-quiet);\n    transition: rotate var(--wa-transition-slow) var(--wa-transition-easing);\n    rotate: 0deg;\n    margin-inline-start: var(--wa-form-control-padding-inline);\n\n    .open & {\n      rotate: -180deg;\n    }\n  }\n\n  /* Listbox */\n  .listbox {\n    display: block;\n    position: relative;\n    font: inherit;\n    box-shadow: var(--wa-shadow-m);\n    background: var(--wa-color-surface-raised);\n    border-color: var(--wa-color-surface-border);\n    border-radius: var(--wa-border-radius-m);\n    border-style: var(--wa-border-style);\n    border-width: var(--wa-border-width-s);\n    padding: 0.25em;\n    overflow: auto;\n    overscroll-behavior: none;\n\n    /* Make sure it adheres to the popup's auto size */\n    max-width: var(--auto-size-available-width);\n    max-height: var(--auto-size-available-height);\n\n    &::slotted(wa-divider) {\n      --spacing: 0.5em;\n    }\n  }\n\n  /* Space options with half the listbox's padding */\n  .listbox slot:not([name]) {\n    display: flex;\n    flex-direction: column;\n    gap: 0.125em;\n  }\n\n  slot:not([name])::slotted(small) {\n    display: block;\n    font-size: var(--wa-font-size-smaller);\n    font-weight: var(--wa-font-weight-semibold);\n    color: var(--wa-color-text-quiet);\n    padding-block: 0.5em;\n    padding-inline: 2.25em;\n  }\n`;\n\nexport {\n  select_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/event.ts\nfunction waitForEvent(el, eventName) {\n  return new Promise((resolve) => {\n    function done(event) {\n      if (event.target === el) {\n        el.removeEventListener(eventName, done);\n        resolve();\n      }\n    }\n    el.addEventListener(eventName, done);\n  });\n}\n\nexport {\n  waitForEvent\n};\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing, TemplateResult, noChange} from '../lit-html.js';\nimport {directive, Directive, PartInfo, PartType} from '../directive.js';\n\nconst HTML_RESULT = 1;\n\nexport class UnsafeHTMLDirective extends Directive {\n  static directiveName = 'unsafeHTML';\n  static resultType = HTML_RESULT;\n\n  private _value: unknown = nothing;\n  private _templateResult?: TemplateResult;\n\n  constructor(partInfo: PartInfo) {\n    super(partInfo);\n    if (partInfo.type !== PartType.CHILD) {\n      throw new Error(\n        `${\n          (this.constructor as typeof UnsafeHTMLDirective).directiveName\n        }() can only be used in child bindings`\n      );\n    }\n  }\n\n  render(value: string | typeof nothing | typeof noChange | undefined | null) {\n    if (value === nothing || value == null) {\n      this._templateResult = undefined;\n      return (this._value = value);\n    }\n    if (value === noChange) {\n      return value;\n    }\n    if (typeof value != 'string') {\n      throw new Error(\n        `${\n          (this.constructor as typeof UnsafeHTMLDirective).directiveName\n        }() called with a non-string value`\n      );\n    }\n    if (value === this._value) {\n      return this._templateResult;\n    }\n    this._value = value;\n    const strings = [value] as unknown as TemplateStringsArray;\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    (strings as any).raw = strings;\n    // WARNING: impersonating a TemplateResult like this is extremely\n    // dangerous. Third-party directives should not do this.\n    return (this._templateResult = {\n      // Cast to a known set of integers that satisfy ResultType so that we\n      // don't have to export ResultType and possibly encourage this pattern.\n      // This property needs to remain unminified.\n      ['_$litType$']: (this.constructor as typeof UnsafeHTMLDirective)\n        .resultType as 1 | 2,\n      strings,\n      values: [],\n    });\n  }\n}\n\n/**\n * Renders the result as HTML, rather than text.\n *\n * The values `undefined`, `null`, and `nothing`, will all result in no content\n * (empty string) being rendered.\n *\n * Note, this is unsafe to use with any user-provided input that hasn't been\n * sanitized or escaped, as it may lead to cross-site-scripting\n * vulnerabilities.\n */\nexport const unsafeHTML = directive(UnsafeHTMLDirective);\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  select_styles_default\n} from \"./chunk.UZWY5NQM.js\";\nimport {\n  scrollIntoView\n} from \"./chunk.DITA2S5A.js\";\nimport {\n  WaShowEvent\n} from \"./chunk.4ZAKP7NY.js\";\nimport {\n  WaHideEvent\n} from \"./chunk.MQODJ75V.js\";\nimport {\n  WaAfterHideEvent\n} from \"./chunk.3NKIHICW.js\";\nimport {\n  WaAfterShowEvent\n} from \"./chunk.PX3HMKF7.js\";\nimport {\n  WaClearEvent\n} from \"./chunk.JTOY5KP3.js\";\nimport {\n  isTopDismissible,\n  registerDismissible,\n  unregisterDismissible\n} from \"./chunk.3H2FQERJ.js\";\nimport {\n  RequiredValidator\n} from \"./chunk.GWSUX3V5.js\";\nimport {\n  form_control_styles_default\n} from \"./chunk.JPBXG7RE.js\";\nimport {\n  WebAwesomeFormAssociatedElement\n} from \"./chunk.KBXNFZQL.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  waitForEvent\n} from \"./chunk.F25QOBDY.js\";\nimport {\n  animateWithClass\n} from \"./chunk.L6CIKOFQ.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/select/select.ts\nimport { html, isServer } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { unsafeHTML } from \"lit/directives/unsafe-html.js\";\nvar WaSelect = class extends WebAwesomeFormAssociatedElement {\n  constructor() {\n    super(...arguments);\n    this.assumeInteractionOn = [\"blur\", \"input\"];\n    this.cachedOptions = null;\n    this.hasSlotController = new HasSlotController(this, \"hint\", \"label\");\n    this.localize = new LocalizeController(this);\n    this.selectionOrder = /* @__PURE__ */ new Map();\n    this.typeToSelectString = \"\";\n    this.slotChangePending = false;\n    this.displayLabel = \"\";\n    this.selectedOptions = [];\n    this.name = \"\";\n    this._defaultValue = null;\n    this.size = \"m\";\n    this.placeholder = \"\";\n    this.multiple = false;\n    this.maxOptionsVisible = 3;\n    this.disabled = false;\n    this.withClear = false;\n    this.open = false;\n    this.appearance = \"outlined\";\n    this.pill = false;\n    this.label = \"\";\n    this.placement = \"bottom\";\n    this.hint = \"\";\n    this.withLabel = false;\n    this.withHint = false;\n    this.required = false;\n    this.getTag = (option) => {\n      return html`\n        <wa-tag\n          part=\"tag\"\n          exportparts=\"\n            base:tag__base,\n            content:tag__content,\n            remove-button:tag__remove-button,\n            remove-button__base:tag__remove-button__base\n          \"\n          ?pill=${this.pill}\n          size=${this.size}\n          with-remove\n          data-value=${option.value}\n          @wa-remove=${(event) => this.handleTagRemove(event, option)}\n        >\n          ${option.label}\n        </wa-tag>\n      `;\n    };\n    this.handleDocumentFocusIn = (event) => {\n      const path = event.composedPath();\n      if (this && !path.includes(this)) {\n        this.hide();\n      }\n    };\n    this.handleDocumentKeyDown = (event) => {\n      const target = event.target;\n      const isClearButton = target.closest('[part~=\"clear-button\"]') !== null;\n      const isButton = target.closest(\"wa-button\") !== null;\n      if (isClearButton || isButton) {\n        return;\n      }\n      if (event.key === \"Escape\" && this.open && isTopDismissible(this)) {\n        event.preventDefault();\n        event.stopPropagation();\n        this.hide();\n        this.displayInput.focus({ preventScroll: true });\n      }\n      if (event.key === \"Enter\" || event.key === \" \" && this.typeToSelectString === \"\") {\n        event.preventDefault();\n        event.stopImmediatePropagation();\n        if (!this.open) {\n          this.show();\n          return;\n        }\n        if (this.currentOption && !this.currentOption.disabled) {\n          this.valueHasChanged = true;\n          this.hasInteracted = true;\n          if (this.multiple) {\n            this.toggleOptionSelection(this.currentOption);\n          } else {\n            this.setSelectedOptions(this.currentOption);\n          }\n          this.updateComplete.then(() => {\n            this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n            this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n          });\n          if (!this.multiple) {\n            this.hide();\n            this.displayInput.focus({ preventScroll: true });\n          }\n        }\n        return;\n      }\n      if ([\"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(event.key)) {\n        const allOptions = this.getAllOptions();\n        const currentIndex = allOptions.indexOf(this.currentOption);\n        let newIndex = Math.max(0, currentIndex);\n        event.preventDefault();\n        if (!this.open) {\n          this.show();\n          if (this.currentOption) {\n            return;\n          }\n        }\n        if (event.key === \"ArrowDown\") {\n          newIndex = currentIndex + 1;\n          if (newIndex > allOptions.length - 1) newIndex = 0;\n        } else if (event.key === \"ArrowUp\") {\n          newIndex = currentIndex - 1;\n          if (newIndex < 0) newIndex = allOptions.length - 1;\n        } else if (event.key === \"Home\") {\n          newIndex = 0;\n        } else if (event.key === \"End\") {\n          newIndex = allOptions.length - 1;\n        }\n        this.setCurrentOption(allOptions[newIndex]);\n      }\n      if (event.key?.length === 1 || event.key === \"Backspace\") {\n        const allOptions = this.getAllOptions();\n        if (event.metaKey || event.ctrlKey || event.altKey) {\n          return;\n        }\n        if (!this.open) {\n          if (event.key === \"Backspace\") {\n            return;\n          }\n          this.show();\n        }\n        event.stopPropagation();\n        event.preventDefault();\n        clearTimeout(this.typeToSelectTimeout);\n        this.typeToSelectTimeout = window.setTimeout(() => this.typeToSelectString = \"\", 1e3);\n        if (event.key === \"Backspace\") {\n          this.typeToSelectString = this.typeToSelectString.slice(0, -1);\n        } else {\n          this.typeToSelectString += event.key.toLowerCase();\n        }\n        for (const option of allOptions) {\n          const label = option.label.toLowerCase();\n          if (label.startsWith(this.typeToSelectString)) {\n            this.setCurrentOption(option);\n            break;\n          }\n        }\n      }\n    };\n    this.handleDocumentMouseDown = (event) => {\n      const path = event.composedPath();\n      if (this && !path.includes(this)) {\n        this.hide();\n      }\n    };\n  }\n  static get validators() {\n    const validators = isServer ? [] : [\n      RequiredValidator({\n        validationElement: Object.assign(document.createElement(\"select\"), { required: true })\n      })\n    ];\n    return [...super.validators, ...validators];\n  }\n  /** Where to anchor native constraint validation */\n  get validationTarget() {\n    return this.valueInput;\n  }\n  set defaultValue(val) {\n    this._defaultValue = this.convertDefaultValue(val);\n  }\n  get defaultValue() {\n    return this.convertDefaultValue(this._defaultValue);\n  }\n  rawValuesEqual(a, b) {\n    if (a == null && b == null) return true;\n    if (a == null || b == null) return false;\n    if (a.length !== b.length) return false;\n    return a.every((v, i) => v === b[i]);\n  }\n  /**\n   * @private\n   * A converter for defaultValue from array to string if its multiple. Also fixes some hydration issues.\n   */\n  convertDefaultValue(val) {\n    const isMultiple = this.multiple || this.hasAttribute(\"multiple\");\n    if (!isMultiple && Array.isArray(val)) {\n      val = val[0];\n    }\n    return val;\n  }\n  set value(val) {\n    let oldValue = this.value;\n    if (val instanceof FormData) {\n      val = val.getAll(this.name);\n    }\n    if (val != null && !Array.isArray(val)) {\n      val = [val];\n    }\n    const oldRawValue = this._value;\n    this._value = val ?? null;\n    if (!this.rawValuesEqual(oldRawValue, this._value)) {\n      this.valueHasChanged = true;\n      this.requestUpdate(\"value\", oldValue);\n    }\n  }\n  get value() {\n    let value = this._value ?? this.defaultValue ?? null;\n    if (value != null) {\n      value = Array.isArray(value) ? value : [value];\n    }\n    this.optionValues = new Set(\n      this.getAllOptions().filter((option) => !option.disabled).map((option) => option.value)\n    );\n    let ret = value;\n    if (value != null) {\n      ret = value.filter((v) => this.optionValues.has(v));\n      ret = this.multiple ? ret : ret[0];\n      ret = ret ?? null;\n    }\n    return ret;\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    this.processSlotChange();\n    this.open = false;\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    this.removeOpenListeners();\n    this.cachedOptions = null;\n  }\n  updateDefaultValue() {\n    const allOptions = this.getAllOptions();\n    const defaultSelectedOptions = allOptions.filter((el) => el.hasAttribute(\"selected\") || el.defaultSelected);\n    if (defaultSelectedOptions.length > 0) {\n      const selectedValues = defaultSelectedOptions.map((el) => el.value);\n      this._defaultValue = this.multiple ? selectedValues : selectedValues[0];\n    }\n    if (this.hasAttribute(\"value\")) {\n      this._defaultValue = this.getAttribute(\"value\") || null;\n    }\n  }\n  addOpenListeners() {\n    document.addEventListener(\"focusin\", this.handleDocumentFocusIn);\n    document.addEventListener(\"keydown\", this.handleDocumentKeyDown);\n    document.addEventListener(\"mousedown\", this.handleDocumentMouseDown);\n    registerDismissible(this);\n    if (this.getRootNode() !== document) {\n      this.getRootNode().addEventListener(\"focusin\", this.handleDocumentFocusIn);\n    }\n  }\n  removeOpenListeners() {\n    document.removeEventListener(\"focusin\", this.handleDocumentFocusIn);\n    document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n    document.removeEventListener(\"mousedown\", this.handleDocumentMouseDown);\n    unregisterDismissible(this);\n    if (this.getRootNode() !== document) {\n      this.getRootNode().removeEventListener(\"focusin\", this.handleDocumentFocusIn);\n    }\n  }\n  handleFocus() {\n    this.displayInput.setSelectionRange(0, 0);\n  }\n  handleLabelClick() {\n    this.displayInput.focus();\n  }\n  handleComboboxClick(event) {\n    event.preventDefault();\n  }\n  handleComboboxMouseDown(event) {\n    const path = event.composedPath();\n    const isButton = path.some((el) => el instanceof Element && el.tagName.toLowerCase() === \"wa-button\");\n    if (this.disabled || isButton) {\n      return;\n    }\n    event.preventDefault();\n    this.displayInput.focus({ preventScroll: true });\n    this.open = !this.open;\n  }\n  handleComboboxKeyDown(event) {\n    event.stopPropagation();\n    this.handleDocumentKeyDown(event);\n  }\n  handleClearClick(event) {\n    event.stopPropagation();\n    this.hasInteracted = true;\n    this.valueHasChanged = true;\n    if (this.value !== null) {\n      this.displayLabel = \"\";\n      this.selectionOrder.clear();\n      this.setSelectedOptions([]);\n      this.displayInput.focus({ preventScroll: true });\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new WaClearEvent());\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n      });\n    }\n  }\n  handleClearMouseDown(event) {\n    event.stopPropagation();\n    event.preventDefault();\n  }\n  handleOptionClick(event) {\n    const target = event.target;\n    const option = target.closest(\"wa-option\");\n    if (option && !option.disabled) {\n      this.hasInteracted = true;\n      this.valueHasChanged = true;\n      if (this.multiple) {\n        this.toggleOptionSelection(option);\n      } else {\n        this.setSelectedOptions(option);\n      }\n      this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));\n      this.requestUpdate(\"value\");\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n      });\n      if (!this.multiple) {\n        this.hide();\n        this.displayInput.focus({ preventScroll: true });\n      }\n    }\n  }\n  /* @internal - used by options to update labels */\n  handleDefaultSlotChange() {\n    if (this.slotChangePending) return;\n    this.slotChangePending = true;\n    queueMicrotask(() => {\n      this.slotChangePending = false;\n      this.processSlotChange();\n    });\n  }\n  processSlotChange() {\n    if (!customElements.get(\"wa-option\")) {\n      customElements.whenDefined(\"wa-option\").then(() => this.handleDefaultSlotChange());\n    }\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.handleDefaultSlotChange();\n      });\n      return;\n    }\n    this.cachedOptions = null;\n    const allOptions = this.getAllOptions();\n    this.updateDefaultValue();\n    let value = this.value;\n    if (value == null || !this.valueHasChanged && !this.hasInteracted) {\n      this.selectionChanged();\n      return;\n    }\n    if (!Array.isArray(value)) {\n      value = [value];\n    }\n    const selectedOptions = allOptions.filter((el) => value.includes(el.value));\n    this.setSelectedOptions(selectedOptions);\n  }\n  handleTagRemove(event, directOption) {\n    event.stopPropagation();\n    if (this.disabled) return;\n    this.hasInteracted = true;\n    this.valueHasChanged = true;\n    let option = directOption;\n    if (!option) {\n      const tagElement = event.target.closest(\"wa-tag[data-value]\");\n      if (tagElement) {\n        const value = tagElement.dataset.value;\n        option = this.selectedOptions.find((opt) => opt.value === value);\n      }\n    }\n    if (option) {\n      this.toggleOptionSelection(option, false);\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n      });\n    }\n  }\n  // Gets an array of all `<wa-option>` elements\n  getAllOptions() {\n    if (this.cachedOptions) return this.cachedOptions;\n    if (!this?.querySelectorAll) {\n      return [];\n    }\n    this.cachedOptions = [...this.querySelectorAll(\"wa-option\")];\n    return this.cachedOptions;\n  }\n  // Gets the first `<wa-option>` element\n  getFirstOption() {\n    return this.querySelector(\"wa-option\");\n  }\n  // Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one\n  // option may be \"current\" at a time.\n  setCurrentOption(option) {\n    const allOptions = this.getAllOptions();\n    allOptions.forEach((el) => {\n      el.current = false;\n      el.tabIndex = -1;\n    });\n    if (option) {\n      this.currentOption = option;\n      option.current = true;\n      option.tabIndex = 0;\n      option.focus({ preventScroll: true });\n      if (this.open && !this.listbox.hidden) {\n        scrollIntoView(option, this.listbox, \"vertical\", \"auto\");\n      }\n    }\n  }\n  // Sets the selected option(s)\n  setSelectedOptions(option) {\n    const allOptions = this.getAllOptions();\n    const newSelectedOptions = Array.isArray(option) ? option : [option];\n    allOptions.forEach((el) => {\n      if (newSelectedOptions.includes(el)) {\n        return;\n      }\n      el.selected = false;\n    });\n    if (newSelectedOptions.length) {\n      newSelectedOptions.forEach((el) => el.selected = true);\n    }\n    this.selectionChanged();\n  }\n  // Toggles an option's selected state\n  toggleOptionSelection(option, force) {\n    if (force === true || force === false) {\n      option.selected = force;\n    } else {\n      option.selected = !option.selected;\n    }\n    this.selectionChanged();\n  }\n  // @internal This method must be called whenever the selection changes. It will update the selected options cache, the\n  // current value, and the display value. The option component uses it internally to update labels as they change.\n  selectionChanged() {\n    const options = this.getAllOptions();\n    const newSelectedOptions = options.filter((el) => {\n      if (!this.hasInteracted && !this.valueHasChanged) {\n        const defaultValue = this.defaultValue;\n        const defaultValues = Array.isArray(defaultValue) ? defaultValue : [defaultValue];\n        return el.hasAttribute(\"selected\") || el.defaultSelected || el.selected || defaultValues?.includes(el.value);\n      }\n      return el.selected;\n    });\n    const newSelectedValues = new Set(newSelectedOptions.map((el) => el.value));\n    for (const value of this.selectionOrder.keys()) {\n      if (!newSelectedValues.has(value)) {\n        this.selectionOrder.delete(value);\n      }\n    }\n    const maxOrder = this.selectionOrder.size > 0 ? Math.max(...this.selectionOrder.values()) : -1;\n    let nextOrder = maxOrder + 1;\n    for (const option of newSelectedOptions) {\n      if (!this.selectionOrder.has(option.value)) {\n        this.selectionOrder.set(option.value, nextOrder++);\n      }\n    }\n    this.selectedOptions = newSelectedOptions.sort((a, b) => {\n      const orderA = this.selectionOrder.get(a.value) ?? 0;\n      const orderB = this.selectionOrder.get(b.value) ?? 0;\n      return orderA - orderB;\n    });\n    let selectedValues = new Set(this.selectedOptions.map((el) => el.value));\n    if (selectedValues.size > 0 || this._value) {\n      const oldValue = this._value;\n      if (this._value == null) {\n        let value = this.defaultValue ?? [];\n        this._value = Array.isArray(value) ? value : [value];\n      }\n      this._value = this._value?.filter((value) => !this.optionValues?.has(value)) ?? null;\n      this._value?.unshift(...selectedValues);\n      this.requestUpdate(\"value\", oldValue);\n    }\n    if (this.multiple) {\n      if (this.placeholder && !this.value?.length) {\n        this.displayLabel = \"\";\n      } else {\n        this.displayLabel = this.localize.term(\"numOptionsSelected\", this.selectedOptions.length);\n      }\n    } else {\n      const selectedOption = this.selectedOptions[0];\n      this.displayLabel = selectedOption?.label ?? \"\";\n    }\n    this.updateComplete.then(() => {\n      this.updateValidity();\n    });\n  }\n  get tags() {\n    return this.selectedOptions.map((option, index) => {\n      if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {\n        const tag = this.getTag(option, index);\n        if (!tag) return null;\n        return typeof tag === \"string\" ? unsafeHTML(tag) : tag;\n      } else if (index === this.maxOptionsVisible) {\n        return html`\n          <wa-tag\n            part=\"tag\"\n            exportparts=\"\n              base:tag__base,\n              content:tag__content,\n              remove-button:tag__remove-button,\n              remove-button__base:tag__remove-button__base\n            \"\n            ?pill=${this.pill}\n            size=${this.size}\n            >+${this.selectedOptions.length - index}</wa-tag\n          >\n        `;\n      }\n      return null;\n    });\n  }\n  updated(changedProperties) {\n    super.updated(changedProperties);\n    if (changedProperties.has(\"value\") || changedProperties.has(\"displayLabel\")) {\n      this.customStates.set(\"blank\", !this.value && !this.displayLabel);\n    }\n  }\n  handleDisabledChange() {\n    if (this.disabled && this.open) {\n      this.open = false;\n    }\n  }\n  handleValueChange() {\n    const allOptions = this.getAllOptions();\n    const value = Array.isArray(this.value) ? this.value : [this.value];\n    const selectedOptions = allOptions.filter((el) => value.includes(el.value));\n    this.setSelectedOptions(selectedOptions);\n    this.updateValidity();\n  }\n  async handleOpenChange() {\n    if (this.open && !this.disabled) {\n      this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());\n      const waShowEvent = new WaShowEvent();\n      this.dispatchEvent(waShowEvent);\n      if (waShowEvent.defaultPrevented) {\n        this.open = false;\n        return;\n      }\n      this.addOpenListeners();\n      this.listbox.hidden = false;\n      this.popup.active = true;\n      requestAnimationFrame(() => {\n        this.setCurrentOption(this.currentOption);\n      });\n      await animateWithClass(this.popup.popup, \"show\");\n      if (this.currentOption) {\n        scrollIntoView(this.currentOption, this.listbox, \"vertical\", \"auto\");\n      }\n      this.dispatchEvent(new WaAfterShowEvent());\n    } else {\n      const waHideEvent = new WaHideEvent();\n      this.dispatchEvent(waHideEvent);\n      if (waHideEvent.defaultPrevented) {\n        this.open = false;\n        return;\n      }\n      this.removeOpenListeners();\n      await animateWithClass(this.popup.popup, \"hide\");\n      this.listbox.hidden = true;\n      this.popup.active = false;\n      this.dispatchEvent(new WaAfterHideEvent());\n    }\n  }\n  /** Shows the listbox. */\n  async show() {\n    if (this.open || this.disabled) {\n      this.open = false;\n      return void 0;\n    }\n    this.open = true;\n    return waitForEvent(this, \"wa-after-show\");\n  }\n  /** Hides the listbox. */\n  async hide() {\n    if (!this.open || this.disabled) {\n      this.open = false;\n      return void 0;\n    }\n    this.open = false;\n    return waitForEvent(this, \"wa-after-hide\");\n  }\n  /** Sets focus on the control. */\n  focus(options) {\n    this.displayInput.focus(options);\n  }\n  /** Removes focus from the control. */\n  blur() {\n    this.displayInput.blur();\n  }\n  formResetCallback() {\n    this.selectionOrder.clear();\n    this.value = this.defaultValue;\n    super.formResetCallback();\n    this.handleValueChange();\n    this.updateComplete.then(() => {\n      this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n      this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n    });\n  }\n  render() {\n    const hasLabelSlot = this.hasSlotController.test(\"label\", \"withLabel\");\n    const hasHintSlot = this.hasSlotController.test(\"hint\", \"withHint\");\n    const hasLabel = this.label ? true : !!hasLabelSlot;\n    const hasHint = this.hint ? true : !!hasHintSlot;\n    const hasClearIcon = (this.hasUpdated || isServer) && this.withClear && !this.disabled && (this.displayLabel || this.value && this.value.length > 0);\n    return html`\n      <div\n        part=\"form-control\"\n        class=${classMap({\n      \"form-control\": true,\n      \"form-control-has-label\": hasLabel\n    })}\n      >\n        <label\n          id=\"label\"\n          part=\"form-control-label label\"\n          class=${classMap({\n      label: true,\n      \"has-label\": hasLabel\n    })}\n          aria-hidden=${hasLabel ? \"false\" : \"true\"}\n          @click=${this.handleLabelClick}\n        >\n          <slot name=\"label\">${this.label}</slot>\n        </label>\n\n        <div part=\"form-control-input\" class=\"form-control-input\">\n          <wa-popup\n            class=${classMap({\n      select: true,\n      open: this.open,\n      disabled: this.disabled,\n      enabled: !this.disabled,\n      multiple: this.multiple\n    })}\n            placement=${this.placement}\n            flip\n            shift\n            sync=\"width\"\n            auto-size=\"vertical\"\n            auto-size-padding=\"10\"\n          >\n            <div\n              part=\"combobox\"\n              class=\"combobox\"\n              slot=\"anchor\"\n              @keydown=${this.handleComboboxKeyDown}\n              @mousedown=${this.handleComboboxMouseDown}\n              @click=${this.handleComboboxClick}\n            >\n              <slot part=\"start\" name=\"start\" class=\"start\"></slot>\n\n              <input\n                part=\"display-input\"\n                class=\"display-input\"\n                type=\"text\"\n                placeholder=${this.placeholder}\n                .disabled=${this.disabled}\n                .value=${this.displayLabel}\n                ?required=${this.required}\n                autocomplete=\"off\"\n                spellcheck=\"false\"\n                autocapitalize=\"off\"\n                readonly\n                aria-invalid=${!this.validity.valid}\n                aria-controls=\"listbox\"\n                aria-expanded=${this.open ? \"true\" : \"false\"}\n                aria-haspopup=\"listbox\"\n                aria-labelledby=\"label\"\n                aria-disabled=${this.disabled ? \"true\" : \"false\"}\n                aria-describedby=\"hint\"\n                role=\"combobox\"\n                tabindex=\"0\"\n                @focus=${this.handleFocus}\n              />\n\n              <!-- Tags need to wait for first hydration before populating otherwise it will create a hydration mismatch. -->\n              ${this.multiple && this.hasUpdated ? html`<div part=\"tags\" class=\"tags\" @wa-remove=${this.handleTagRemove}>${this.tags}</div>` : \"\"}\n\n              <input\n                class=\"value-input\"\n                type=\"text\"\n                ?disabled=${this.disabled}\n                ?required=${this.required}\n                .value=${Array.isArray(this.value) ? this.value.join(\", \") : this.value}\n                tabindex=\"-1\"\n                aria-hidden=\"true\"\n                @focus=${() => this.focus()}\n              />\n\n              ${hasClearIcon ? html`\n                    <button\n                      part=\"clear-button\"\n                      type=\"button\"\n                      aria-label=${this.localize.term(\"clearEntry\")}\n                      @mousedown=${this.handleClearMouseDown}\n                      @click=${this.handleClearClick}\n                      tabindex=\"-1\"\n                    >\n                      <slot name=\"clear-icon\">\n                        <wa-icon name=\"circle-xmark\" library=\"system\" variant=\"regular\"></wa-icon>\n                      </slot>\n                    </button>\n                  ` : \"\"}\n\n              <slot name=\"end\" part=\"end\" class=\"end\"></slot>\n\n              <slot name=\"expand-icon\" part=\"expand-icon\" class=\"expand-icon\">\n                <wa-icon library=\"system\" name=\"chevron-down\" variant=\"solid\"></wa-icon>\n              </slot>\n            </div>\n\n            <div\n              id=\"listbox\"\n              role=\"listbox\"\n              aria-expanded=${this.open ? \"true\" : \"false\"}\n              aria-multiselectable=${this.multiple ? \"true\" : \"false\"}\n              aria-labelledby=\"label\"\n              part=\"listbox\"\n              class=\"listbox\"\n              tabindex=\"-1\"\n              @mouseup=${this.handleOptionClick}\n            >\n              <slot @slotchange=${this.handleDefaultSlotChange}></slot>\n            </div>\n          </wa-popup>\n        </div>\n\n        <slot\n          id=\"hint\"\n          name=\"hint\"\n          part=\"hint\"\n          class=${classMap({\n      \"has-slotted\": hasHint\n    })}\n          aria-hidden=${hasHint ? \"false\" : \"true\"}\n          >${this.hint}</slot\n        >\n      </div>\n    `;\n  }\n};\nWaSelect.css = [select_styles_default, form_control_styles_default, size_styles_default];\n__decorateClass([\n  query(\".select\")\n], WaSelect.prototype, \"popup\", 2);\n__decorateClass([\n  query(\".combobox\")\n], WaSelect.prototype, \"combobox\", 2);\n__decorateClass([\n  query(\".display-input\")\n], WaSelect.prototype, \"displayInput\", 2);\n__decorateClass([\n  query(\".value-input\")\n], WaSelect.prototype, \"valueInput\", 2);\n__decorateClass([\n  query(\".listbox\")\n], WaSelect.prototype, \"listbox\", 2);\n__decorateClass([\n  state()\n], WaSelect.prototype, \"displayLabel\", 2);\n__decorateClass([\n  state()\n], WaSelect.prototype, \"currentOption\", 2);\n__decorateClass([\n  state()\n], WaSelect.prototype, \"selectedOptions\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaSelect.prototype, \"name\", 2);\n__decorateClass([\n  property({\n    attribute: false\n  })\n], WaSelect.prototype, \"defaultValue\", 1);\n__decorateClass([\n  property({ attribute: \"value\", reflect: false })\n], WaSelect.prototype, \"value\", 1);\n__decorateClass([\n  property({ reflect: true })\n], WaSelect.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaSelect.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property()\n], WaSelect.prototype, \"placeholder\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaSelect.prototype, \"multiple\", 2);\n__decorateClass([\n  property({ attribute: \"max-options-visible\", type: Number })\n], WaSelect.prototype, \"maxOptionsVisible\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaSelect.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ attribute: \"with-clear\", type: Boolean })\n], WaSelect.prototype, \"withClear\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaSelect.prototype, \"open\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaSelect.prototype, \"appearance\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaSelect.prototype, \"pill\", 2);\n__decorateClass([\n  property()\n], WaSelect.prototype, \"label\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaSelect.prototype, \"placement\", 2);\n__decorateClass([\n  property({ attribute: \"hint\" })\n], WaSelect.prototype, \"hint\", 2);\n__decorateClass([\n  property({ attribute: \"with-label\", type: Boolean })\n], WaSelect.prototype, \"withLabel\", 2);\n__decorateClass([\n  property({ attribute: \"with-hint\", type: Boolean })\n], WaSelect.prototype, \"withHint\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaSelect.prototype, \"required\", 2);\n__decorateClass([\n  property({ attribute: false })\n], WaSelect.prototype, \"getTag\", 2);\n__decorateClass([\n  watch(\"disabled\", { waitUntilFirstUpdate: true })\n], WaSelect.prototype, \"handleDisabledChange\", 1);\n__decorateClass([\n  watch(\"value\", { waitUntilFirstUpdate: true })\n], WaSelect.prototype, \"handleValueChange\", 1);\n__decorateClass([\n  watch(\"open\", { waitUntilFirstUpdate: true })\n], WaSelect.prototype, \"handleOpenChange\", 1);\nWaSelect = __decorateClass([\n  customElement(\"wa-select\")\n], WaSelect);\nWaSelect.disableWarning?.(\"change-in-update\");\n\nexport {\n  WaSelect\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/remove.ts\nvar WaRemoveEvent = class extends Event {\n  constructor() {\n    super(\"wa-remove\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaRemoveEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/tag/tag.styles.ts\nimport { css } from \"lit\";\nvar tag_styles_default = css`\n  @layer wa-component {\n    :host {\n      display: inline-flex;\n      gap: 0.5em;\n      border-radius: var(--wa-border-radius-m);\n      align-items: center;\n      background-color: var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet));\n      border-color: var(--wa-color-border-normal, var(--wa-color-neutral-border-normal));\n      border-style: var(--wa-border-style);\n      border-width: var(--wa-border-width-s);\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      font-size: inherit;\n      line-height: 1;\n      white-space: nowrap;\n      user-select: none;\n      -webkit-user-select: none;\n      height: calc(var(--wa-form-control-height) * 0.8);\n      line-height: calc(var(--wa-form-control-height) - var(--wa-form-control-border-width) * 2);\n      padding: 0 0.75em;\n    }\n\n    /* Appearance modifiers */\n    :host([appearance='outlined']) {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: transparent;\n      border-color: var(--wa-color-border-loud, var(--wa-color-neutral-border-loud));\n    }\n\n    :host([appearance='filled']) {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet));\n      border-color: transparent;\n    }\n\n    :host([appearance='filled-outlined']) {\n      color: var(--wa-color-on-quiet, var(--wa-color-neutral-on-quiet));\n      background-color: var(--wa-color-fill-quiet, var(--wa-color-neutral-fill-quiet));\n      border-color: var(--wa-color-border-normal, var(--wa-color-neutral-border-normal));\n    }\n\n    :host([appearance='accent']) {\n      color: var(--wa-color-on-loud, var(--wa-color-neutral-on-loud));\n      background-color: var(--wa-color-fill-loud, var(--wa-color-neutral-fill-loud));\n      border-color: transparent;\n    }\n  }\n\n  .content {\n    font-size: var(--wa-font-size-smaller);\n  }\n\n  [part='remove-button'] {\n    line-height: 1;\n  }\n\n  [part='remove-button']::part(base) {\n    padding: 0;\n    height: 1em;\n    width: 1em;\n    color: currentColor;\n  }\n\n  @media (hover: hover) {\n    :host(:hover) > [part='remove-button']::part(base) {\n      background-color: transparent;\n      color: color-mix(in oklab, currentColor, var(--wa-color-mix-hover));\n    }\n  }\n\n  :host(:active) > [part='remove-button']::part(base) {\n    background-color: transparent;\n    color: color-mix(in oklab, currentColor, var(--wa-color-mix-active));\n  }\n\n  /*\n   * Pill modifier\n   */\n  :host([pill]) {\n    border-radius: var(--wa-border-radius-pill);\n  }\n`;\n\nexport {\n  tag_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  WaRemoveEvent\n} from \"./chunk.HPULLNVR.js\";\nimport {\n  tag_styles_default\n} from \"./chunk.4AHPL3WP.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  variants_styles_default\n} from \"./chunk.XNTP7DEQ.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/tag/tag.ts\nimport { html } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nvar WaTag = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    this.localize = new LocalizeController(this);\n    this.variant = \"neutral\";\n    this.appearance = \"filled-outlined\";\n    this.size = \"m\";\n    this.pill = false;\n    this.withRemove = false;\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  handleRemoveClick() {\n    this.dispatchEvent(new WaRemoveEvent());\n  }\n  render() {\n    return html`\n      <slot part=\"content\" class=\"content\"></slot>\n\n      ${this.withRemove ? html`\n            <wa-button\n              part=\"remove-button\"\n              exportparts=\"base:remove-button__base\"\n              class=\"remove\"\n              appearance=\"plain\"\n              size=${this.size}\n              @click=${this.handleRemoveClick}\n              tabindex=\"-1\"\n            >\n              <wa-icon name=\"xmark\" library=\"system\" variant=\"solid\" label=${this.localize.term(\"remove\")}></wa-icon>\n            </wa-button>\n          ` : \"\"}\n    `;\n  }\n};\nWaTag.css = [tag_styles_default, variants_styles_default, size_styles_default];\n__decorateClass([\n  property({ reflect: true })\n], WaTag.prototype, \"variant\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaTag.prototype, \"appearance\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaTag.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaTag.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaTag.prototype, \"pill\", 2);\n__decorateClass([\n  property({ attribute: \"with-remove\", type: Boolean })\n], WaTag.prototype, \"withRemove\", 2);\nWaTag = __decorateClass([\n  customElement(\"wa-tag\")\n], WaTag);\n\nexport {\n  WaTag\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/option/option.styles.ts\nimport { css } from \"lit\";\nvar option_styles_default = css`\n  :host {\n    --current-text-color: var(--wa-color-brand-on-loud);\n\n    display: block;\n    color: var(--wa-color-text-normal);\n    -webkit-user-select: none;\n    user-select: none;\n\n    position: relative;\n    display: flex;\n    align-items: center;\n    font: inherit;\n    padding: 0.5em 1em 0.5em 0.25em;\n    border-radius: var(--wa-border-radius-s);\n    line-height: var(--wa-line-height-condensed);\n    transition: var(--wa-transition-fast) background-color var(--wa-transition-easing);\n    cursor: pointer;\n  }\n\n  :host(:focus) {\n    outline: none;\n  }\n\n  @media (hover: hover) {\n    :host(:not(:state(disabled), :state(current)):is(:state(hover), :hover)) {\n      background-color: var(--wa-color-neutral-fill-normal);\n      color: var(--wa-color-neutral-on-normal);\n    }\n  }\n\n  :host(:state(current)),\n  :host(:state(disabled):state(current)) {\n    background-color: var(--wa-form-control-activated-color);\n    color: var(--current-text-color);\n    opacity: 1;\n  }\n\n  :host(:state(disabled)) {\n    outline: none;\n    opacity: 0.5;\n    cursor: not-allowed;\n  }\n\n  .label {\n    flex: 1 1 auto;\n    display: inline-block;\n  }\n\n  .check {\n    flex: 0 0 auto;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: var(--wa-font-size-smaller);\n    visibility: hidden;\n    width: 2em;\n  }\n\n  :host(:state(selected)) .check {\n    visibility: visible;\n  }\n\n  .start,\n  .end {\n    flex: 0 0 auto;\n    display: flex;\n    align-items: center;\n  }\n\n  .start::slotted(*) {\n    margin-inline-end: 0.5em;\n  }\n\n  .end::slotted(*) {\n    margin-inline-start: 0.5em;\n  }\n\n  @media (forced-colors: active) {\n    :host(:hover:not([aria-disabled='true'])) {\n      outline: dashed 1px SelectedItem;\n      outline-offset: -1px;\n    }\n  }\n`;\n\nexport {\n  option_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  option_styles_default\n} from \"./chunk.C3KOHXUM.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/option/option.ts\nimport { html, nothing } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\n\n// src/internal/get-text.ts\nfunction getText(root, depth = 0) {\n  if (!root || !globalThis.Node) {\n    return \"\";\n  }\n  if (typeof root[Symbol.iterator] === \"function\") {\n    let nodes = Array.isArray(root) ? root : [...root];\n    return nodes.map((node2) => getText(node2, --depth)).join(\"\");\n  }\n  let node = root;\n  if (node.nodeType === Node.TEXT_NODE) {\n    return node.textContent ?? \"\";\n  }\n  if (node.nodeType === Node.ELEMENT_NODE) {\n    let element = node;\n    if (element.hasAttribute(\"slot\") || element.matches(\"style, script\")) {\n      return \"\";\n    }\n    if (element instanceof HTMLSlotElement) {\n      let assignedNodes = element.assignedNodes({ flatten: true });\n      if (assignedNodes.length > 0) {\n        return getText(assignedNodes, --depth);\n      }\n    }\n    return depth > -1 ? getText(element, --depth) : element.textContent ?? \"\";\n  }\n  return node.hasChildNodes() ? getText(node.childNodes, --depth) : \"\";\n}\n\n// src/components/option/option.ts\nvar WaOption = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    // @ts-expect-error - Controller is currently unused\n    this.localize = new LocalizeController(this);\n    this.cachedDefaultLabel = \"\";\n    this.isInitialized = false;\n    this.isDefaultLabelDirty = true;\n    this.current = false;\n    this.value = \"\";\n    this.disabled = false;\n    this.selected = false;\n    this.defaultSelected = false;\n    this._label = \"\";\n    this.handleHover = (event) => {\n      if (event.type === \"mouseenter\") {\n        this.customStates.set(\"hover\", true);\n      } else if (event.type === \"mouseleave\") {\n        this.customStates.set(\"hover\", false);\n      }\n    };\n  }\n  set label(value) {\n    const oldValue = this._label;\n    this._label = value || \"\";\n    if (this._label !== oldValue) {\n      this.requestUpdate(\"label\", oldValue);\n    }\n  }\n  get label() {\n    if (this._label) {\n      return this._label;\n    }\n    return this.defaultLabel;\n  }\n  /** The default label, generated from the element contents. Will be equal to `label` in most cases. */\n  get defaultLabel() {\n    if (this.isDefaultLabelDirty || !this.cachedDefaultLabel) {\n      this.updateDefaultLabel();\n    }\n    return this.cachedDefaultLabel;\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    this.setAttribute(\"role\", \"option\");\n    this.setAttribute(\"aria-selected\", \"false\");\n    this.addEventListener(\"mouseenter\", this.handleHover);\n    this.addEventListener(\"mouseleave\", this.handleHover);\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    this.removeEventListener(\"mouseenter\", this.handleHover);\n    this.removeEventListener(\"mouseleave\", this.handleHover);\n  }\n  handleDefaultSlotChange() {\n    this.isDefaultLabelDirty = true;\n    if (!this.isInitialized) {\n      this.isInitialized = true;\n      return;\n    }\n    const controller = this.closest(\"wa-select, wa-combobox\");\n    if (controller) {\n      customElements.whenDefined(controller.localName).then(() => controller.handleDefaultSlotChange?.());\n    }\n  }\n  willUpdate(changedProperties) {\n    if (changedProperties.has(\"defaultSelected\")) {\n      if (this.didSSR && this.hasUpdated || !this.didSSR) {\n        this.syncDefaultSelected();\n      }\n    }\n    super.willUpdate(changedProperties);\n  }\n  syncDefaultSelected() {\n    if (\"closest\" in this) {\n      if (!this.closest(\"wa-combobox, wa-select\")?.hasInteracted) {\n        if (this.defaultSelected) {\n          const oldVal = this.selected;\n          this.selected = this.defaultSelected;\n          this.requestUpdate(\"selected\", oldVal);\n        }\n      }\n    }\n  }\n  updated(changedProperties) {\n    if (changedProperties.has(\"disabled\")) {\n      this.setAttribute(\"aria-disabled\", this.disabled ? \"true\" : \"false\");\n      this.customStates.set(\"disabled\", this.disabled);\n    }\n    if (changedProperties.has(\"selected\")) {\n      this.setAttribute(\"aria-selected\", this.selected ? \"true\" : \"false\");\n      this.customStates.set(\"selected\", this.selected);\n    }\n    if (changedProperties.has(\"value\")) {\n      if (typeof this.value !== \"string\") {\n        this.value = String(this.value);\n      }\n      this.handleDefaultSlotChange();\n    }\n    if (changedProperties.has(\"current\")) {\n      this.customStates.set(\"current\", this.current);\n    }\n    super.updated(changedProperties);\n  }\n  async firstUpdated(changedProperties) {\n    super.firstUpdated(changedProperties);\n    if (this.didSSR && !this.hasUpdated) {\n      await this.updateComplete;\n      this.syncDefaultSelected();\n    } else {\n      this.syncDefaultSelected();\n    }\n    if (this.selected && !this.defaultSelected) {\n      const parent = this.closest(\"wa-select, wa-combobox\");\n      if (parent && !parent.hasInteracted) {\n        await customElements.whenDefined(parent?.localName);\n        await parent.updateComplete;\n        parent.selectionChanged?.();\n      }\n    }\n  }\n  updateDefaultLabel() {\n    let oldValue = this.cachedDefaultLabel;\n    this.cachedDefaultLabel = getText(this).trim();\n    this.isDefaultLabelDirty = false;\n    let changed = this.cachedDefaultLabel !== oldValue;\n    if (!this._label && changed) {\n      this.requestUpdate(\"label\", oldValue);\n    }\n    return changed;\n  }\n  render() {\n    let selected = this.selected;\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.requestUpdate();\n      });\n      return nothing;\n    }\n    return html`\n      ${selected ? html`<wa-icon\n            part=\"checked-icon\"\n            class=\"check\"\n            name=\"check\"\n            library=\"system\"\n            variant=\"solid\"\n            aria-hidden=\"true\"\n          ></wa-icon>` : html`<span part=\"checked-icon\" class=\"check\" aria-hidden=\"true\"></span>`}\n      <slot part=\"start\" name=\"start\" class=\"start\"></slot>\n      <slot part=\"label\" class=\"label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n      <slot part=\"end\" name=\"end\" class=\"end\"></slot>\n    `;\n  }\n};\nWaOption.css = option_styles_default;\n__decorateClass([\n  query(\".label\")\n], WaOption.prototype, \"defaultSlot\", 2);\n__decorateClass([\n  state()\n], WaOption.prototype, \"current\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaOption.prototype, \"value\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaOption.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ type: Boolean, attribute: false })\n], WaOption.prototype, \"selected\", 2);\n__decorateClass([\n  property({ type: Boolean, attribute: \"selected\" })\n], WaOption.prototype, \"defaultSelected\", 2);\n__decorateClass([\n  property()\n], WaOption.prototype, \"label\", 1);\nWaOption = __decorateClass([\n  customElement(\"wa-option\")\n], WaOption);\n\nexport {\n  WaOption\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/events/reposition.ts\nvar WaRepositionEvent = class extends Event {\n  constructor() {\n    super(\"wa-reposition\", { bubbles: true, cancelable: false, composed: true });\n  }\n};\n\nexport {\n  WaRepositionEvent\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/popup/popup.styles.ts\nimport { css } from \"lit\";\nvar popup_styles_default = css`\n  :host {\n    --arrow-color: black;\n    --arrow-size: var(--wa-tooltip-arrow-size);\n    --popup-border-width: 0px;\n    --show-duration: var(--wa-transition-fast);\n    --hide-duration: var(--wa-transition-fast);\n\n    /*\n     * These properties are computed to account for the arrow's dimensions after being rotated 45\u00BA. The constant\n     * 0.7071 is derived from sin(45) to calculate the length of the arrow after rotation.\n     *\n     * The diamond will be translated inward by --arrow-base-offset, the border thickness, to centralise it on\n     * the inner edge of the popup border. This also means we need to increase the size of the arrow by the\n     * same amount to compensate.\n     *\n     * A diamond shaped clipping mask is used to avoid overlap of popup content. This extends slightly inward so\n     * the popup border is covered with no sub-pixel rounding artifacts. The diamond corners are mitred at 22.5\u00BA\n     * to properly merge any arrow border with the popup border. The constant 1.4142 is derived from 1 + tan(22.5).\n     *\n     */\n    --arrow-base-offset: var(--popup-border-width);\n    --arrow-size-diagonal: calc((var(--arrow-size) + var(--arrow-base-offset)) * 0.7071);\n    --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));\n    --arrow-size-div: calc(var(--arrow-size-diagonal) * 2);\n    --arrow-clipping-corner: calc(var(--arrow-base-offset) * 1.4142);\n\n    display: contents;\n  }\n\n  .popup {\n    position: absolute;\n    isolation: isolate;\n    max-width: var(--auto-size-available-width, none);\n    max-height: var(--auto-size-available-height, none);\n\n    /* Clear UA styles for [popover] */\n    :where(&) {\n      inset: unset;\n      padding: unset;\n      margin: unset;\n      width: unset;\n      height: unset;\n      color: unset;\n      background: unset;\n      border: unset;\n      overflow: unset;\n    }\n  }\n\n  .popup-fixed {\n    position: fixed;\n  }\n\n  .popup:not(.popup-active) {\n    display: none;\n  }\n\n  .arrow {\n    position: absolute;\n    width: var(--arrow-size-div);\n    height: var(--arrow-size-div);\n    background: var(--arrow-color);\n    z-index: 3;\n    clip-path: polygon(\n      var(--arrow-clipping-corner) 100%,\n      var(--arrow-base-offset) calc(100% - var(--arrow-base-offset)),\n      calc(var(--arrow-base-offset) - 2px) calc(100% - var(--arrow-base-offset)),\n      calc(100% - var(--arrow-base-offset)) calc(var(--arrow-base-offset) - 2px),\n      calc(100% - var(--arrow-base-offset)) var(--arrow-base-offset),\n      100% var(--arrow-clipping-corner),\n      100% 100%\n    );\n    rotate: 45deg;\n  }\n\n  :host([data-current-placement|='left']) .arrow {\n    rotate: -45deg;\n  }\n\n  :host([data-current-placement|='right']) .arrow {\n    rotate: 135deg;\n  }\n\n  :host([data-current-placement|='bottom']) .arrow {\n    rotate: 225deg;\n  }\n\n  /* Hover bridge */\n  .popup-hover-bridge:not(.popup-hover-bridge-visible) {\n    display: none;\n  }\n\n  .popup-hover-bridge {\n    position: fixed;\n    z-index: 899;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    clip-path: polygon(\n      var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),\n      var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),\n      var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),\n      var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)\n    );\n  }\n\n  /* Built-in animations */\n  .show {\n    animation: show var(--show-duration) ease;\n  }\n\n  .hide {\n    animation: show var(--hide-duration) ease reverse;\n  }\n\n  @keyframes show {\n    from {\n      opacity: 0;\n    }\n    to {\n      opacity: 1;\n    }\n  }\n\n  .show-with-scale {\n    animation: show-with-scale var(--show-duration) ease;\n  }\n\n  .hide-with-scale {\n    animation: show-with-scale var(--hide-duration) ease reverse;\n  }\n\n  @keyframes show-with-scale {\n    from {\n      opacity: 0;\n      scale: 0.8;\n    }\n    to {\n      opacity: 1;\n      scale: 1;\n    }\n  }\n`;\n\nexport {\n  popup_styles_default\n};\n", "/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n  x: v,\n  y: v\n});\nconst oppositeSideMap = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n  return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n  return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n  const firstChar = placement[0];\n  return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n  switch (side) {\n    case 'top':\n    case 'bottom':\n      if (rtl) return isStart ? rlPlacement : lrPlacement;\n      return isStart ? lrPlacement : rlPlacement;\n    case 'left':\n    case 'right':\n      return isStart ? tbPlacement : btPlacement;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === 'start', rtl);\n  if (alignment) {\n    list = list.map(side => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  const side = getSide(placement);\n  return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n  var _padding$top, _padding$right, _padding$bottom, _padding$left;\n  return {\n    top: (_padding$top = padding.top) != null ? _padding$top : 0,\n    right: (_padding$right = padding.right) != null ? _padding$right : 0,\n    bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,\n    left: (_padding$left = padding.left) != null ? _padding$left : 0\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  const {\n    x,\n    y,\n    width,\n    height\n  } = rect;\n  return {\n    width,\n    height,\n    top: y,\n    left: x,\n    right: x + width,\n    bottom: y + height,\n    x,\n    y\n  };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n", "import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === 'y';\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case 'top':\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case 'bottom':\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case 'right':\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case 'left':\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  const alignment = getAlignment(placement);\n  if (alignment) {\n    coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);\n  }\n  return coords;\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = 'clippingAncestors',\n    rootBoundary = 'viewport',\n    elementContext = 'floating',\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n    element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === 'floating' ? {\n    x,\n    y,\n    width: rects.floating.width,\n    height: rects.floating.height\n  } : rects.reference;\n  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\n\n// Maximum number of resets that can occur before bailing to avoid infinite reset loops.\nconst MAX_RESET_COUNT = 50;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n  const {\n    placement = 'bottom',\n    strategy = 'absolute',\n    middleware = [],\n    platform\n  } = config;\n  const platformWithDetectOverflow = platform.detectOverflow ? platform : {\n    ...platform,\n    detectOverflow\n  };\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n  let rects = await platform.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let resetCount = 0;\n  const middlewareData = {};\n  for (let i = 0; i < middleware.length; i++) {\n    const currentMiddleware = middleware[i];\n    if (!currentMiddleware) {\n      continue;\n    }\n    const {\n      name,\n      fn\n    } = currentMiddleware;\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platformWithDetectOverflow,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData[name] = {\n      ...middlewareData[name],\n      ...data\n    };\n    if (reset && resetCount < MAX_RESET_COUNT) {\n      resetCount++;\n      if (typeof reset === 'object') {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n  name: 'arrow',\n  options,\n  async fn(state) {\n    const {\n      x,\n      y,\n      placement,\n      rects,\n      platform,\n      elements,\n      middlewareData\n    } = state;\n    // Since `element` is required, we don't Partial<> the type.\n    const {\n      element,\n      padding = 0\n    } = evaluate(options, state) || {};\n    if (element == null) {\n      return {};\n    }\n    const paddingObject = getPaddingObject(padding);\n    const coords = {\n      x,\n      y\n    };\n    const axis = getAlignmentAxis(placement);\n    const length = getAxisLength(axis);\n    const arrowDimensions = await platform.getDimensions(element);\n    const isYAxis = axis === 'y';\n    const minProp = isYAxis ? 'top' : 'left';\n    const maxProp = isYAxis ? 'bottom' : 'right';\n    const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n    const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n    const startDiff = coords[axis] - rects.reference[axis];\n    const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n    let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n    // DOM platform can return `window` as the `offsetParent`.\n    if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n      clientSize = elements.floating[clientProp] || rects.floating[length];\n    }\n    const centerToReference = endDiff / 2 - startDiff / 2;\n\n    // If the padding is large enough that it causes the arrow to no longer be\n    // centered, modify the padding so that it is centered.\n    const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n    const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n    const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n    // Make sure the arrow doesn't overflow the floating element if the center\n    // point is outside the floating element's bounds.\n    const max = clientSize - arrowDimensions[length] - maxPadding;\n    const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n    const offset = clamp(minPadding, center, max);\n\n    // If the reference is small enough that the arrow's padding causes it to\n    // to point to nothing for an aligned placement, adjust the offset of the\n    // floating element itself. To ensure `shift()` continues to take action,\n    // a single reset is performed when this is true.\n    const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n    const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;\n    return {\n      [axis]: coords[axis] + alignmentOffset,\n      data: {\n        [axis]: offset,\n        centerOffset: center - offset - alignmentOffset,\n        ...(shouldAddOffset && {\n          alignmentOffset\n        })\n      },\n      reset: shouldAddOffset\n    };\n  }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n  const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n  return allowedPlacementsSortedByAlignment.filter(placement => {\n    if (alignment) {\n      return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n    }\n    return true;\n  });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'autoPlacement',\n    options,\n    async fn(state) {\n      var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n      const {\n        rects,\n        middlewareData,\n        placement,\n        platform,\n        elements\n      } = state;\n      const {\n        crossAxis = false,\n        alignment,\n        allowedPlacements = placements,\n        autoAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n      const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n      const currentPlacement = placements$1[currentIndex];\n      if (currentPlacement == null) {\n        return {};\n      }\n\n      // Make `computeCoords` start from the right place.\n      if (placement !== currentPlacement) {\n        return {\n          reset: {\n            placement: placements$1[0]\n          }\n        };\n      }\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n      const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n      const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n        placement: currentPlacement,\n        overflows: currentOverflows\n      }];\n      const nextPlacement = placements$1[currentIndex + 1];\n\n      // There are more placements to check.\n      if (nextPlacement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: nextPlacement\n          }\n        };\n      }\n      const placementsSortedByMostSpace = allOverflows.map(d => {\n        const alignment = getAlignment(d.placement);\n        return [d.placement, alignment && crossAxis ?\n        // Check along the mainAxis and main crossAxis side.\n        d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n        // Check only the mainAxis.\n        d.overflows[0], d.overflows];\n      }).sort((a, b) => a[1] - b[1]);\n      const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n      // Aligned placements should not check their opposite crossAxis\n      // side.\n      getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n      const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n      if (resetPlacement !== placement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: resetPlacement\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'flip',\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = 'bestFit',\n        fallbackAxisSideDirection = 'none',\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n\n      // If a reset by the arrow was caused due to an alignment offset being\n      // added, we should skip any logic now since `flip()` has already done its\n      // work.\n      // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const initialSideAxis = getSideAxis(initialPlacement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n      if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements = [initialPlacement, ...fallbackPlacements];\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides[0]], overflow[sides[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n\n      // One or more sides is overflowing.\n      if (!overflows.every(side => side <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements[nextIndex];\n        if (nextPlacement) {\n          const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n          if (!ignoreCrossAxisOverflow ||\n          // We leave the current main axis only if every placement on that axis\n          // overflows the main axis.\n          overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n            // Try next placement and re-run the lifecycle.\n            return {\n              data: {\n                index: nextIndex,\n                overflows: overflowsData\n              },\n              reset: {\n                placement: nextPlacement\n              }\n            };\n          }\n        }\n\n        // First, find the candidates that fit on the mainAxis side of overflow,\n        // then find the placement that fits the best on the main crossAxis side.\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n        // Otherwise fallback.\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case 'bestFit':\n              {\n                var _overflowsData$filter2;\n                const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n                  if (hasFallbackAxisSideDirection) {\n                    const currentSideAxis = getSideAxis(d.placement);\n                    return currentSideAxis === initialSideAxis ||\n                    // Create a bias to the `y` side axis due to horizontal\n                    // reading directions favoring greater width.\n                    currentSideAxis === 'y';\n                  }\n                  return true;\n                }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n                if (placement) {\n                  resetPlacement = placement;\n                }\n                break;\n              }\n            case 'initialPlacement':\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\n\nfunction getSideOffsets(overflow, rect) {\n  return {\n    top: overflow.top - rect.height,\n    right: overflow.right - rect.width,\n    bottom: overflow.bottom - rect.height,\n    left: overflow.left - rect.width\n  };\n}\nfunction isAnySideFullyClipped(overflow) {\n  return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'hide',\n    options,\n    async fn(state) {\n      const {\n        rects,\n        platform\n      } = state;\n      const {\n        strategy = 'referenceHidden',\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      switch (strategy) {\n        case 'referenceHidden':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              elementContext: 'reference'\n            });\n            const offsets = getSideOffsets(overflow, rects.reference);\n            return {\n              data: {\n                referenceHiddenOffsets: offsets,\n                referenceHidden: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        case 'escaped':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              altBoundary: true\n            });\n            const offsets = getSideOffsets(overflow, rects.floating);\n            return {\n              data: {\n                escapedOffsets: offsets,\n                escaped: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        default:\n          {\n            return {};\n          }\n      }\n    }\n  };\n};\n\nfunction getBoundingRect(rects) {\n  const minX = min(...rects.map(rect => rect.left));\n  const minY = min(...rects.map(rect => rect.top));\n  const maxX = max(...rects.map(rect => rect.right));\n  const maxY = max(...rects.map(rect => rect.bottom));\n  return {\n    x: minX,\n    y: minY,\n    width: maxX - minX,\n    height: maxY - minY\n  };\n}\nfunction getRectsByLine(rects) {\n  const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n  const groups = [];\n  let prevRect = null;\n  for (let i = 0; i < sortedRects.length; i++) {\n    const rect = sortedRects[i];\n    if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n      groups.push([rect]);\n    } else {\n      groups[groups.length - 1].push(rect);\n    }\n    prevRect = rect;\n  }\n  return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'inline',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        elements,\n        rects,\n        platform,\n        strategy\n      } = state;\n      // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n      // ClientRect's bounds, despite the event listener being triggered. A\n      // padding of 2 seems to handle this issue.\n      const {\n        padding = 2,\n        x,\n        y\n      } = evaluate(options, state);\n      const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n\n      // No rects (e.g. a hidden or detached reference, or a collapsed range) \u2014\n      // keep the existing reference rect rather than resetting to an invalid\n      // one with non-finite values.\n      if (!nativeClientRects.length) {\n        return {};\n      }\n      const clientRects = getRectsByLine(nativeClientRects);\n      const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n      const paddingObject = getPaddingObject(padding);\n      function getBoundingClientRect() {\n        // There are two rects and they are disjoined.\n        if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {\n          // Find the first rect in which the point is fully inside.\n          return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n        }\n\n        // There are 2 or more connected rects.\n        if (clientRects.length >= 2) {\n          if (getSideAxis(placement) === 'y') {\n            const firstRect = clientRects[0];\n            const lastRect = clientRects[clientRects.length - 1];\n            const isTop = getSide(placement) === 'top';\n            const top = firstRect.top;\n            const bottom = lastRect.bottom;\n            const left = isTop ? firstRect.left : lastRect.left;\n            const right = isTop ? firstRect.right : lastRect.right;\n            return rectToClientRect({\n              x: left,\n              y: top,\n              width: right - left,\n              height: bottom - top\n            });\n          }\n          const isLeftSide = getSide(placement) === 'left';\n          const maxRight = max(...clientRects.map(rect => rect.right));\n          const minLeft = min(...clientRects.map(rect => rect.left));\n          const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n          const top = measureRects[0].top;\n          const bottom = measureRects[measureRects.length - 1].bottom;\n          return rectToClientRect({\n            x: minLeft,\n            y: top,\n            width: maxRight - minLeft,\n            height: bottom - top\n          });\n        }\n        return fallback;\n      }\n      const resetRects = await platform.getElementRects({\n        reference: {\n          getBoundingClientRect\n        },\n        floating: elements.floating,\n        strategy\n      });\n      if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n        return {\n          reset: {\n            rects: resetRects\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform,\n    elements\n  } = state;\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === 'y';\n  const mainAxisMulti = originSides.has(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n\n  // eslint-disable-next-line prefer-const\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === 'number' ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: rawValue.mainAxis || 0,\n    crossAxis: rawValue.crossAxis || 0,\n    alignmentAxis: rawValue.alignmentAxis\n  };\n  if (alignment && typeof alignmentAxis === 'number') {\n    crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: 'offset',\n    options,\n    async fn(state) {\n      var _middlewareData$offse, _middlewareData$arrow;\n      const {\n        x,\n        y,\n        placement,\n        middlewareData\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n\n      // If the placement is the same and the arrow caused an alignment offset\n      // then we don't need to change the positioning coordinates.\n      if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: {\n          ...diffCoords,\n          placement\n        }\n      };\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'shift',\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement,\n        platform\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: _ref => {\n            let {\n              x,\n              y\n            } = _ref;\n            return {\n              x,\n              y\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);\n      if (checkMainAxis) {\n        mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);\n      }\n      if (checkCrossAxis) {\n        crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y,\n          enabled: {\n            [mainAxis]: checkMainAxis,\n            [crossAxis]: checkCrossAxis\n          }\n        }\n      };\n    }\n  };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    options,\n    fn(state) {\n      var _rawOffset$mainAxis, _rawOffset$crossAxis;\n      const {\n        x,\n        y,\n        placement,\n        rects,\n        middlewareData\n      } = state;\n      const {\n        offset = 0,\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const rawOffset = evaluate(offset, state);\n      const computedOffset = typeof rawOffset === 'number' ? {\n        mainAxis: rawOffset,\n        crossAxis: 0\n      } : {\n        mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,\n        crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0\n      };\n      if (checkMainAxis) {\n        const len = mainAxis === 'y' ? 'height' : 'width';\n        const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n        const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n        if (mainAxisCoord < limitMin) {\n          mainAxisCoord = limitMin;\n        } else if (mainAxisCoord > limitMax) {\n          mainAxisCoord = limitMax;\n        }\n      }\n      if (checkCrossAxis) {\n        var _middlewareData$offse, _middlewareData$offse2;\n        const len = mainAxis === 'y' ? 'width' : 'height';\n        const isOriginSide = originSides.has(getSide(placement));\n        const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n        const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n        if (crossAxisCoord < limitMin) {\n          crossAxisCoord = limitMin;\n        } else if (crossAxisCoord > limitMax) {\n          crossAxisCoord = limitMax;\n        }\n      }\n      return {\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      };\n    }\n  };\n};\n\n// Method syntax keeps callback parameters bivariant, but expressing the\n// explicit `| undefined` required by `exactOptionalPropertyTypes` needs\n// property syntax, which is contravariant under `strictFunctionTypes`.\n// Extracting the function from a method position restores that bivariance so\n// consumers can still assign callbacks with narrower parameter types.\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'size',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        rects,\n        platform,\n        elements\n      } = state;\n      const {\n        apply = () => {},\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const side = getSide(placement);\n      const alignment = getAlignment(placement);\n      const isYAxis = getSideAxis(placement) === 'y';\n      const {\n        width,\n        height\n      } = rects.floating;\n      let heightSide;\n      let widthSide;\n      if (side === 'top' || side === 'bottom') {\n        heightSide = side;\n        widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n      } else {\n        widthSide = side;\n        heightSide = alignment === 'end' ? 'top' : 'bottom';\n      }\n      const maximumClippingHeight = height - overflow.top - overflow.bottom;\n      const maximumClippingWidth = width - overflow.left - overflow.right;\n      const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n      const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n      const shiftData = state.middlewareData.shift;\n      const noShift = !shiftData;\n      let availableHeight = overflowAvailableHeight;\n      let availableWidth = overflowAvailableWidth;\n      if (shiftData != null && shiftData.enabled.x) {\n        availableWidth = maximumClippingWidth;\n      }\n      if (shiftData != null && shiftData.enabled.y) {\n        availableHeight = maximumClippingHeight;\n      }\n      if (noShift && !alignment) {\n        if (isYAxis) {\n          availableWidth = width - 2 * max(overflow.left, overflow.right);\n        } else {\n          availableHeight = height - 2 * max(overflow.top, overflow.bottom);\n        }\n      }\n      await apply({\n        ...state,\n        availableWidth,\n        availableHeight\n      });\n      const nextDimensions = await platform.getDimensions(elements.floating);\n      if (width !== nextDimensions.width || height !== nextDimensions.height) {\n        return {\n          reset: {\n            rects: true\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n", "function hasWindow() {\n  return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || '').toLowerCase();\n  }\n  // Mocked nodes in testing environments may not be instances of Node. By\n  // returning `#document` an infinite loop won't occur.\n  // https://github.com/floating-ui/floating-ui/issues/2317\n  return '#document';\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n  return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n  try {\n    if (element.matches(':popover-open')) {\n      return true;\n    }\n  } catch (_e) {\n    // no-op\n  }\n  try {\n    return element.matches(':modal');\n  } catch (_e) {\n    return false;\n  }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n  const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n  return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else if (isTopLayer(currentNode)) {\n      return null;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (isWebKitValue == null) {\n    isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n  }\n  return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n  return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.scrollX,\n    scrollTop: element.scrollY\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === 'html') {\n    return node;\n  }\n  const result =\n  // Step into the shadow DOM of the parent of a slotted node.\n  node.assignedSlot ||\n  // DOM Element detected.\n  node.parentNode ||\n  // ShadowRoot detected.\n  isShadowRoot(node) && node.host ||\n  // Fallback.\n  getDocumentElement(node);\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return (node.ownerDocument || node).body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    const frameElement = getFrameElement(win);\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n  } else {\n    return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n  }\n}\nfunction getFrameElement(win) {\n  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n", "import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n  const css = getComputedStyle$1(element);\n  // In testing environments, the `width` and `height` properties are empty\n  // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\n\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n\n  // 0, NaN, or Infinity should always fallback to 1.\n\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement && offsetParent) {\n    const win = getWindow(domElement);\n    const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentWin = win;\n    let currentIFrame = getFrameElement(currentWin);\n    while (currentIFrame && offsetWin !== currentWin) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle$1(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentWin = getWindow(currentIFrame);\n      currentIFrame = getFrameElement(currentWin);\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n  const leftScroll = getNodeScroll(element).scrollLeft;\n  if (!rect) {\n    return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n  }\n  return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n  const htmlRect = documentElement.getBoundingClientRect();\n  const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n  const y = htmlRect.top + scroll.scrollTop;\n  return {\n    x,\n    y\n  };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isFixed = strategy === 'fixed';\n  const documentElement = getDocumentElement(offsetParent);\n  const topLayer = elements ? isTopLayer(elements.floating) : false;\n  if (offsetParent === documentElement || topLayer && isFixed) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n  };\n}\n\nfunction getClientRects(element) {\n  return element.getClientRects ? Array.from(element.getClientRects()) : [];\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(html) {\n  const scroll = getNodeScroll(html);\n  const body = html.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(html);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle$1(body).direction === 'rtl') {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy, rootBoundary) {\n  if (rootBoundary === void 0) {\n    rootBoundary = 'viewport';\n  }\n  const isLayoutViewport = rootBoundary === 'layoutViewport';\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    // Client coordinates are relative to the layout viewport, except in\n    // WebKit with an `absolute` strategy, where they are relative to the\n    // visual viewport.\n    const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';\n    if (isLayoutViewport) {\n      if (!layoutRelativeClientCoords) {\n        x = -visualViewport.offsetLeft;\n        y = -visualViewport.offsetTop;\n      }\n    } else {\n      width = visualViewport.width;\n      height = visualViewport.height;\n      if (layoutRelativeClientCoords) {\n        x = visualViewport.offsetLeft;\n        y = visualViewport.offsetTop;\n      }\n    }\n  }\n  const windowScrollbarX = getWindowScrollBarX(html);\n  // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks\n  // the visual width but isn't reflected in `html.clientWidth`, so subtract it.\n  // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also\n  // reserves an empty inline-start gutter that clips nothing, so exclude just\n  // the one scrollbar-side gutter \u2014 halve the measured (two-gutter) total. A\n  // left-side scrollbar (`windowScrollbarX > 0`) is already handled by\n  // `getHTMLOffset`/`visualViewport.width`; skip it here.\n  if (windowScrollbarX <= 0) {\n    const doc = html.ownerDocument;\n    const body = doc.body;\n    const bodyStyles = getComputedStyle(body);\n    const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n    const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n    const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;\n    if (gutter <= SCROLLBAR_MAX) {\n      width -= gutter;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = getScale(element);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {\n    rect = getViewportRect(element, strategy, clippingAncestor);\n  } else if (clippingAncestor === 'document') {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y,\n      width: clippingAncestor.width,\n      height: clippingAncestor.height\n    };\n  }\n  return rectToClientRect(rect);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n  let lastKeptComputedStyle = null;\n  const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle$1(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    // Position of the containing block chain below the current node. A fixed\n    // element whose containing block hasn't been found yet is a fixed chain.\n    const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';\n\n    // A non-containing ancestor does not clip the element when the chain\n    // below it escapes it: a fixed chain escapes all ancestors up to the\n    // next containing block, an absolute chain escapes static ancestors.\n    const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');\n    if (shouldDropCurrentNode) {\n      // Drop non-containing blocks.\n      result = result.filter(ancestor => ancestor !== currentNode);\n    } else {\n      // The kept node carries the chain position for the next iteration.\n      lastKeptComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);\n  let top = firstRect.top;\n  let right = firstRect.right;\n  let bottom = firstRect.bottom;\n  let left = firstRect.left;\n  for (let i = 1; i < clippingAncestors.length; i++) {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);\n    top = max(rect.top, top);\n    right = min(rect.right, right);\n    bottom = min(rect.bottom, bottom);\n    left = max(rect.left, left);\n  }\n  return {\n    width: right - left,\n    height: bottom - top,\n    x: left,\n    y: top\n  };\n}\n\nfunction getDimensions(element) {\n  const {\n    width,\n    height\n  } = getCssDimensions(element);\n  return {\n    width,\n    height\n  };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === 'fixed';\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n\n  // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n  // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n  if (!isOffsetParentAnElement && documentElement) {\n    offsets.x = getWindowScrollBarX(documentElement);\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n  return {\n    x,\n    y,\n    width: rect.width,\n    height: rect.height\n  };\n}\n\nfunction isStaticPositioned(element) {\n  return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  let rawOffsetParent = element.offsetParent;\n\n  // Firefox returns the <html> element as the offsetParent if it's non-static,\n  // while Chrome and Safari return the <body> element. The <body> element must\n  // be used to perform the correct calculations even if the <html> element is\n  // non-static.\n  if (getDocumentElement(element) === rawOffsetParent) {\n    rawOffsetParent = rawOffsetParent.ownerDocument.body;\n  }\n  return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n  const win = getWindow(element);\n  if (isTopLayer(element)) {\n    return win;\n  }\n  if (!isHTMLElement(element)) {\n    let svgOffsetParent = getParentNode(element);\n    while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n      if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n        return svgOffsetParent;\n      }\n      svgOffsetParent = getParentNode(svgOffsetParent);\n    }\n    return win;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n    return win;\n  }\n  return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  const floatingDimensions = await getDimensionsFn(data.floating);\n  return {\n    reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      width: floatingDimensions.width,\n      height: floatingDimensions.height\n    }\n  };\n};\n\nfunction isRTL(element) {\n  return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n  return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove, ancestorResize) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    var _io;\n    clearTimeout(timeoutId);\n    (_io = io) == null || _io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const elementRectForRootMargin = element.getBoundingClientRect();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = elementRectForRootMargin;\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n\n      // The entry is a snapshot, so the reference may have moved since the\n      // intersection was computed (under performance constraints, or between\n      // consecutive frames of a multi-frame layout shift). The reported ratio\n      // and the observed area are stale in that case and cannot be trusted to\n      // detect subsequent movement, so refresh regardless of the ratio.\n      if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n        return refresh();\n      }\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          // If the reference is clipped in place, the ratio is 0. Throttle\n          // the refresh to prevent an infinite loop of updates.\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 1000);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n\n    // Older browsers don't support a `document` as the root and will throw an\n    // error.\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (_e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  const win = getWindow(element);\n  // The window is a resize ancestor, so when `ancestorResize` is enabled its\n  // listener already runs the update on resize. Here we only need to rebuild\n  // the `IntersectionObserver` for the new root size, skipping a redundant\n  // update. When `ancestorResize` is disabled, this becomes the sole update.\n  const handleResize = () => refresh(ancestorResize);\n  win.addEventListener('resize', handleResize);\n  refresh(true);\n  return () => {\n    win.removeEventListener('resize', handleResize);\n    cleanup();\n  };\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === 'function',\n    layoutShift = typeof IntersectionObserver === 'function',\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];\n  ancestors.forEach(ancestor => {\n    ancestorScroll && ancestor.addEventListener('scroll', update);\n    ancestorResize && ancestor.addEventListener('resize', update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver(_ref => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {\n        // Prevent update loops when using the `size` middleware.\n        // https://github.com/floating-ui/floating-ui/issues/1740\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          var _resizeObserver;\n          (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    if (floating) {\n      resizeObserver.observe(floating);\n    }\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    var _resizeObserver2;\n    ancestors.forEach(ancestor => {\n      ancestorScroll && ancestor.removeEventListener('scroll', update);\n      ancestorResize && ancestor.removeEventListener('resize', update);\n    });\n    cleanupIo == null || cleanupIo();\n    (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n  // This caches the expensive `getClippingElementAncestors` function so that\n  // multiple lifecycle resets re-use the same result. It only lives for a\n  // single call. If other functions become expensive, we can add them as well.\n  const cache = new Map();\n  const mergedOptions = options != null ? options : {};\n  const platformWithCache = {\n    ...platform,\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition$1(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n", "import{isContainingBlock as t}from\"@floating-ui/utils/dom\";function e(t){return i(t)}function n(t){return f(t,\"offsetTop\")}function o(t){return f(t,\"offsetLeft\")}function r(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function i(e){for(let t=e;t;t=r(t))if(t instanceof Element&&\"none\"===getComputedStyle(t).display)return null;for(let n=r(e);n;n=r(n)){if(!(n instanceof Element))continue;const e=getComputedStyle(n);if(\"contents\"!==e.display){if(\"static\"!==e.position||t(e))return n;if(\"BODY\"===n.tagName)return n}}return null}function f(t,e){let n=t[e],o=i(t);const r=function(t){const e=new Set;let n=t.getRootNode();for(;n;)e.add(n),n=n.parentNode?n.parentNode.getRootNode():null;return e}(t);for(;o&&!r.has(o.getRootNode());)n-=o[e],o=i(o);return n}export{o as offsetLeft,e as offsetParent,n as offsetTop};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  WaRepositionEvent\n} from \"./chunk.ZWQCGLB5.js\";\nimport {\n  popup_styles_default\n} from \"./chunk.HS5AYC6E.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/popup/popup.ts\nimport {\n  arrow,\n  autoUpdate,\n  computePosition,\n  flip,\n  getOverflowAncestors,\n  offset,\n  platform,\n  shift,\n  size\n} from \"@floating-ui/dom\";\nimport { offsetParent } from \"composed-offset-position\";\nimport { html } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nfunction isVirtualElement(e) {\n  return e !== null && typeof e === \"object\" && \"getBoundingClientRect\" in e && (\"contextElement\" in e ? e instanceof Element : true);\n}\nvar SUPPORTS_POPOVER = Boolean(globalThis?.HTMLElement?.prototype.hasOwnProperty(\"popover\"));\nvar WaPopup = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    this.localize = new LocalizeController(this);\n    this.SUPPORTS_POPOVER = false;\n    this.active = false;\n    this.placement = \"top\";\n    this.boundary = \"viewport\";\n    this.distance = 0;\n    this.skidding = 0;\n    this.arrow = false;\n    this.arrowPlacement = \"anchor\";\n    this.arrowPadding = 10;\n    this.flip = false;\n    this.flipFallbackPlacements = \"\";\n    this.flipFallbackStrategy = \"best-fit\";\n    this.flipPadding = 0;\n    this.shift = false;\n    this.shiftPadding = 0;\n    this.autoSizePadding = 0;\n    this.hoverBridge = false;\n    this.updateHoverBridge = () => {\n      if (this.hoverBridge && this.anchorEl && this.popup) {\n        const anchorRect = this.anchorEl.getBoundingClientRect();\n        const popupRect = this.popup.getBoundingClientRect();\n        const isVertical = this.placement.includes(\"top\") || this.placement.includes(\"bottom\");\n        let topLeftX = 0;\n        let topLeftY = 0;\n        let topRightX = 0;\n        let topRightY = 0;\n        let bottomLeftX = 0;\n        let bottomLeftY = 0;\n        let bottomRightX = 0;\n        let bottomRightY = 0;\n        if (isVertical) {\n          if (anchorRect.top < popupRect.top) {\n            topLeftX = anchorRect.left;\n            topLeftY = anchorRect.bottom;\n            topRightX = anchorRect.right;\n            topRightY = anchorRect.bottom;\n            bottomLeftX = popupRect.left;\n            bottomLeftY = popupRect.top;\n            bottomRightX = popupRect.right;\n            bottomRightY = popupRect.top;\n          } else {\n            topLeftX = popupRect.left;\n            topLeftY = popupRect.bottom;\n            topRightX = popupRect.right;\n            topRightY = popupRect.bottom;\n            bottomLeftX = anchorRect.left;\n            bottomLeftY = anchorRect.top;\n            bottomRightX = anchorRect.right;\n            bottomRightY = anchorRect.top;\n          }\n        } else {\n          if (anchorRect.left < popupRect.left) {\n            topLeftX = anchorRect.right;\n            topLeftY = anchorRect.top;\n            topRightX = popupRect.left;\n            topRightY = popupRect.top;\n            bottomLeftX = anchorRect.right;\n            bottomLeftY = anchorRect.bottom;\n            bottomRightX = popupRect.left;\n            bottomRightY = popupRect.bottom;\n          } else {\n            topLeftX = popupRect.right;\n            topLeftY = popupRect.top;\n            topRightX = anchorRect.left;\n            topRightY = anchorRect.top;\n            bottomLeftX = popupRect.right;\n            bottomLeftY = popupRect.bottom;\n            bottomRightX = anchorRect.left;\n            bottomRightY = anchorRect.bottom;\n          }\n        }\n        this.style.setProperty(\"--hover-bridge-top-left-x\", `${topLeftX}px`);\n        this.style.setProperty(\"--hover-bridge-top-left-y\", `${topLeftY}px`);\n        this.style.setProperty(\"--hover-bridge-top-right-x\", `${topRightX}px`);\n        this.style.setProperty(\"--hover-bridge-top-right-y\", `${topRightY}px`);\n        this.style.setProperty(\"--hover-bridge-bottom-left-x\", `${bottomLeftX}px`);\n        this.style.setProperty(\"--hover-bridge-bottom-left-y\", `${bottomLeftY}px`);\n        this.style.setProperty(\"--hover-bridge-bottom-right-x\", `${bottomRightX}px`);\n        this.style.setProperty(\"--hover-bridge-bottom-right-y\", `${bottomRightY}px`);\n      }\n    };\n  }\n  async connectedCallback() {\n    super.connectedCallback();\n    await this.updateComplete;\n    this.SUPPORTS_POPOVER = SUPPORTS_POPOVER;\n    this.start();\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    this.stop();\n  }\n  async updated(changedProperties) {\n    super.updated(changedProperties);\n    if (changedProperties.has(\"active\")) {\n      if (this.active) {\n        this.start();\n      } else {\n        this.stop();\n      }\n    }\n    if (changedProperties.has(\"anchor\")) {\n      this.handleAnchorChange();\n    }\n    if (this.active) {\n      await this.updateComplete;\n      this.reposition();\n    }\n  }\n  async handleAnchorChange() {\n    await this.stop();\n    if (this.anchor && typeof this.anchor === \"string\") {\n      const root = this.getRootNode();\n      this.anchorEl = root.getElementById(this.anchor);\n    } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n      this.anchorEl = this.anchor;\n    } else {\n      this.anchorEl = this.querySelector('[slot=\"anchor\"]');\n    }\n    if (this.anchorEl instanceof HTMLSlotElement) {\n      this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];\n    }\n    if (this.anchorEl) {\n      this.start();\n    }\n  }\n  start() {\n    if (!this.anchorEl || !this.active || !this.isConnected) {\n      return;\n    }\n    this.popup?.showPopover?.();\n    this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n      this.reposition();\n    });\n  }\n  async stop() {\n    return new Promise((resolve) => {\n      this.popup?.hidePopover?.();\n      if (this.cleanup) {\n        this.cleanup();\n        this.cleanup = void 0;\n        this.removeAttribute(\"data-current-placement\");\n        this.style.removeProperty(\"--auto-size-available-width\");\n        this.style.removeProperty(\"--auto-size-available-height\");\n        requestAnimationFrame(() => resolve());\n      } else {\n        resolve();\n      }\n    });\n  }\n  /** Forces the popup to recalculate and reposition itself. */\n  reposition() {\n    if (!this.active || !this.anchorEl || !this.popup) {\n      return;\n    }\n    const middleware = [\n      // The offset middleware goes first\n      offset({ mainAxis: this.distance, crossAxis: this.skidding })\n    ];\n    if (this.sync) {\n      middleware.push(\n        size({\n          apply: ({ rects }) => {\n            const syncWidth = this.sync === \"width\" || this.sync === \"both\";\n            const syncHeight = this.sync === \"height\" || this.sync === \"both\";\n            this.popup.style.width = syncWidth ? `${rects.reference.width}px` : \"\";\n            this.popup.style.height = syncHeight ? `${rects.reference.height}px` : \"\";\n          }\n        })\n      );\n    } else {\n      this.popup.style.width = \"\";\n      this.popup.style.height = \"\";\n    }\n    let defaultBoundary;\n    if (this.SUPPORTS_POPOVER && !isVirtualElement(this.anchor) && this.boundary === \"scroll\") {\n      defaultBoundary = getOverflowAncestors(this.anchorEl).filter((el) => el instanceof Element);\n    }\n    if (this.flip) {\n      middleware.push(\n        flip({\n          boundary: this.flipBoundary || defaultBoundary,\n          // @ts-expect-error - We're converting a string attribute to an array here\n          fallbackPlacements: this.flipFallbackPlacements,\n          fallbackStrategy: this.flipFallbackStrategy === \"best-fit\" ? \"bestFit\" : \"initialPlacement\",\n          padding: this.flipPadding\n        })\n      );\n    }\n    if (this.shift) {\n      middleware.push(\n        shift({\n          boundary: this.shiftBoundary || defaultBoundary,\n          padding: this.shiftPadding\n        })\n      );\n    }\n    if (this.autoSize) {\n      middleware.push(\n        size({\n          boundary: this.autoSizeBoundary || defaultBoundary,\n          padding: this.autoSizePadding,\n          apply: ({ availableWidth, availableHeight }) => {\n            if (this.autoSize === \"vertical\" || this.autoSize === \"both\") {\n              this.style.setProperty(\"--auto-size-available-height\", `${availableHeight}px`);\n            } else {\n              this.style.removeProperty(\"--auto-size-available-height\");\n            }\n            if (this.autoSize === \"horizontal\" || this.autoSize === \"both\") {\n              this.style.setProperty(\"--auto-size-available-width\", `${availableWidth}px`);\n            } else {\n              this.style.removeProperty(\"--auto-size-available-width\");\n            }\n          }\n        })\n      );\n    } else {\n      this.style.removeProperty(\"--auto-size-available-width\");\n      this.style.removeProperty(\"--auto-size-available-height\");\n    }\n    if (this.arrow) {\n      middleware.push(\n        arrow({\n          element: this.arrowEl,\n          padding: this.arrowPadding\n        })\n      );\n    }\n    const getOffsetParent = this.SUPPORTS_POPOVER ? (element) => platform.getOffsetParent(element, offsetParent) : platform.getOffsetParent;\n    computePosition(this.anchorEl, this.popup, {\n      placement: this.placement,\n      middleware,\n      strategy: this.SUPPORTS_POPOVER ? \"absolute\" : \"fixed\",\n      platform: {\n        ...platform,\n        getOffsetParent\n      }\n    }).then(({ x, y, middlewareData, placement }) => {\n      const isRtl = this.localize.dir() === \"rtl\";\n      const staticSide = { top: \"bottom\", right: \"left\", bottom: \"top\", left: \"right\" }[placement.split(\"-\")[0]];\n      this.setAttribute(\"data-current-placement\", placement);\n      Object.assign(this.popup.style, {\n        left: `${x}px`,\n        top: `${y}px`\n      });\n      if (this.arrow) {\n        const arrowX = middlewareData.arrow.x;\n        const arrowY = middlewareData.arrow.y;\n        let top = \"\";\n        let right = \"\";\n        let bottom = \"\";\n        let left = \"\";\n        if (this.arrowPlacement === \"start\") {\n          const value = typeof arrowX === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n          top = typeof arrowY === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n          right = isRtl ? value : \"\";\n          left = isRtl ? \"\" : value;\n        } else if (this.arrowPlacement === \"end\") {\n          const value = typeof arrowX === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n          right = isRtl ? \"\" : value;\n          left = isRtl ? value : \"\";\n          bottom = typeof arrowY === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n        } else if (this.arrowPlacement === \"center\") {\n          left = typeof arrowX === \"number\" ? `calc(50% - var(--arrow-size-diagonal))` : \"\";\n          top = typeof arrowY === \"number\" ? `calc(50% - var(--arrow-size-diagonal))` : \"\";\n        } else {\n          left = typeof arrowX === \"number\" ? `${arrowX}px` : \"\";\n          top = typeof arrowY === \"number\" ? `${arrowY}px` : \"\";\n        }\n        Object.assign(this.arrowEl.style, {\n          top,\n          right,\n          bottom,\n          left,\n          [staticSide]: \"calc(var(--arrow-base-offset) - var(--arrow-size-diagonal))\"\n        });\n      }\n    });\n    requestAnimationFrame(() => this.updateHoverBridge());\n    this.dispatchEvent(new WaRepositionEvent());\n  }\n  render() {\n    return html`\n      <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n      <span\n        part=\"hover-bridge\"\n        class=${classMap({\n      \"popup-hover-bridge\": true,\n      \"popup-hover-bridge-visible\": this.hoverBridge && this.active\n    })}\n      ></span>\n\n      <div\n        popover=\"manual\"\n        part=\"popup\"\n        class=${classMap({\n      popup: true,\n      \"popup-active\": this.active,\n      \"popup-fixed\": !this.SUPPORTS_POPOVER,\n      \"popup-has-arrow\": this.arrow\n    })}\n      >\n        <slot></slot>\n        ${this.arrow ? html`<div part=\"arrow\" class=\"arrow\" role=\"presentation\"></div>` : \"\"}\n      </div>\n    `;\n  }\n};\nWaPopup.css = popup_styles_default;\n__decorateClass([\n  query(\".popup\")\n], WaPopup.prototype, \"popup\", 2);\n__decorateClass([\n  query(\".arrow\")\n], WaPopup.prototype, \"arrowEl\", 2);\n__decorateClass([\n  property({ attribute: false, type: Boolean })\n], WaPopup.prototype, \"SUPPORTS_POPOVER\", 2);\n__decorateClass([\n  property()\n], WaPopup.prototype, \"anchor\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaPopup.prototype, \"active\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaPopup.prototype, \"placement\", 2);\n__decorateClass([\n  property()\n], WaPopup.prototype, \"boundary\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaPopup.prototype, \"distance\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaPopup.prototype, \"skidding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaPopup.prototype, \"arrow\", 2);\n__decorateClass([\n  property({ attribute: \"arrow-placement\" })\n], WaPopup.prototype, \"arrowPlacement\", 2);\n__decorateClass([\n  property({ attribute: \"arrow-padding\", type: Number })\n], WaPopup.prototype, \"arrowPadding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaPopup.prototype, \"flip\", 2);\n__decorateClass([\n  property({\n    attribute: \"flip-fallback-placements\",\n    converter: {\n      fromAttribute: (value) => {\n        return value.split(\" \").map((p) => p.trim()).filter((p) => p !== \"\");\n      },\n      toAttribute: (value) => {\n        return value.join(\" \");\n      }\n    }\n  })\n], WaPopup.prototype, \"flipFallbackPlacements\", 2);\n__decorateClass([\n  property({ attribute: \"flip-fallback-strategy\" })\n], WaPopup.prototype, \"flipFallbackStrategy\", 2);\n__decorateClass([\n  property({ type: Object })\n], WaPopup.prototype, \"flipBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"flip-padding\", type: Number })\n], WaPopup.prototype, \"flipPadding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], WaPopup.prototype, \"shift\", 2);\n__decorateClass([\n  property({ type: Object })\n], WaPopup.prototype, \"shiftBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"shift-padding\", type: Number })\n], WaPopup.prototype, \"shiftPadding\", 2);\n__decorateClass([\n  property({ attribute: \"auto-size\" })\n], WaPopup.prototype, \"autoSize\", 2);\n__decorateClass([\n  property()\n], WaPopup.prototype, \"sync\", 2);\n__decorateClass([\n  property({ type: Object })\n], WaPopup.prototype, \"autoSizeBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"auto-size-padding\", type: Number })\n], WaPopup.prototype, \"autoSizePadding\", 2);\n__decorateClass([\n  property({ attribute: \"hover-bridge\", type: Boolean })\n], WaPopup.prototype, \"hoverBridge\", 2);\nWaPopup = __decorateClass([\n  customElement(\"wa-popup\")\n], WaPopup);\n\nexport {\n  WaPopup\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/switch/switch.styles.ts\nimport { css } from \"lit\";\nvar switch_styles_default = css`\n  :host {\n    --height: var(--wa-form-control-toggle-size);\n    --width: calc(var(--height) * 1.75);\n    --thumb-size: 0.75em;\n\n    display: inline-flex;\n    line-height: var(--wa-form-control-value-line-height);\n  }\n\n  label {\n    position: relative;\n    display: flex;\n    align-items: center;\n    font: inherit;\n    color: var(--wa-form-control-value-color);\n    vertical-align: middle;\n    cursor: pointer;\n  }\n\n  .switch {\n    flex: 0 0 auto;\n    position: relative;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: var(--width);\n    height: var(--height);\n    background-color: var(--wa-form-control-background-color);\n    border-color: var(--wa-form-control-border-color);\n    border-radius: var(--height);\n    border-style: var(--wa-form-control-border-style);\n    border-width: var(--wa-form-control-border-width);\n    transition-property: translate, background, border-color, box-shadow;\n    transition-duration: var(--wa-transition-normal);\n    transition-timing-function: var(--wa-transition-easing);\n  }\n\n  :host([did-ssr]:not(:defined)) .switch {\n    transition-property: unset;\n    transition-duration: unset;\n    transition-timing-function: unset;\n  }\n\n  .switch .thumb {\n    aspect-ratio: 1 / 1;\n    width: var(--thumb-size);\n    height: var(--thumb-size);\n    background-color: var(--wa-form-control-border-color);\n    border-radius: 50%;\n    translate: calc((var(--width) - var(--height)) / -2);\n    transition: inherit;\n  }\n  .switch .thumb:dir(rtl) {\n    translate: calc((var(--width) - var(--height)) / 2);\n  }\n\n  .input {\n    position: absolute;\n    opacity: 0;\n    padding: 0;\n    margin: 0;\n    pointer-events: none;\n  }\n\n  /* Focus */\n  label:not(.disabled) .input:focus-visible ~ [part~='control'] {\n    outline: var(--wa-focus-ring);\n    outline-offset: var(--wa-focus-ring-offset);\n  }\n\n  /* Checked */\n  .checked .switch {\n    background-color: var(--wa-form-control-activated-color);\n    border-color: var(--wa-form-control-activated-color);\n  }\n\n  .checked .switch .thumb {\n    background-color: var(--wa-color-surface-default);\n    translate: calc((var(--width) - var(--height)) / 2);\n  }\n  .checked .switch .thumb:dir(rtl) {\n    translate: calc((var(--width) - var(--height)) / -2);\n  }\n\n  /* Disabled */\n  label:has(> :disabled) {\n    opacity: 0.5;\n    cursor: not-allowed;\n  }\n\n  [part~='label'] {\n    display: inline-block;\n    line-height: var(--height);\n    margin-inline-start: 0.5em;\n    user-select: none;\n    -webkit-user-select: none;\n  }\n\n  :host([required]) [part~='label']::after {\n    content: var(--wa-form-control-required-content);\n    color: var(--wa-form-control-required-content-color);\n    margin-inline-start: var(--wa-form-control-required-content-offset);\n  }\n\n  @media (forced-colors: active) {\n    :checked:enabled + .switch:hover .thumb,\n    :checked + .switch .thumb {\n      background-color: ButtonText;\n    }\n  }\n`;\n\nexport {\n  switch_styles_default\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  switch_styles_default\n} from \"./chunk.DWWFIQKG.js\";\nimport {\n  form_control_styles_default\n} from \"./chunk.JPBXG7RE.js\";\nimport {\n  MirrorValidator\n} from \"./chunk.R7QX4M6R.js\";\nimport {\n  WebAwesomeFormAssociatedElement\n} from \"./chunk.KBXNFZQL.js\";\nimport {\n  warnDeprecatedSize\n} from \"./chunk.RPQJAXXR.js\";\nimport {\n  HasSlotController\n} from \"./chunk.RWNXKUCF.js\";\nimport {\n  size_styles_default\n} from \"./chunk.G5ZZIGWB.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  LocalizeController\n} from \"./chunk.S67PIWQL.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/switch/switch.ts\nimport { html, isServer } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { live } from \"lit/directives/live.js\";\nvar WaSwitch = class extends WebAwesomeFormAssociatedElement {\n  constructor() {\n    super(...arguments);\n    this.hasSlotController = new HasSlotController(this, \"hint\");\n    this.localize = new LocalizeController(this);\n    this.title = \"\";\n    this.name = null;\n    this._value = this.getAttribute(\"value\") ?? null;\n    this.size = \"m\";\n    this.disabled = false;\n    this._checked = null;\n    this.defaultChecked = this.hasAttribute(\"checked\");\n    this.required = false;\n    this.hint = \"\";\n    this.withHint = false;\n  }\n  static get validators() {\n    return isServer ? [] : [...super.validators, MirrorValidator()];\n  }\n  /** The value of the switch, submitted as a name/value pair with form data. */\n  get value() {\n    return this._value ?? \"on\";\n  }\n  set value(val) {\n    this._value = val;\n  }\n  handleSizeChange() {\n    warnDeprecatedSize(this.localName, this.size);\n  }\n  get checked() {\n    if (this.valueHasChanged) {\n      return Boolean(this._checked);\n    }\n    return this._checked ?? this.defaultChecked;\n  }\n  set checked(val) {\n    this._checked = Boolean(val);\n    this.valueHasChanged = true;\n  }\n  handleClick() {\n    this.hasInteracted = true;\n    this.checked = !this.checked;\n    this.updateComplete.then(() => {\n      this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n    });\n  }\n  handleKeyDown(event) {\n    const isRtl = this.localize.dir() === \"rtl\";\n    if (event.key === \"ArrowLeft\") {\n      event.preventDefault();\n      this.checked = isRtl;\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n      });\n    }\n    if (event.key === \"ArrowRight\") {\n      event.preventDefault();\n      this.checked = !isRtl;\n      this.updateComplete.then(() => {\n        this.dispatchEvent(new Event(\"change\", { bubbles: true, composed: true }));\n        this.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n      });\n    }\n  }\n  willUpdate(changedProperties) {\n    super.willUpdate(changedProperties);\n    if (changedProperties.has(\"value\") || changedProperties.has(\"checked\") || changedProperties.has(\"defaultChecked\") || changedProperties.has(\"disabled\")) {\n      this.handleValueOrCheckedChange();\n    }\n  }\n  handleValueOrCheckedChange() {\n    if (this.didSSR && !this.hasUpdated) {\n      this.updateComplete.then(() => {\n        this.handleValueOrCheckedChange();\n      });\n      return;\n    }\n    this.setValue(this.checked ? this.value : null, this._value);\n    this.updateValidity();\n  }\n  handleStateChange() {\n    if (this.hasUpdated) {\n      this.input.checked = this.checked;\n    }\n    this.customStates.set(\"checked\", this.checked);\n    this.updateValidity();\n  }\n  handleDisabledChange() {\n    this.updateValidity();\n  }\n  /** Simulates a click on the switch. */\n  click() {\n    this.input.click();\n  }\n  /** Sets focus on the switch. */\n  focus(options) {\n    this.input.focus(options);\n  }\n  /** Removes focus from the switch. */\n  blur() {\n    this.input.blur();\n  }\n  setValue(value, stateValue) {\n    if (!this.checked) {\n      this.internals.setFormValue(null, null);\n      return;\n    }\n    this.internals.setFormValue(value ?? \"on\", stateValue);\n  }\n  formResetCallback() {\n    this._checked = null;\n    super.formResetCallback();\n    this.handleValueOrCheckedChange();\n  }\n  render() {\n    const hasHintSlot = this.hasSlotController.test(\"hint\", \"withHint\");\n    const hasHint = this.hint ? true : !!hasHintSlot;\n    const checkedAttribute = this.didSSR && !this.hasUpdated ? this.checked : this.defaultChecked;\n    const checkedProperty = this.didSSR && !this.hasUpdated ? null : live(this.checked);\n    return html`\n      <label\n        part=\"base switch\"\n        class=${classMap({\n      checked: this.checked,\n      disabled: this.disabled\n    })}\n      >\n        <input\n          class=\"input\"\n          type=\"checkbox\"\n          title=${this.title}\n          name=${ifDefined(this.name)}\n          value=${ifDefined(this.value)}\n          .checked=${ifDefined(checkedProperty)}\n          ?checked=${checkedAttribute}\n          ?disabled=${this.disabled}\n          ?required=${this.required}\n          role=\"switch\"\n          aria-checked=${this.checked ? \"true\" : \"false\"}\n          aria-describedby=\"hint\"\n          @click=${this.handleClick}\n          @keydown=${this.handleKeyDown}\n        />\n\n        <span part=\"control\" class=\"switch\">\n          <span part=\"thumb\" class=\"thumb\"></span>\n        </span>\n\n        <slot part=\"label\" class=\"label\"></slot>\n      </label>\n\n      <slot\n        id=\"hint\"\n        name=\"hint\"\n        part=\"hint\"\n        class=${classMap({\n      \"has-slotted\": hasHint\n    })}\n        aria-hidden=${hasHint ? \"false\" : \"true\"}\n        >${this.hint}</slot\n      >\n    `;\n  }\n};\nWaSwitch.shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\nWaSwitch.css = [form_control_styles_default, size_styles_default, switch_styles_default];\n__decorateClass([\n  query('input[type=\"checkbox\"]')\n], WaSwitch.prototype, \"input\", 2);\n__decorateClass([\n  property()\n], WaSwitch.prototype, \"title\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaSwitch.prototype, \"name\", 2);\n__decorateClass([\n  property({ reflect: true })\n], WaSwitch.prototype, \"value\", 1);\n__decorateClass([\n  property({ reflect: true })\n], WaSwitch.prototype, \"size\", 2);\n__decorateClass([\n  watch(\"size\")\n], WaSwitch.prototype, \"handleSizeChange\", 1);\n__decorateClass([\n  property({ type: Boolean })\n], WaSwitch.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ type: Boolean, attribute: false })\n], WaSwitch.prototype, \"checked\", 1);\n__decorateClass([\n  property({ type: Boolean, attribute: \"checked\", reflect: true })\n], WaSwitch.prototype, \"defaultChecked\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaSwitch.prototype, \"required\", 2);\n__decorateClass([\n  property({ attribute: \"hint\" })\n], WaSwitch.prototype, \"hint\", 2);\n__decorateClass([\n  property({ attribute: \"with-hint\", type: Boolean })\n], WaSwitch.prototype, \"withHint\", 2);\n__decorateClass([\n  watch([\"checked\", \"defaultChecked\"])\n], WaSwitch.prototype, \"handleStateChange\", 1);\n__decorateClass([\n  watch(\"disabled\", { waitUntilFirstUpdate: true })\n], WaSwitch.prototype, \"handleDisabledChange\", 1);\nWaSwitch = __decorateClass([\n  customElement(\"wa-switch\")\n], WaSwitch);\nWaSwitch.disableWarning?.(\"change-in-update\");\n\nexport {\n  WaSwitch\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/components/tooltip/tooltip.styles.ts\nimport { css } from \"lit\";\nvar tooltip_styles_default = css`\n  :host {\n    --max-width: 30ch;\n\n    /** These styles are added so we don't interfere in the DOM. */\n    display: inline-block;\n    position: absolute;\n\n    /** Defaults for inherited CSS properties */\n    color: var(--wa-tooltip-content-color);\n    font-size: var(--wa-tooltip-font-size);\n    line-height: var(--wa-tooltip-line-height);\n    text-align: start;\n    white-space: normal;\n  }\n\n  .tooltip {\n    --arrow-size: var(--wa-tooltip-arrow-size);\n    --arrow-color: var(--wa-tooltip-background-color);\n  }\n\n  .tooltip::part(popup) {\n    z-index: 1000;\n  }\n\n  .tooltip[placement^='top']::part(popup) {\n    transform-origin: bottom;\n  }\n\n  .tooltip[placement^='bottom']::part(popup) {\n    transform-origin: top;\n  }\n\n  .tooltip[placement^='left']::part(popup) {\n    transform-origin: right;\n  }\n\n  .tooltip[placement^='right']::part(popup) {\n    transform-origin: left;\n  }\n\n  .body {\n    display: block;\n    width: max-content;\n    max-width: var(--max-width);\n    border-radius: var(--wa-tooltip-border-radius);\n    background-color: var(--wa-tooltip-background-color);\n    border: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);\n    padding: 0.25em 0.5em;\n    user-select: none;\n    -webkit-user-select: none;\n  }\n\n  .tooltip {\n    --popup-border-width: var(--wa-tooltip-border-width);\n\n    /* Inset box-shadow, not a border: Safari seams a clip-path edge that runs along a border. */\n    &::part(arrow) {\n      box-shadow: inset calc(-1 * var(--wa-tooltip-border-width)) calc(-1 * var(--wa-tooltip-border-width)) 0 0\n        var(--wa-tooltip-border-color);\n    }\n  }\n`;\n\nexport {\n  tooltip_styles_default\n};\n", "export let urlAlphabet =\n  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\n", "\n\nimport { urlAlphabet as scopedUrlAlphabet } from './url-alphabet/index.js'\n\nexport { urlAlphabet } from './url-alphabet/index.js'\n\nexport let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))\n\nexport let customRandom = (alphabet, defaultSize, getRandom) => {\n  let safeByteCutoff = 256 - (256 % alphabet.length)\n\n  if (safeByteCutoff === 256) {\n    let mask = alphabet.length - 1\n\n    return (size = defaultSize) => {\n      if (!size) return ''\n      let id = ''\n      while (true) {\n        let bytes = getRandom(size)\n        let j = size\n        while (j--) {\n          id += alphabet[bytes[j] & mask]\n          if (id.length >= size) return id\n        }\n      }\n    }\n  }\n\n  let step = Math.ceil((1.6 * 256 * defaultSize) / safeByteCutoff)\n\n  return (size = defaultSize) => {\n    if (!size) return ''\n    let id = ''\n    while (true) {\n      let bytes = getRandom(step)\n      let j = step\n      while (j--) {\n        if (bytes[j] < safeByteCutoff) {\n          id += alphabet[bytes[j] % alphabet.length]\n          if (id.length >= size) return id\n        }\n      }\n    }\n  }\n}\n\nexport let customAlphabet = (alphabet, size = 21) =>\n  customRandom(alphabet, size | 0, random)\n\nexport let nanoid = (size = 21) => {\n  let id = ''\n  let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)))\n  while (size--) {\n    id += scopedUrlAlphabet[bytes[size] & 63]\n  }\n  return id\n}\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\n\n// src/internal/math.ts\nimport { nanoid } from \"nanoid\";\nfunction clamp(value, min, max) {\n  const noNegativeZero = (n) => Object.is(n, -0) ? 0 : n;\n  if (value < min) {\n    return noNegativeZero(min);\n  }\n  if (value > max) {\n    return noNegativeZero(max);\n  }\n  return noNegativeZero(value);\n}\nfunction uniqueId(prefix = \"\") {\n  return `${prefix}${nanoid()}`;\n}\n\nexport {\n  clamp,\n  uniqueId\n};\n", "/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */\nimport {\n  tooltip_styles_default\n} from \"./chunk.DJLBC7Q4.js\";\nimport {\n  WaShowEvent\n} from \"./chunk.4ZAKP7NY.js\";\nimport {\n  WaHideEvent\n} from \"./chunk.MQODJ75V.js\";\nimport {\n  WaAfterHideEvent\n} from \"./chunk.3NKIHICW.js\";\nimport {\n  WaAfterShowEvent\n} from \"./chunk.PX3HMKF7.js\";\nimport {\n  WaPopup\n} from \"./chunk.UEBQI7VV.js\";\nimport {\n  isTopDismissible,\n  registerDismissible,\n  unregisterDismissible\n} from \"./chunk.3H2FQERJ.js\";\nimport {\n  uniqueId\n} from \"./chunk.KNJT7KBU.js\";\nimport {\n  waitForEvent\n} from \"./chunk.F25QOBDY.js\";\nimport {\n  animateWithClass\n} from \"./chunk.L6CIKOFQ.js\";\nimport {\n  watch\n} from \"./chunk.PZAN6FPN.js\";\nimport {\n  WebAwesomeElement\n} from \"./chunk.AOKMSJXD.js\";\nimport {\n  __decorateClass\n} from \"./chunk.7VGCIHDG.js\";\n\n// src/components/tooltip/tooltip.ts\nimport { html } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nfunction containsComposedNode(ancestor, node) {\n  while (node) {\n    if (node === ancestor) {\n      return true;\n    }\n    if (node instanceof Element && node.assignedSlot) {\n      node = node.assignedSlot;\n    } else if (node.parentNode) {\n      node = node.parentNode;\n    } else if (node instanceof ShadowRoot) {\n      node = node.host;\n    } else {\n      node = null;\n    }\n  }\n  return false;\n}\nvar WaTooltip = class extends WebAwesomeElement {\n  constructor() {\n    super(...arguments);\n    // Set when the anchor is pressed to light dismiss the tooltip. While true, hover and focus won't reopen it. Cleared\n    // when the pointer fully leaves the anchor and tooltip or when the anchor blurs.\n    this.dismissedByPress = false;\n    this.placement = \"top\";\n    this.disabled = false;\n    this.distance = 8;\n    this.open = false;\n    this.skidding = 0;\n    this.showDelay = 150;\n    this.hideDelay = 0;\n    this.trigger = \"hover focus\";\n    this.withoutArrow = false;\n    this.for = null;\n    this.anchor = null;\n    this.eventController = new AbortController();\n    this.handleBlur = () => {\n      this.dismissedByPress = false;\n      if (this.hasTrigger(\"focus\")) {\n        this.hide();\n      }\n    };\n    this.handleClick = () => {\n      if (this.hasTrigger(\"click\")) {\n        if (this.open) {\n          this.hide();\n        } else {\n          this.show();\n        }\n        return;\n      }\n      if (this.hasTrigger(\"manual\")) {\n        return;\n      }\n      this.lightDismiss();\n    };\n    this.handleFocus = () => {\n      if (this.dismissedByPress) {\n        return;\n      }\n      if (this.hasTrigger(\"focus\")) {\n        this.show();\n      }\n    };\n    this.handleMouseDown = () => {\n      if (this.hasTrigger(\"click\") || this.hasTrigger(\"manual\")) {\n        return;\n      }\n      this.lightDismiss();\n    };\n    this.handleDocumentKeyDown = (event) => {\n      if (this.hasTrigger(\"manual\")) {\n        return;\n      }\n      if (event.key === \"Escape\" && this.open && isTopDismissible(this)) {\n        event.preventDefault();\n        event.stopPropagation();\n        this.hide();\n      }\n    };\n    this.handleDocumentClick = (event) => {\n      if (this.hasTrigger(\"manual\")) {\n        return;\n      }\n      if (this.anchor && event.composedPath().includes(this.anchor)) {\n        return;\n      }\n      this.hide();\n    };\n    this.handleMouseOver = () => {\n      if (this.dismissedByPress) {\n        return;\n      }\n      if (this.hasTrigger(\"hover\")) {\n        clearTimeout(this.hoverTimeout);\n        this.hoverTimeout = window.setTimeout(() => this.show(), this.showDelay);\n      }\n    };\n    this.handleMouseOut = (event) => {\n      const relatedTarget = event.relatedTarget;\n      const movedIntoAnchor = Boolean(relatedTarget && this.anchor && containsComposedNode(this.anchor, relatedTarget));\n      const movedIntoTooltip = Boolean(relatedTarget && containsComposedNode(this, relatedTarget));\n      if (movedIntoAnchor || movedIntoTooltip) {\n        return;\n      }\n      this.dismissedByPress = false;\n      if (this.hasTrigger(\"hover\")) {\n        clearTimeout(this.hoverTimeout);\n        this.hoverTimeout = window.setTimeout(() => {\n          this.hide();\n        }, this.hideDelay);\n      }\n    };\n  }\n  connectedCallback() {\n    super.connectedCallback();\n    const isClient = typeof document !== \"undefined\";\n    if (isClient) {\n      if (this.eventController.signal.aborted) {\n        this.eventController = new AbortController();\n      }\n      this.addEventListener(\"mouseout\", this.handleMouseOut);\n      this.dismissedByPress = false;\n      if (this.open) {\n        this.open = false;\n        this.updateComplete.then(() => {\n          this.open = true;\n        });\n      }\n      if (!this.id) {\n        this.id = uniqueId(\"wa-tooltip-\");\n      }\n      if (this.for && this.anchor) {\n        this.anchor = null;\n        this.handleForChange();\n      } else if (this.for) {\n        this.handleForChange();\n      }\n    }\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n    document.removeEventListener(\"click\", this.handleDocumentClick);\n    unregisterDismissible(this);\n    this.eventController.abort();\n    if (this.anchor) {\n      this.removeFromAriaLabelledBy(this.anchor, this.id);\n    }\n  }\n  firstUpdated(changedProperties) {\n    this.body.hidden = !this.open;\n    if (this.open) {\n      this.popup.active = true;\n      this.popup.reposition();\n    }\n    super.firstUpdated(changedProperties);\n  }\n  /** Hides the tooltip, or cancels a pending show, and keeps it hidden until re-armed. */\n  lightDismiss() {\n    clearTimeout(this.hoverTimeout);\n    this.dismissedByPress = true;\n    this.hide();\n  }\n  hasTrigger(triggerType) {\n    const triggers = this.trigger.split(\" \");\n    return triggers.includes(triggerType);\n  }\n  /** Adds the tooltip ID to the aria-labelledby attribute */\n  addToAriaLabelledBy(element, id) {\n    const currentLabel = element.getAttribute(\"aria-labelledby\") || \"\";\n    const labels = currentLabel.split(/\\s+/).filter(Boolean);\n    if (!labels.includes(id)) {\n      labels.push(id);\n      element.setAttribute(\"aria-labelledby\", labels.join(\" \"));\n    }\n  }\n  /** Removes the tooltip ID from the aria-labelledby attribute */\n  removeFromAriaLabelledBy(element, id) {\n    const currentLabel = element.getAttribute(\"aria-labelledby\") || \"\";\n    const labels = currentLabel.split(/\\s+/).filter(Boolean);\n    const filteredLabels = labels.filter((label) => label !== id);\n    if (filteredLabels.length > 0) {\n      element.setAttribute(\"aria-labelledby\", filteredLabels.join(\" \"));\n    } else {\n      element.removeAttribute(\"aria-labelledby\");\n    }\n  }\n  async handleOpenChange() {\n    if (this.open) {\n      if (this.disabled) {\n        return;\n      }\n      const waShowEvent = new WaShowEvent();\n      this.dispatchEvent(waShowEvent);\n      if (waShowEvent.defaultPrevented) {\n        this.open = false;\n        return;\n      }\n      if (!this.hasTrigger(\"manual\")) {\n        document.addEventListener(\"keydown\", this.handleDocumentKeyDown, { signal: this.eventController.signal });\n        document.addEventListener(\"click\", this.handleDocumentClick, { signal: this.eventController.signal });\n        registerDismissible(this);\n      }\n      this.body.hidden = false;\n      this.popup.active = true;\n      await animateWithClass(this.popup.popup, \"show-with-scale\");\n      this.popup.reposition();\n      this.dispatchEvent(new WaAfterShowEvent());\n    } else {\n      const waHideEvent = new WaHideEvent();\n      this.dispatchEvent(waHideEvent);\n      if (waHideEvent.defaultPrevented) {\n        this.open = true;\n        return;\n      }\n      document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n      document.removeEventListener(\"click\", this.handleDocumentClick);\n      unregisterDismissible(this);\n      await animateWithClass(this.popup.popup, \"hide-with-scale\");\n      this.popup.active = false;\n      this.body.hidden = true;\n      this.dispatchEvent(new WaAfterHideEvent());\n    }\n  }\n  handleForChange() {\n    const rootNode = this.getRootNode?.();\n    if (!rootNode) {\n      return;\n    }\n    const newAnchor = this.for ? rootNode.getElementById?.(this.for) : null;\n    const oldAnchor = this.anchor;\n    if (newAnchor === oldAnchor) {\n      return;\n    }\n    this.dismissedByPress = false;\n    const { signal } = this.eventController;\n    if (newAnchor) {\n      this.addToAriaLabelledBy(newAnchor, this.id);\n      newAnchor.addEventListener(\"blur\", this.handleBlur, { capture: true, signal });\n      newAnchor.addEventListener(\"focus\", this.handleFocus, { capture: true, signal });\n      newAnchor.addEventListener(\"click\", this.handleClick, { signal });\n      newAnchor.addEventListener(\"mousedown\", this.handleMouseDown, { signal });\n      newAnchor.addEventListener(\"mouseover\", this.handleMouseOver, { signal });\n      newAnchor.addEventListener(\"mouseout\", this.handleMouseOut, { signal });\n    }\n    if (oldAnchor) {\n      this.removeFromAriaLabelledBy(oldAnchor, this.id);\n      oldAnchor.removeEventListener(\"blur\", this.handleBlur, { capture: true });\n      oldAnchor.removeEventListener(\"focus\", this.handleFocus, { capture: true });\n      oldAnchor.removeEventListener(\"click\", this.handleClick);\n      oldAnchor.removeEventListener(\"mousedown\", this.handleMouseDown);\n      oldAnchor.removeEventListener(\"mouseover\", this.handleMouseOver);\n      oldAnchor.removeEventListener(\"mouseout\", this.handleMouseOut);\n    }\n    this.anchor = newAnchor;\n  }\n  async handleOptionsChange() {\n    if (this.hasUpdated) {\n      await this.updateComplete;\n      this.popup.reposition();\n    }\n  }\n  handleDisabledChange() {\n    if (this.disabled && this.open) {\n      this.hide();\n    }\n  }\n  /** Shows the tooltip. */\n  async show() {\n    if (this.open) {\n      return void 0;\n    }\n    this.open = true;\n    return waitForEvent(this, \"wa-after-show\");\n  }\n  /** Hides the tooltip */\n  async hide() {\n    if (!this.open) {\n      return void 0;\n    }\n    this.open = false;\n    return waitForEvent(this, \"wa-after-hide\");\n  }\n  render() {\n    return html`\n      <wa-popup\n        part=\"base tooltip\"\n        exportparts=\"\n          popup:base__popup,\n          arrow:base__arrow\n        \"\n        class=${classMap({\n      tooltip: true,\n      \"tooltip-open\": this.open\n    })}\n        placement=${this.placement}\n        distance=${this.distance}\n        skidding=${this.skidding}\n        flip\n        shift\n        ?arrow=${!this.withoutArrow}\n        hover-bridge\n        .anchor=${this.anchor}\n      >\n        <div part=\"body\" class=\"body\">\n          <slot></slot>\n        </div>\n      </wa-popup>\n    `;\n  }\n};\nWaTooltip.css = tooltip_styles_default;\nWaTooltip.dependencies = { \"wa-popup\": WaPopup };\n__decorateClass([\n  query(\"slot:not([name])\")\n], WaTooltip.prototype, \"defaultSlot\", 2);\n__decorateClass([\n  query(\".body\")\n], WaTooltip.prototype, \"body\", 2);\n__decorateClass([\n  query(\"wa-popup\")\n], WaTooltip.prototype, \"popup\", 2);\n__decorateClass([\n  property()\n], WaTooltip.prototype, \"placement\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaTooltip.prototype, \"disabled\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaTooltip.prototype, \"distance\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], WaTooltip.prototype, \"open\", 2);\n__decorateClass([\n  property({ type: Number })\n], WaTooltip.prototype, \"skidding\", 2);\n__decorateClass([\n  property({ attribute: \"show-delay\", type: Number })\n], WaTooltip.prototype, \"showDelay\", 2);\n__decorateClass([\n  property({ attribute: \"hide-delay\", type: Number })\n], WaTooltip.prototype, \"hideDelay\", 2);\n__decorateClass([\n  property()\n], WaTooltip.prototype, \"trigger\", 2);\n__decorateClass([\n  property({ attribute: \"without-arrow\", type: Boolean, reflect: true })\n], WaTooltip.prototype, \"withoutArrow\", 2);\n__decorateClass([\n  property()\n], WaTooltip.prototype, \"for\", 2);\n__decorateClass([\n  state()\n], WaTooltip.prototype, \"anchor\", 2);\n__decorateClass([\n  watch(\"open\", { waitUntilFirstUpdate: true })\n], WaTooltip.prototype, \"handleOpenChange\", 1);\n__decorateClass([\n  watch(\"for\")\n], WaTooltip.prototype, \"handleForChange\", 1);\n__decorateClass([\n  watch([\"distance\", \"placement\", \"skidding\"])\n], WaTooltip.prototype, \"handleOptionsChange\", 1);\n__decorateClass([\n  watch(\"disabled\")\n], WaTooltip.prototype, \"handleDisabledChange\", 1);\nWaTooltip = __decorateClass([\n  customElement(\"wa-tooltip\")\n], WaTooltip);\n\nexport {\n  WaTooltip\n};\n"],
  "mappings": "MAGA,IAAIA,GAAkB,KACb,CACL,cAAcC,EAAS,CACrB,IAAMC,EAAcD,EAAQ,MACtBE,EAAW,CACf,QAAS,GACT,QAAS,G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Prop", "__getOwnPropDesc", "__typeError", "msg", "__decorateClass", "decorators", "target", "key", "kind", "result", "i", "decorator", "__accessCheck", "obj", "member", "__privateGet", "getter", "__privateAdd", "value", "__privateSet", "setter", "global", "globalThis", "supportsAdoptingStyleSheets", "ShadowRoot", "ShadyCSS", "nativeShadow", "Document", "prototype", "CSSStyleSheet", "constructionToken", "Symbol", "cssTagCache", "WeakMap", "CSSResult", "cssText", "strings", "safeToken", "this", "Error", "_strings", "styleSheet", "_styleSheet", "cacheable", "length", "get", "replaceSync", "set", "toString", "unsafeCSS", "value", "String", "css", "values", "reduce", "acc", "v", "idx", "adoptStyles", "renderRoot", "styles", "adoptedStyleSheets", "map", "s", "style", "document", "createElement", "nonce", "setAttribute", "textContent", "appendChild", "getCompatibleStyle", "sheet", "rule", "cssRules", "is", "defineProperty", "getOwnPropertyDescriptor", "getOwnPropertyNames", "getOwnPropertySymbols", "getPrototypeOf", "Object", "global", "globalThis", "trustedTypes", "emptyStringForBooleanAttribute", "emptyScript", "polyfillSupport", "reactiveElementPolyfillSupport", "JSCompiler_renameProperty", "prop", "_obj", "defaultConverter", "value", "type", "Boolean", "Array", "JSON", "stringify", "fromValue", "Number", "parse", "e", "notEqual", "old", "defaultPropertyDeclaration", "attribute", "String", "converter", "reflect", "useDefault", "hasChanged", "Symbol", "metadata", "litPropertyMetadata", "WeakMap", "ReactiveElement", "HTMLElement", "initializer", "this", "__prepare", "_initializers", "push", "observedAttributes", "finalize", "__attributeToPropertyMap", "keys", "name", "options", "state", "prototype", "hasOwnProperty", "create", "wrapped", "elementProperties", "set", "noAccessor", "key", "descriptor", "getPropertyDescriptor", "get", "v", "oldValue", "call", "requestUpdate", "configurable", "enumerable", "superCtor", "Map", "finalized", "props", "properties", "propKeys", "p", "createProperty", "attr", "__attributeNameForProperty", "elementStyles", "finalizeStyles", "styles", "isArray", "Set", "flat", "Infinity", "reverse", "s", "unshift", "getCompatibleStyle", "toLowerCase", "constructor", "super", "__instanceProperties", "isUpdatePending", "hasUpdated", "__reflectingProperty", "__initialize", "__updatePromise", "Promise", "res", "enableUpdating", "_$changedProperties", "__saveInstanceProperties", "forEach", "i", "controller", "__controllers", "add", "renderRoot", "isConnected", "hostConnected", "delete", "instanceProperties", "size", "createRenderRoot", "shadowRoot", "attachShadow", "shadowRootOptions", "adoptStyles", "connectedCallback", "c", "_requestedUpdate", "disconnectedCallback", "hostDisconnected", "_old", "_$attributeToProperty", "attrValue", "toAttribute", "removeAttribute", "setAttribute", "ctor", "propName", "getPropertyOptions", "fromAttribute", "convertedValue", "__defaultValues", "useNewValue", "newValue", "hasAttribute", "_$changeProperty", "__enqueueUpdate", "initializeValue", "has", "__reflectingProperties", "reject", "result", "scheduleUpdate", "performUpdate", "shouldUpdate", "changedProperties", "willUpdate", "hostUpdate", "update", "__markUpdated", "_$didUpdate", "_changedProperties", "hostUpdated", "firstUpdated", "updated", "updateComplete", "getUpdateComplete", "__propertyToAttribute", "mode", "reactiveElementVersions", "global", "globalThis", "wrap", "node", "trustedTypes", "policy", "createPolicy", "createHTML", "s", "boundAttributeSuffix", "marker", "Math", "random", "toFixed", "slice", "markerMatch", "nodeMarker", "d", "document", "createMarker", "createComment", "isPrimitive", "value", "isArray", "Array", "isIterable", "Symbol", "iterator", "SPACE_CHAR", "textEndRegex", "commentEndRegex", "comment2EndRegex", "tagEndRegex", "RegExp", "singleQuoteAttrEndRegex", "doubleQuoteAttrEndRegex", "rawTextElement", "tag", "type", "strings", "values", "_$litType$", "html", "svg", "mathml", "noChange", "for", "nothing", "templateCache", "WeakMap", "walker", "createTreeWalker", "trustFromTemplateString", "tsa", "stringFromTSA", "hasOwnProperty", "Error", "getTemplateHtml", "l", "length", "attrNames", "rawTextEndRegex", "regex", "i", "attrName", "match", "attrNameEndIndex", "lastIndex", "exec", "test", "end", "startsWith", "push", "Template", "constructor", "options", "this", "parts", "nodeIndex", "attrNameIndex", "partCount", "el", "createElement", "currentNode", "content", "wrapper", "firstChild", "replaceWith", "childNodes", "nextNode", "nodeType", "hasAttributes", "name", "getAttributeNames", "endsWith", "realName", "statics", "getAttribute", "split", "m", "index", "ctor", "PropertyPart", "BooleanAttributePart", "EventPart", "AttributePart", "removeAttribute", "tagName", "textContent", "emptyScript", "append", "data", "indexOf", "_options", "innerHTML", "resolveDirective", "part", "parent", "attributeIndex", "currentDirective", "__directives", "__directive", "nextDirectiveConstructor", "_$initialize", "_$resolve", "TemplateInstance", "template", "_$parts", "_$disconnectableChildren", "_$template", "_$parent", "parentNode", "_$isConnected", "fragment", "creationScope", "importNode", "partIndex", "templatePart", "ChildPart", "nextSibling", "ElementPart", "_$setValue", "__isConnected", "startNode", "endNode", "_$committedValue", "_$startNode", "_$endNode", "isConnected", "directiveParent", "_$clear", "_commitText", "_commitTemplateResult", "_commitNode", "_commitIterable", "insertBefore", "_insert", "createTextNode", "result", "_$getTemplate", "h", "_update", "instance", "_clone", "get", "set", "itemParts", "itemPart", "item", "start", "from", "_$notifyConnectionChanged", "n", "remove", "element", "fill", "String", "valueIndex", "noCommit", "change", "v", "_commitValue", "setAttribute", "toggleAttribute", "super", "newListener", "oldListener", "shouldRemoveListener", "capture", "once", "passive", "shouldAddListener", "removeEventListener", "addEventListener", "event", "call", "host", "handleEvent", "_$LH", "_boundAttributeSuffix", "_marker", "_markerMatch", "_HTML_RESULT", "_getTemplateHtml", "_TemplateInstance", "_isIterable", "_resolveDirective", "_ChildPart", "_AttributePart", "_BooleanAttributePart", "_EventPart", "_PropertyPart", "_ElementPart", "polyfillSupport", "litHtmlPolyfillSupport", "litHtmlVersions", "render", "container", "partOwnerNode", "renderBefore", "global", "globalThis", "LitElement", "ReactiveElement", "constructor", "this", "renderOptions", "host", "__childPart", "createRenderRoot", "renderRoot", "super", "renderBefore", "firstChild", "changedProperties", "value", "render", "hasUpdated", "isConnected", "update", "connectedCallback", "setConnected", "disconnectedCallback", "noChange", "litElementHydrateSupport", "polyfillSupport", "litElementPolyfillSupport", "global", "litElementVersions", "push", "customElement", "tagName", "classOrTarget", "context", "addInitializer", "customElements", "define", "defaultPropertyDeclaration", "attribute", "type", "String", "converter", "defaultConverter", "reflect", "hasChanged", "notEqual", "standardProperty", "options", "target", "context", "kind", "metadata", "properties", "globalThis", "litPropertyMetadata", "get", "set", "Map", "Object", "create", "wrapped", "name", "v", "oldValue", "call", "this", "requestUpdate", "_$changeProperty", "value", "Error", "property", "protoOrTarget", "nameOrContext", "proto", "hasOwnProperty", "constructor", "createProperty", "getOwnPropertyDescriptor", "undefined", "state", "options", "property", "attribute", "desc", "obj", "name", "descriptor", "configurable", "enumerable", "Reflect", "decorate", "Object", "defineProperty", "query", "selector", "cache", "protoOrTarget", "nameOrContext", "descriptor", "doQuery", "el", "renderRoot", "querySelector", "get", "set", "key", "Symbol", "this", "v", "desc", "result", "call", "hasUpdated", "host_styles_default", "i", "HAS_ENDING_COLON", "camelToKebab", "str", "c", "buildStyleAttribute", "options", "property2", "value", "element", "style", "_hasRecordedInitialProperties", "WebAwesomeElement", "__privateAdd", "customState", "active", "e", "Self", "spec", "styles", "name", "oldValue", "newValue", "__privateGet", "obj", "prop", "__privateSet", "changedProperties", "slotElement", "event", "eventOptions", "__decorateClass", "n", "CustomErrorValidator", "element", "validity", "WebAwesomeFormAssociatedElement", "WebAwesomeElement", "e", "WaInvalidEvent", "event", "emittedEvents", "parentAttrs", "validator", "attr", "args", "changedProperties", "value", "formData", "val", "flags", "message", "anchor", "required", "isValid", "hasInteracted", "isDisabled", "state", "reason", "staticValidators", "validators", "formControl", "finalMessage", "invalidKeys", "str", "__decorateClass", "n", "DEPRECATION_MAP", "warned", "warnDeprecatedSize", "tagName", "value", "HasSlotController", "host", "slotNames", "event", "slot", "node", "el", "name", "slotName", "propertyName", "shadowRoot", "size_styles_default", "i", "button_styles_default", "i", "variants_styles_default", "i", "watch", "propertyName", "options", "resolvedOptions", "proto", "decoratedFnName", "update", "watchedProperties", "changedProps", "property", "key", "oldValue", "newValue", "connectedElements", "translations", "fallback", "documentDirection", "documentLanguage", "isClient", "documentElementObserver", "update", "registerTranslation", "translation", "t", "code", "el", "LocalizeController", "host", "lang", "_a", "_b", "locale", "language", "region", "primary", "secondary", "key", "options", "args", "term", "dateToFormat", "numberToFormat", "value", "unit", "translation", "label", "position", "total", "page", "value", "slide", "count", "num", "max", "min", "current", "duration", "date", "range", "shown", "start", "end", "step", "tag", "registerTranslation", "en_default", "LocalizeController", "registerTranslation", "en_default", "PartType", "ATTRIBUTE", "CHILD", "PROPERTY", "BOOLEAN_ATTRIBUTE", "EVENT", "ELEMENT", "directive", "c", "values", "_$litDirective$", "Directive", "_partInfo", "_$isConnected", "this", "_$parent", "part", "parent", "attributeIndex", "__part", "__attributeIndex", "props", "update", "_part", "render", "classMap", "directive", "Directive", "partInfo", "super", "type", "PartType", "ATTRIBUTE", "name", "strings", "length", "Error", "classInfo", "Object", "keys", "filter", "key", "join", "part", "this", "_previousClasses", "Set", "_staticClasses", "split", "s", "has", "add", "render", "classList", "element", "remove", "delete", "value", "noChange", "ifDefined", "value", "nothing", "brand", "Symbol", "for", "unwrapStaticValue", "value", "r", "literal", "strings", "values", "_$litStatic$", "reduce", "acc", "v", "idx", "value", "Error", "r", "brand", "stringsCache", "Map", "withStatic", "coreTag", "l", "length", "staticValue", "dynamicValue", "staticStrings", "dynamicValues", "s", "i", "hasStatics", "unwrapStaticValue", "push", "key", "join", "get", "raw", "set", "html", "coreHtml", "svg", "coreSvg", "mathml", "coreMathml", "WaButton", "WebAwesomeFormAssociatedElement", "HasSlotController", "LocalizeController", "MirrorValidator", "warnDeprecatedSize", "button", "attribute", "event", "lightDOMButton", "WaInvalidEvent", "nodes", "hasIconLabel", "hasIcon", "hasText", "hasOtherElements", "node", "element", "_args", "options", "isLink", "tag", "i", "u", "e", "o", "button_styles_default", "variants_styles_default", "size_styles_default", "__decorateClass", "r", "n", "watch", "t", "spinner_styles_default", "i", "WaSpinner", "WebAwesomeElement", "LocalizeController", "spinner_styles_default", "__decorateClass", "t", "WaErrorEvent", "WaLoadEvent", "icon_styles_default", "i", "iconPath", "kitCode", "getIconPath", "iconPath", "setKitCode", "code", "kitCode", "getKitCode", "el", "FA_VERSION", "getIconFolder", "_name", "family", "variant", "folder", "getIconUrl", "name", "iconBase", "getIconPath", "kitCode", "getKitCode", "library", "svg", "hostEl", "paths", "primaryPath", "p", "secondaryPath", "originalOpacity", "library_default_default", "dataUri", "svg", "icons", "systemLibrary", "name", "_family", "variant", "library_system_default", "defaultIconFamily", "registry", "library_default_default", "library_system_default", "watchedIcons", "watchIcon", "icon", "unwatchIcon", "getIconLibrary", "name", "lib", "getDefaultIconFamily", "defaultIconFamily", "_ChildPart", "ChildPart", "_$LH", "isTemplateResult", "value", "type", "isSingleExpression", "part", "strings", "RESET_VALUE", "setCommittedValue", "part", "value", "_$committedValue", "CACHEABLE_ERROR", "RETRYABLE_ERROR", "parser", "iconCache", "WaIcon", "WebAwesomeElement", "url", "library", "fileData", "svg", "div", "svgEl", "watchIcon", "changedProperties", "unwatchIcon", "getIconLibrary", "family", "getDefaultIconFamily", "autoWidth", "fromLibrary", "iconResolver", "sourceAfterFetch", "l", "WaErrorEvent", "WaLoadEvent", "icon_styles_default", "__decorateClass", "r", "n", "watch", "t", "checkbox_styles_default", "i", "RequiredValidator", "options", "validationElement", "validationProperty", "obj", "element", "validity", "form_control_styles_default", "i", "live", "directive", "Directive", "partInfo", "super", "type", "PartType", "PROPERTY", "ATTRIBUTE", "BOOLEAN_ATTRIBUTE", "Error", "isSingleExpression", "value", "part", "noChange", "nothing", "element", "name", "hasAttribute", "getAttribute", "String", "setCommittedValue", "WaCheckbox", "WebAwesomeFormAssociatedElement", "HasSlotController", "validators", "RequiredValidator", "val", "warnDeprecatedSize", "changedProperties", "options", "hasHintSlot", "hasHint", "isIndeterminate", "iconName", "iconState", "checkedAttribute", "checkedProperty", "l", "o", "e", "form_control_styles_default", "size_styles_default", "checkbox_styles_default", "__decorateClass", "n", "watch", "t", "RenderedWatcher", "element", "callback", "additionalTargets", "target", "getOffset", "element", "parent", "isEventInsideRect", "event", "el", "rect", "locks", "getScrollbarWidth", "documentWidth", "getExistingBodyPadding", "padding", "lockBodyScrolling", "lockingEl", "scrollbarWidth", "scrollbarGutterProperty", "unlockBodyScrolling", "scrollIntoView", "container", "direction", "behavior", "offset", "offsetTop", "offsetLeft", "minX", "maxX", "minY", "maxY", "parseSpaceDelimitedTokens", "input", "token", "WaShowEvent", "WaHideEvent", "detail", "WaAfterHideEvent", "WaAfterShowEvent", "dialog_styles_default", "i", "dismissibleStack", "registerDismissible", "key", "unregisterDismissible", "i", "isTopDismissible", "animateWithClass", "el", "className", "resolve", "controller", "signal", "resolved", "onEnd", "WaDialog", "WebAwesomeElement", "LocalizeController", "HasSlotController", "RenderedWatcher", "isRendered", "event", "isTopDismissible", "changedProperties", "lockBodyScrolling", "unlockBodyScrolling", "source", "waHideEvent", "WaHideEvent", "animateWithClass", "trigger", "WaAfterHideEvent", "registerDismissible", "unregisterDismissible", "button", "isEventInsideRect", "waShowEvent", "WaShowEvent", "elementToFocus", "WaAfterShowEvent", "hasHeader", "hasFooter", "hasLabel", "o", "e", "dialog_styles_default", "__decorateClass", "n", "watch", "t", "dialogAttrEl", "command", "id", "parseSpaceDelimitedTokens", "dialog", "WaClearEvent", "submitOnEnter", "event", "el", "hasModifier", "submitForm", "submittableTags", "submittableTypes", "isSubmittableElement", "tagName", "type", "form", "formElements", "submittableFormElements", "el2", "button", "input_styles_default", "i", "WaInput", "WebAwesomeFormAssociatedElement", "HasSlotController", "LocalizeController", "MirrorValidator", "val", "value", "warnDeprecatedSize", "event", "WaClearEvent", "submitOnEnter", "changedProperties", "sanitizingTypes", "options", "selectionStart", "selectionEnd", "selectionDirection", "replacement", "start", "end", "selectMode", "hasLabelSlot", "hasHintSlot", "hasLabel", "hasHint", "hasClearIcon", "isClearIconVisible", "e", "o", "l", "size_styles_default", "form_control_styles_default", "input_styles_default", "__decorateClass", "n", "r", "watch", "t", "select_styles_default", "i", "waitForEvent", "el", "eventName", "resolve", "done", "event", "UnsafeHTMLDirective", "Directive", "partInfo", "super", "this", "_value", "nothing", "type", "PartType", "CHILD", "Error", "constructor", "directiveName", "value", "_templateResult", "noChange", "strings", "raw", "_$litType$", "resultType", "values", "unsafeHTML", "directive", "WaSelect", "WebAwesomeFormAssociatedElement", "HasSlotController", "LocalizeController", "option", "event", "path", "target", "isClearButton", "isButton", "isTopDismissible", "allOptions", "currentIndex", "newIndex", "validators", "RequiredValidator", "val", "a", "b", "v", "oldValue", "oldRawValue", "value", "ret", "warnDeprecatedSize", "defaultSelectedOptions", "el", "selectedValues", "registerDismissible", "unregisterDismissible", "WaClearEvent", "selectedOptions", "directOption", "tagElement", "opt", "scrollIntoView", "newSelectedOptions", "force", "defaultValue", "defaultValues", "newSelectedValues", "nextOrder", "orderA", "orderB", "selectedOption", "index", "tag", "o", "changedProperties", "waShowEvent", "WaShowEvent", "animateWithClass", "WaAfterShowEvent", "waHideEvent", "WaHideEvent", "WaAfterHideEvent", "waitForEvent", "options", "hasLabelSlot", "hasHintSlot", "hasLabel", "hasHint", "hasClearIcon", "e", "select_styles_default", "form_control_styles_default", "size_styles_default", "__decorateClass", "r", "n", "watch", "t", "WaRemoveEvent", "tag_styles_default", "i", "WaTag", "WebAwesomeElement", "LocalizeController", "warnDeprecatedSize", "WaRemoveEvent", "tag_styles_default", "variants_styles_default", "size_styles_default", "__decorateClass", "n", "watch", "t", "option_styles_default", "i", "getText", "root", "depth", "node2", "node", "element", "assignedNodes", "WaOption", "WebAwesomeElement", "LocalizeController", "event", "value", "oldValue", "controller", "changedProperties", "oldVal", "parent", "changed", "selected", "A", "option_styles_default", "__decorateClass", "e", "r", "n", "t", "WaRepositionEvent", "popup_styles_default", "i", "min", "max", "round", "floor", "createCoords", "v", "oppositeSideMap", "clamp", "start", "value", "end", "evaluate", "param", "getSide", "placement", "getAlignment", "getOppositeAxis", "axis", "getAxisLength", "getSideAxis", "firstChar", "getAlignmentAxis", "getAlignmentSides", "rects", "rtl", "alignment", "alignmentAxis", "length", "mainAlignmentSide", "getOppositePlacement", "getExpandedPlacements", "oppositePlacement", "getOppositeAlignmentPlacement", "lrPlacement", "rlPlacement", "tbPlacement", "btPlacement", "getSideList", "side", "isStart", "getOppositeAxisPlacements", "flipAlignment", "direction", "list", "expandPaddingObject", "padding", "_padding$top", "_padding$right", "_padding$bottom", "_padding$left", "getPaddingObject", "rectToClientRect", "rect", "x", "y", "width", "height", "computeCoordsFromPlacement", "_ref", "placement", "rtl", "reference", "floating", "sideAxis", "getSideAxis", "alignmentAxis", "getAlignmentAxis", "alignLength", "getAxisLength", "side", "getSide", "isVertical", "commonX", "commonY", "commonAlign", "coords", "alignment", "getAlignment", "detectOverflow", "state", "options", "_await$platform$isEle", "x", "y", "platform", "rects", "elements", "strategy", "boundary", "rootBoundary", "elementContext", "altBoundary", "padding", "evaluate", "paddingObject", "getPaddingObject", "element", "clippingClientRect", "rectToClientRect", "rect", "offsetParent", "offsetScale", "elementClientRect", "MAX_RESET_COUNT", "computePosition", "config", "middleware", "platformWithDetectOverflow", "statefulPlacement", "resetCount", "middlewareData", "i", "currentMiddleware", "name", "fn", "nextX", "nextY", "data", "reset", "arrow", "axis", "length", "arrowDimensions", "isYAxis", "minProp", "maxProp", "clientProp", "endDiff", "startDiff", "arrowOffsetParent", "clientSize", "centerToReference", "largestPossiblePadding", "minPadding", "min", "maxPadding", "max", "center", "offset", "clamp", "shouldAddOffset", "alignmentOffset", "flip", "options", "state", "_middlewareData$arrow", "_middlewareData$flip", "placement", "middlewareData", "rects", "initialPlacement", "platform", "elements", "checkMainAxis", "checkCrossAxis", "specifiedFallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment", "detectOverflowOptions", "evaluate", "side", "getSide", "initialSideAxis", "getSideAxis", "isBasePlacement", "rtl", "fallbackPlacements", "getOppositePlacement", "getExpandedPlacements", "hasFallbackAxisSideDirection", "getOppositeAxisPlacements", "placements", "overflow", "overflows", "overflowsData", "sides", "getAlignmentSides", "_middlewareData$flip2", "_overflowsData$filter", "nextIndex", "nextPlacement", "d", "resetPlacement", "a", "b", "_overflowsData$filter2", "currentSideAxis", "acc", "originSides", "convertValueToCoords", "state", "options", "placement", "platform", "elements", "rtl", "side", "getSide", "alignment", "getAlignment", "isVertical", "getSideAxis", "mainAxisMulti", "crossAxisMulti", "rawValue", "evaluate", "mainAxis", "crossAxis", "alignmentAxis", "offset", "_middlewareData$offse", "_middlewareData$arrow", "x", "y", "middlewareData", "diffCoords", "shift", "checkMainAxis", "checkCrossAxis", "limiter", "_ref", "detectOverflowOptions", "coords", "overflow", "getOppositeAxis", "mainAxisCoord", "crossAxisCoord", "clampCoord", "axis", "coord", "clamp", "limitedCoords", "size", "options", "state", "placement", "rects", "platform", "elements", "apply", "detectOverflowOptions", "evaluate", "overflow", "side", "getSide", "alignment", "getAlignment", "isYAxis", "getSideAxis", "width", "height", "heightSide", "widthSide", "maximumClippingHeight", "maximumClippingWidth", "overflowAvailableHeight", "min", "overflowAvailableWidth", "shiftData", "noShift", "availableHeight", "availableWidth", "max", "nextDimensions", "hasWindow", "getNodeName", "node", "isNode", "getWindow", "_node$ownerDocument", "getDocumentElement", "_ref", "value", "isElement", "isHTMLElement", "isShadowRoot", "isOverflowElement", "element", "overflow", "overflowX", "overflowY", "display", "getComputedStyle", "isTableElement", "isTopLayer", "willChangeRe", "containRe", "isNotNone", "isWebKitValue", "isContainingBlock", "elementOrCss", "css", "isWebKit", "getContainingBlock", "currentNode", "getParentNode", "isLastTraversableNode", "getNodeScroll", "result", "getNearestOverflowAncestor", "parentNode", "getOverflowAncestors", "list", "traverseIframes", "_node$ownerDocument2", "scrollableAncestor", "isBody", "win", "frameElement", "getFrameElement", "getCssDimensions", "element", "css", "getComputedStyle", "width", "height", "hasOffset", "isHTMLElement", "offsetWidth", "offsetHeight", "shouldFallback", "round", "unwrapElement", "isElement", "getScale", "domElement", "createCoords", "rect", "$", "x", "y", "noOffsets", "getVisualOffsets", "win", "getWindow", "isWebKit", "shouldAddVisualOffsets", "isFixed", "floatingOffsetParent", "getBoundingClientRect", "includeScale", "isFixedStrategy", "offsetParent", "clientRect", "scale", "visualOffsets", "offsetWin", "currentWin", "currentIFrame", "getFrameElement", "iframeScale", "iframeRect", "left", "top", "rectToClientRect", "getWindowScrollBarX", "leftScroll", "getNodeScroll", "getDocumentElement", "getHTMLOffset", "documentElement", "scroll", "htmlRect", "convertOffsetParentRelativeRectToViewportRelativeRect", "_ref", "elements", "strategy", "topLayer", "isTopLayer", "offsets", "isOffsetParentAnElement", "getNodeName", "isOverflowElement", "offsetRect", "htmlOffset", "getClientRects", "getDocumentRect", "html", "body", "max", "SCROLLBAR_MAX", "getViewportRect", "rootBoundary", "isLayoutViewport", "visualViewport", "layoutRelativeClientCoords", "doc", "bodyStyles", "bodyMarginInline", "reservedWidth", "gutter", "getInnerBoundingClientRect", "getClientRectFromClippingAncestor", "clippingAncestor", "getClippingElementAncestors", "cache", "cachedResult", "result", "getOverflowAncestors", "el", "lastKeptComputedStyle", "elementIsFixed", "currentNode", "getParentNode", "isLastTraversableNode", "computedStyle", "currentNodeIsContaining", "isContainingBlock", "lastPosition", "ancestor", "getClippingRect", "boundary", "clippingAncestors", "firstRect", "right", "bottom", "i", "min", "getDimensions", "getRectRelativeToOffsetParent", "isStaticPositioned", "getTrueOffsetParent", "polyfill", "rawOffsetParent", "getOffsetParent", "svgOffsetParent", "isTableElement", "getContainingBlock", "getElementRects", "data", "getOffsetParentFn", "getDimensionsFn", "floatingDimensions", "isRTL", "platform", "rectsAreEqual", "a", "b", "observeMove", "onMove", "ancestorResize", "io", "timeoutId", "root", "cleanup", "_io", "refresh", "skip", "threshold", "elementRectForRootMargin", "insetTop", "floor", "insetRight", "insetBottom", "insetLeft", "options", "isFirstUpdate", "handleObserve", "entries", "ratio", "handleResize", "autoUpdate", "reference", "floating", "update", "ancestorScroll", "elementResize", "layoutShift", "animationFrame", "referenceEl", "ancestors", "cleanupIo", "reobserveFrame", "resizeObserver", "firstEntry", "_resizeObserver", "frameId", "prevRefRect", "frameLoop", "nextRefRect", "_resizeObserver2", "offset", "shift", "flip", "size", "arrow", "computePosition", "reference", "floating", "options", "cache", "mergedOptions", "platformWithCache", "platform", "e", "i", "r", "i", "e", "t", "n", "isContainingBlock", "isVirtualElement", "e", "SUPPORTS_POPOVER", "WaPopup", "WebAwesomeElement", "LocalizeController", "anchorRect", "popupRect", "isVertical", "topLeftX", "topLeftY", "topRightX", "topRightY", "bottomLeftX", "bottomLeftY", "bottomRightX", "bottomRightY", "changedProperties", "root", "autoUpdate", "resolve", "middleware", "offset", "size", "rects", "syncWidth", "syncHeight", "defaultBoundary", "getOverflowAncestors", "el", "flip", "shift", "availableWidth", "availableHeight", "arrow", "getOffsetParent", "element", "platform", "computePosition", "x", "y", "middlewareData", "placement", "isRtl", "staticSide", "arrowX", "arrowY", "top", "right", "bottom", "left", "value", "WaRepositionEvent", "popup_styles_default", "__decorateClass", "n", "p", "t", "switch_styles_default", "i", "WaSwitch", "WebAwesomeFormAssociatedElement", "HasSlotController", "LocalizeController", "MirrorValidator", "val", "warnDeprecatedSize", "event", "isRtl", "changedProperties", "options", "value", "stateValue", "hasHintSlot", "hasHint", "checkedAttribute", "checkedProperty", "l", "e", "o", "form_control_styles_default", "size_styles_default", "switch_styles_default", "__decorateClass", "n", "watch", "t", "tooltip_styles_default", "i", "urlAlphabet", "nanoid", "size", "id", "bytes", "urlAlphabet", "uniqueId", "prefix", "nanoid", "containsComposedNode", "ancestor", "node", "WaTooltip", "WebAwesomeElement", "event", "isTopDismissible", "relatedTarget", "movedIntoAnchor", "movedIntoTooltip", "uniqueId", "unregisterDismissible", "changedProperties", "triggerType", "element", "id", "labels", "filteredLabels", "label", "waShowEvent", "WaShowEvent", "registerDismissible", "animateWithClass", "WaAfterShowEvent", "waHideEvent", "WaHideEvent", "WaAfterHideEvent", "rootNode", "newAnchor", "oldAnchor", "signal", "waitForEvent", "e", "tooltip_styles_default", "WaPopup", "__decorateClass", "n", "r", "watch", "t"]
}
