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UAMgBsZ,GAAA,CAA3BE,GAAS,CAAE1Q,KAAMC,UAvEPqlB,GAuEiBpuB,UAAA,kBtCxFMyZ,EAACzJ,EAAiB0J,KAC/C9X,eAAeG,IAAIiO,IACtBpO,eAAeC,OAAOmO,EAAS,cAAc0J,IAC/C,EuCAFD,CAAqB,kBAAmB2U,IlBHxC,IAAO3P,GAAQpI,CAAA,uuBCKR,MAAMqI,WAAoBtL,GAA1B5O,WAAAA,GAAA,SAAAL,WAYsC,KAAAU,KAAqB,OAThE1B,iBAAAA,GACE,MAAMA,oBACN,KAAK2B,aAAa,QAAS,GAC7B,EANW4Z,GACJ/T,OAAS,CAACgU,gGAW0BrF,CAAA,CAA1CE,GAAS,CAAE1Q,KAAMC,OAAQE,SAAS,KAZxByV,GAYgC1e,UAAA,QkBb7CyZ,GAAqB,uBCQd,cAAgCiF,GAErC3L,MAAAA,GACE,OAAOgF,CAAA;;aAGT,ICdF0B,GAAqB,gBCQd,cAA0BiF,GAE/B3L,MAAAA,GACE,OAAOgF,CAAA;;aAGT,ICdF0B,GAAqB,oBCQd,cAA8BiF,GAEnC3L,MAAAA,GACE,OAAOgF,CAAA;;aAGT,ICdF0B,GAAqB,uBCQd,cAAgCiF,GAErC3L,MAAAA,GACE,OAAOgF,CAAA;;aAGT","sources":["webpack://CarMax.Online.Home.Micro.Site/./node_modules/@horizon/copy-button/node_modules/@horizon/style/fonts/inject.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@horizon/loading/node_modules/@horizon/style/fonts/inject.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@horizon/style/fonts/inject.js","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/arrayiterator] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/makeiterator] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/arrayfromiterable] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/arrayfromiterator] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:util/objectcreate] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/setprototypeof] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:util/global] ","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/construct] ","webpack://CarMax.Online.Home.Micro.Site/src/scoped-custom-element-registry.js","webpack://CarMax.Online.Home.Micro.Site/ [synthetic:es6/util/inherits] ","webpack://CarMax.Online.Home.Micro.Site/src/css-tag.ts","webpack://CarMax.Online.Home.Micro.Site/src/reactive-element.ts","webpack://CarMax.Online.Home.Micro.Site/src/lit-html.ts","webpack://CarMax.Online.Home.Micro.Site/src/lit-element.ts","webpack://CarMax.Online.Home.Micro.Site/../shoelace/slot-controller.ts","webpack://CarMax.Online.Home.Micro.Site/src/static.ts","webpack://CarMax.Online.Home.Micro.Site/../src/decorators/property.ts","webpack://CarMax.Online.Home.Micro.Site/../src/decorators/query-assigned-elements.ts","webpack://CarMax.Online.Home.Micro.Site/../src/directives/if-defined.ts","webpack://CarMax.Online.Home.Micro.Site/src/directive.ts","webpack://CarMax.Online.Home.Micro.Site/src/directive-helpers.ts","webpack://CarMax.Online.Home.Micro.Site/../src/directives/live.ts","webpack://CarMax.Online.Home.Micro.Site/index.ts","webpack://CarMax.Online.Home.Micro.Site/../components/button/button.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/button/button.ts","webpack://CarMax.Online.Home.Micro.Site/../events/event-helpers.ts","webpack://CarMax.Online.Home.Micro.Site/../src/decorators/query.ts","webpack://CarMax.Online.Home.Micro.Site/../src/decorators/base.ts","webpack://CarMax.Online.Home.Micro.Site/../helpers/define-horizon-element.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-button.ts","webpack://CarMax.Online.Home.Micro.Site/../components/card/card.css.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/types.ts","webpack://CarMax.Online.Home.Micro.Site/../components/card/card.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-card.ts","webpack://CarMax.Online.Home.Micro.Site/../components/heading/heading.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/heading/heading.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-heading.ts","webpack://CarMax.Online.Home.Micro.Site/../src/directives/class-map.ts","webpack://CarMax.Online.Home.Micro.Site/../components/text/text.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/text/text.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-text.ts","webpack://CarMax.Online.Home.Micro.Site/../components/badge/badge.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/badge/badge.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-badge.ts","webpack://CarMax.Online.Home.Micro.Site/../components/inline/inline.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/inline/inline.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-inline.ts","webpack://CarMax.Online.Home.Micro.Site/../shoelace/animation.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-loading.ts","webpack://CarMax.Online.Home.Micro.Site/../components/icon/icon.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/icon/icon-base.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-info-circle/info-circle.ts","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/localize/dist/index.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7BTDLTNI.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6CTB5ZDJ.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KAW7D32O.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.4TUIT776.js","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs","webpack://CarMax.Online.Home.Micro.Site/./node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5JY5FUCG.js","webpack://CarMax.Online.Home.Micro.Site/../components/tooltip/tooltip.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/tooltip/tooltip.ts","webpack://CarMax.Online.Home.Micro.Site/../src/decorators/state.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-copy/copy.ts","webpack://CarMax.Online.Home.Micro.Site/../components/copy-button/copy-button.css.ts","webpack://CarMax.Online.Home.Micro.Site/../components/copy-button/copy-button.ts","webpack://CarMax.Online.Home.Micro.Site/../src/components/hzn-copy-button.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-arrow-right/index.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-arrow-right/arrow-right.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-chat/index.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-chat/chat.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-location/index.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-location/location.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-caret-right/index.ts","webpack://CarMax.Online.Home.Micro.Site/../../../src/components/individual/hzn-caret-right/caret-right.ts"],"sourcesContent":["if (typeof document !== 'undefined' && document.fonts && document.fonts.ready) {\n  document.fonts.ready.then(async () => {\n    let carMaxSharpSansDispBold = new FontFace(\n      'CarMaxSharpSansDisp-Bold',\n      'url(https://www.carmax.com/shared/fonts/CarMaxSharpSansDisp-Bold.woff2)',\n      { style: 'normal', display: 'swap', weight: '700' }\n    );\n    await carMaxSharpSansDispBold.load();\n    try {\n      document.fonts.add(carMaxSharpSansDispBold);\n    }\n    catch { }\n\n    let lato = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-regular.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '400',\n    });\n    await lato.load();\n    try {\n      document.fonts.add(lato);\n    }\n    catch { }\n\n    let latoBold = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-700.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '700',\n    });\n    await latoBold.load();\n    try {\n      document.fonts.add(latoBold);\n    }\n    catch { }\n\n    let firaCode = new FontFace('Fira Code', 'url(https://www.carmax.com/shared/fonts/FiraCode-v5-Regular.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '400',\n    });\n    await firaCode.load();\n    try {\n      document.fonts.add(firaCode);\n    }\n    catch { }\n\n    let firaCodeBold = new FontFace('Fira Code', 'url(https://www.carmax.com/shared/fonts/FiraCode-v5-Bold.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '700',\n    });\n    await firaCodeBold.load();\n    try {\n      document.fonts.add(firaCodeBold);\n    }\n    catch { }\n\n  });\n}\n\n","if (typeof document !== 'undefined' && document.fonts && document.fonts.ready) {\n  document.fonts.ready.then(async () => {\n    let carMaxSharpSansDispBold = new FontFace(\n      'CarMaxSharpSansDisp-Bold',\n      'url(https://www.carmax.com/shared/fonts/CarMaxSharpSansDisp-Bold.woff2)',\n      { style: 'normal', display: 'swap', weight: '700' }\n    );\n    await carMaxSharpSansDispBold.load();\n    try {\n      document.fonts.add(carMaxSharpSansDispBold);\n    }\n    catch { }\n\n    let lato = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-regular.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '400',\n    });\n    await lato.load();\n    try {\n      document.fonts.add(lato);\n    }\n    catch { }\n\n    let latoBold = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-700.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '700',\n    });\n    await latoBold.load();\n    try {\n      document.fonts.add(latoBold);\n    }\n    catch { }\n\n    let firaCode = new FontFace('Fira Code', 'url(https://www.carmax.com/shared/fonts/FiraCode-v5-Regular.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '400',\n    });\n    await firaCode.load();\n    try {\n      document.fonts.add(firaCode);\n    }\n    catch { }\n\n    let firaCodeBold = new FontFace('Fira Code', 'url(https://www.carmax.com/shared/fonts/FiraCode-v5-Bold.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '700',\n    });\n    await firaCodeBold.load();\n    try {\n      document.fonts.add(firaCodeBold);\n    }\n    catch { }\n\n  });\n}\n\n","if (typeof document !== 'undefined' && document.fonts && document.fonts.ready) {\n  document.fonts.ready.then(async () => {\n    let carMaxSharpSansDispBold = new FontFace(\n      'CarMaxSharpSansDisp-Bold',\n      'url(https://www.carmax.com/shared/fonts/CarMaxSharpSansDisp-Bold.woff2)',\n      { style: 'normal', display: 'swap', weight: '700' }\n    );\n    await carMaxSharpSansDispBold.load();\n    try {\n      document.fonts.add(carMaxSharpSansDispBold);\n    }\n    catch { }\n\n    let lato = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-regular.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '400',\n    });\n    await lato.load();\n    try {\n      document.fonts.add(lato);\n    }\n    catch { }\n\n    let latoBold = new FontFace('Lato', 'url(https://www.carmax.com/shared/fonts/lato-v16-latin-700.woff2)', {\n      style: 'normal',\n      display: 'swap',\n      weight: '700',\n    });\n    await latoBold.load();\n    try {\n      document.fonts.add(latoBold);\n    }\n    catch { }\n\n  });\n}\n\n",null,null,null,null,null,null,null,null,"/**\n * @license\n * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\nif (!ShadowRoot.prototype.createElement) {\n  const NativeHTMLElement = window.HTMLElement;\n  const nativeDefine = window.customElements.define;\n  const nativeGet = window.customElements.get;\n  const nativeRegistry = window.customElements;\n\n  const definitionForElement = new WeakMap();\n  const pendingRegistryForElement = new WeakMap();\n  const globalDefinitionForConstructor = new WeakMap();\n  // TBD: This part of the spec proposal is unclear:\n  // > Another option for looking up registries is to store an element's\n  // > originating registry with the element. The Chrome DOM team was concerned\n  // > about the small additional memory overhead on all elements. Looking up the\n  // > root avoids this.\n  const scopeForElement = new WeakMap();\n\n  // Constructable CE registry class, which uses the native CE registry to\n  // register stand-in elements that can delegate out to CE classes registered\n  // in scoped registries\n  window.CustomElementRegistry = class {\n    constructor() {\n      this._definitionsByTag = new Map();\n      this._definitionsByClass = new Map();\n      this._whenDefinedPromises = new Map();\n      this._awaitingUpgrade = new Map();\n    }\n\n    define(tagName, elementClass) {\n      tagName = tagName.toLowerCase();\n      if (this._getDefinition(tagName) !== undefined) {\n        throw new DOMException(\n          `Failed to execute 'define' on 'CustomElementRegistry': the name \"${tagName}\" has already been used with this registry`\n        );\n      }\n      if (this._definitionsByClass.get(elementClass) !== undefined) {\n        throw new DOMException(\n          `Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry`\n        );\n      }\n      // Since observedAttributes can't change, we approximate it by patching\n      // set/remove/toggleAttribute on the user's class\n      const attributeChangedCallback =\n        elementClass.prototype.attributeChangedCallback;\n      const observedAttributes = new Set(elementClass.observedAttributes || []);\n      patchAttributes(\n        elementClass,\n        observedAttributes,\n        attributeChangedCallback\n      );\n      // Register the definition\n      const definition = {\n        elementClass,\n        connectedCallback: elementClass.prototype.connectedCallback,\n        disconnectedCallback: elementClass.prototype.disconnectedCallback,\n        adoptedCallback: elementClass.prototype.adoptedCallback,\n        attributeChangedCallback,\n        'formAssociated': elementClass['formAssociated'],\n        'formAssociatedCallback':\n          elementClass.prototype['formAssociatedCallback'],\n        'formDisabledCallback': elementClass.prototype['formDisabledCallback'],\n        'formResetCallback': elementClass.prototype['formResetCallback'],\n        'formStateRestoreCallback':\n          elementClass.prototype['formStateRestoreCallback'],\n        observedAttributes,\n      };\n      this._definitionsByTag.set(tagName, definition);\n      this._definitionsByClass.set(elementClass, definition);\n      // Register a stand-in class which will handle the registry lookup & delegation\n      let standInClass = nativeGet.call(nativeRegistry, tagName);\n      if (!standInClass) {\n        standInClass = createStandInElement(tagName);\n        nativeDefine.call(nativeRegistry, tagName, standInClass);\n      }\n      if (this === window.customElements) {\n        globalDefinitionForConstructor.set(elementClass, definition);\n        definition.standInClass = standInClass;\n      }\n      // Upgrade any elements created in this scope before define was called\n      const awaiting = this._awaitingUpgrade.get(tagName);\n      if (awaiting) {\n        this._awaitingUpgrade.delete(tagName);\n        for (const element of awaiting) {\n          pendingRegistryForElement.delete(element);\n          customize(element, definition, true);\n        }\n      }\n      // Flush whenDefined callbacks\n      const info = this._whenDefinedPromises.get(tagName);\n      if (info !== undefined) {\n        info.resolve(elementClass);\n        this._whenDefinedPromises.delete(tagName);\n      }\n      return elementClass;\n    }\n\n    upgrade() {\n      creationContext.push(this);\n      nativeRegistry.upgrade.apply(nativeRegistry, arguments);\n      creationContext.pop();\n    }\n\n    get(tagName) {\n      const definition = this._definitionsByTag.get(tagName);\n      return definition?.elementClass;\n    }\n\n    _getDefinition(tagName) {\n      return this._definitionsByTag.get(tagName);\n    }\n\n    whenDefined(tagName) {\n      const definition = this._getDefinition(tagName);\n      if (definition !== undefined) {\n        return Promise.resolve(definition.elementClass);\n      }\n      let info = this._whenDefinedPromises.get(tagName);\n      if (info === undefined) {\n        info = {};\n        info.promise = new Promise((r) => (info.resolve = r));\n        this._whenDefinedPromises.set(tagName, info);\n      }\n      return info.promise;\n    }\n\n    _upgradeWhenDefined(element, tagName, shouldUpgrade) {\n      let awaiting = this._awaitingUpgrade.get(tagName);\n      if (!awaiting) {\n        this._awaitingUpgrade.set(tagName, (awaiting = new Set()));\n      }\n      if (shouldUpgrade) {\n        awaiting.add(element);\n      } else {\n        awaiting.delete(element);\n      }\n    }\n  };\n\n  // User extends this HTMLElement, which returns the CE being upgraded\n  let upgradingInstance;\n  window.HTMLElement = function HTMLElement() {\n    // Upgrading case: the StandInElement constructor was run by the browser's\n    // native custom elements and we're in the process of running the\n    // \"constructor-call trick\" on the natively constructed instance, so just\n    // return that here\n    let instance = upgradingInstance;\n    if (instance) {\n      upgradingInstance = undefined;\n      return instance;\n    }\n    // Construction case: we need to construct the StandInElement and return\n    // it; note the current spec proposal only allows new'ing the constructor\n    // of elements registered with the global registry\n    const definition = globalDefinitionForConstructor.get(this.constructor);\n    if (!definition) {\n      throw new TypeError(\n        'Illegal constructor (custom element class must be registered with global customElements registry to be newable)'\n      );\n    }\n    instance = Reflect.construct(\n      NativeHTMLElement,\n      [],\n      definition.standInClass\n    );\n    Object.setPrototypeOf(instance, this.constructor.prototype);\n    definitionForElement.set(instance, definition);\n    return instance;\n  };\n  window.HTMLElement.prototype = NativeHTMLElement.prototype;\n\n  // Helpers to return the scope for a node where its registry would be located\n  const isValidScope = (node) =>\n    node === document || node instanceof ShadowRoot;\n  const registryForNode = (node) => {\n    // TODO: the algorithm for finding the scope is a bit up in the air; assigning\n    // a one-time scope at creation time would require walking every tree ever\n    // created, which is avoided for now\n    let scope = node.getRootNode();\n    // If we're not attached to the document (i.e. in a disconnected tree or\n    // fragment), we need to get the scope from the creation context; that should\n    // be a Document or ShadowRoot, unless it was created via innerHTML\n    if (!isValidScope(scope)) {\n      const context = creationContext[creationContext.length - 1];\n      // When upgrading via registry.upgrade(), the registry itself is put on the\n      // creationContext stack\n      if (context instanceof CustomElementRegistry) {\n        return context;\n      }\n      // Otherwise, get the root node of the element this was created from\n      scope = context.getRootNode();\n      // The creation context wasn't a Document or ShadowRoot or in one; this\n      // means we're being innerHTML'ed into a disconnected element; for now, we\n      // hope that root node was created imperatively, where we stash _its_\n      // scopeForElement. Beyond that, we'd need more costly tracking.\n      if (!isValidScope(scope)) {\n        scope = scopeForElement.get(scope)?.getRootNode() || document;\n      }\n    }\n    return scope.customElements;\n  };\n\n  // Helper to create stand-in element for each tagName registered that delegates\n  // out to the registry for the given element\n  const createStandInElement = (tagName) => {\n    return class ScopedCustomElementBase {\n      static get ['formAssociated']() {\n        return true;\n      }\n      constructor() {\n        // Create a raw HTMLElement first\n        const instance = Reflect.construct(\n          NativeHTMLElement,\n          [],\n          this.constructor\n        );\n        // We need to install the minimum HTMLElement prototype so that\n        // scopeForNode can use DOM API to determine our construction scope;\n        // upgrade will eventually install the full CE prototype\n        Object.setPrototypeOf(instance, HTMLElement.prototype);\n        // Get the node's scope, and its registry (falls back to global registry)\n        const registry = registryForNode(instance) || window.customElements;\n        const definition = registry._getDefinition(tagName);\n        if (definition) {\n          customize(instance, definition);\n        } else {\n          pendingRegistryForElement.set(instance, registry);\n        }\n        return instance;\n      }\n\n      connectedCallback() {\n        const definition = definitionForElement.get(this);\n        if (definition) {\n          // Delegate out to user callback\n          definition.connectedCallback &&\n            definition.connectedCallback.apply(this, arguments);\n        } else {\n          // Register for upgrade when defined (only when connected, so we don't leak)\n          pendingRegistryForElement\n            .get(this)\n            ._upgradeWhenDefined(this, tagName, true);\n        }\n      }\n\n      disconnectedCallback() {\n        const definition = definitionForElement.get(this);\n        if (definition) {\n          // Delegate out to user callback\n          definition.disconnectedCallback &&\n            definition.disconnectedCallback.apply(this, arguments);\n        } else {\n          // Un-register for upgrade when defined (so we don't leak)\n          pendingRegistryForElement\n            .get(this)\n            ._upgradeWhenDefined(this, tagName, false);\n        }\n      }\n\n      adoptedCallback() {\n        const definition = definitionForElement.get(this);\n        definition?.adoptedCallback?.apply(this, arguments);\n      }\n\n      // Form-associated custom elements lifecycle methods\n      ['formAssociatedCallback']() {\n        const definition = definitionForElement.get(this);\n        if (definition && definition['formAssociated']) {\n          definition?.['formAssociatedCallback']?.apply(this, arguments);\n        }\n      }\n\n      ['formDisabledCallback']() {\n        const definition = definitionForElement.get(this);\n        if (definition?.['formAssociated']) {\n          definition?.['formDisabledCallback']?.apply(this, arguments);\n        }\n      }\n\n      ['formResetCallback']() {\n        const definition = definitionForElement.get(this);\n        if (definition?.['formAssociated']) {\n          definition?.['formResetCallback']?.apply(this, arguments);\n        }\n      }\n\n      ['formStateRestoreCallback']() {\n        const definition = definitionForElement.get(this);\n        if (definition?.['formAssociated']) {\n          definition?.['formStateRestoreCallback']?.apply(this, arguments);\n        }\n      }\n\n      // no attributeChangedCallback or observedAttributes since these\n      // are simulated via setAttribute/removeAttribute patches\n    };\n  };\n\n  // Helper to patch CE class setAttribute/getAttribute/toggleAttribute to\n  // implement attributeChangedCallback\n  const patchAttributes = (\n    elementClass,\n    observedAttributes,\n    attributeChangedCallback\n  ) => {\n    if (\n      observedAttributes.size === 0 ||\n      attributeChangedCallback === undefined\n    ) {\n      return;\n    }\n    const setAttribute = elementClass.prototype.setAttribute;\n    if (setAttribute) {\n      elementClass.prototype.setAttribute = function (n, value) {\n        const name = n.toLowerCase();\n        if (observedAttributes.has(name)) {\n          const old = this.getAttribute(name);\n          setAttribute.call(this, name, value);\n          attributeChangedCallback.call(this, name, old, value);\n        } else {\n          setAttribute.call(this, name, value);\n        }\n      };\n    }\n    const removeAttribute = elementClass.prototype.removeAttribute;\n    if (removeAttribute) {\n      elementClass.prototype.removeAttribute = function (n) {\n        const name = n.toLowerCase();\n        if (observedAttributes.has(name)) {\n          const old = this.getAttribute(name);\n          removeAttribute.call(this, name);\n          attributeChangedCallback.call(this, name, old, null);\n        } else {\n          removeAttribute.call(this, name);\n        }\n      };\n    }\n    const toggleAttribute = elementClass.prototype.toggleAttribute;\n    if (toggleAttribute) {\n      elementClass.prototype.toggleAttribute = function (n, force) {\n        const name = n.toLowerCase();\n        if (observedAttributes.has(name)) {\n          const old = this.getAttribute(name);\n          toggleAttribute.call(this, name, force);\n          const newValue = this.getAttribute(name);\n          attributeChangedCallback.call(this, name, old, newValue);\n        } else {\n          toggleAttribute.call(this, name, force);\n        }\n      };\n    }\n  };\n\n  // Helper to patch CE class hierarchy changing those CE classes created before applying the polyfill\n  // to make them work with the new patched CustomElementsRegistry\n  const patchHTMLElement = (elementClass) => {\n    const parentClass = Object.getPrototypeOf(elementClass);\n\n    if (parentClass !== window.HTMLElement) {\n      if (parentClass === NativeHTMLElement) {\n        return Object.setPrototypeOf(elementClass, window.HTMLElement);\n      }\n\n      return patchHTMLElement(parentClass);\n    }\n  };\n\n  // Helper to upgrade an instance with a CE definition using \"constructor call trick\"\n  const customize = (instance, definition, isUpgrade = false) => {\n    Object.setPrototypeOf(instance, definition.elementClass.prototype);\n    definitionForElement.set(instance, definition);\n    upgradingInstance = instance;\n    try {\n      new definition.elementClass();\n    } catch (_) {\n      patchHTMLElement(definition.elementClass);\n      new definition.elementClass();\n    }\n    if (definition.attributeChangedCallback) {\n      // Approximate observedAttributes from the user class, since the stand-in element had none\n      definition.observedAttributes.forEach((attr) => {\n        if (instance.hasAttribute(attr)) {\n          definition.attributeChangedCallback.call(\n            instance,\n            attr,\n            null,\n            instance.getAttribute(attr)\n          );\n        }\n      });\n    }\n    if (isUpgrade && definition.connectedCallback && instance.isConnected) {\n      definition.connectedCallback.call(instance);\n    }\n  };\n\n  // Patch attachShadow to set customElements on shadowRoot when provided\n  const nativeAttachShadow = Element.prototype.attachShadow;\n  Element.prototype.attachShadow = function (init) {\n    const shadowRoot = nativeAttachShadow.apply(this, arguments);\n    if (init.customElements) {\n      shadowRoot.customElements = init.customElements;\n    }\n    return shadowRoot;\n  };\n\n  // Install scoped creation API on Element & ShadowRoot\n  let creationContext = [document];\n  const installScopedCreationMethod = (ctor, method, from = undefined) => {\n    const native = (from ? Object.getPrototypeOf(from) : ctor.prototype)[\n      method\n    ];\n    ctor.prototype[method] = function () {\n      creationContext.push(this);\n      const ret = native.apply(from || this, arguments);\n      // For disconnected elements, note their creation scope so that e.g.\n      // innerHTML into them will use the correct scope; note that\n      // insertAdjacentHTML doesn't return an element, but that's fine since\n      // it will have a parent that should have a scope\n      if (ret !== undefined) {\n        scopeForElement.set(ret, this);\n      }\n      creationContext.pop();\n      return ret;\n    };\n  };\n  installScopedCreationMethod(ShadowRoot, 'createElement', document);\n  installScopedCreationMethod(ShadowRoot, 'importNode', document);\n  installScopedCreationMethod(Element, 'insertAdjacentHTML');\n\n  // Install scoped innerHTML on Element & ShadowRoot\n  const installScopedCreationSetter = (ctor, name) => {\n    const descriptor = Object.getOwnPropertyDescriptor(ctor.prototype, name);\n    Object.defineProperty(ctor.prototype, name, {\n      ...descriptor,\n      set(value) {\n        creationContext.push(this);\n        descriptor.set.call(this, value);\n        creationContext.pop();\n      },\n    });\n  };\n  installScopedCreationSetter(Element, 'innerHTML');\n  installScopedCreationSetter(ShadowRoot, 'innerHTML');\n\n  // Install global registry\n  Object.defineProperty(window, 'customElements', {\n    value: new CustomElementRegistry(),\n    configurable: true,\n    writable: true,\n  });\n\n  if (\n    !!window['ElementInternals'] &&\n    !!window['ElementInternals'].prototype['setFormValue']\n  ) {\n    const internalsToHostMap = new WeakMap();\n    const attachInternals = HTMLElement.prototype['attachInternals'];\n    const methods = [\n      'setFormValue',\n      'setValidity',\n      'checkValidity',\n      'reportValidity',\n    ];\n\n    HTMLElement.prototype['attachInternals'] = function (...args) {\n      const internals = attachInternals.call(this, ...args);\n      internalsToHostMap.set(internals, this);\n      return internals;\n    };\n\n    methods.forEach((method) => {\n      const proto = window['ElementInternals'].prototype;\n      const originalMethod = proto[method];\n\n      proto[method] = function (...args) {\n        const host = internalsToHostMap.get(this);\n        const definition = definitionForElement.get(host);\n        if (definition['formAssociated'] === true) {\n          return originalMethod?.call(this, ...args);\n        } else {\n          throw new DOMException(\n            `Failed to execute ${originalMethod} on 'ElementInternals': The target element is not a form-associated custom element.`\n          );\n        }\n      };\n    });\n\n    // Emulate the native RadioNodeList object\n    class RadioNodeList extends Array {\n      constructor(elements) {\n        super(...elements);\n        this._elements = elements;\n      }\n\n      get ['value']() {\n        return (\n          this._elements.find((element) => element['checked'] === true)\n            ?.value || ''\n        );\n      }\n    }\n\n    // Emulate the native HTMLFormControlsCollection object\n    class HTMLFormControlsCollection {\n      constructor(elements) {\n        const entries = new Map();\n        elements.forEach((element, index) => {\n          const name = element.getAttribute('name');\n          const nameReference = entries.get(name) || [];\n          this[+index] = element;\n          nameReference.push(element);\n          entries.set(name, nameReference);\n        });\n        this['length'] = elements.length;\n        entries.forEach((value, key) => {\n          if (!value) return;\n          if (value.length === 1) {\n            this[key] = value[0];\n          } else {\n            this[key] = new RadioNodeList(value);\n          }\n        });\n      }\n\n      ['namedItem'](key) {\n        return this[key];\n      }\n    }\n\n    // Override the built-in HTMLFormElements.prototype.elements getter\n    const formElementsDescriptor = Object.getOwnPropertyDescriptor(\n      HTMLFormElement.prototype,\n      'elements'\n    );\n\n    Object.defineProperty(HTMLFormElement.prototype, 'elements', {\n      get: function () {\n        const nativeElements = formElementsDescriptor.get.call(this, []);\n\n        const include = [];\n\n        for (const element of nativeElements) {\n          const definition = definitionForElement.get(element);\n\n          // Only purposefully formAssociated elements or built-ins will feature in elements\n          if (!definition || definition['formAssociated'] === true) {\n            include.push(element);\n          }\n        }\n\n        return new HTMLFormControlsCollection(include);\n      },\n    });\n  }\n}\n",null,"/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst NODE_MODE = false;\nconst global = NODE_MODE ? globalThis : window;\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 spec behavior](https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets).\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    styles.forEach((s) => {\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\nconst NODE_MODE = false;\nconst global = NODE_MODE ? globalThis : window;\n\nif (NODE_MODE) {\n  global.customElements ??= customElements;\n}\n\nconst DEV_MODE = true;\n\nlet requestUpdateThenable: (name: string) => {\n  then: (\n    onfulfilled?: (value: boolean) => void,\n    _onrejected?: () => void\n  ) => void;\n};\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  const issuedWarnings: Set<string | undefined> = (global.litIssuedWarnings ??=\n    new Set());\n\n  // Issue a warning, if we haven't already.\n  issueWarning = (code: string, warning: string) => {\n    warning += ` See https://lit.dev/msg/${code} for more information.`;\n    if (!issuedWarnings.has(warning)) {\n      console.warn(warning);\n      issuedWarnings.add(warning);\n    }\n  };\n\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  requestUpdateThenable = (name) => ({\n    then: (\n      onfulfilled?: (value: boolean) => void,\n      _onrejected?: () => void\n    ) => {\n      issueWarning(\n        'request-update-promise',\n        `The \\`requestUpdate\\` method should no longer return a Promise but ` +\n          `does so on \\`${name}\\`. Use \\`updateComplete\\` instead.`\n      );\n      if (onfulfilled !== undefined) {\n        onfulfilled(false);\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/**\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];\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  // This ensures (old==NaN, value==NaN) always returns false\n  return old !== value && (old === old || value === value);\n};\n\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n  attribute: true,\n  type: String,\n  converter: defaultConverter,\n  reflect: false,\n  hasChanged: notEqual,\n};\n\n/**\n * The Closure JS Compiler doesn't currently have good support for static\n * property semantics where \"this\" is dynamic (e.g.\n * https://github.com/google/closure-compiler/issues/3177 and others) so we use\n * this hack to bypass any rewriting by the compiler.\n */\nconst finalized = 'finalized';\n\n/**\n * A string representing one of the supported dev mode warning categories.\n */\nexport type WarningKind = 'change-in-update' | 'migration';\n\nexport type Initializer = (element: ReactiveElement) => void;\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 subclassers 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.finalize();\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 finished creating properties.\n   */\n  protected static [finalized] = true;\n\n  /**\n   * Memoized list of all element properties, including any superclass properties.\n   * Created lazily on user subclasses when finalizing the class.\n   * @nocollapse\n   * @category properties\n   */\n  static elementProperties: PropertyDeclarationMap = new Map();\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   * The set of properties defined by this class that caused an accessor to be\n   * added during `createProperty`.\n   * @nocollapse\n   */\n  private static __reactivePropertyKeys?: Set<PropertyKey>;\n\n  /**\n   * Returns a list of attributes corresponding to the registered properties.\n   * @nocollapse\n   * @category attributes\n   */\n  static get observedAttributes() {\n    // note: piggy backing on this to ensure we're finalized.\n    this.finalize();\n    const attributes: string[] = [];\n    // Use forEach so this works even if for/of loops are compiled to for loops\n    // expecting arrays\n    this.elementProperties.forEach((v, p) => {\n      const attr = this.__attributeNameForProperty(p, v);\n      if (attr !== undefined) {\n        this.__attributeToPropertyMap.set(attr, p);\n        attributes.push(attr);\n      }\n    });\n    return attributes;\n  }\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      // Cast as any since this is readonly.\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      (options as any).attribute = false;\n    }\n    // Note, since this can be called by the `@property` decorator which\n    // is called before `finalize`, we ensure finalization has been kicked off.\n    this.finalize();\n    this.elementProperties.set(name, options);\n    // Do not generate an accessor if the prototype already has one, since\n    // it would be lost otherwise and that would never be the user's intention;\n    // Instead, we expect users to call `requestUpdate` themselves from\n    // user-defined accessors. Note that if the super has an accessor we will\n    // still overwrite it\n    if (!options.noAccessor && !this.prototype.hasOwnProperty(name)) {\n      const key = typeof name === 'symbol' ? Symbol() : `__${name}`;\n      const descriptor = this.getPropertyDescriptor(name, key, options);\n      if (descriptor !== undefined) {\n        Object.defineProperty(this.prototype, name, descriptor);\n        if (DEV_MODE) {\n          // If this class doesn't have its own set, create one and initialize\n          // with the values in the set from the nearest ancestor class, if any.\n          if (!this.hasOwnProperty('__reactivePropertyKeys')) {\n            this.__reactivePropertyKeys = new Set(\n              this.__reactivePropertyKeys ?? []\n            );\n          }\n          this.__reactivePropertyKeys!.add(name);\n        }\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    return {\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      get(): any {\n        return (this as {[key: string]: unknown})[key as string];\n      },\n      set(this: ReactiveElement, value: unknown) {\n        const oldValue = (this as {} as {[key: string]: unknown})[\n          name as string\n        ];\n        (this as {} as {[key: string]: unknown})[key as string] = value;\n        (this as unknown as ReactiveElement).requestUpdate(\n          name,\n          oldValue,\n          options\n        );\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  /**\n   * Creates property accessors for registered properties, sets up element\n   * styling, and ensures any superclasses are also finalized. Returns true if\n   * the element was finalized.\n   * @nocollapse\n   */\n  protected static finalize() {\n    if (this.hasOwnProperty(finalized)) {\n      return false;\n    }\n    this[finalized] = true;\n    // finalize any superclasses\n    const superCtor = Object.getPrototypeOf(this) as typeof ReactiveElement;\n    superCtor.finalize();\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    this.elementProperties = new Map(superCtor.elementProperties);\n    // initialize Map populated in observedAttributes\n    this.__attributeToPropertyMap = new Map();\n    // make any properties\n    // Note, only process \"own\" properties since this element will inherit\n    // any properties defined on the superClass, and finalization ensures\n    // the entire prototype chain is finalized.\n    if (this.hasOwnProperty(JSCompiler_renameProperty('properties', this))) {\n      const props = this.properties;\n      // support symbols in properties (IE11 does not support this)\n      const propKeys = [\n        ...Object.getOwnPropertyNames(props),\n        ...Object.getOwnPropertySymbols(props),\n      ];\n      // This for/of is ok because propKeys is an array\n      for (const p of propKeys) {\n        // note, use of `any` is due to TypeScript lack of support for symbol in\n        // index types\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        this.createProperty(p, (props as any)[p]);\n      }\n    }\n    this.elementStyles = this.finalizeStyles(this.styles);\n    // DEV mode warnings\n    if (DEV_MODE) {\n      const warnRemovedOrRenamed = (name: string, renamed = false) => {\n        if (this.prototype.hasOwnProperty(name)) {\n          issueWarning(\n            renamed ? 'renamed-api' : 'removed-api',\n            `\\`${name}\\` is implemented on class ${this.name}. It ` +\n              `has been ${renamed ? 'renamed' : 'removed'} ` +\n              `in this version of LitElement.`\n          );\n        }\n      };\n      warnRemovedOrRenamed('initialize');\n      warnRemovedOrRenamed('requestUpdateInternal');\n      warnRemovedOrRenamed('_getUpdateComplete', true);\n    }\n    return true;\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 | ShadowRoot;\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  private __instanceProperties?: PropertyValues = new Map();\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   * Map with keys of properties that should be reflected when updated.\n   */\n  private __reflectingProperties?: Map<PropertyKey, PropertyDeclaration>;\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?: 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.__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 ??= []).push(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    // Note, if the indexOf is -1, the >>> will flip the sign which makes the\n    // splice do nothing.\n    this.__controllers?.splice(this.__controllers.indexOf(controller) >>> 0, 1);\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. Note, on very old versions of Safari (<=9) or Chrome\n   * (<=41), properties created for native platform properties like (`id` or\n   * `name`) may not have default values set in the element constructor. On\n   * these browsers native properties appear on instances and therefore their\n   * default value will overwrite any element default (e.g. if the element sets\n   * this.id = 'id' in the constructor, the 'id' will become '' since this is\n   * the native platform default).\n   */\n  private __saveInstanceProperties() {\n    // Use forEach so this works even if for/of loops are compiled to for loops\n    // expecting arrays\n    (this.constructor as typeof ReactiveElement).elementProperties.forEach(\n      (_v, p) => {\n        if (this.hasOwnProperty(p)) {\n          this.__instanceProperties!.set(p, this[p as keyof this]);\n          delete this[p as keyof this];\n        }\n      }\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(): Element | ShadowRoot {\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 first update.\n    if (this.renderRoot === undefined) {\n      (\n        this as {\n          renderRoot: Element | DocumentFragment;\n        }\n      ).renderRoot = this.createRenderRoot();\n    }\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 [using the lifecycle callbacks](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks)\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(\n    name: PropertyKey,\n    value: unknown,\n    options: PropertyDeclaration = defaultPropertyDeclaration\n  ) {\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!.indexOf(\n          'migration'\n        ) >= 0 &&\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      this[propName as keyof this] = converter.fromAttribute!(\n        value,\n        options.type\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      ) 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   * @category updates\n   */\n  requestUpdate(\n    name?: PropertyKey,\n    oldValue?: unknown,\n    options?: PropertyDeclaration\n  ): void {\n    let shouldRequestUpdate = true;\n    // If we have a property key, perform property update steps.\n    if (name !== undefined) {\n      options =\n        options ||\n        (this.constructor as typeof ReactiveElement).getPropertyOptions(name);\n      const hasChanged = options.hasChanged || notEqual;\n      if (hasChanged(this[name as keyof this], oldValue)) {\n        if (!this._$changedProperties.has(name)) {\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 (options.reflect === true && this.__reflectingProperty !== name) {\n          if (this.__reflectingProperties === undefined) {\n            this.__reflectingProperties = new Map();\n          }\n          this.__reflectingProperties.set(name, options);\n        }\n      } else {\n        // Abort the request if the property should not be considered changed.\n        shouldRequestUpdate = false;\n      }\n    }\n    if (!this.isUpdatePending && shouldRequestUpdate) {\n      this.__updatePromise = this.__enqueueUpdate();\n    }\n    // Note, since this no longer returns a promise, in dev mode we return a\n    // thenable which warns if it's called.\n    return DEV_MODE\n      ? (requestUpdateThenable(this.localName) as unknown as void)\n      : undefined;\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    return this.performUpdate();\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   * Note: To ensure `performUpdate()` synchronously completes a pending update,\n   * it should not be overridden. In LitElement 2.x it was suggested to override\n   * `performUpdate()` to also customizing update scheduling. Instead, you should now\n   * override `scheduleUpdate()`. For backwards compatibility with LitElement 2.x,\n   * scheduling updates via `performUpdate()` continues to work, but will make\n   * also calling `performUpdate()` to synchronously process updates difficult.\n   *\n   * @category updates\n   */\n  protected performUpdate(): void | Promise<unknown> {\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    // create renderRoot before first update.\n    if (!this.hasUpdated) {\n      // Produce warning if any class properties are shadowed by class fields\n      if (DEV_MODE) {\n        const shadowedProperties: string[] = [];\n        (\n          this.constructor as typeof ReactiveElement\n        ).__reactivePropertyKeys?.forEach((p) => {\n          if (this.hasOwnProperty(p) && !this.__instanceProperties?.has(p)) {\n            shadowedProperties.push(p as string);\n          }\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    }\n    // Mixin instance properties once, if they exist.\n    if (this.__instanceProperties) {\n      // Use forEach so this works even if for/of loops are compiled to for loops\n      // expecting arrays\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      this.__instanceProperties!.forEach((v, p) => ((this as any)[p] = v));\n      this.__instanceProperties = undefined;\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!.indexOf(\n        'change-in-update'\n      ) >= 0\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    if (this.__reflectingProperties !== undefined) {\n      // Use forEach so this works even if for/of loops are compiled to for\n      // loops expecting arrays\n      this.__reflectingProperties.forEach((v, k) =>\n        this.__propertyToAttribute(k, this[k as keyof this], v)\n      );\n      this.__reflectingProperties = undefined;\n    }\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\n// Apply polyfills if available\npolyfillSupport?.({ReactiveElement});\n\n// Dev mode warnings...\nif (DEV_MODE) {\n  // Default warning set.\n  ReactiveElement.enabledWarnings = ['change-in-update'];\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!.indexOf(warning) < 0) {\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('1.6.3');\nif (DEV_MODE && global.reactiveElementVersions.length > 1) {\n  issueWarning!(\n    'multiple-versions',\n    `Multiple versions of Lit loaded. Loading multiple versions ` +\n      `is not recommended.`\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';\n\nconst DEV_MODE = true;\nconst ENABLE_EXTRA_SECURITY_HOOKS = true;\nconst ENABLE_SHADYDOM_NOPATCH = true;\nconst NODE_MODE = false;\n// Use window for browser builds because IE11 doesn't have globalThis.\nconst global = NODE_MODE ? globalThis : window;\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: HTMLElement | DocumentFragment;\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: HTMLElement | DocumentFragment;\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  // Issue a warning, if we haven't already.\n  issueWarning = (code: string, warning: string) => {\n    warning += code\n      ? ` See https://lit.dev/msg/${code} for more information.`\n      : '';\n    if (!global.litIssuedWarnings!.has(warning)) {\n      console.warn(warning);\n      global.litIssuedWarnings!.add(warning);\n    }\n  };\n\n  issueWarning(\n    'dev-mode',\n    `Lit is in dev mode. Not recommended for production!`\n  );\n}\n\nconst wrap =\n  ENABLE_SHADYDOM_NOPATCH &&\n  global.ShadyDOM?.inUse &&\n  global.ShadyDOM?.noPatch === true\n    ? global.ShadyDOM!.wrap\n    : (node: Node) => node;\n\nconst trustedTypes = (global as unknown as Partial<Window>).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$${String(Math.random()).slice(9)}$`;\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;\n\ntype ResultType = typeof HTML_RESULT | typeof SVG_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}.\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 TemplateResult<T extends ResultType = ResultType> = {\n  // This property needs to remain unminified.\n  ['_$litType$']: T;\n  strings: TemplateStringsArray;\n  values: unknown[];\n};\n\nexport type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;\n\nexport type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;\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    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\n * render 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 cannot be used within an `<svg>` HTML element.\n */\nexport const svg = tag(SVG_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 - the 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\nconst walker = d.createTreeWalker(\n  d,\n  129 /* NodeFilter.SHOW_{ELEMENT|COMMENT} */,\n  null,\n  false\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 (!Array.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 | undefined>] => {\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 | undefined> = [];\n  let html = type === SVG_RESULT ? '<svg>' : '';\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 +\n          marker +\n          (attrNameEndIndex === -2 ? (attrNames.push(undefined), i) : end);\n  }\n\n  const htmlResult: string | TrustedHTML =\n    html + (strings[l] || '<?>') + (type === SVG_RESULT ? '</svg>' : '');\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}: TemplateResult,\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    // Reparent SVG nodes into template root\n    if (type === SVG_RESULT) {\n      const content = this.el.content;\n      const svgElement = content.firstChild!;\n      svgElement.remove();\n      content.append(...svgElement.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          // We defer removing bound attributes because on IE we might not be\n          // iterating attributes in their template order, and would sometimes\n          // remove an attribute that we still need to create a part for.\n          const attrsToRemove = [];\n          for (const name of (node as Element).getAttributeNames()) {\n            // `name` is the name of the attribute we're iterating over, but not\n            // _necessarily_ the name of the attribute we will create a part\n            // for. They can be different in browsers that don't iterate on\n            // attributes in source order. In that case the attrNames array\n            // contains the attribute name we'll process next. We only need the\n            // attribute name here to know if we should process a bound attribute\n            // on this element.\n            if (\n              name.endsWith(boundAttributeSuffix) ||\n              name.startsWith(marker)\n            ) {\n              const realName = attrNames[attrNameIndex++];\n              attrsToRemove.push(name);\n              if (realName !== undefined) {\n                // Lowercase for case-sensitive SVG attributes like viewBox\n                const value = (node as Element).getAttribute(\n                  realName.toLowerCase() + boundAttributeSuffix\n                )!;\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              } else {\n                parts.push({\n                  type: ELEMENT_PART,\n                  index: nodeIndex,\n                });\n              }\n            }\n          }\n          for (const name of attrsToRemove) {\n            (node as Element).removeAttribute(name);\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 node parts\n            // We can't use empty text nodes as markers because they're\n            // normalized when cloning in IE (could simplify when\n            // IE is no longer supported)\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    // 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      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          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 unsed otherwise. The\n   * intention would 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            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 make 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        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        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          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          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 TemplateResult)\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        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        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        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: TemplateResult) {\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 in\n   *     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 && start !== this._$endNode) {\n      const n = wrap(start!).nextSibling;\n      (wrap(start!) as Element).remove();\n      start = n;\n    }\n  }\n  /**\n   * Implementation of RootPart's `isConnected`. Note that this metod\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 = ATTRIBUTE_PART as\n    | typeof ATTRIBUTE_PART\n    | typeof PROPERTY_PART\n    | typeof BOOLEAN_ATTRIBUTE_PART\n    | typeof EVENT_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        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      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\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\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      kind: 'commit boolean attribute',\n      element: this.element,\n      name: this.name,\n      value: !!(value && value !== nothing),\n      options: this.options,\n    });\n    if (value && value !== nothing) {\n      (wrap(this.element) as Element).setAttribute(\n        this.name,\n        emptyStringForBooleanAttribute\n      );\n    } else {\n      (wrap(this.element) as Element).removeAttribute(this.name);\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      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      // Beware: IE11 and Chrome 41 don't like using the listener as the\n      // options object. Figure out how to deal w/ this in IE11 - maybe\n      // patch addEventListener?\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      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('2.8.0');\nif (DEV_MODE && global.litHtmlVersions.length > 1) {\n  issueWarning!(\n    'multiple-versions',\n    `Multiple versions of Lit loaded. ` +\n      `Loading multiple versions is not recommended.`\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: HTMLElement | DocumentFragment,\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    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    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// For backwards compatibility export ReactiveElement as UpdatingElement. Note,\n// IE transpilation requires exporting like this.\nexport const UpdatingElement = ReactiveElement;\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  const issuedWarnings: Set<string | undefined> =\n    (globalThis.litIssuedWarnings ??= new Set());\n\n  // Issue a warning, if we haven't already.\n  issueWarning = (code: string, warning: string) => {\n    warning += ` See https://lit.dev/msg/${code} for more information.`;\n    if (!issuedWarnings.has(warning)) {\n      console.warn(warning);\n      issuedWarnings.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  /**\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  protected static override ['finalized'] = true;\n\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// Install hydration if available\nglobalThis.litElementHydrateSupport?.({LitElement});\n\n// Apply polyfills if available\nconst polyfillSupport = DEV_MODE\n  ? globalThis.litElementPolyfillSupportDevMode\n  : globalThis.litElementPolyfillSupport;\npolyfillSupport?.({LitElement});\n\n// DEV mode warnings\nif (DEV_MODE) {\n  /* eslint-disable @typescript-eslint/no-explicit-any */\n  // Note, for compatibility with closure compilation, this access\n  // needs to be as a string property index.\n  (LitElement as any)['finalize'] = function (this: typeof LitElement) {\n    const finalized = (ReactiveElement as any).finalize.call(this);\n    if (!finalized) {\n      return false;\n    }\n    const warnRemovedOrRenamed = (obj: any, name: string, renamed = false) => {\n      if (obj.hasOwnProperty(name)) {\n        const ctorName = (typeof obj === 'function' ? obj : obj.constructor)\n          .name;\n        issueWarning(\n          renamed ? 'renamed-api' : 'removed-api',\n          `\\`${name}\\` is implemented on class ${ctorName}. It ` +\n            `has been ${renamed ? 'renamed' : 'removed'} ` +\n            `in this version of LitElement.`\n        );\n      }\n    };\n    warnRemovedOrRenamed(this, 'render');\n    warnRemovedOrRenamed(this, 'getStyles', true);\n    warnRemovedOrRenamed((this as typeof LitElement).prototype, 'adoptStyles');\n    return true;\n  };\n  /* eslint-enable @typescript-eslint/no-explicit-any */\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 _$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(globalThis.litElementVersions ??= []).push('3.3.3');\nif (DEV_MODE && globalThis.litElementVersions.length > 1) {\n  issueWarning!(\n    'multiple-versions',\n    `Multiple versions of Lit loaded. Loading multiple versions ` +\n      `is not recommended.`\n  );\n}\n","import type { ReactiveController, ReactiveControllerHost } from '@horizon/base';\n\nexport class HasSlotController implements ReactiveController {\n  host: ReactiveControllerHost & Element;\n  slotNames: string[] = [];\n\n  constructor(host: ReactiveControllerHost & Element, ...slotNames: string[]) {\n    (this.host = host).addController(this);\n    this.slotNames = slotNames;\n    this.handleSlotChange = this.handleSlotChange.bind(this);\n  }\n\n  private hasDefaultSlot() {\n    return Array.from(this.host.childNodes).some(node => {\n      if (node.nodeType === node.TEXT_NODE && node.textContent!.trim() !== '') {\n        return true;\n      }\n\n      if (node.nodeType === node.ELEMENT_NODE) {\n        const el = node as HTMLElement;\n        if (!el.hasAttribute('slot')) {\n          return true;\n        }\n      }\n\n      return false;\n    });\n  }\n\n  private hasNamedSlot(name: string) {\n    return this.host.querySelector(`:scope > [slot=\"${name}\"]`) !== null;\n  }\n\n  test(slotName: string) {\n    return slotName === '[default]' ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);\n  }\n\n  hostConnected() {\n    this.host.shadowRoot!.addEventListener('slotchange', this.handleSlotChange);\n  }\n\n  hostDisconnected() {\n    this.host.shadowRoot!.removeEventListener('slotchange', this.handleSlotChange);\n  }\n\n  handleSlotChange(event: Event) {\n    const slot = event.target as HTMLSlotElement;\n\n    if ((this.slotNames.includes('[default]') && !slot.name) || (slot.name && this.slotNames.includes(slot.name))) {\n      this.host.requestUpdate();\n    }\n  }\n}\n\n/**\n * Given a slot, this function iterates over all of its assigned element and text nodes and returns the concatenated\n * HTML as a string. This is useful because we can't use slot.innerHTML as an alternative.\n */\nexport function getInnerHTML(slot: HTMLSlotElement): string {\n  const nodes = slot.assignedNodes({ flatten: true });\n  let html = '';\n\n  [...nodes].forEach(node => {\n    if (node.nodeType === Node.ELEMENT_NODE) {\n      html += (node as HTMLElement).outerHTML;\n    }\n\n    if (node.nodeType === Node.TEXT_NODE) {\n      html += node.textContent;\n    }\n  });\n\n  return html;\n}\n\n/**\n * Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n * string. This is useful because we can't use slot.textContent as an alternative.\n */\nexport function getTextContent(slot: HTMLSlotElement | undefined | null): string {\n  if (!slot) {\n    return '';\n  }\n  const nodes = slot.assignedNodes({ flatten: true });\n  let text = '';\n\n  [...nodes].forEach(node => {\n    if (node.nodeType === Node.TEXT_NODE) {\n      text += node.textContent;\n    }\n  });\n\n  return text;\n}\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 {html as coreHtml, svg as coreSvg, TemplateResult} 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   * a 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) =>\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 * @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 {PropertyDeclaration, ReactiveElement} from '../reactive-element.js';\nimport {ClassElement} from './base.js';\n\nconst standardProperty = (\n  options: PropertyDeclaration,\n  element: ClassElement\n) => {\n  // When decorating an accessor, pass it through and add property metadata.\n  // Note, the `hasOwnProperty` check in `createProperty` ensures we don't\n  // stomp over the user's accessor.\n  if (\n    element.kind === 'method' &&\n    element.descriptor &&\n    !('value' in element.descriptor)\n  ) {\n    return {\n      ...element,\n      finisher(clazz: typeof ReactiveElement) {\n        clazz.createProperty(element.key, options);\n      },\n    };\n  } else {\n    // createProperty() takes care of defining the property, but we still\n    // must return some kind of descriptor, so return a descriptor for an\n    // unused prototype field. The finisher calls createProperty().\n    return {\n      kind: 'field',\n      key: Symbol(),\n      placement: 'own',\n      descriptor: {},\n      // store the original key so subsequent decorators have access to it.\n      originalKey: element.key,\n      // When @babel/plugin-proposal-decorators implements initializers,\n      // do this instead of the initializer below. See:\n      // https://github.com/babel/babel/issues/9260 extras: [\n      //   {\n      //     kind: 'initializer',\n      //     placement: 'own',\n      //     initializer: descriptor.initializer,\n      //   }\n      // ],\n      initializer(this: {[key: string]: unknown}) {\n        if (typeof element.initializer === 'function') {\n          this[element.key as string] = element.initializer.call(this);\n        }\n      },\n      finisher(clazz: typeof ReactiveElement) {\n        clazz.createProperty(element.key, options);\n      },\n    };\n  }\n};\n\nconst legacyProperty = (\n  options: PropertyDeclaration,\n  proto: Object,\n  name: PropertyKey\n) => {\n  (proto.constructor as typeof ReactiveElement).createProperty(name, options);\n};\n\n/**\n * A property decorator which creates a reactive property that reflects a\n * 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) {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  return (protoOrDescriptor: Object | ClassElement, name?: PropertyKey): any =>\n    name !== undefined\n      ? legacyProperty(options!, protoOrDescriptor as Object, name)\n      : standardProperty(options!, protoOrDescriptor as ClassElement);\n}\n","/**\n * @license\n * Copyright 2021 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 {decorateProperty} from './base.js';\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {QueryAssignedNodesOptions} from './query-assigned-nodes.js';\n\nconst NODE_MODE = false;\nconst global = NODE_MODE ? globalThis : window;\n\n/**\n * A tiny module scoped polyfill for HTMLSlotElement.assignedElements.\n */\nconst slotAssignedElements =\n  global.HTMLSlotElement?.prototype.assignedElements != null\n    ? (slot: HTMLSlotElement, opts?: AssignedNodesOptions) =>\n        slot.assignedElements(opts)\n    : (slot: HTMLSlotElement, opts?: AssignedNodesOptions) =>\n        slot\n          .assignedNodes(opts)\n          .filter(\n            (node): node is Element => node.nodeType === Node.ELEMENT_NODE\n          );\n\n/**\n * Options for the {@linkcode queryAssignedElements} decorator. Extends the\n * options that can be passed into\n * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n */\nexport interface QueryAssignedElementsOptions\n  extends QueryAssignedNodesOptions {\n  /**\n   * CSS selector used to filter the elements returned. For example, a selector\n   * of `\".item\"` will only include elements with the `item` class.\n   */\n  selector?: string;\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedElements` of the given `slot`. Provides a declarative\n * way to use\n * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n *\n * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n *   @queryAssignedElements({ slot: 'list' })\n *   listItems!: Array<HTMLElement>;\n *   @queryAssignedElements()\n *   unnamedSlotEls!: Array<HTMLElement>;\n *\n *   render() {\n *     return html`\n *       <slot name=\"list\"></slot>\n *       <slot></slot>\n *     `;\n *   }\n * }\n * ```\n *\n * Note, the type of this property should be annotated as `Array<HTMLElement>`.\n *\n * @category Decorator\n */\nexport function queryAssignedElements(options?: QueryAssignedElementsOptions) {\n  const {slot, selector} = options ?? {};\n  return decorateProperty({\n    descriptor: (_name: PropertyKey) => ({\n      get(this: ReactiveElement) {\n        const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n        const slotEl =\n          this.renderRoot?.querySelector<HTMLSlotElement>(slotSelector);\n        const elements =\n          slotEl != null ? slotAssignedElements(slotEl, options) : [];\n        if (selector) {\n          return elements.filter((node) => node.matches(selector));\n        }\n        return elements;\n      },\n      enumerable: true,\n      configurable: true,\n    }),\n  });\n}\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 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  ['_$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 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {\n  _$LH,\n  Part,\n  DirectiveParent,\n  TemplateResult,\n  CompiledTemplateResult,\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} as const;\n\nexport type TemplateResultType =\n  (typeof TemplateResultType)[keyof typeof TemplateResultType];\n\ntype IsTemplateResult = {\n  (val: unknown): val is TemplateResult | CompiledTemplateResult;\n  <T extends TemplateResultType>(\n    val: unknown,\n    type: T\n  ): val is TemplateResult<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 TemplateResult =>\n  type === undefined\n    ? // This property needs to remain unminified.\n      (value as TemplateResult)?.['_$litType$'] !== undefined\n    : (value as TemplateResult)?.['_$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.\n *\n * @param part The Part to remove\n */\nexport const removePart = (part: ChildPart) => {\n  part._$notifyConnectionChanged?.(false, true);\n  let start: ChildNode | null = part._$startNode;\n  const end: ChildNode | null = wrap(part._$endNode!).nextSibling;\n  while (start !== end) {\n    const n: ChildNode | null = wrap(start!).nextSibling;\n    (wrap(start!) as ChildNode).remove();\n    start = n;\n  }\n};\n\nexport const clearPart = (part: ChildPart) => {\n  part._$clear();\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  PartInfo,\n  PartType,\n} from '../directive.js';\nimport {isSingleExpression, setCommittedValue} from '../directive-helpers.js';\n\nclass LiveDirective 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: unknown) {\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\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 = 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","/* eslint-disable  @typescript-eslint/no-explicit-any */\ntype Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;\n\n/**\n * Backwards compatibility with jsdom < v21. In jsdom < 21 SubmitEvent is not implemented.\n*/\nconst PolyfilledSubmitEvent: Constructor<SubmitEvent> = globalThis.SubmitEvent = typeof globalThis.SubmitEvent !== 'undefined' ? SubmitEvent : Event as unknown as Constructor<SubmitEvent>;\n\n\n/**\n * Implicitly submit a form by first validating all controls. If the form\n * is valid, issue a submit event and if that event is not prevented, manually\n * call the form's submit method.\n *\n * @param form {HTMLFormElement} - A form to implicitly submit\n */\nexport const submit = (form: HTMLFormElement): void => {\n  if (!form.noValidate && !form.reportValidity()) {\n    return;\n  } else {\n    const submitEvent = new PolyfilledSubmitEvent('submit', {\n      bubbles: true,\n      cancelable: true\n    });\n    form.dispatchEvent(submitEvent);\n    if (!submitEvent.defaultPrevented) {\n      form.submit();\n    }\n  }\n};\n\nexport type FormValue = string|FormData|File|FormValue[];\n\n/**\n * Parse a form and return a set of values based on the name/value pair.\n * If multiple controls of a similar name exist, return an array for those values;\n * otherwise return a single value.\n *\n * @param form {HTMLFormElement} - The form to parse for values\n * @returns {Record<string, any>} - An object representing the form's current values\n */\nexport const formValues = (form: HTMLFormElement): Record<string, FormValue> => {\n  const formData = new FormData(form);\n  const values: Record<string, FormValue> = {};\n\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore This does exist in all browsers. TypeScript is wrong\n  for (const [key, value] of formData.entries()) {\n    if (!values.hasOwnProperty(key)) {\n      values[key] = value;\n    } else if (Array.isArray(values[key])) {\n      const pointer = values[key] as FormValue[];\n      pointer.push(value);\n    } else {\n      values[key] = [values[key], value];\n    }\n  }\n\n  return values;\n};\n\n/**\n * This method takes a form and parses it as an object. If any form control has a `.`\n * in its name, this utility will evaluate that name as a deep key for an object;\n * in other words, if a form has a named control, `name.first` and another, `name.last`\n * it will report back a nested object, name, with first and last properties\n * representing those controls' values.\n *\n * This can be useful when you have a complex model that you are attempting to represent\n * in declaratively in HTML.\n *\n * @param form {HTMLFormElement} - The form to grab values from\n * @returns {Object<string, FormValue>} - An object representation of the form\n */\nexport const parseFormAsObject = (form: HTMLFormElement): Record<string, FormValue> => {\n  const data = formValues(form);\n  const output: Record<string, FormValue> = {};\n\n  Object.entries(data).forEach(([key, value]) => {\n    /** If the key has a '.', parse it as an object */\n    if (key.includes('.')) {\n      const path = key.split('.');\n      const destination: string | undefined = path.pop();\n      let pointer = output;\n\n      while (path.length) {\n        const key = path.shift();\n        pointer[key as string] = pointer[key as string] || ({} as FormValue);\n        pointer = pointer[key as string] as unknown as Record<string, FormValue>;\n      }\n\n      pointer[destination as string] = value;\n    } else {\n      output[key] = data[key];\n    }\n  });\n\n  return output;\n};\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block;width:100%}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[role=button],button{cursor:pointer}svg{display:block;vertical-align:middle}[hidden]{display:none}:host{--hzn-internal-color-text-critical:var(--hzn-color-text-critical,#be0000);--hzn-internal-color-text-critical-inverse:var(--hzn-color-text-critical-inverse,#fff);--hzn-internal-color-text-interactive:var(--hzn-color-text-interactive,#005ab8);--hzn-internal-color-text-interactive-inverse:var(--hzn-color-text-interactive-inverse,#fff);--hzn-internal-color-text-disabled:var(--hzn-color-text-disabled,#6d747a);--hzn-internal-color-tone-brand:var(--hzn-color-tone-brand,#053361);--hzn-internal-color-tone-brand-accent:var(--hzn-color-tone-brand-accent,#ffd900);--hzn-internal-color-tone-interactive:var(--hzn-color-tone-interactive,#005ab8);--hzn-internal-color-tone-interactive-weak:var(--hzn-color-tone-interactive-weak,#c2e3fc);--hzn-internal-color-tone-disabled-weak:var(--hzn-color-tone-disabled-weak,#dedfe0);--hzn-internal-color-tone-info-faint:var(--hzn-color-tone-info-faint,#f0f7fc);--hzn-internal-color-tone-critical:var(--hzn-color-tone-critical,#be0000)}:host{display:inline-block;outline:none;width:auto}:host button.hzn-button{cursor:pointer}:host ::slotted(*){height:1.5rem;width:1.5rem}:host([disabled]) button.hzn-button,:host([loading]) button.hzn-button{cursor:not-allowed}:host([loading]:not([disabled],[variant=tertiary])) .label{opacity:0}:host([loading][variant=tertiary]:not([disabled])) .label{opacity:.2}:host([disabled][tone]) button.hzn-button{background:var(--hzn-internal-color-tone-disabled-weak);box-shadow:none;color:var(--hzn-internal-color-text-disabled)}:host(:focus-within) .hzn-button{outline:2px solid var(--hzn-internal-color-tone-interactive)}.hzn-button{align-items:center;border-radius:.25rem;display:inline-flex;flex-direction:row;font-family:Lato,Corbel,Lucida Grande,Lucida Sans Unicode,DejaVu Sans,Bitstream Vera Sans,Liberation Sans,Verdana,Verdana Ref,sans-serif;font-size:1rem;font-style:normal;font-weight:700;gap:.5rem;height:48px;justify-content:center;letter-spacing:.7px;line-height:48px;margin:0;outline:none;outline-offset:2px;overflow:hidden;padding:0 32px;position:relative;text-align:center;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.hzn-button .trailing-icon{align-items:center;display:flex;flex:0 0 auto}.hzn-button .loading{animation:spinner 2.5s linear infinite;height:24px;left:0;margin-left:auto;margin-right:auto;position:absolute;right:0;text-align:center;width:24px}@media (prefers-reduced-motion:reduce){.loading{animation-duration:5s}}@keyframes spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}:host([compact]) .hzn-button{height:36px;line-height:36px}:host([compact]) .hzn-button .loading{height:18px;width:18px}:host([full-width]){width:100%}:host([variant=cta]) .hzn-button{background:var(--hzn-internal-color-tone-brand-accent);color:var(--hzn-internal-color-tone-brand)}:host([variant=cta]) .hzn-button:active{background-image:linear-gradient(hsla(0,0%,100%,.4),hsla(0,0%,100%,.4))}:host([variant=cta]) .loading{color:var(--hzn-internal-color-tone-brand)}:host([variant=cta]:where(:hover,:focus-within)) .hzn-button{background-image:linear-gradient(hsla(0,0%,100%,.2),hsla(0,0%,100%,.2))}:host([variant=primary][tone=interactive]) .hzn-button{background:var(--hzn-internal-color-tone-interactive);color:var(--hzn-internal-color-text-interactive-inverse)}:host([variant=primary][tone=interactive]) .hzn-button:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}:host([variant=primary][tone=interactive]:where(:hover,:focus-within)) .hzn-button{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}:host([variant=primary][tone=critical]) .hzn-button{background:var(--hzn-internal-color-tone-critical);color:var(--hzn-internal-color-text-critical-inverse)}:host([variant=primary][tone=critical]) .hzn-button:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}:host([variant=primary][tone=critical]:where(:hover,:focus-within)) .hzn-button{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}:host([variant=primary][tone=inverse]) .hzn-button{background:#fff;color:#005ab8}:host([variant=primary][tone=inverse]) .hzn-button:active{background-image:linear-gradient(rgba(0,90,184,.2),rgba(0,90,184,.2))}:host([variant=primary][tone=inverse]:where(:hover,:focus-within)) .hzn-button{background:#c2e3fc}:host([variant=primary][tone=inverse]:focus-within) .hzn-button{outline-color:#fff}:host([variant=secondary][tone=interactive]) .hzn-button{box-shadow:inset 0 0 0 1px var(--hzn-internal-color-tone-interactive);color:var(--hzn-internal-color-text-interactive)}:host([variant=secondary][tone=interactive]) .hzn-button:active{background:var(--hzn-internal-color-tone-interactive-weak)}:host([variant=secondary][tone=interactive]:where(:hover,:focus-within)) .hzn-button{background:var(--hzn-internal-color-tone-info-faint)}:host([variant=secondary][tone=critical]) .hzn-button{box-shadow:inset 0 0 0 1px var(--hzn-internal-color-tone-critical);color:var(--hzn-internal-color-text-critical)}:host([variant=secondary][tone=critical]) .hzn-button:active{background-image:linear-gradient(rgba(242,94,97,.4),rgba(242,94,97,.4))}:host([variant=secondary][tone=critical]:where(:hover,:focus-within)) .hzn-button{background-image:linear-gradient(rgba(242,94,97,.2),rgba(242,94,97,.2))}:host([variant=secondary][tone=inverse]) .hzn-button{box-shadow:inset 0 0 0 1px #fff;color:#fff}:host([variant=secondary][tone=inverse]) .hzn-button:active{background:#004487}:host([variant=secondary][tone=inverse]:where(:hover,:focus-within)) .hzn-button{background:#00264f}:host([variant=secondary][tone=inverse]:focus-within) .hzn-button{outline-color:#fff}:host([variant=tertiary][tone=interactive]) .hzn-button{background:none;color:var(--hzn-internal-color-text-interactive)}:host([variant=tertiary][tone=interactive]) .hzn-button:active{background:var(--hzn-internal-color-tone-interactive-weak)}:host([variant=tertiary][tone=interactive]:where(:hover,:focus-within)) .hzn-button{background:var(--hzn-internal-color-tone-info-faint);box-shadow:inset 0 0 0 1px var(--hzn-internal-color-tone-interactive)}:host([variant=tertiary][tone=critical]) .hzn-button{background:none;color:var(--hzn-internal-color-text-critical)}:host([variant=tertiary][tone=critical]) .hzn-button:active{background-image:linear-gradient(rgba(242,94,97,.4),rgba(242,94,97,.4))}:host([variant=tertiary][tone=critical]:where(:hover,:focus-within)) .hzn-button{background-image:linear-gradient(rgba(242,94,97,.2),rgba(242,94,97,.2));box-shadow:inset 0 0 0 1px var(--hzn-internal-color-tone-critical)}:host([variant=tertiary][tone=inverse]) .hzn-button{background:none;color:#fff}:host([variant=tertiary][tone=inverse]) .hzn-button:active{background:#004487}:host([variant=tertiary][tone=inverse]:where(:hover,:focus-within)) .hzn-button{background:#00264f;box-shadow:inset 0 0 0 1px #fff}:host([variant=tertiary][tone=inverse]:focus-within) .hzn-button{outline-color:#fff}`;","// class definition\nimport { LitElement, svg, TemplateResult } from '@horizon/base';\nimport { HasSlotController } from '@horizon/common/controllers';\nimport { eventEmitter } from '@horizon/common/events';\nimport { unsafeStatic, html } from '@horizon/base/static-html.js';\nimport { property, query } from '@horizon/base/decorators.js';\nimport { ifDefined, live } from '@horizon/base/directives.js';\nimport { nothing } from '@horizon/base/html.js';\nimport 'element-internals-polyfill';\nimport { submit } from '@open-wc/form-helpers';\n\nimport ButtonStyles from './button.css.js';\nimport {\n  HznButtonTone,\n  HznButtonType,\n  HznButtonVariant\n} from '../types.js';\n\n\n\nconst loadingSpinner = svg`<svg viewBox=\"0 0 26 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n</svg>`;\n\n/**\n *\n * @tag hzn-button\n * @tagname hzn-button\n * @summary A component for making a buttons or button-styled links\n *\n * @fires {CustomEvent<{}>} click - Emitted when the button is clicked\n */\n\nexport class HznButton extends LitElement {\n  /**\n   * @private\n   */\n  #emit = eventEmitter(this);\n\n  #internals!: ElementInternals;\n  static formAssociated = true;\n\n  static styles = [ButtonStyles];\n\n  private readonly hasSlotController = new HasSlotController(this, '[default]', 'trailing-icon');\n\n  /**\n   * The internal native button or anchor element\n   */\n  @query('.hzn-button') innerButton!: HTMLButtonElement | HTMLAnchorElement;\n\n  /**\n   * Sets the variant of button/anchor\n   * @playroomValues {'cta' | 'primary' | 'secondary' | 'tertiary'}\n   */\n  @property({ type: String, reflect: true }) variant: HznButtonVariant = 'cta';\n\n  /**\n   * Sets the tone for the selected variant\n   * @playroomValues {'interactive' | 'critical' | 'inverse'}\n   */\n  @property({ type: String, reflect: true }) tone: HznButtonTone = 'interactive';\n\n  /**\n   * When true, reduces height of button/anchor\n   */\n  @property({ type: Boolean, reflect: true }) compact?: boolean = false;\n\n  /**\n   * Disables the button/anchor\n   */\n  @property({ type: Boolean, reflect: true }) disabled?: boolean = false;\n\n  /**\n   * When true, shows loading animation for button/anchor\n   */\n  @property({ type: Boolean, reflect: true }) loading?: boolean = false;\n\n  /**\n   * Passes a download prop to the button/anchor\n   */\n  @property({ type: String, reflect: true }) download?: string;\n\n  /**\n   * Passes a href prop to the anchor, changes tag to anchor\n   */\n  @property({ type: String, reflect: true }) href?: string;\n\n  /**\n   * Passes a target prop to the anchor\n   */\n  @property({ type: String, reflect: true }) target?: string;\n\n  /**\n   * Passes a rel prop to the anchor\n   */\n  @property({ type: String, reflect: true }) rel?: string;\n\n  /**\n   * Changes the width from content to container size by changing display from inline-block to block\n   */\n  @property({ type: Boolean, reflect: true, attribute: 'full-width' }) fullWidth?: boolean = false;\n\n  /**\n   * Sets the name used for the click event from button\n   */\n  @property({ type: String, reflect: true }) name?: string;\n\n  /**\n   * Passes a type property to the button tag\n   * @playroomValues {'button' | 'submit' | 'reset'}\n   */\n  @property({ type: String, reflect: true }) type?: HznButtonType;\n\n  /**\n   * Passes an aria-label property to the button tag\n   */\n  @property({ type: String, attribute: 'hzn-aria-label' }) ariaLabel!: string;\n\n  /**\n   * Passes a title property to the button tag\n   */\n  @property({ type: String, attribute: 'hzn-title' }) title!: string;\n\n  connectedCallback() {\n    super.connectedCallback();\n    // strictly speaking internals should be set in constructor\n    // but React has a coniption sometimes if you do things in constructor\n    // so we set internals in connectedCallback, but\n    // add a check so that we only attach if we haven't yet\n    if (!this.#internals) {\n      this.#internals = this.attachInternals();\n    }\n  }\n\n  /**\n   * Simulates a click on the button\n   */\n  click() {\n    if (this.innerButton) {\n      this.innerButton.click();\n    }\n  }\n\n  /**\n   * Focus the innerButton\n   */\n  focus(options?: FocusOptions) {\n    this.innerButton.focus(options);\n  }\n\n  /**\n   * Remove focus from the innerButton\n   */\n  blur() {\n    this.innerButton.blur();\n  }\n\n  /**\n   * @private\n   */\n  #handleClick($event: MouseEvent) {\n    $event.preventDefault();\n    $event.stopImmediatePropagation();\n\n    const emitClick = () =>\n      this.#emit({\n        type: 'click',\n        eventOptions: {\n          detail: {\n            name: this.name || undefined,\n          },\n        },\n      });\n\n    if (!this.loading && !this.disabled) {\n      // if there is no parent form element, just emit the click event and return\n      if (!this.#internals.form) {\n        // emit action event\n        emitClick();\n        return;\n      }\n\n      // there is a parent form, so check for the type\n      if (this.type === 'submit' || !this.type) {\n        // submit the parent form and emit click event\n        emitClick();\n        submit(this.#internals.form);\n      } else if (this.type === 'reset') {\n        // clear the parent form and emit click event\n        emitClick();\n        this.#internals.form.reset();\n      } else if (this.type === 'button') {\n        emitClick();\n      }\n    }\n  }\n\n  /**\n   * @private\n   */\n  #renderButtonContents() {\n    // if neither loading nor disabled, or BOTH loading and disabled\n    // render the button contents\n    if ((!this.loading && !this.disabled) || (this.loading && this.disabled) || (!this.loading && this.disabled)) {\n      return html`\n        ${this.hasSlotController.test('trailing-icon')\n          ? html` <span class=\"trailing-icon\">\n              <slot name=\"trailing-icon\"></slot>\n            </span>`\n          : nothing}\n      `;\n    } else {\n      return html`<span class=\"loading\">${loadingSpinner}</span>`;\n    }\n  }\n\n  render(): TemplateResult {\n    return html`<${unsafeStatic(this.href ? 'a' : 'button')}\n        class=\"hzn-button\"\n        @click=${ifDefined(this.href ? undefined : this.#handleClick)}\n        type=${ifDefined(this.type)}\n        href=${ifDefined(this.href)}\n        title=${ifDefined(this.title)}\n        aria-label=${ifDefined(this.ariaLabel)}\n        download=${ifDefined(this.href ? this.download : undefined)}\n        target=${ifDefined(this.href ? this.target : undefined)}\n        rel=${ifDefined(this.rel ? `${this.rel}` : ifDefined(this.target ? 'noreferrer noopener' : undefined))}\n        ?disabled=${live(this.disabled || this.loading)}\n        tabindex=${this.disabled ? '-1' : '0'}\n        role=\"${ifDefined(!this.href ? 'button' : undefined)}\"\n      >\n      <span class=\"label\">\n        <slot>Button</slot>\n      </span>\n    ${this.#renderButtonContents()}\n\n    </${unsafeStatic(this.href ? 'a' : 'button')}>`;\n  }\n}\n","type EventEmitterOptions = { type: string, eventOptions?: CustomEventInit, callback?: (this: HTMLElement) => unknown }\n\n/**\n *\n * Shared event emitter factory function for reusing/caching event settings so that events bubble by default,\n * can accept a callback for preventable events, but can be configured and overridden\n *\n */\nexport function eventEmitter(target: HTMLElement) {\n  return (options: EventEmitterOptions) => {\n    const { type, eventOptions, callback } = options;\n\n    const event = new CustomEvent(type, {\n      bubbles: true,\n      cancelable: callback instanceof Function ? true : false,\n      composed: true,\n      detail: {},\n      ...eventOptions\n    });\n\n    target.dispatchEvent(event);\n\n    // if a callback function is specified, run it unless the event has been canceled\n    if (callback instanceof Function) {\n      if (!event.defaultPrevented) {\n        callback.call(target);\n      }\n    }\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 {ReactiveElement} from '../reactive-element.js';\nimport {decorateProperty} from './base.js';\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) {\n  return decorateProperty({\n    descriptor: (name: PropertyKey) => {\n      const descriptor = {\n        get(this: ReactiveElement) {\n          return this.renderRoot?.querySelector(selector) ?? null;\n        },\n        enumerable: true,\n        configurable: true,\n      };\n      if (cache) {\n        const key = typeof name === 'symbol' ? Symbol() : `__${name}`;\n        descriptor.get = function (this: ReactiveElement) {\n          if (\n            (this as unknown as {[key: string]: Element | null})[\n              key as string\n            ] === undefined\n          ) {\n            (this as unknown as {[key: string]: Element | null})[\n              key as string\n            ] = this.renderRoot?.querySelector(selector) ?? null;\n          }\n          return (this as unknown as {[key: string]: Element | null})[\n            key as string\n          ];\n        };\n      }\n      return descriptor;\n    },\n  });\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {ReactiveElement} from '../reactive-element.js';\n\n/**\n * Generates a public interface type that removes private and protected fields.\n * This allows accepting otherwise compatible 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// From the TC39 Decorators proposal\nexport interface ClassDescriptor {\n  kind: 'class';\n  elements: ClassElement[];\n  finisher?: <T>(clazz: Constructor<T>) => void | Constructor<T>;\n}\n\n// From the TC39 Decorators proposal\nexport interface ClassElement {\n  kind: 'field' | 'method';\n  key: PropertyKey;\n  placement: 'static' | 'prototype' | 'own';\n  initializer?: Function;\n  extras?: ClassElement[];\n  finisher?: <T>(clazz: Constructor<T>) => void | Constructor<T>;\n  descriptor?: PropertyDescriptor;\n}\n\nexport const legacyPrototypeMethod = (\n  descriptor: PropertyDescriptor,\n  proto: Object,\n  name: PropertyKey\n) => {\n  Object.defineProperty(proto, name, descriptor);\n};\n\nexport const standardPrototypeMethod = (\n  descriptor: PropertyDescriptor,\n  element: ClassElement\n) => ({\n  kind: 'method',\n  placement: 'prototype',\n  key: element.key,\n  descriptor,\n});\n\n/**\n * Helper for decorating a property that is compatible with both TypeScript\n * and Babel decorators. The optional `finisher` can be used to perform work on\n * the class. The optional `descriptor` should return a PropertyDescriptor\n * to install for the given property.\n *\n * @param finisher {function} Optional finisher method; receives the element\n * constructor and property key as arguments and has no return value.\n * @param descriptor {function} Optional descriptor method; receives the\n * property key as an argument and returns a property descriptor to define for\n * the given property.\n * @returns {ClassElement|void}\n */\nexport const decorateProperty =\n  ({\n    finisher,\n    descriptor,\n  }: {\n    finisher?:\n      | ((ctor: typeof ReactiveElement, property: PropertyKey) => void)\n      | null;\n    descriptor?: (property: PropertyKey) => PropertyDescriptor;\n  }) =>\n  (\n    protoOrDescriptor: Interface<ReactiveElement> | ClassElement,\n    name?: PropertyKey\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    // TypeScript / Babel legacy mode\n    if (name !== undefined) {\n      const ctor = (protoOrDescriptor as ReactiveElement)\n        .constructor as typeof ReactiveElement;\n      if (descriptor !== undefined) {\n        Object.defineProperty(protoOrDescriptor, name, descriptor(name));\n      }\n      finisher?.(ctor, name!);\n      // Babel standard mode\n    } else {\n      // Note, the @property decorator saves `key` as `originalKey`\n      // so try to use it here.\n      const key =\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        (protoOrDescriptor as any).originalKey ??\n        (protoOrDescriptor as ClassElement).key;\n      const info: ClassElement =\n        descriptor != undefined\n          ? {\n              kind: 'method',\n              placement: 'prototype',\n              key,\n              descriptor: descriptor((protoOrDescriptor as ClassElement).key),\n            }\n          : {...(protoOrDescriptor as ClassElement), key};\n      if (finisher != undefined) {\n        info.finisher = function <ReactiveElement>(\n          ctor: Constructor<ReactiveElement>\n        ) {\n          finisher(ctor as unknown as typeof ReactiveElement, key);\n        };\n      }\n      return info;\n    }\n  };\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const defineHorizonElement = (tagName: string, klass: any) => {\n  if (!customElements.get(tagName)) {\n    customElements.define(tagName, class extends klass {});\n  }\n};\n","import { HznButton } from './button/button.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport '@horizon/style/fonts/inject.js';\nimport './types.js';\n\ndefineHorizonElement('hzn-button', HznButton);\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box}*,:after,:before{box-sizing:border-box}small{font-size:80%}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}:host{--hzn-internal-color-border-neutral-weak:var(--hzn-color-border-neutral-weak,#dedfe0);--hzn-internal-color-border-brand-weak:var(--hzn-color-border-brand-weak,transparent);--hzn-internal-color-surface:var(--hzn-color-surface,#fff);--hzn-internal-color-surface-elevation-flat:var(--hzn-color-surface-elevation-flat,#fff);--hzn-internal-color-surface-elevation-small:var(--hzn-color-surface-elevation-small,#fff);--hzn-internal-color-surface-elevation-medium:var(--hzn-color-surface-elevation-medium,#fff);--hzn-internal-color-surface-elevation-large:var(--hzn-color-surface-elevation-large,#fff);--hzn-internal-color-surface-elevation-xlarge:var(--hzn-color-surface-elevation-xlarge,#fff);--hzn-internal-color-surface-brand:var(--hzn-color-surface-brand,#053361);--hzn-internal-color-surface-brand-elevation-flat:var(--hzn-color-surface-brand-elevation-flat,#053361);--hzn-internal-color-surface-brand-elevation-small:var(--hzn-color-surface-brand-elevation-small,#053361);--hzn-internal-color-surface-brand-elevation-medium:var(--hzn-color-surface-brand-elevation-medium,#053361);--hzn-internal-color-surface-brand-elevation-large:var(--hzn-color-surface-brand-elevation-large,#053361);--hzn-internal-color-surface-brand-elevation-xlarge:var(--hzn-color-surface-brand-elevation-xlarge,#053361);--hzn-internal-color-surface-brand-accent:var(--hzn-color-surface-brand-accent,#ffd900);--hzn-internal-color-surface-brand-accent-elevation-flat:var(--hzn-color-surface-brand-accent-elevation-flat,#ffd900);--hzn-internal-color-surface-brand-accent-elevation-small:var(--hzn-color-surface-brand-accent-elevation-small,#ffd900);--hzn-internal-color-surface-brand-accent-elevation-medium:var(--hzn-color-surface-brand-accent-elevation-medium,#ffd900);--hzn-internal-color-surface-brand-accent-elevation-large:var(--hzn-color-surface-brand-accent-elevation-large,#ffd900);--hzn-internal-color-surface-brand-accent-elevation-xlarge:var(--hzn-color-surface-brand-accent-elevation-xlarge,#ffd900);--hzn-internal-shadow-flat:var(--hzn-shadow-flat,0px 0px 0px 1px #dedfe0);--hzn-internal-shadow-small:var(--hzn-shadow-small,0px 2px 4px -1px rgba(0,38,77,.14),0px 4px 5px rgba(0,38,77,.1),0px 1px 10px rgba(0,38,77,.08));--hzn-internal-shadow-medium:var(--hzn-shadow-medium,0px 5px 5px -3px rgba(0,38,77,.14),0px 8px 10px rgba(0,38,77,.1),0px 3px 14px 2px rgba(0,38,77,.08));--hzn-internal-shadow-large:var(--hzn-shadow-large,0px 7px 8px -4px rgba(0,38,77,.14),0px 12px 17px 2px rgba(0,38,77,.1),0px 5px 22px 4px rgba(0,38,77,.08));--hzn-internal-shadow-xlarge:var(--hzn-shadow-xlarge,0px 8px 10px -5px rgba(0,38,77,.14),0px 16px 24px 2px rgba(0,38,77,.1),0px 6px 30px 5px rgba(0,38,77,.08))}*{box-sizing:border-box}:host{display:block;width:100%}:host([tone=neutral]) ::slotted(*){color:var(--hzn-color-text-neutral)}:host([tone=brand]) ::slotted(*){color:var(--hzn-color-text-neutral-on-brand)}:host([tone=brand-accent]) ::slotted(*){color:var(--hzn-color-text-neutral-on-brand)}.hzn-card{background-color:var(--hzn-internal-color-surface);border-radius:0;box-shadow:none;height:100%;padding:1rem;width:100%}:host([border-radius=none]) .hzn-card{border-radius:0}:host([border-radius=small]) .hzn-card{border-radius:2px}:host([border-radius=base]) .hzn-card{border-radius:4px}:host([border-radius=medium]) .hzn-card{border-radius:6px}:host([border-radius=large]) .hzn-card{border-radius:8px}:host([border-radius=full]) .hzn-card{border-radius:100%}:host([border-radius=pill]) .hzn-card{border-radius:9999px}:host([tone=neutral][elevation=none]) .hzn-card{background:var(--hzn-internal-color-surface)}:host([tone=neutral][elevation=flat]) .hzn-card{background:var(--hzn-internal-color-surface-elevation-flat);box-shadow:var(--hzn-internal-shadow-flat)}:host([tone=neutral][elevation=small]) .hzn-card{background:var(--hzn-internal-color-surface-elevation-small);box-shadow:var(--hzn-internal-shadow-small)}:host([tone=neutral][elevation=medium]) .hzn-card{background:var(--hzn-internal-color-surface-elevation-medium);box-shadow:var(--hzn-internal-shadow-medium)}:host([tone=neutral][elevation=large]) .hzn-card{background:var(--hzn-internal-color-surface-elevation-large);box-shadow:var(--hzn-internal-shadow-large)}:host([tone=neutral][elevation=xlarge]) .hzn-card{background:var(--hzn-internal-color-surface-elevation-xlarge);box-shadow:var(--hzn-internal-shadow-xlarge)}:host([tone=brand][elevation=none]) .hzn-card{background:var(--hzn-internal-color-surface-brand)}:host([tone=brand][elevation=flat]) .hzn-card{background:var(--hzn-internal-color-surface-brand-elevation-flat);box-shadow:var(--hzn-internal-shadow-flat)}:host([tone=brand][elevation=small]) .hzn-card{background:var(--hzn-internal-color-surface-brand-elevation-small);box-shadow:var(--hzn-internal-shadow-small)}:host([tone=brand][elevation=medium]) .hzn-card{background:var(--hzn-internal-color-surface-brand-elevation-medium);box-shadow:var(--hzn-internal-shadow-medium)}:host([tone=brand][elevation=large]) .hzn-card{background:var(--hzn-internal-color-surface-brand-elevation-large);box-shadow:var(--hzn-internal-shadow-large)}:host([tone=brand][elevation=xlarge]) .hzn-card{background:var(--hzn-internal-color-surface-brand-elevation-xlarge);box-shadow:var(--hzn-internal-shadow-xlarge)}:host([tone=brand-accent][elevation=none]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent)}:host([tone=brand-accent][elevation=flat]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent-elevation-flat);box-shadow:var(--hzn-internal-shadow-flat)}:host([tone=brand-accent][elevation=small]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent-elevation-small);box-shadow:var(--hzn-internal-shadow-small)}:host([tone=brand-accent][elevation=medium]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent-elevation-medium);box-shadow:var(--hzn-internal-shadow-medium)}:host([tone=brand-accent][elevation=large]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent-elevation-large);box-shadow:var(--hzn-internal-shadow-large)}:host([tone=brand-accent][elevation=xlarge]) .hzn-card{background:var(--hzn-internal-color-surface-brand-accent-elevation-xlarge);box-shadow:var(--hzn-internal-shadow-xlarge)}:host([tone=neutral][elevation=flat]) .hzn-card{box-shadow:0 0 0 1px var(--hzn-internal-color-border-neutral-weak)}:host([tone=brand][elevation=flat]) .hzn-card{box-shadow:0 0 0 1px var(--hzn-internal-color-border-brand-weak)}:host([elevation=none]) .hzn-card{box-shadow:none}:host([padding=none]) .hzn-card{padding:0}:host([padding=xxsmall]) .hzn-card{padding:.25rem}:host([padding=xsmall]) .hzn-card{padding:.5rem}:host([padding=small]) .hzn-card{padding:.75rem}:host([padding=base]) .hzn-card{padding:1rem}:host([padding=medium]) .hzn-card{padding:1.5rem}:host([padding=large]) .hzn-card{padding:2rem}:host([padding=xlarge]) .hzn-card{padding:3rem}:host([padding=xxlarge]) .hzn-card{padding:4rem}:host([padding=xxxlarge]) .hzn-card{padding:6rem}@media screen and (max-width:360px){:host([rounded-above=small]) .hzn-card{border-radius:0}}@media screen and (max-width:640px){:host([rounded-above=medium]) .hzn-card{border-radius:0}}@media screen and (max-width:960px){:host([rounded-above=large]) .hzn-card{border-radius:0}}@media screen and (max-width:1200px){:host([rounded-above=xlarge]) .hzn-card{border-radius:0}}`;","import { CustomElement } from '@horizon/common/types';\nimport { HznCard } from './card/card.js';\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'hzn-card': HznCard;\n  }\n  namespace JSX {\n    interface IntrinsicElements {\n      ['hzn-card']: CustomElement<HznCardHTML, HznCard>;\n    }\n  }\n}\n\n\nexport const AllowedCardElements = ['div', 'article', 'details', 'main', 'section', 'aside'];\nexport type HznCardAs = typeof AllowedCardElements[number];\n\nexport type HznCardTone = 'neutral' | 'brand' | 'brand-accent';\nexport type HznCardBorderRadius = 'none' | 'small' | 'base' | 'medium' | 'large';\nexport type HznCardElevation = 'none' | 'flat' | 'small' | 'medium' | 'large' | 'xlarge';\nexport type HznCardPadding = 'none' | 'xxsmall' | 'xsmall' | 'small' | 'base' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';\nexport type HznCardRoundedAbove = 'small' | 'medium' | 'large' | 'xlarge';\n\nexport type HznCardHTML = {\n  tone?: HznCardTone;\n  elevation?: HznCardElevation;\n  padding?: HznCardPadding;\n  as?: HznCardAs;\n  'border-radius'?: HznCardBorderRadius;\n  'rounded-above'?: HznCardRoundedAbove;\n}\n","import { LitElement, TemplateResult } from '@horizon/base';\nimport { unsafeStatic, html } from '@horizon/base/static-html.js';\nimport { property } from '@horizon/base/decorators.js';\n\nimport cardStyles from './card.css.js';\nimport {\n  AllowedCardElements,\n  HznCardBorderRadius,\n  HznCardElevation,\n  HznCardPadding,\n  HznCardRoundedAbove,\n  HznCardTone,\n  HznCardAs\n} from '../types.js';\n\n/**\n *\n * @tag hzn-card\n * @tagname hzn-card\n * @summary A component for creating cards\n */\nexport class HznCard extends LitElement {\n  static styles = [cardStyles];\n\n  /**\n   * Sets the background color of card\n   * @playroomValues {'neutral' | 'brand' | 'brand-accent'}\n   */\n  @property({ type: String, reflect: true }) tone: HznCardTone = 'neutral';\n\n  /**\n   * Sets the border radius of card\n   * @playroomValues {'none' | 'small' | 'base' | 'medium' | 'large'}\n   */\n  @property({ type: String, reflect: true, attribute: 'border-radius' }) borderRadius?: HznCardBorderRadius = 'none';\n\n  /**\n   * Sets the box shadow/elevation of card\n   * @playroomValues {'none' | 'flat' | 'small' | 'medium' | 'large' | 'xlarge'}\n   */\n  @property({ type: String, reflect: true }) elevation?: HznCardElevation = 'none';\n\n  /**\n   * Sets the padding of card\n   * @playroomValues {'none' | 'xxsmall' | 'xsmall' | 'small' | 'base' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge'}\n   */\n  @property({ type: String, reflect: true }) padding?: HznCardPadding = 'base';\n\n  /**\n   * Sets the html tag used for card\n   * @playroomValues {'div' | 'article' | 'details' | 'main' | 'section' | 'aside'}\n   */\n  @property({ type: String, reflect: true }) as?: HznCardAs = 'div';\n\n  /**\n   * Sets the breakpoint for border-radius. If border radius is set, it will only be applied above the specified breakpoint\n   * @playroomValues {'small' | 'medium' | 'large' | 'xlarge'}\n   */\n  @property({ type: String, reflect: true, attribute: 'rounded-above' }) roundedAbove?: HznCardRoundedAbove;\n\n  render(): TemplateResult {\n    return html`<${unsafeStatic(this.as && AllowedCardElements.includes(this.as) ? this.as : 'div')} class=\"hzn-card\">\n    <slot></slot>\n    </${unsafeStatic(this.as && AllowedCardElements.includes(this.as) ? this.as : 'div')}>`;\n  }\n}\n","import { HznCard } from './card/card.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-card', HznCard);\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block;width:100%}*,:after,:before{box-sizing:border-box}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}small{font-size:80%}table{border-collapse:collapse;border-color:inherit;text-indent:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}h1,h2,h3,h4,h5,h6{margin:0}:host{--hzn-internal-color-text-neutral:var(--hzn-color-text-neutral,#2a343d);--hzn-internal-color-text-neutral-on-brand:var(--hzn-color-text-neutral-on-brand,#fff);--hzn-internal-color-text-neutral-on-brand-accent:var(--hzn-color-text-neutral-on-brand-accent,#2a343d);--hzn-internal-color-text-subdued:var(--hzn-color-text-subdued,#565d65);--hzn-internal-color-text-subdued-on-brand:var(--hzn-color-text-subdued-on-brand,#abafb3);--hzn-internal-color-text-subdued-on-brand-accent:var(--hzn-color-text-subdued-on-brand-accent,#565d65);--hzn-internal-color-text-brand:var(--hzn-color-text-brand,#053361);--hzn-internal-color-text-brand-on-brand:var(--hzn-color-text-brand-on-brand,#fff);--hzn-internal-color-text-brand-on-brand-accent:var(--hzn-color-text-brand-on-brand-accent,#053361);--hzn-internal-color-text-brand-accent:var(--hzn-color-text-brand-accent,#ffd900);--hzn-internal-color-text-brand-accent-on-brand:var(--hzn-color-text-brand-accent-on-brand,#ffd900);--hzn-internal-color-text-brand-accent-on-brand-accent:var(--hzn-color-text-brand-accent-on-brand-accent,#053361);--hzn-internal-color-text-inverse:var(--hzn-color-text-inverse,#fff);--hzn-internal-color-text-inverse-on-brand:var(--hzn-color-text-inverse-on-brand,#fff);--hzn-internal-color-text-inverse-on-brand-accent:var(--hzn-color-text-inverse-on-brand-accent,#2a343d)}.heading-cont{color:var(--hzn-internal-color-text-brand);font-family:CarMaxSharpSansDisp-Bold,Frutiger,Frutiger Linotype,Univers,Calibri,Gill Sans,Gill Sans MT,Myriad Pro,Myriad,DejaVu Sans Condensed,Liberation Sans,Nimbus Sans L,Tahoma,Geneva,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:700;line-height:2rem;margin:0;margin-inline-end:0;margin-inline-start:0;padding-inline-end:0;padding-inline-start:0;text-align:left}:host([tone=subdued]) .heading-cont{color:var(--hzn-internal-color-text-subdued)}:host([tone=subdued][on=brand]) .heading-cont{color:var(--hzn-internal-color-text-subdued-on-brand)}:host([tone=subdued][on=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-subdued-on-brand-accent)}:host([tone=neutral]) .heading-cont{color:var(--hzn-internal-color-text-neutral)}:host([tone=neutral][on=brand]) .heading-cont{color:var(--hzn-internal-color-text-neutral-on-brand)}:host([tone=neutral][on=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-neutral-on-brand-accent)}:host([tone=inverse]) .heading-cont{color:var(--hzn-internal-color-text-inverse)}:host([tone=inverse][on=brand]) .heading-cont{color:var(--hzn-internal-color-text-inverse-on-brand)}:host([tone=inverse][on=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-inverse-on-brand-accent)}:host([tone=brand]) .heading-cont{color:var(--hzn-internal-color-text-brand)}:host([tone=brand][on=brand]) .heading-cont{color:var(--hzn-internal-color-text-brand-on-brand)}:host([tone=brand][on=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-brand-on-brand-accent)}:host([tone=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-brand-accent)}:host([tone=brand-accent][on=brand]) .heading-cont{color:var(--hzn-internal-color-text-brand-accent-on-brand)}:host([tone=brand-accent][on=brand-accent]) .heading-cont{color:var(--hzn-internal-color-text-brand-accent-on-brand-accent)}:host([line-height=none]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1}:host([line-height=none]) .xsmall:before{content:\"\";display:table;margin-bottom:-.1em}:host([line-height=none]) .xsmall:after{content:\"\";display:table;margin-top:-.15em}:host([line-height=xsmall]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.1}:host([line-height=xsmall]) .xsmall:before{content:\"\";display:table;margin-bottom:-.16em}:host([line-height=xsmall]) .xsmall:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.2}:host([line-height=small]) .xsmall:before{content:\"\";display:table;margin-bottom:-.2em}:host([line-height=small]) .xsmall:after{content:\"\";display:table;margin-top:-.25em}:host([line-height=base]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.5}:host([line-height=base]) .xsmall:before{content:\"\";display:table;margin-bottom:-.36em}:host([line-height=base]) .xsmall:after{content:\"\";display:table;margin-top:-.4em}:host([line-height=large]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.625}:host([line-height=large]) .xsmall:before{content:\"\";display:table;margin-bottom:-.44em}:host([line-height=large]) .xsmall:after{content:\"\";display:table;margin-top:-.45em}:host([line-height=xlarge]) .xsmall{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:2}:host([line-height=xlarge]) .xsmall:before{content:\"\";display:table;margin-bottom:-.6em}:host([line-height=xlarge]) .xsmall:after{content:\"\";display:table;margin-top:-.65em}:host([line-height=none]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:1}:host([line-height=none]) .small:before{content:\"\";display:table;margin-bottom:-.11em}:host([line-height=none]) .small:after{content:\"\";display:table;margin-top:-.15em}:host([line-height=xsmall]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:1.1}:host([line-height=xsmall]) .small:before{content:\"\";display:table;margin-bottom:-.16em}:host([line-height=xsmall]) .small:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:1.2}:host([line-height=small]) .small:before{content:\"\";display:table;margin-bottom:-.22em}:host([line-height=small]) .small:after{content:\"\";display:table;margin-top:-.26em}:host([line-height=base]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:1.5}:host([line-height=base]) .small:before{content:\"\";display:table;margin-bottom:-.36em}:host([line-height=base]) .small:after{content:\"\";display:table;margin-top:-.4em}:host([line-height=large]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:1.625}:host([line-height=large]) .small:before{content:\"\";display:table;margin-bottom:-.43em}:host([line-height=large]) .small:after{content:\"\";display:table;margin-top:-.46em}:host([line-height=xlarge]) .small{font-size:clamp(1.25rem,1vw + 1rem,1.5rem);line-height:2}:host([line-height=xlarge]) .small:before{content:\"\";display:table;margin-bottom:-.61em}:host([line-height=xlarge]) .small:after{content:\"\";display:table;margin-top:-.65em}:host([line-height=none]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:1}:host([line-height=none]) .medium:before{content:\"\";display:table;margin-bottom:-.11em}:host([line-height=none]) .medium:after{content:\"\";display:table;margin-top:-.15em}:host([line-height=xsmall]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:1.1}:host([line-height=xsmall]) .medium:before{content:\"\";display:table;margin-bottom:-.16em}:host([line-height=xsmall]) .medium:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:1.2}:host([line-height=small]) .medium:before{content:\"\";display:table;margin-bottom:-.22em}:host([line-height=small]) .medium:after{content:\"\";display:table;margin-top:-.25em}:host([line-height=base]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:1.5}:host([line-height=base]) .medium:before{content:\"\";display:table;margin-bottom:-.36em}:host([line-height=base]) .medium:after{content:\"\";display:table;margin-top:-.4em}:host([line-height=large]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:1.625}:host([line-height=large]) .medium:before{content:\"\";display:table;margin-bottom:-.44em}:host([line-height=large]) .medium:after{content:\"\";display:table;margin-top:-.46em}:host([line-height=xlarge]) .medium{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);line-height:2}:host([line-height=xlarge]) .medium:before{content:\"\";display:table;margin-bottom:-.62em}:host([line-height=xlarge]) .medium:after{content:\"\";display:table;margin-top:-.65em}:host([line-height=none]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:1}:host([line-height=none]) .large:before{content:\"\";display:table;margin-bottom:-.12em}:host([line-height=none]) .large:after{content:\"\";display:table;margin-top:-.14em}:host([line-height=xsmall]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:1.1}:host([line-height=xsmall]) .large:before{content:\"\";display:table;margin-bottom:-.17em}:host([line-height=xsmall]) .large:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:1.2}:host([line-height=small]) .large:before{content:\"\";display:table;margin-bottom:-.22em}:host([line-height=small]) .large:after{content:\"\";display:table;margin-top:-.25em}:host([line-height=base]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:1.5}:host([line-height=base]) .large:before{content:\"\";display:table;margin-bottom:-.37em}:host([line-height=base]) .large:after{content:\"\";display:table;margin-top:-.4em}:host([line-height=large]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:1.625}:host([line-height=large]) .large:before{content:\"\";display:table;margin-bottom:-.43em}:host([line-height=large]) .large:after{content:\"\";display:table;margin-top:-.47em}:host([line-height=xlarge]) .large{font-size:clamp(2rem,1vw + 1.75rem,2.5rem);line-height:2}:host([line-height=xlarge]) .large:before{content:\"\";display:table;margin-bottom:-.62em}:host([line-height=xlarge]) .large:after{content:\"\";display:table;margin-top:-.65em}:host([line-height=none]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:1}:host([line-height=none]) .xlarge:before{content:\"\";display:table;margin-bottom:-.11em}:host([line-height=none]) .xlarge:after{content:\"\";display:table;margin-top:-.16em}:host([line-height=xsmall]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:1.1}:host([line-height=xsmall]) .xlarge:before{content:\"\";display:table;margin-bottom:-.16em}:host([line-height=xsmall]) .xlarge:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:1.2}:host([line-height=small]) .xlarge:before{content:\"\";display:table;margin-bottom:-.21em}:host([line-height=small]) .xlarge:after{content:\"\";display:table;margin-top:-.25em}:host([line-height=base]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:1.5}:host([line-height=base]) .xlarge:before{content:\"\";display:table;margin-bottom:-.36em}:host([line-height=base]) .xlarge:after{content:\"\";display:table;margin-top:-.405em}:host([line-height=large]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:1.625}:host([line-height=large]) .xlarge:before{content:\"\";display:table;margin-bottom:-.43em}:host([line-height=large]) .xlarge:after{content:\"\";display:table;margin-top:-.465em}:host([line-height=xlarge]) .xlarge{font-size:clamp(2.5rem,1vw + 2.25rem,3rem);line-height:2}:host([line-height=xlarge]) .xlarge:before{content:\"\";display:table;margin-bottom:-.62em}:host([line-height=xlarge]) .xlarge:after{content:\"\";display:table;margin-top:-.65em}:host([line-height=none]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:1}:host([line-height=none]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.12em}:host([line-height=none]) .xxlarge:after{content:\"\";display:table;margin-top:-.15em}:host([line-height=xsmall]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:1.1}:host([line-height=xsmall]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.16em}:host([line-height=xsmall]) .xxlarge:after{content:\"\";display:table;margin-top:-.2em}:host([line-height=small]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:1.2}:host([line-height=small]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.215em}:host([line-height=small]) .xxlarge:after{content:\"\";display:table;margin-top:-.25em}:host([line-height=base]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:1.5}:host([line-height=base]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.37em}:host([line-height=base]) .xxlarge:after{content:\"\";display:table;margin-top:-.4em}:host([line-height=large]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:1.625}:host([line-height=large]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.43em}:host([line-height=large]) .xxlarge:after{content:\"\";display:table;margin-top:-.465em}:host([line-height=xlarge]) .xxlarge{font-size:clamp(3rem,3vw + 2.25rem,4.5rem);line-height:2}:host([line-height=xlarge]) .xxlarge:before{content:\"\";display:table;margin-bottom:-.62em}:host([line-height=xlarge]) .xxlarge:after{content:\"\";display:table;margin-top:-.65em}:host([align=left]) .heading-cont{text-align:left}:host([align=right]) .heading-cont{text-align:right}:host([align=center]) .heading-cont{text-align:center}`;","import { LitElement, TemplateResult } from '@horizon/base';\nimport { property } from '@horizon/base/decorators.js';\nimport { unsafeStatic, html } from '@horizon/base/static-html.js';\n\nimport HeadingStyles from './heading.css.js';\nimport { HznHeadingAlign, HznHeadingAs, HznHeadingLineHeight, HznHeadingOn, HznHeadingSize, HznHeadingTone, headingTags } from '../types.js';\n\n\n\n/**\n *\n * @tag hzn-heading\n * @tagname hzn-heading\n * @summary A text component for adding and styling heading tags\n */\nexport class HznHeading extends LitElement {\n  static styles = [HeadingStyles];\n\n  /**\n   * Sets the text-align of text along the x-axis\n   * @playroomValues {'left' | 'center' | 'right'}\n   */\n  @property({ type: String, reflect: true }) align?: HznHeadingAlign = 'left';\n\n  /**\n   * Sets the heading tag of the shadow element\n   * @playroomValues {'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'}\n   */\n  @property({ type: String, reflect: true }) as?: HznHeadingAs = 'h2';\n\n  /**\n   * Sets the color of text within element\n   * @playroomValues {'brand' | 'brand-accent' | 'inverse' | 'neutral' | 'subdued'}\n   */\n  @property({ type: String, reflect: true }) tone?: HznHeadingTone =\n    'brand';\n\n  /**\n   * Sets the font size of text within element\n   * @playroomValues {'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'}\n   */\n  @property({ type: String, reflect: true }) size?: HznHeadingSize =\n    'medium';\n\n  /**\n   * Sets the line height of text within element\n   * @playroomValues {'none' | 'xsmall' | 'small' | 'base' | 'large' | 'xlarge'}\n   */\n  @property({ type: String, reflect: true, attribute: 'line-height' }) lineHeight?: HznHeadingLineHeight = 'base';\n\n  /**\n   * Sets the background color that this heading is appearing on top of in order to change its color accordingly\n   * @playroomValues {'brand' | 'brand-accent'}\n   */\n  @property({ type: String, reflect: true }) on?: HznHeadingOn;\n\n  render(): TemplateResult {\n    return html`<${unsafeStatic(this.as && headingTags.includes(this.as) ? this.as : 'h2')} class=\"heading-cont ${this.size}\">\n      <slot></slot>\n    </${unsafeStatic(this.as && headingTags.includes(this.as) ? this.as : 'h2')}>`;\n  }\n}\n","import { HznHeading } from './heading/heading.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport '@horizon/style/fonts/inject.js';\nimport './types.js';\ndefineHorizonElement('hzn-heading', HznHeading);\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  readonly [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    // We use forEach() instead of for-of so that we don't require down-level\n    // iteration.\n    this._previousClasses.forEach((name) => {\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 falsey, 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","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;width:100%}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}figure,p{margin:0}[hidden]{display:none}:host{--hzn-internal-color-text-neutral:var(--hzn-color-text-neutral,#2a343d);--hzn-internal-color-text-neutral-on-brand:var(--hzn-color-text-neutral-on-brand,#fff);--hzn-internal-color-text-neutral-on-brand-accent:var(--hzn-color-text-neutral-on-brand-accent,#2a343d);--hzn-internal-color-text-subdued:var(--hzn-color-text-subdued,#565d65);--hzn-internal-color-text-subdued-on-brand:var(--hzn-color-text-subdued-on-brand,#abafb3);--hzn-internal-color-text-subdued-on-brand-accent:var(--hzn-color-text-subdued-on-brand-accent,#565d65);--hzn-internal-color-text-brand:var(--hzn-color-text-brand,#053361);--hzn-internal-color-text-brand-on-brand:var(--hzn-color-text-brand-on-brand,#fff);--hzn-internal-color-text-brand-on-brand-accent:var(--hzn-color-text-brand-on-brand-accent,#053361);--hzn-internal-color-text-critical:var(--hzn-color-text-critical,#be0000);--hzn-internal-color-text-critical-on-brand:var(--hzn-color-text-critical-on-brand,#ff2121);--hzn-internal-color-text-critical-on-brand-accent:var(--hzn-color-text-critical-on-brand-accent,#be0000);--hzn-internal-color-text-caution:var(--hzn-color-text-caution,#e54f0a);--hzn-internal-color-text-caution-on-brand:var(--hzn-color-text-caution-on-brand,#f06220);--hzn-internal-color-text-caution-on-brand-accent:var(--hzn-color-text-caution-on-brand-accent,#2a343d);--hzn-internal-color-text-positive:var(--hzn-color-text-positive,#1b6b00);--hzn-internal-color-text-positive-on-brand:var(--hzn-color-text-positive-on-brand,#0a0);--hzn-internal-color-text-positive-on-brand-accent:var(--hzn-color-text-positive-on-brand-accent,#1b6b00);--hzn-internal-color-text-info:var(--hzn-color-text-info,#1871c9);--hzn-internal-color-text-info-on-brand:var(--hzn-color-text-info-on-brand,#1871c9);--hzn-internal-color-text-info-on-brand-accent:var(--hzn-color-text-info-on-brand-accent,#005ab8);--hzn-internal-color-text-flagged:var(--hzn-color-text-flagged,#b8005b);--hzn-internal-color-text-flagged-on-brand:var(--hzn-color-text-flagged-on-brand,#ef007b);--hzn-internal-color-text-flagged-on-brand-accent:var(--hzn-color-text-flagged-on-brand-accent,#b8005b);--hzn-internal-color-text-interactive:var(--hzn-color-text-interactive,#005ab8);--hzn-internal-color-text-interactive-on-brand:var(--hzn-color-text-interactive-on-brand,#57b4f6);--hzn-internal-color-text-interactive-on-brand-accent:var(--hzn-color-text-interactive-on-brand-accent,#005ab8);--hzn-internal-color-text-inverse:var(--hzn-color-text-inverse,#fff);--hzn-internal-color-text-inverse-on-brand:var(--hzn-color-text-inverse-on-brand,#fff);--hzn-internal-color-text-inverse-on-brand-accent:var(--hzn-color-text-inverse-on-brand-accent,#2a343d);--hzn-internal-color-text-disabled:var(--hzn-color-text-disabled,#6d747a);--hzn-internal-color-text-disabled-on-brand:var(--hzn-color-text-disabled-on-brand,#7ea2bf)}:host{display:block;width:auto}:host(:not([inline]):is([as=span],[as=sub],[as=sup])),:host([inline]){display:inline;line-height:inherit}:host(:not([inline]):is([as=span],[as=sub],[as=sup])) .text-cont,:host([inline]) .text-cont{display:inline;line-height:inherit}:host(:not([variant=eyebrow],[variant=callout])[weight=base]) .text-cont{font-weight:400}:host(:not([variant=eyebrow],[variant=callout])[weight=bold]) .text-cont{font-weight:700;letter-spacing:0}:host([truncate]) .text-cont{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-cont{color:var(--hzn-internal-color-text-neutral);font-family:Lato,Corbel,Lucida Grande,Lucida Sans Unicode,DejaVu Sans,Bitstream Vera Sans,Liberation Sans,Verdana,Verdana Ref,sans-serif;font-size:1rem;letter-spacing:.16px;line-height:1.5;margin:0;padding:0;text-align:left}.capsize:after,.capsize:before{content:\"\";display:flow-root}:host([align=left]) .text-cont{text-align:left}:host([align=right]) .text-cont{text-align:right}:host([align=center]) .text-cont{text-align:center}:host([variant=text][size=small][line-height=none]) .capsize{font-size:.875rem;line-height:1}:host([variant=text][size=small][line-height=none]) .capsize:before{margin-bottom:-.15em}:host([variant=text][size=small][line-height=none]) .capsize:after{margin-top:-.12em}:host([variant=text][size=small][line-height=xsmall]) .capsize{font-size:.875rem;line-height:1.1}:host([variant=text][size=small][line-height=xsmall]) .capsize:before{margin-bottom:-.18em}:host([variant=text][size=small][line-height=xsmall]) .capsize:after{margin-top:-.15em}:host([variant=text][size=small][line-height=small]) .capsize{font-size:.875rem;line-height:1.2}:host([variant=text][size=small][line-height=small]) .capsize:before{margin-bottom:-.25em}:host([variant=text][size=small][line-height=small]) .capsize:after{margin-top:-.22em}:host([variant=text][size=small][line-height=base]) .capsize{font-size:.875rem;line-height:1.5}:host([variant=text][size=small][line-height=base]) .capsize:before{margin-bottom:-.4em}:host([variant=text][size=small][line-height=base]) .capsize:after{margin-top:-.37em}:host([variant=text][size=small][line-height=large]) .capsize{font-size:.875rem;line-height:1.625}:host([variant=text][size=small][line-height=large]) .capsize:before{margin-bottom:-.46em}:host([variant=text][size=small][line-height=large]) .capsize:after{margin-top:-.43em}:host([variant=text][size=small][line-height=xlarge]) .capsize{font-size:.875rem;line-height:2}:host([variant=text][size=small][line-height=xlarge]) .capsize:before{margin-bottom:-.65em}:host([variant=text][size=small][line-height=xlarge]) .capsize:after{margin-top:-.62em}:host([variant=text][size=base][line-height=none]) .capsize{font-size:1rem;line-height:1}:host([variant=text][size=base][line-height=none]) .capsize:before{margin-bottom:-.17em}:host([variant=text][size=base][line-height=none]) .capsize:after{margin-top:-.11em}:host([variant=text][size=base][line-height=xsmall]) .capsize{font-size:1rem;line-height:1.1}:host([variant=text][size=base][line-height=xsmall]) .capsize:before{margin-bottom:-.24em}:host([variant=text][size=base][line-height=xsmall]) .capsize:after{margin-top:-.18em}:host([variant=text][size=base][line-height=small]) .capsize{font-size:1rem;line-height:1.2}:host([variant=text][size=base][line-height=small]) .capsize:before{margin-bottom:-.27em}:host([variant=text][size=base][line-height=small]) .capsize:after{margin-top:-.21em}:host([variant=text][size=base][line-height=base]) .capsize{font-size:1rem;line-height:1.5}:host([variant=text][size=base][line-height=base]) .capsize:before{margin-bottom:-.42em}:host([variant=text][size=base][line-height=base]) .capsize:after{margin-top:-.36em}:host([variant=text][size=base][line-height=large]) .capsize{font-size:1rem;line-height:1.625}:host([variant=text][size=base][line-height=large]) .capsize:before{margin-bottom:-.48em}:host([variant=text][size=base][line-height=large]) .capsize:after{margin-top:-.42em}:host([variant=text][size=base][line-height=xlarge]) .capsize{font-size:1rem;line-height:2}:host([variant=text][size=base][line-height=xlarge]) .capsize:before{margin-bottom:-.67em}:host([variant=text][size=base][line-height=xlarge]) .capsize:after{margin-top:-.61em}:host([variant=text][size=large][line-height=none]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1}:host([variant=text][size=large][line-height=none]) .capsize:before{margin-bottom:-.15em}:host([variant=text][size=large][line-height=none]) .capsize:after{margin-top:-.09em}:host([variant=text][size=large][line-height=xsmall]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.1}:host([variant=text][size=large][line-height=xsmall]) .capsize:before{margin-bottom:-.2em}:host([variant=text][size=large][line-height=xsmall]) .capsize:after{margin-top:-.14em}:host([variant=text][size=large][line-height=small]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.2}:host([variant=text][size=large][line-height=small]) .capsize:before{margin-bottom:-.25em}:host([variant=text][size=large][line-height=small]) .capsize:after{margin-top:-.19em}:host([variant=text][size=large][line-height=base]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.5}:host([variant=text][size=large][line-height=base]) .capsize:before{margin-bottom:-.4em}:host([variant=text][size=large][line-height=base]) .capsize:after{margin-top:-.34em}:host([variant=text][size=large][line-height=large]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:1.625}:host([variant=text][size=large][line-height=large]) .capsize:before{margin-bottom:-.45em}:host([variant=text][size=large][line-height=large]) .capsize:after{margin-top:-.39em}:host([variant=text][size=large][line-height=xlarge]) .capsize{font-size:clamp(1rem,2vw + .5rem,1.25rem);line-height:2}:host([variant=text][size=large][line-height=xlarge]) .capsize:before{margin-bottom:-.65em}:host([variant=text][size=large][line-height=xlarge]) .capsize:after{margin-top:-.59em}:host([variant=caption][tone=body]) .text-cont,:host([variant=text][tone=body]) .text-cont{color:var(--hzn-internal-color-text-neutral)}:host([variant=caption][tone=body][on=brand]) .text-cont,:host([variant=text][tone=body][on=brand]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand)}:host([variant=caption][tone=body][on=brand-accent]) .text-cont,:host([variant=text][tone=body][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand-accent)}:host([variant=caption][tone=neutral]) .text-cont,:host([variant=text][tone=neutral]) .text-cont{color:var(--hzn-internal-color-text-neutral)}:host([variant=caption][tone=neutral][on=brand]) .text-cont,:host([variant=text][tone=neutral][on=brand]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand)}:host([variant=caption][tone=neutral][on=brand-accent]) .text-cont,:host([variant=text][tone=neutral][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand-accent)}:host([variant=caption][tone=subdued]) .text-cont,:host([variant=text][tone=subdued]) .text-cont{color:var(--hzn-internal-color-text-subdued)}:host([variant=caption][tone=subdued][on=brand]) .text-cont,:host([variant=text][tone=subdued][on=brand]) .text-cont{color:var(--hzn-internal-color-text-subdued-on-brand)}:host([variant=caption][tone=subdued][on=brand-accent]) .text-cont,:host([variant=text][tone=subdued][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-subdued-on-brand-accent)}:host([variant=caption][tone=critical]) .text-cont,:host([variant=text][tone=critical]) .text-cont{color:var(--hzn-internal-color-text-critical)}:host([variant=caption][tone=critical][on=brand]) .text-cont,:host([variant=text][tone=critical][on=brand]) .text-cont{color:var(--hzn-internal-color-text-critical-on-brand)}:host([variant=caption][tone=critical][on=brand-accent]) .text-cont,:host([variant=text][tone=critical][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-critical-on-brand-accent)}:host([variant=caption][tone=caution]) .text-cont,:host([variant=text][tone=caution]) .text-cont{color:var(--hzn-internal-color-text-caution)}:host([variant=caption][tone=caution][on=brand]) .text-cont,:host([variant=text][tone=caution][on=brand]) .text-cont{color:var(--hzn-internal-color-text-caution-on-brand)}:host([variant=caption][tone=caution][on=brand-accent]) .text-cont,:host([variant=text][tone=caution][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-caution-on-brand-accent)}:host([variant=caption][tone=positive]) .text-cont,:host([variant=text][tone=positive]) .text-cont{color:var(--hzn-internal-color-text-positive)}:host([variant=caption][tone=positive][on=brand]) .text-cont,:host([variant=text][tone=positive][on=brand]) .text-cont{color:var(--hzn-internal-color-text-positive-on-brand)}:host([variant=caption][tone=positive][on=brand-accent]) .text-cont,:host([variant=text][tone=positive][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-positive-on-brand-accent)}:host([variant=caption][tone=info]) .text-cont,:host([variant=text][tone=info]) .text-cont{color:var(--hzn-internal-color-text-info)}:host([variant=caption][tone=info][on=brand]) .text-cont,:host([variant=text][tone=info][on=brand]) .text-cont{color:var(--hzn-internal-color-text-info-on-brand)}:host([variant=caption][tone=info][on=brand-accent]) .text-cont,:host([variant=text][tone=info][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-info-on-brand-accent)}:host([variant=caption][tone=flagged]) .text-cont,:host([variant=text][tone=flagged]) .text-cont{color:var(--hzn-internal-color-text-flagged)}:host([variant=caption][tone=flagged][on=brand]) .text-cont,:host([variant=text][tone=flagged][on=brand]) .text-cont{color:var(--hzn-internal-color-text-flagged-on-brand)}:host([variant=caption][tone=flagged][on=brand-accent]) .text-cont,:host([variant=text][tone=flagged][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-flagged-on-brand-accent)}:host([variant=caption][tone=interactive]) .text-cont,:host([variant=text][tone=interactive]) .text-cont{color:var(--hzn-internal-color-text-interactive)}:host([variant=caption][tone=interactive][on=brand]) .text-cont,:host([variant=text][tone=interactive][on=brand]) .text-cont{color:var(--hzn-internal-color-text-interactive-on-brand)}:host([variant=caption][tone=interactive][on=brand-accent]) .text-cont,:host([variant=text][tone=interactive][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-interactive-on-brand-accent)}:host([variant=caption][tone=inverse]) .text-cont,:host([variant=text][tone=inverse]) .text-cont{color:var(--hzn-internal-color-text-inverse)}:host([variant=caption][tone=inverse][on=brand]) .text-cont,:host([variant=text][tone=inverse][on=brand]) .text-cont{color:var(--hzn-internal-color-text-inverse-on-brand)}:host([variant=caption][tone=inverse][on=brand-accent]) .text-cont,:host([variant=text][tone=inverse][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-inverse-on-brand-accent)}:host([variant=caption][tone=disabled]) .text-cont,:host([variant=text][tone=disabled]) .text-cont{color:var(--hzn-internal-color-text-disabled)}:host([variant=caption][tone=disabled][on=brand]) .text-cont,:host([variant=text][tone=disabled][on=brand]) .text-cont{color:var(--hzn-internal-color-text-disabled-on-brand)}:host([variant=caption][tone=disabled][on=brand-accent]) .text-cont,:host([variant=text][tone=disabled][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-disabled-on-brand-accent)}:host([variant=callout][tone=body]) .text-cont,:host([variant=eyebrow][tone=body]) .text-cont{color:var(--hzn-internal-color-text-neutral)}:host([variant=callout][tone=body][on=brand]) .text-cont,:host([variant=eyebrow][tone=body][on=brand]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand)}:host([variant=callout][tone=body][on=brand-accent]) .text-cont,:host([variant=eyebrow][tone=body][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand-accent)}:host([variant=callout][tone=neutral]) .text-cont,:host([variant=eyebrow][tone=neutral]) .text-cont{color:var(--hzn-internal-color-text-neutral)}:host([variant=callout][tone=neutral][on=brand]) .text-cont,:host([variant=eyebrow][tone=neutral][on=brand]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand)}:host([variant=callout][tone=neutral][on=brand-accent]) .text-cont,:host([variant=eyebrow][tone=neutral][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-neutral-on-brand-accent)}:host([variant=callout][tone=brand]) .text-cont,:host([variant=eyebrow][tone=brand]) .text-cont{color:var(--hzn-internal-color-text-brand)}:host([variant=callout][tone=brand][on=brand]) .text-cont,:host([variant=eyebrow][tone=brand][on=brand]) .text-cont{color:var(--hzn-internal-color-text-brand-on-brand)}:host([variant=callout][tone=brand][on=brand-accent]) .text-cont,:host([variant=eyebrow][tone=brand][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-brand-on-brand-accent)}:host([variant=callout][tone=subdued]) .text-cont,:host([variant=eyebrow][tone=subdued]) .text-cont{color:var(--hzn-internal-color-text-subdued)}:host([variant=callout][tone=subdued][on=brand]) .text-cont,:host([variant=eyebrow][tone=subdued][on=brand]) .text-cont{color:var(--hzn-internal-color-text-subdued-on-brand)}:host([variant=callout][tone=subdued][on=brand-accent]) .text-cont,:host([variant=eyebrow][tone=subdued][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-subdued-on-brand-accent)}:host([variant=callout][tone=inverse]) .text-cont,:host([variant=eyebrow][tone=inverse]) .text-cont{color:var(--hzn-internal-color-text-inverse)}:host([variant=callout][tone=inverse][on=brand]) .text-cont,:host([variant=eyebrow][tone=inverse][on=brand]) .text-cont{color:var(--hzn-internal-color-text-inverse-on-brand)}:host([variant=callout][tone=inverse][on=brand-accent]) .text-cont,:host([variant=eyebrow][tone=inverse][on=brand-accent]) .text-cont{color:var(--hzn-internal-color-text-inverse-on-brand-accent)}:host([variant=eyebrow][line-height=none]) .text-cont{font-size:.875rem;font-weight:700;line-height:1;text-transform:uppercase}:host([variant=eyebrow][line-height=none]) .capsize:before{margin-bottom:-.15em}:host([variant=eyebrow][line-height=none]) .capsize:after{margin-top:-.12em}:host([variant=eyebrow][line-height=xsmall]) .text-cont{font-size:.875rem;font-weight:700;line-height:1.1;text-transform:uppercase}:host([variant=eyebrow][line-height=xsmall]) .capsize:before{margin-bottom:-.2em}:host([variant=eyebrow][line-height=xsmall]) .capsize:after{margin-top:-.17em}:host([variant=eyebrow][line-height=small]) .text-cont{font-size:.875rem;font-weight:700;line-height:1.2;text-transform:uppercase}:host([variant=eyebrow][line-height=small]) .capsize:before{margin-bottom:-.25em}:host([variant=eyebrow][line-height=small]) .capsize:after{margin-top:-.22em}:host([variant=eyebrow][line-height=base]) .text-cont{font-size:.875rem;font-weight:700;line-height:1.5;text-transform:uppercase}:host([variant=eyebrow][line-height=base]) .capsize:before{margin-bottom:-.4em}:host([variant=eyebrow][line-height=base]) .capsize:after{margin-top:-.37em}:host([variant=eyebrow][line-height=large]) .text-cont{font-size:.875rem;font-weight:700;line-height:1.625;text-transform:uppercase}:host([variant=eyebrow][line-height=large]) .capsize:before{margin-bottom:-.46em}:host([variant=eyebrow][line-height=large]) .capsize:after{margin-top:-.43em}:host([variant=eyebrow][line-height=xlarge]) .text-cont{font-size:.875rem;font-weight:700;line-height:2;text-transform:uppercase}:host([variant=eyebrow][line-height=xlarge]) .capsize:before{margin-bottom:-.65em}:host([variant=eyebrow][line-height=xlarge]) .capsize:after{margin-top:-.62em}:host([variant=caption][line-height=none]) .text-cont{font-size:.75rem;line-height:1}:host([variant=caption][line-height=none]) .capsize:before{margin-bottom:-.16em}:host([variant=caption][line-height=none]) .capsize:after{margin-top:-.14em}:host([variant=caption][line-height=xsmall]) .text-cont{font-size:.75rem;line-height:1.1}:host([variant=caption][line-height=xsmall]) .capsize:before{margin-bottom:-.2em}:host([variant=caption][line-height=xsmall]) .capsize:after{margin-top:-.18em}:host([variant=caption][line-height=small]) .text-cont{font-size:.75rem;line-height:1.2}:host([variant=caption][line-height=small]) .capsize:before{margin-bottom:-.25em}:host([variant=caption][line-height=small]) .capsize:after{margin-top:-.23em}:host([variant=caption][line-height=base]) .text-cont{font-size:.75rem;line-height:1.5}:host([variant=caption][line-height=base]) .capsize:before{margin-bottom:-.38em}:host([variant=caption][line-height=base]) .capsize:after{margin-top:-.36em}:host([variant=caption][line-height=large]) .text-cont{font-size:.75rem;line-height:1.625}:host([variant=caption][line-height=large]) .capsize:before{margin-bottom:-.44em}:host([variant=caption][line-height=large]) .capsize:after{margin-top:-.42em}:host([variant=caption][line-height=xlarge]) .text-cont{font-size:.75rem;line-height:2}:host([variant=caption][line-height=xlarge]) .capsize:before{margin-bottom:-.66em}:host([variant=caption][line-height=xlarge]) .capsize:after{margin-top:-.64em}:host([variant=callout][line-height=none]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:1}:host([variant=callout][line-height=none]) .capsize:before{margin-bottom:-.18em}:host([variant=callout][line-height=none]) .capsize:after{margin-top:-.12em}:host([variant=callout][line-height=xsmall]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:1.1}:host([variant=callout][line-height=xsmall]) .capsize:before{margin-bottom:-.22em}:host([variant=callout][line-height=xsmall]) .capsize:after{margin-top:-.16em}:host([variant=callout][line-height=small]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:1.2}:host([variant=callout][line-height=small]) .capsize:before{margin-bottom:-.28em}:host([variant=callout][line-height=small]) .capsize:after{margin-top:-.22em}:host([variant=callout][line-height=base]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:1.5}:host([variant=callout][line-height=base]) .capsize:before{margin-bottom:-.42em}:host([variant=callout][line-height=base]) .capsize:after{margin-top:-.36em}:host([variant=callout][line-height=large]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:1.625}:host([variant=callout][line-height=large]) .capsize:before{margin-bottom:-.48em}:host([variant=callout][line-height=large]) .capsize:after{margin-top:-.42em}:host([variant=callout][line-height=xlarge]) .text-cont{font-size:clamp(1.5rem,1vw + 1.25rem,2rem);font-weight:400;line-height:2}:host([variant=callout][line-height=xlarge]) .capsize:before{margin-bottom:-.68em}:host([variant=callout][line-height=xlarge]) .capsize:after{margin-top:-.62em}`;","// class definition\nimport { LitElement, TemplateResult } from '@horizon/base';\nimport { unsafeStatic, html } from '@horizon/base/static-html.js';\nimport { property } from '@horizon/base/decorators.js';\nimport { classMap } from '@horizon/base/directives.js';\n\nimport TextStyles from './text.css.js';\nimport {\n  BlockElements,\n  HznTextAlign,\n  HznTextAs,\n  HznTextLineHeight,\n  HznTextOn, HznTextSize,\n  HznTextTone,\n  HznTextVariant,\n  HznTextWeight,\n  InlineElements\n} from '../types.js';\n\n\n\n/**\n *\n * @tag hzn-text\n * @tagname hzn-text\n * @summary A text component for adding and styling text\n */\nexport class HznText extends LitElement {\n  static styles = [TextStyles];\n\n  /**\n   * @Private\n   */\n  get #isBlockStyle() {\n    return [...BlockElements].includes(this.as as typeof BlockElements[number]) && !this.inline;\n  }\n\n  /**\n   * Sets whether the hzn-text host element should be `display: inline`. Defaults to `false`\n   */\n  @property({ type: Boolean, reflect: true }) inline?: boolean = false;\n\n  /**\n   * Sets the variant/style of the text to be displayed\n   * @playroomValues {'text' | 'caption' | 'callout' | 'eyebrow'}\n   */\n  @property({ type: String, reflect: true }) variant?: HznTextVariant = 'text';\n\n  /**\n   * Sets the font size of text within element\n   * @playroomValues {'small' | 'base' | 'large'}\n   */\n  @property({ type: String, reflect: true }) size?: HznTextSize = 'base';\n\n  /**\n   * Sets the color of text within element\n   * @playroomValues {'body' | 'brand' | 'subdued' | 'critical' | 'caution' | 'positive' | 'info' | 'flagged' | 'interactive' | 'disabled' | 'inverse'}\n   */\n  @property({ type: String, reflect: true }) tone?: HznTextTone = 'body';\n\n  /**\n   * Sets the font weight of text within element\n   * @playroomValues {'base' | 'bold'}\n   */\n  @property({ type: String, reflect: true }) weight?: HznTextWeight = 'base';\n\n  /**\n   * Sets the text-align of text along the x-axis\n   * @playroomValues {'left' | 'center' | 'right'}\n   */\n  @property({ type: String, reflect: true }) align?: HznTextAlign = 'left';\n\n  /**\n   * Sets the tag of the shadow element\n   * @playroomValues {'span' | 'div' | 'sub' | 'sup' | 'p' | 'li'}\n   */\n  @property({ type: String, reflect: true }) as?: HznTextAs = 'p';\n\n  /**\n   * Sets the line height of text within element\n   * @playroomValues {'none' | 'xsmall' | 'small' | 'base' | 'large' | 'xlarge'}\n   */\n  @property({ type: String, reflect: true, attribute: 'line-height' }) lineHeight?: HznTextLineHeight = 'base';\n\n  /**\n   * Truncates the text (This is...)\n   */\n  @property({ type: Boolean, reflect: true }) truncate?: boolean = false;\n\n  /**\n   * Sets the background color that this text is appearing on top of in order to change its color accordingly\n   * @playroomValues {'brand' | 'brand-accent'}\n   */\n  @property({ type: String, reflect: true }) on?: HznTextOn;\n\n  render(): TemplateResult {\n    const classes = {\n      'text-cont': true,\n      'capsize': this.#isBlockStyle\n    };\n\n    const isValidAs = this.as ? [...InlineElements, ...BlockElements].includes(this.as) : false;\n\n    // DONT FORMAT to add new lines. This component can be display:inline and the whitespace in it will be included.\n    return html`<${unsafeStatic(this.as && isValidAs ? this.as : 'p')} class=\"${classMap(classes)}\"><slot></slot></${unsafeStatic(this.as && isValidAs ? this.as : 'p')}>`;\n  }\n}\n","import { HznText } from './text/text.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport '@horizon/style/fonts/inject.js';\nimport './types.js';\ndefineHorizonElement('hzn-text', HznText);\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block;width:100%}*,:after,:before{box-sizing:border-box}table{border-collapse:collapse;border-color:inherit;text-indent:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}:host{--hzn-internal-color-text-neutral-inverse:var(--hzn-color-text-neutral-inverse,#fff);--hzn-internal-color-text-neutral-inverse-weak:var(--hzn-color-text-neutral-inverse-weak,#2a343d);--hzn-internal-color-text-critical-inverse:var(--hzn-color-text-critical-inverse,#fff);--hzn-internal-color-text-critical-inverse-weak:var(--hzn-color-text-critical-inverse-weak,#be0000);--hzn-internal-color-text-caution-inverse:var(--hzn-color-text-caution-inverse,#fff);--hzn-internal-color-text-caution-inverse-weak:var(--hzn-color-text-caution-inverse-weak,#e54f0a);--hzn-internal-color-text-positive-inverse:var(--hzn-color-text-positive-inverse,#fff);--hzn-internal-color-text-positive-inverse-weak:var(--hzn-color-text-positive-inverse-weak,#1b6b00);--hzn-internal-color-text-info-inverse:var(--hzn-color-text-info-inverse,#fff);--hzn-internal-color-text-info-inverse-weak:var(--hzn-color-text-info-inverse-weak,#1871c9);--hzn-internal-color-text-flagged-inverse:var(--hzn-color-text-flagged-inverse,#fff);--hzn-internal-color-text-flagged-inverse-weak:var(--hzn-color-text-flagged-inverse-weak,#b8005b);--hzn-internal-color-tone-brand:var(--hzn-color-tone-brand,#053361);--hzn-internal-color-tone-neutral:var(--hzn-color-tone-neutral,#2a343d);--hzn-internal-color-tone-neutral-faint:var(--hzn-color-tone-neutral-faint,#f5f6f7);--hzn-internal-color-tone-info:var(--hzn-color-tone-info,#1871c9);--hzn-internal-color-tone-info-faint:var(--hzn-color-tone-info-faint,#f0f7fc);--hzn-internal-color-tone-critical:var(--hzn-color-tone-critical,#be0000);--hzn-internal-color-tone-critical-faint:var(--hzn-color-tone-critical-faint,#fff5f6);--hzn-internal-color-tone-caution:var(--hzn-color-tone-caution,#e54f0a);--hzn-internal-color-tone-caution-faint:var(--hzn-color-tone-caution-faint,#fff7f5);--hzn-internal-color-tone-positive:var(--hzn-color-tone-positive,#1b6b00);--hzn-internal-color-tone-positive-faint:var(--hzn-color-tone-positive-faint,#f2faed);--hzn-internal-color-tone-flagged:var(--hzn-color-tone-flagged,#b8005b);--hzn-internal-color-tone-flagged-faint:var(--hzn-color-tone-flagged-faint,#fff5fb)}:host{display:inline-block;vertical-align:top;width:auto}:host ::slotted(*){height:16px;width:16px}.hzn-badge{align-items:center;border-radius:4px;display:flex;flex-wrap:nowrap;gap:.5rem;height:22px;justify-content:center;padding-left:.5rem;padding-right:.5rem}.label{font-family:Lato,Corbel,Lucida Grande,Lucida Sans Unicode,DejaVu Sans,Bitstream Vera Sans,Liberation Sans,Verdana,Verdana Ref,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.5;white-space:nowrap}.label:before{content:\"\";display:table;margin-bottom:-.4em}.label:after{content:\"\";display:table;margin-top:-.38em}:host([tone=neutral]) .hzn-badge{background:var(--hzn-internal-color-tone-neutral-faint);color:var(--hzn-internal-color-text-neutral-inverse-weak)}:host([tone=neutral]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-neutral-inverse-weak)}:host([tone=neutral][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-neutral);color:var(--hzn-internal-color-text-neutral-inverse)}:host([tone=neutral][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-neutral-inverse)}:host([tone=brand]) .hzn-badge{background:var(--hzn-internal-color-tone-brand-faint);color:var(--hzn-internal-color-text-brand-inverse-weak)}:host([tone=brand]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-brand-inverse-weak)}:host([tone=brand][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-brand);color:var(--hzn-internal-color-text-brand-inverse)}:host([tone=brand][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-brand-inverse)}:host([tone=positive]) .hzn-badge{background:var(--hzn-internal-color-tone-positive-faint);color:var(--hzn-internal-color-text-positive-inverse-weak)}:host([tone=positive]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-positive-inverse-weak)}:host([tone=positive][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-positive);color:var(--hzn-internal-color-text-positive-inverse)}:host([tone=positive][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-positive-inverse)}:host([tone=info]) .hzn-badge{background:var(--hzn-internal-color-tone-info-faint);color:var(--hzn-internal-color-text-info-inverse-weak)}:host([tone=info]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-info-inverse-weak)}:host([tone=info][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-info);color:var(--hzn-internal-color-text-info-inverse)}:host([tone=info][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-info-inverse)}:host([tone=caution]) .hzn-badge{background:var(--hzn-internal-color-tone-caution-faint);color:var(--hzn-internal-color-text-caution-inverse-weak)}:host([tone=caution]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-caution-inverse-weak)}:host([tone=caution][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-caution);color:var(--hzn-internal-color-text-caution-inverse)}:host([tone=caution][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-caution-inverse)}:host([tone=critical]) .hzn-badge{background:var(--hzn-internal-color-tone-critical-faint);color:var(--hzn-internal-color-text-critical-inverse-weak)}:host([tone=critical]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-critical-inverse-weak)}:host([tone=critical][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-critical);color:var(--hzn-internal-color-text-critical-inverse)}:host([tone=critical][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-critical-inverse)}:host([tone=flagged]) .hzn-badge{background:var(--hzn-internal-color-tone-flagged-faint);color:var(--hzn-internal-color-text-flagged-inverse-weak)}:host([tone=flagged]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-flagged-inverse-weak)}:host([tone=flagged][intense]) .hzn-badge{background:var(--hzn-internal-color-tone-flagged);color:var(--hzn-internal-color-text-flagged-inverse)}:host([tone=flagged][intense]) .hzn-badge .leading-icon{color:var(--hzn-internal-color-text-flagged-inverse)}`;","// class definition\nimport { LitElement, TemplateResult, html } from '@horizon/base';\nimport { HasSlotController } from '@horizon/common/controllers';\nimport { property } from '@horizon/base/decorators';\nimport { nothing } from '@horizon/base/html.js';\n\nimport BadgeStyles from './badge.css.js';\nimport { HznBadgeTone } from '../types.js';\n\n/**\n *\n * @tag hzn-badge\n * @tagname hzn-badge\n * @summary badge that can pass required information based on tone and intensity.\n */\n\nexport class HznBadge extends LitElement {\n  static styles = [BadgeStyles];\n\n  private readonly hasSlotController = new HasSlotController(this, '[default]', 'trailing-icon');\n\n  /**\n   * Sets the label for badge\n   */\n  @property({ type: String, reflect: true }) label = 'Badge';\n\n  /**\n   * Sets the background color and text for badge\n   * @playroomValues {'critical' | 'caution' | 'info' | 'neutral' | 'positive' | 'flagged'}\n   */\n  @property({ type: String, reflect: true }) tone?: HznBadgeTone = 'neutral';\n\n  /**\n   * When true, increases intensity of background color and text for badge\n   */\n  @property({ type: Boolean, reflect: true }) intense?: boolean = false;\n\n  render(): TemplateResult {\n    return html` <div class=\"hzn-badge\" role=\"status\">\n      ${this.hasSlotController.test('leading-icon') ? html`<slot class=\"leading-icon\" name=\"leading-icon\"></slot>` : nothing}\n      <span class=\"label\">${this.label || `${this.tone} badge`}</span>\n    </div>`;\n  }\n}\n","import { HznBadge } from './badge/badge.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\nimport '@horizon/style/fonts/inject.js';\n\ndefineHorizonElement('hzn-badge', HznBadge);\n\n\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}small{font-size:80%}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}ol,ul{list-style:none;margin:0;padding:0}:host{display:flex;width:100%}.outer{align-content:start;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;font-family:Lato,Corbel,Lucida Grande,Lucida Sans Unicode,DejaVu Sans,Bitstream Vera Sans,Liberation Sans,Verdana,Verdana Ref,sans-serif;gap:1rem;justify-content:start;margin:0;min-height:100%;min-width:100%;padding:0}:host([reverse]) .outer{flex-direction:row-reverse}:host([wrap]) .outer{flex-wrap:wrap}@media screen and (max-width:360px){:host([collapse-below=small]) .outer{flex-direction:column}:host([collapse-below=small][align-x=stretch]) .outer{align-content:stretch}:host([collapse-below=small][align-x=start]) .outer{align-content:flex-start}:host([collapse-below=small][align-x=end]) .outer{align-content:flex-end}:host([collapse-below=small][align-x=center]) .outer{align-content:center}:host([collapse-below=small][reverse]) .outer{flex-direction:column-reverse}}@media screen and (max-width:640px){:host([collapse-below=medium]) .outer{flex-direction:column}:host([collapse-below=medium][align-x=stretch]) .outer{align-content:stretch}:host([collapse-below=medium][align-x=start]) .outer{align-content:flex-start}:host([collapse-below=medium][align-x=end]) .outer{align-content:flex-end}:host([collapse-below=medium][align-x=center]) .outer{align-content:center}:host([collapse-below=medium][reverse]) .outer{flex-direction:column-reverse}}@media screen and (max-width:960px){:host([collapse-below=large]) .outer{flex-direction:column}:host([collapse-below=large][align-x=stretch]) .outer{align-content:stretch}:host([collapse-below=large][align-x=start]) .outer{align-content:flex-start}:host([collapse-below=large][align-x=end]) .outer{align-content:flex-end}:host([collapse-below=large][align-x=center]) .outer{align-content:center}:host([collapse-below=large][reverse]) .outer{flex-direction:column-reverse}}@media screen and (max-width:1200px){:host([collapse-below=xlarge]) .outer{flex-direction:column}:host([collapse-below=xlarge][align-x=stretch]) .outer{align-content:stretch}:host([collapse-below=xlarge][align-x=start]) .outer{align-content:flex-start}:host([collapse-below=xlarge][align-x=end]) .outer{align-content:flex-end}:host([collapse-below=xlarge][align-x=center]) .outer{align-content:center}:host([collapse-below=xlarge][reverse]) .outer{flex-direction:column-reverse}}@media screen and (max-width:2100px){:host([collapse-below=xxlarge]) .outer{flex-direction:column}:host([collapse-below=xxlarge][align-x=stretch]) .outer{align-content:stretch}:host([collapse-below=xxlarge][align-x=start]) .outer{align-content:flex-start}:host([collapse-below=xxlarge][align-x=end]) .outer{align-content:flex-end}:host([collapse-below=xxlarge][align-x=center]) .outer{align-content:center}:host([collapse-below=xxlarge][reverse]) .outer{flex-direction:column-reverse}}.spacing-none{gap:0}.spacing-none-none{gap:0 0}.spacing-none-xxsmall{gap:.25rem 0}.spacing-none-xsmall{gap:.5rem 0}.spacing-none-small{gap:.75rem 0}.spacing-none-base{gap:1rem 0}.spacing-none-medium{gap:1.5rem 0}.spacing-none-large{gap:2rem 0}.spacing-none-xlarge{gap:3rem 0}.spacing-none-xxlarge{gap:4rem 0}.spacing-none-xxxlarge{gap:6rem 0}.spacing-xxsmall{gap:.25rem}.spacing-xxsmall-none{gap:0 .25rem}.spacing-xxsmall-xxsmall{gap:.25rem .25rem}.spacing-xxsmall-xsmall{gap:.5rem .25rem}.spacing-xxsmall-small{gap:.75rem .25rem}.spacing-xxsmall-base{gap:1rem .25rem}.spacing-xxsmall-medium{gap:1.5rem .25rem}.spacing-xxsmall-large{gap:2rem .25rem}.spacing-xxsmall-xlarge{gap:3rem .25rem}.spacing-xxsmall-xxlarge{gap:4rem .25rem}.spacing-xxsmall-xxxlarge{gap:6rem .25rem}.spacing-xsmall{gap:.5rem}.spacing-xsmall-none{gap:0 .5rem}.spacing-xsmall-xxsmall{gap:.25rem .5rem}.spacing-xsmall-xsmall{gap:.5rem .5rem}.spacing-xsmall-small{gap:.75rem .5rem}.spacing-xsmall-base{gap:1rem .5rem}.spacing-xsmall-medium{gap:1.5rem .5rem}.spacing-xsmall-large{gap:2rem .5rem}.spacing-xsmall-xlarge{gap:3rem .5rem}.spacing-xsmall-xxlarge{gap:4rem .5rem}.spacing-xsmall-xxxlarge{gap:6rem .5rem}.spacing-small{gap:.75rem}.spacing-small-none{gap:0 .75rem}.spacing-small-xxsmall{gap:.25rem .75rem}.spacing-small-xsmall{gap:.5rem .75rem}.spacing-small-small{gap:.75rem .75rem}.spacing-small-base{gap:1rem .75rem}.spacing-small-medium{gap:1.5rem .75rem}.spacing-small-large{gap:2rem .75rem}.spacing-small-xlarge{gap:3rem .75rem}.spacing-small-xxlarge{gap:4rem .75rem}.spacing-small-xxxlarge{gap:6rem .75rem}.spacing-base{gap:1rem}.spacing-base-none{gap:0 1rem}.spacing-base-xxsmall{gap:.25rem 1rem}.spacing-base-xsmall{gap:.5rem 1rem}.spacing-base-small{gap:.75rem 1rem}.spacing-base-base{gap:1rem 1rem}.spacing-base-medium{gap:1.5rem 1rem}.spacing-base-large{gap:2rem 1rem}.spacing-base-xlarge{gap:3rem 1rem}.spacing-base-xxlarge{gap:4rem 1rem}.spacing-base-xxxlarge{gap:6rem 1rem}.spacing-medium{gap:1.5rem}.spacing-medium-none{gap:0 1.5rem}.spacing-medium-xxsmall{gap:.25rem 1.5rem}.spacing-medium-xsmall{gap:.5rem 1.5rem}.spacing-medium-small{gap:.75rem 1.5rem}.spacing-medium-base{gap:1rem 1.5rem}.spacing-medium-medium{gap:1.5rem 1.5rem}.spacing-medium-large{gap:2rem 1.5rem}.spacing-medium-xlarge{gap:3rem 1.5rem}.spacing-medium-xxlarge{gap:4rem 1.5rem}.spacing-medium-xxxlarge{gap:6rem 1.5rem}.spacing-large{gap:2rem}.spacing-large-none{gap:0 2rem}.spacing-large-xxsmall{gap:.25rem 2rem}.spacing-large-xsmall{gap:.5rem 2rem}.spacing-large-small{gap:.75rem 2rem}.spacing-large-base{gap:1rem 2rem}.spacing-large-medium{gap:1.5rem 2rem}.spacing-large-large{gap:2rem 2rem}.spacing-large-xlarge{gap:3rem 2rem}.spacing-large-xxlarge{gap:4rem 2rem}.spacing-large-xxxlarge{gap:6rem 2rem}.spacing-xlarge{gap:3rem}.spacing-xlarge-none{gap:0 3rem}.spacing-xlarge-xxsmall{gap:.25rem 3rem}.spacing-xlarge-xsmall{gap:.5rem 3rem}.spacing-xlarge-small{gap:.75rem 3rem}.spacing-xlarge-base{gap:1rem 3rem}.spacing-xlarge-medium{gap:1.5rem 3rem}.spacing-xlarge-large{gap:2rem 3rem}.spacing-xlarge-xlarge{gap:3rem 3rem}.spacing-xlarge-xxlarge{gap:4rem 3rem}.spacing-xlarge-xxxlarge{gap:6rem 3rem}.spacing-xxlarge{gap:4rem}.spacing-xxlarge-none{gap:0 4rem}.spacing-xxlarge-xxsmall{gap:.25rem 4rem}.spacing-xxlarge-xsmall{gap:.5rem 4rem}.spacing-xxlarge-small{gap:.75rem 4rem}.spacing-xxlarge-base{gap:1rem 4rem}.spacing-xxlarge-medium{gap:1.5rem 4rem}.spacing-xxlarge-large{gap:2rem 4rem}.spacing-xxlarge-xlarge{gap:3rem 4rem}.spacing-xxlarge-xxlarge{gap:4rem 4rem}.spacing-xxlarge-xxxlarge{gap:6rem 4rem}.spacing-xxxlarge{gap:6rem}.spacing-xxxlarge-none{gap:0 6rem}.spacing-xxxlarge-xxsmall{gap:.25rem 6rem}.spacing-xxxlarge-xsmall{gap:.5rem 6rem}.spacing-xxxlarge-small{gap:.75rem 6rem}.spacing-xxxlarge-base{gap:1rem 6rem}.spacing-xxxlarge-medium{gap:1.5rem 6rem}.spacing-xxxlarge-large{gap:2rem 6rem}.spacing-xxxlarge-xlarge{gap:3rem 6rem}.spacing-xxxlarge-xxlarge{gap:4rem 6rem}.spacing-xxxlarge-xxxlarge{gap:6rem 6rem}:host([align-y=stretch]) .outer{align-items:stretch}:host([align-y=start]) .outer{align-items:flex-start}:host([align-y=end]) .outer{align-items:flex-end}:host([align-y=center]) .outer{align-items:center}:host([align-y=baseline]) .outer{align-items:baseline}:host([align-x=stretch]) .outer{justify-content:stretch}:host([align-x=start]) .outer{justify-content:flex-start}:host([align-x=end]) .outer{justify-content:flex-end}:host([align-x=center]) .outer{justify-content:center}:host([align-x=between]) .outer{justify-content:space-between}:host([align-x=evenly]) .outer{justify-content:space-evenly}:host([align-x=around]) .outer{justify-content:space-around}`;","import { LitElement, TemplateResult } from '@horizon/base';\nimport { property } from '@horizon/base/decorators.js';\nimport { unsafeStatic, html } from '@horizon/base/static-html.js';\n\nimport InlineStyles from './inline.css.js';\nimport {\n  HznInlineAlignX,\n  HznInlineAlignY,\n  HznInlineAs,\n  HznInlineCollapseBelow,\n  HznInlineSpace,\n  inlineTags\n} from '../types.js';\n\n\n\n/**\n *\n * @tag hzn-inline\n * @tagname hzn-inline\n * @summary A layout component for establishing a horizontal row of items\n */\nexport class HznInline extends LitElement {\n  static styles = [InlineStyles];\n\n  /**\n   * Set the gap between inline items. Accepts a single value, or two values separated by a space. When two values are provided the order is space=\"horizontal vertical\", ie space=\"large small\" sets the column-gap to 'small' and the row-gap to large\n   * @playroomValues {'none' | 'xxsmall' | 'xsmall' | 'small' | 'base' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge'}\n   */\n  @property({ type: String, reflect: true }) space?: HznInlineSpace = 'base';\n\n  /**\n   * Set the HTML element the inline element will render as (div, ol, ul)\n   * @playroomValues {'ul' | 'ol' | 'div'}\n   */\n  @property({ type: String }) as?: HznInlineAs = 'div';\n\n  /**\n   * Set the responsive breakpoint below which all inlined elements will collapse into a single column\n   * @playroomValues {'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'}\n   */\n  @property({ type: String, reflect: true, attribute: 'collapse-below' }) collapseBelow?: HznInlineCollapseBelow;\n\n  /**\n   * Set the vertical alignment of the child elements relative to each other in their flex row\n   * @playroomValues {'stretch' | 'start' | 'end' | 'center' | 'baseline'}\n   */\n  @property({ type: String, reflect: true, attribute: 'align-y' }) alignY?: HznInlineAlignY = 'center';\n\n  /**\n   * Set the horizontal alignment of the child elements relative to the hzn-inline container\n   * @playroomValues {'stretch' | 'start' | 'end' | 'center' | 'between' | 'evenly' | 'around'}\n   */\n  @property({ type: String, reflect: true, attribute: 'align-x' }) alignX?: HznInlineAlignX = 'start';\n\n  /**\n   * Reverse the order of inline child elements\n   */\n  @property({ type: Boolean, reflect: true }) reverse?: boolean = false;\n\n  /**\n   * Set inlined child elements to wrap to the next row\n   */\n  @property({ type: Boolean, attribute: 'wrap', reflect: true }) wrap?: boolean = false;\n\n  #computeSpaceClass() {\n    if (this.space) {\n      const spaceSplit = this.space.split(' ');\n      if (spaceSplit.length > 1) {\n        return `spacing-${spaceSplit[0]}-${spaceSplit[1]}`;\n      }\n      return `spacing-${spaceSplit[0]}`;\n    }\n    return 'spacing-base';\n  }\n\n  render(): TemplateResult {\n    return html`<${unsafeStatic(this.as && inlineTags.includes(this.as) ? this.as : 'div')} class=\"outer ${this.#computeSpaceClass()}\">\n      <slot></slot>\n    </${unsafeStatic(this.as && inlineTags.includes(this.as) ? this.as : 'div')}>`;\n  }\n}\n","import { HznInline } from './inline/inline.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-inline', HznInline);\n","/**\n * Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.\n */\nexport function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions) {\n  return new Promise(resolve => {\n    if (options?.duration === Infinity) {\n      throw new Error('Promise-based animations must be finite.');\n    }\n\n    const animation = el.animate(keyframes, {\n      ...options,\n      duration: prefersReducedMotion() ? 0 : options!.duration\n    });\n\n    animation.addEventListener('cancel', resolve, { once: true });\n    animation.addEventListener('finish', resolve, { once: true });\n  });\n}\n\n/** Parses a CSS duration and returns the number of milliseconds. */\nexport function parseDuration(delay: number | string) {\n  delay = delay.toString().toLowerCase();\n\n  if (delay.indexOf('ms') > -1) {\n    return parseFloat(delay);\n  }\n\n  if (delay.indexOf('s') > -1) {\n    return parseFloat(delay) * 1000;\n  }\n\n  return parseFloat(delay);\n}\n\n/** Tells if the user has enabled the \"reduced motion\" setting in their browser or OS. */\nexport function prefersReducedMotion() {\n  const query = window.matchMedia('(prefers-reduced-motion: reduce)');\n  return query.matches;\n}\n\n/**\n * Stops all active animations on the target element. Returns a promise that resolves after all animations are canceled.\n */\nexport function stopAnimations(el: HTMLElement) {\n  return Promise.all(\n    el.getAnimations().map(animation => {\n      return new Promise(resolve => {\n        const handleAnimationEvent = requestAnimationFrame(resolve);\n\n        animation.addEventListener('cancel', () => handleAnimationEvent, { once: true });\n        animation.addEventListener('finish', () => handleAnimationEvent, { once: true });\n        animation.cancel();\n      });\n    })\n  );\n}\n\n/**\n * We can't animate `height: auto`, but we can calculate the height and shim keyframes by replacing it with the\n * element's scrollHeight before the animation.\n */\nexport function shimKeyframesHeightAuto(keyframes: Keyframe[], calculatedHeight: number) {\n  return keyframes.map(keyframe => ({\n    ...keyframe,\n    height: keyframe.height === 'auto' ? `${calculatedHeight}px` : keyframe.height\n  }));\n}\n","import { HznLoading } from './loading/loading.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport '@horizon/style/fonts/inject.js';\nimport './types.js';\ndefineHorizonElement('hzn-loading', HznLoading);\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block;width:100%}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}small{font-size:80%}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}svg{display:block;vertical-align:middle}[hidden]{display:none}:host{box-sizing:content-box!important;contain:strict;display:inline-block;height:24px;width:24px}.icon,svg{display:block;height:100%;width:100%}:host([size=small]){height:22px;width:22px}:host([size=base]){height:24px;width:24px}:host([size=large]){height:28px;width:28px}.is-variant-stroked path.stroked{visibility:visible}.is-variant-stroked path.filled{visibility:hidden}.is-variant-filled path.filled{visibility:visible}.is-variant-filled path.stroked{visibility:hidden}`;","// class definition\nimport { LitElement } from '@horizon/base';\nimport { property } from '@horizon/base/decorators.js';\n\nimport { HznIconSize, HznIconVariant } from '../types.js';\nimport iconStyles from './icon.css.js';\nexport class HznIconBase extends LitElement {\n  static styles = [iconStyles];\n\n  firstUpdated() {\n    this.setAttribute('inert', '');\n  }\n\n  /**\n   * The size of the icon\n   * @playroomValues {'small' | 'base' | 'large'}\n   */\n  @property({ type: String, reflect: true }) size?: HznIconSize;\n\n  /**\n   * The stylistic variant of the icon glyph - stroked or filled\n   * @playroomValues {'stroked' | 'filled'}\n   */\n  @property({ type: String }) variant?: HznIconVariant = 'stroked';\n}\n","\n// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { classMap } from '@horizon/base/directives';\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-info-circle\n * @tagname hzn-icon-info-circle\n * @summary An individual icon for Horizon\n */\nexport class HznIconInfoCircle extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"icon\"\n      aria-hidden=\"true\"\n      class=${classMap({\n        icon: true,\n        'is-variant-stroked': this.variant !== 'filled', // default value should be any value other than `filled`\n        'is-variant-filled': this.variant === 'filled',\n      })}><svg viewBox=\"0 0 24 24\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1.28998 12C1.28998 6.08998 6.08998 1.28998 12 1.28998C17.91 1.28998 22.71 6.08998 22.71 12C22.71 17.91 17.91 22.71 12 22.71C6.08998 22.71 1.28998 17.91 1.28998 12ZM2.70998 12C2.70998 17.12 6.87998 21.29 12 21.29C17.12 21.29 21.29 17.12 21.29 12C21.29 6.87998 17.12 2.70998 12 2.70998C6.87998 2.70998 2.70998 6.87998 2.70998 12ZM12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9ZM14 15.29H12.71V11C12.71 10.61 12.39 10.29 12 10.29H9.99998C9.60998 10.29 9.28998 10.61 9.28998 11C9.28998 11.39 9.60998 11.71 9.99998 11.71H11.29V15.29H9.99998C9.60998 15.29 9.28998 15.61 9.28998 16C9.28998 16.39 9.60998 16.71 9.99998 16.71H14C14.39 16.71 14.71 16.39 14.71 16C14.71 15.61 14.39 15.29 14 15.29Z\" fill=\"currentColor\" class=\"stroked\"></path><path d=\"M12 1.28998C6.08998 1.28998 1.28998 6.08998 1.28998 12C1.28998 17.91 6.08998 22.71 12 22.71C17.91 22.71 22.71 17.91 22.71 12C22.71 6.08998 17.91 1.28998 12 1.28998ZM12 6.99998C12.55 6.99998 13 7.44998 13 7.99998C13 8.54998 12.55 8.99998 12 8.99998C11.45 8.99998 11 8.54998 11 7.99998C11 7.44998 11.45 6.99998 12 6.99998ZM14 16.71H9.99998C9.60998 16.71 9.28998 16.39 9.28998 16C9.28998 15.61 9.60998 15.29 9.99998 15.29H11.29V11.71H9.99998C9.60998 11.71 9.28998 11.39 9.28998 11C9.28998 10.61 9.60998 10.29 9.99998 10.29H12C12.39 10.29 12.71 10.61 12.71 11V15.29H14C14.39 15.29 14.71 15.61 14.71 16C14.71 16.39 14.39 16.71 14 16.71Z\" fill=\"currentColor\" class=\"filled\"></path></svg></div>`;\n  }\n}\n","// src/components/popup/popup.styles.ts\nimport { css } from \"lit\";\nvar popup_styles_default = css`\n  :host {\n    --arrow-color: var(--sl-color-neutral-1000);\n    --arrow-size: 6px;\n\n    /*\n     * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant\n     * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.\n     */\n    --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);\n    --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));\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\n  .popup--fixed {\n    position: fixed;\n  }\n\n  .popup:not(.popup--active) {\n    display: none;\n  }\n\n  .popup__arrow {\n    position: absolute;\n    width: calc(var(--arrow-size-diagonal) * 2);\n    height: calc(var(--arrow-size-diagonal) * 2);\n    rotate: 45deg;\n    background: var(--arrow-color);\n    z-index: -1;\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: calc(var(--sl-z-index-dropdown) - 1);\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\nexport {\n  popup_styles_default\n};\n","const connectedElements = new Set();\nconst translations = new Map();\nlet fallback;\nlet documentDirection = 'ltr';\nlet documentLanguage = 'en';\nconst isClient = (typeof MutationObserver !== \"undefined\" && typeof document !== \"undefined\" && 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        return `${this.host.lang || documentLanguage}`.toLowerCase();\n    }\n    getTranslationData(lang) {\n        var _a, _b;\n        const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n        const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();\n        const region = (_b = (_a = locale === null || locale === void 0 ? void 0 : 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","// src/translations/en.ts\nimport { registerTranslation } from \"@shoelace-style/localize\";\nvar translation = {\n  $code: \"en\",\n  $name: \"English\",\n  $dir: \"ltr\",\n  carousel: \"Carousel\",\n  clearEntry: \"Clear entry\",\n  close: \"Close\",\n  copied: \"Copied\",\n  copy: \"Copy\",\n  currentValue: \"Current value\",\n  error: \"Error\",\n  goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,\n  hidePassword: \"Hide password\",\n  loading: \"Loading\",\n  nextSlide: \"Next slide\",\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  previousSlide: \"Previous slide\",\n  progress: \"Progress\",\n  remove: \"Remove\",\n  resize: \"Resize\",\n  scrollToEnd: \"Scroll to end\",\n  scrollToStart: \"Scroll to start\",\n  selectAColorFromTheScreen: \"Select a color from the screen\",\n  showPassword: \"Show password\",\n  slideNum: (slide) => `Slide ${slide}`,\n  toggleColorFormat: \"Toggle color format\"\n};\nregisterTranslation(translation);\nvar en_default = translation;\n\nexport {\n  en_default\n};\n","import {\n  en_default\n} from \"./chunk.7BTDLTNI.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};\nregisterTranslation(en_default);\n\nexport {\n  LocalizeController,\n  registerTranslation2 as registerTranslation\n};\n","// src/styles/component.styles.ts\nimport { css } from \"lit\";\nvar component_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    display: none !important;\n  }\n`;\n\nexport {\n  component_styles_default\n};\n","var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for(\"Symbol.\" + name);\nvar __typeError = (msg) => {\n  throw TypeError(msg);\n};\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\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);\nvar __await = function(promise, isYieldStar) {\n  this[0] = promise;\n  this[1] = isYieldStar;\n};\nvar __yieldStar = (value) => {\n  var obj = value[__knownSymbol(\"asyncIterator\")], isAwait = false, method, it = {};\n  if (obj == null) {\n    obj = value[__knownSymbol(\"iterator\")]();\n    method = (k) => it[k] = (x) => obj[k](x);\n  } else {\n    obj = obj.call(value);\n    method = (k) => it[k] = (v) => {\n      if (isAwait) {\n        isAwait = false;\n        if (k === \"throw\") throw v;\n        return v;\n      }\n      isAwait = true;\n      return {\n        done: false,\n        value: new __await(new Promise((resolve) => {\n          var x = obj[k](v);\n          if (!(x instanceof Object)) __typeError(\"Object expected\");\n          resolve(x);\n        }), 1)\n      };\n    };\n  }\n  return it[__knownSymbol(\"iterator\")] = () => it, method(\"next\"), \"throw\" in obj ? method(\"throw\") : it.throw = (x) => {\n    throw x;\n  }, \"return\" in obj && method(\"return\"), it;\n};\n\nexport {\n  __spreadValues,\n  __spreadProps,\n  __decorateClass,\n  __privateGet,\n  __privateAdd,\n  __privateSet,\n  __yieldStar\n};\n","import {\n  __decorateClass,\n  __privateAdd,\n  __privateGet,\n  __privateSet,\n  __spreadValues\n} from \"./chunk.KAW7D32O.js\";\n\n// src/internal/shoelace-element.ts\nimport { LitElement } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nvar _hasRecordedInitialProperties;\nvar ShoelaceElement = class extends LitElement {\n  constructor() {\n    super();\n    __privateAdd(this, _hasRecordedInitialProperties, false);\n    // Store the constructor value of all `static properties = {}`\n    this.initialReflectedProperties = /* @__PURE__ */ new Map();\n    Object.entries(this.constructor.dependencies).forEach(([name, component]) => {\n      this.constructor.define(name, component);\n    });\n  }\n  emit(name, options) {\n    const event = new CustomEvent(name, __spreadValues({\n      bubbles: true,\n      cancelable: false,\n      composed: true,\n      detail: {}\n    }, options));\n    this.dispatchEvent(event);\n    return event;\n  }\n  /* eslint-enable */\n  static define(name, elementConstructor = this, options = {}) {\n    const currentlyRegisteredConstructor = customElements.get(name);\n    if (!currentlyRegisteredConstructor) {\n      try {\n        customElements.define(name, elementConstructor, options);\n      } catch (_err) {\n        customElements.define(name, class extends elementConstructor {\n        }, options);\n      }\n      return;\n    }\n    let newVersion = \" (unknown version)\";\n    let existingVersion = newVersion;\n    if (\"version\" in elementConstructor && elementConstructor.version) {\n      newVersion = \" v\" + elementConstructor.version;\n    }\n    if (\"version\" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n      existingVersion = \" v\" + currentlyRegisteredConstructor.version;\n    }\n    if (newVersion && existingVersion && newVersion === existingVersion) {\n      return;\n    }\n    console.warn(\n      `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\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};\n_hasRecordedInitialProperties = new WeakMap();\n/* eslint-disable */\n// @ts-expect-error This is auto-injected at build time.\nShoelaceElement.version = \"2.20.1\";\nShoelaceElement.dependencies = {};\n__decorateClass([\n  property()\n], ShoelaceElement.prototype, \"dir\", 2);\n__decorateClass([\n  property()\n], ShoelaceElement.prototype, \"lang\", 2);\n\nexport {\n  ShoelaceElement\n};\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","import {\n  popup_styles_default\n} from \"./chunk.3KSWVBQ5.js\";\nimport {\n  LocalizeController\n} from \"./chunk.6CTB5ZDJ.js\";\nimport {\n  component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n  ShoelaceElement\n} from \"./chunk.4TUIT776.js\";\nimport {\n  __decorateClass,\n  __spreadProps,\n  __spreadValues\n} from \"./chunk.KAW7D32O.js\";\n\n// src/components/popup/popup.component.ts\nimport { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from \"@floating-ui/dom\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { offsetParent } from \"composed-offset-position\";\nimport { property, query } from \"lit/decorators.js\";\nfunction isVirtualElement(e) {\n  return e !== null && typeof e === \"object\" && \"getBoundingClientRect\" in e && (\"contextElement\" in e ? e.contextElement instanceof Element : true);\n}\nvar SlPopup = class extends ShoelaceElement {\n  constructor() {\n    super(...arguments);\n    this.localize = new LocalizeController(this);\n    this.active = false;\n    this.placement = \"top\";\n    this.strategy = \"absolute\";\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) {\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.start();\n  }\n  disconnectedCallback() {\n    super.disconnectedCallback();\n    this.stop();\n  }\n  async updated(changedProps) {\n    super.updated(changedProps);\n    if (changedProps.has(\"active\")) {\n      if (this.active) {\n        this.start();\n      } else {\n        this.stop();\n      }\n    }\n    if (changedProps.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 && this.active) {\n      this.start();\n    }\n  }\n  start() {\n    if (!this.anchorEl || !this.active) {\n      return;\n    }\n    this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n      this.reposition();\n    });\n  }\n  async stop() {\n    return new Promise((resolve) => {\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) {\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    if (this.flip) {\n      middleware.push(\n        flip({\n          boundary: this.flipBoundary,\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,\n          padding: this.shiftPadding\n        })\n      );\n    }\n    if (this.autoSize) {\n      middleware.push(\n        size({\n          boundary: this.autoSizeBoundary,\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.strategy === \"absolute\" ? (element) => platform.getOffsetParent(element, offsetParent) : platform.getOffsetParent;\n    computePosition(this.anchorEl, this.popup, {\n      placement: this.placement,\n      middleware,\n      strategy: this.strategy,\n      platform: __spreadProps(__spreadValues({}, 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-size-diagonal) * -1)\"\n        });\n      }\n    });\n    requestAnimationFrame(() => this.updateHoverBridge());\n    this.emit(\"sl-reposition\");\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        part=\"popup\"\n        class=${classMap({\n      popup: true,\n      \"popup--active\": this.active,\n      \"popup--fixed\": this.strategy === \"fixed\",\n      \"popup--has-arrow\": this.arrow\n    })}\n      >\n        <slot></slot>\n        ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : \"\"}\n      </div>\n    `;\n  }\n};\nSlPopup.styles = [component_styles_default, popup_styles_default];\n__decorateClass([\n  query(\".popup\")\n], SlPopup.prototype, \"popup\", 2);\n__decorateClass([\n  query(\".popup__arrow\")\n], SlPopup.prototype, \"arrowEl\", 2);\n__decorateClass([\n  property()\n], SlPopup.prototype, \"anchor\", 2);\n__decorateClass([\n  property({ type: Boolean, reflect: true })\n], SlPopup.prototype, \"active\", 2);\n__decorateClass([\n  property({ reflect: true })\n], SlPopup.prototype, \"placement\", 2);\n__decorateClass([\n  property({ reflect: true })\n], SlPopup.prototype, \"strategy\", 2);\n__decorateClass([\n  property({ type: Number })\n], SlPopup.prototype, \"distance\", 2);\n__decorateClass([\n  property({ type: Number })\n], SlPopup.prototype, \"skidding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], SlPopup.prototype, \"arrow\", 2);\n__decorateClass([\n  property({ attribute: \"arrow-placement\" })\n], SlPopup.prototype, \"arrowPlacement\", 2);\n__decorateClass([\n  property({ attribute: \"arrow-padding\", type: Number })\n], SlPopup.prototype, \"arrowPadding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], SlPopup.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], SlPopup.prototype, \"flipFallbackPlacements\", 2);\n__decorateClass([\n  property({ attribute: \"flip-fallback-strategy\" })\n], SlPopup.prototype, \"flipFallbackStrategy\", 2);\n__decorateClass([\n  property({ type: Object })\n], SlPopup.prototype, \"flipBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"flip-padding\", type: Number })\n], SlPopup.prototype, \"flipPadding\", 2);\n__decorateClass([\n  property({ type: Boolean })\n], SlPopup.prototype, \"shift\", 2);\n__decorateClass([\n  property({ type: Object })\n], SlPopup.prototype, \"shiftBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"shift-padding\", type: Number })\n], SlPopup.prototype, \"shiftPadding\", 2);\n__decorateClass([\n  property({ attribute: \"auto-size\" })\n], SlPopup.prototype, \"autoSize\", 2);\n__decorateClass([\n  property()\n], SlPopup.prototype, \"sync\", 2);\n__decorateClass([\n  property({ type: Object })\n], SlPopup.prototype, \"autoSizeBoundary\", 2);\n__decorateClass([\n  property({ attribute: \"auto-size-padding\", type: Number })\n], SlPopup.prototype, \"autoSizePadding\", 2);\n__decorateClass([\n  property({ attribute: \"hover-bridge\", type: Boolean })\n], SlPopup.prototype, \"hoverBridge\", 2);\n\nexport {\n  SlPopup\n};\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;display:block;width:100%}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}small{font-size:80%}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}input::-moz-placeholder{opacity:1}input::placeholder{opacity:1}[hidden]{display:none}:host{--hzn-internal-color-text-neutral-inverse:var(--hzn-color-text-neutral-inverse,#fff);--hzn-internal-color-text-interactive:var(--hzn-color-text-interactive,#005ab8);--hzn-internal-color-tone-interactive-weak:var(--hzn-color-tone-interactive-weak,#c2e3fc);--hzn-internal-color-tone-neutral:var(--hzn-color-tone-neutral,#2a343d)}:host{display:contents;width:-moz-fit-content;width:fit-content}.tooltip{--tip-color:var(--hzn-internal-color-tone-neutral)}.tooltip::part(popup){z-index:100}.tooltip::part(arrow){background-color:var(--tip-color)}.tooltip::part(hover-bridge){z-index:99}.tooltip[data-current-placement^=top]::part(popup){transform-origin:bottom}.tooltip-body{background-color:var(--tip-color);border-radius:2px;color:var(--hzn-internal-color-text-neutral-inverse);display:block;font-family:Lato,Corbel,Lucida Grande,Lucida Sans Unicode,DejaVu Sans,Bitstream Vera Sans,Liberation Sans,Verdana,Verdana Ref,sans-serif;font-size:.875rem;font-weight:400;line-height:1.5;max-width:20rem;padding:.5rem;width:-moz-max-content;width:max-content}.tooltip-content{-webkit-box-orient:vertical;-webkit-line-clamp:3;cursor:text;display:-webkit-box;line-clamp:3;overflow:hidden;text-overflow:ellipsis}span.tooltip-trigger{background:none;border-radius:100%;color:var(--hzn-internal-color-text-interactive);display:flex;outline:none;padding:.25rem}span.tooltip-trigger:focus-within,span.tooltip-trigger:hover{background:var(--hzn-internal-color-tone-interactive-weak)}`;","import { animateTo, stopAnimations } from '@horizon/common/helpers';\nimport { HznIconInfoCircle } from '@horizon/icons/individual';\nimport { HznInline } from '@horizon/inline';\nimport { LitElement, html } from '@horizon/base';\nimport { property, query } from '@horizon/base/decorators';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport { SlPopup } from '@horizon/common/components';\nimport TooltipStyles from './tooltip.css.js';\n\n/**\n *\n * @tag hzn-tooltip\n * @tagname hzn-tooltip\n * @summary A tooltip is a messaging component that shows a small piece of extra,\n *          non-critical, contextual information on hover of an element.\n */\n\nexport class HznTooltip extends ScopedElementsMixin(LitElement) {\n\n  #hoverTimeout!: number;\n\n  /**\n   * @private\n   */\n  static styles = [TooltipStyles];\n\n  /**\n   * @private\n   */\n  static get scopedElements(): ScopedElementsMap {\n    return {\n      'hzn-icon-info-circle': HznIconInfoCircle,\n      'hzn-inline': HznInline,\n      'hzn-popup': SlPopup,\n    };\n  }\n\n  /**\n   * @private\n   */\n  @query('.tooltip-body') body!: HTMLElement;\n\n  /**\n   * @private\n   */\n  @query('.tooltip') popup!: SlPopup;\n\n  /**\n   * @private\n   */\n  @query('.tooltip-trigger') trigger!: HTMLSlotElement;\n\n  /**\n   * The tooltip content. Accepts only plain text.\n   */\n  @property({ type: String }) content = '';\n\n  /**\n   * When true, the tooltip will be hoisted to the body element.\n   * This can be used to ensure the tooltip will be displayed when contained\n   * by an ancestor with `overflow: auto | clip | hidden | scroll`.\n   */\n  @property({ type: Boolean }) hoist = false;\n\n  /**\n   * The icon to display as the tooltip trigger.\n   */\n  @property({ type: String }) icon = 'outline';\n\n  disconnectedCallback() {\n    super.disconnectedCallback();\n\n    if (this.icon === 'none') {\n      this.removeEventListener('blur', this.#handleBlur, true);\n      this.removeEventListener('focus', this.#handleFocus, true);\n      this.removeEventListener('mouseleave', this.#handleMouseOut);\n      this.removeEventListener('mouseenter', this.#handleMouseOver);\n    } else {\n      this.trigger.removeEventListener('blur', this.#handleBlur, true);\n      this.trigger.removeEventListener('focus', this.#handleFocus, true);\n      this.removeEventListener('mouseleave', this.#handleMouseOut);\n      this.trigger.removeEventListener('mouseenter', this.#handleMouseOver);\n    }\n\n    document.removeEventListener('keydown', this.#handleDocumentKeyDown);\n  }\n\n  firstUpdated(){\n    if (this.icon === 'none') {\n      this.addEventListener('blur', this.#handleBlur, true);\n      this.addEventListener('focus', this.#handleFocus, true);\n      this.addEventListener('mouseleave', this.#handleMouseOut);\n      this.addEventListener('mouseenter', this.#handleMouseOver);\n    } else {\n      this.trigger.addEventListener('blur', this.#handleBlur);\n      this.trigger.addEventListener('focus', this.#handleFocus, true);\n      this.addEventListener('mouseleave', this.#handleMouseOut);\n      this.trigger.addEventListener('mouseenter', this.#handleMouseOver);\n    }\n  }\n\n  /**\n   * @private\n   */\n  #handleBlur = () => {\n    clearTimeout(this.#hoverTimeout);\n    this.#hoverTimeout = window.setTimeout(() => this.#hide(), 50);\n  };\n\n  /**\n   * @private\n   */\n  #handleFocus = () => {\n    clearTimeout(this.#hoverTimeout);\n    this.#hoverTimeout = window.setTimeout(() => this.#show(), 50);\n  };\n\n  /**\n   * @private\n   */\n  #handleDocumentKeyDown = (event: KeyboardEvent) => {\n    if (event.key === 'Escape') {\n      event.stopPropagation();\n      this.#hide();\n    }\n  };\n\n  /**\n   * @private\n   */\n  #handleMouseOver = (e: MouseEvent) => {\n    if ((e.target as HTMLInputElement).disabled) return;\n\n    clearTimeout(this.#hoverTimeout);\n    this.#hoverTimeout = window.setTimeout(() => this.#show(), 50);\n  };\n\n  /**\n   * @private\n   */\n  #handleMouseOut = () => {\n    clearTimeout(this.#hoverTimeout);\n    this.#hoverTimeout = window.setTimeout(() => this.#hide(), 50);\n  };\n\n  /**\n   * @private\n   */\n  #handleDocumentClick = (event: MouseEvent) => {\n    // only close the toggletip if the click came from outside the toggletip\n    // interactive elements inside toggletips will need to manually call\n    // hide() to close the toggletip if needed\n    if(!event.composedPath().includes(this)) {\n      this.#hide();\n    }\n  };\n\n  /**\n   * @private\n   */\n  async #show() {\n\n    if (this.content.trim() === '') return;\n\n    document.addEventListener('keydown', this.#handleDocumentKeyDown);\n\n    await stopAnimations(this.body);\n\n    this.body.hidden = false;\n    this.popup.active = true;\n\n    await animateTo(this.popup.popup, [\n      { opacity: 0, scale: 0.8 },\n      { opacity: 1, scale: 1 }\n    ], { duration: 350, easing: 'ease' });\n\n    this.body.setAttribute('aria-live', 'polite');\n\n    this.popup.reposition();\n\n    // add the document click listener after the popup has been shown\n    // so that this listener doesnt happen so fast that the original click prevents\n    // the first show\n    document.addEventListener('click', this.#handleDocumentClick);\n\n  }\n\n  /**\n   * @private\n   */\n  async #hide() {\n\n    document.removeEventListener('keydown', this.#handleDocumentKeyDown);\n    document.removeEventListener('click', this.#handleDocumentClick);\n\n    await stopAnimations(this.body);\n\n    await animateTo(this.popup.popup, [\n      { opacity: 1, scale: 1 },\n      { opacity: 0, scale: 0.8 }\n    ], { duration: 150, easing: 'ease' });\n\n    this.body.setAttribute('aria-live', 'off');\n\n    this.popup.active = false;\n    this.body.hidden = true;\n  }\n\n  /**\n   * @private\n   */\n  #renderTooltipBody() {\n    return html`<div class=\"tooltip-body\" role=\"tooltip\">\n      <div class=\"tooltip-content\">${this.content}</div>\n    </div>`;\n  }\n\n  /**\n   * @private\n   */\n  #renderWithIcon() {\n    const iconVariant = this.icon === 'fill' || this.icon === 'filled' ? 'filled' : 'stroked';\n\n    return html`<hzn-inline align-y=\"center\">\n      <slot></slot>\n      <hzn-popup\n        arrow\n        class=\"tooltip\"\n        distance=8\n        flip\n        hover-bridge\n        placement=\"top\"\n        shift\n        strategy=\"${this.hoist ? 'fixed' : 'absolute'}\"\n      >\n        <span slot=\"anchor\" aria-describedby=\"tooltip\" class=\"tooltip-trigger\" tabindex=\"0\">\n          <hzn-icon-info-circle variant=\"${iconVariant}\"></hzn-icon-info-circle>\n        </span>\n        ${this.#renderTooltipBody()}\n      </hzn-popup>\n    </hzn-inline>`\n  }\n\n  /**\n   * @private\n   */\n  #renderWithoutIcon() {\n    return html`\n      <hzn-popup\n        arrow\n        class=\"tooltip\"\n        distance=8\n        flip\n        hover-bridge\n        placement=\"top\"\n        shift\n        strategy=\"${this.hoist ? 'fixed' : 'absolute'}\"\n      >\n        <slot slot=\"anchor\" aria-describedby=\"tooltip\" class=\"tooltip-trigger\"></slot>\n        ${this.#renderTooltipBody()}\n      </hzn-popup>`\n  }\n\n  render() {\n    return html`${this.icon === 'none'\n      ? this.#renderWithoutIcon()\n      : this.#renderWithIcon()\n      }`;\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 {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// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { classMap } from '@horizon/base/directives';\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-copy\n * @tagname hzn-icon-copy\n * @summary An individual icon for Horizon\n */\nexport class HznIconCopy extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"icon\"\n      aria-hidden=\"true\"\n      class=${classMap({\n        icon: true,\n        'is-variant-stroked': this.variant !== 'filled', // default value should be any value other than `filled`\n        'is-variant-filled': this.variant === 'filled',\n      })}><svg viewBox=\"0 0 24 24\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 2.79001H19C20.49 2.79001 21.71 4.01001 21.71 5.50001V13.5C21.71 14.99 20.49 16.21 19 16.21H18C17.61 16.21 17.29 15.89 17.29 15.5C17.29 15.11 17.61 14.79 18 14.79H19C19.71 14.79 20.29 14.21 20.29 13.5V5.50001C20.29 4.79001 19.71 4.21001 19 4.21001H11C10.29 4.21001 9.71004 4.79001 9.71004 5.50001C9.71004 5.89001 9.39004 6.21001 9.00004 6.21001C8.61004 6.21001 8.29004 5.89001 8.29004 5.50001C8.29004 4.01001 9.51004 2.79001 11 2.79001ZM2.29004 10C2.29004 8.51001 3.51004 7.29001 5.00004 7.29001H13C14.49 7.29001 15.71 8.51001 15.71 10V18C15.71 19.49 14.49 20.71 13 20.71H5.00004C3.51004 20.71 2.29004 19.49 2.29004 18V10ZM13 19.29C13.71 19.29 14.29 18.71 14.29 18V10C14.29 9.29001 13.71 8.71001 13 8.71001H5.00004C4.29004 8.71001 3.71004 9.29001 3.71004 10V18C3.71004 18.71 4.29004 19.29 5.00004 19.29H13Z\" fill=\"currentColor\" class=\"stroked\"></path><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 2.79001H19C20.49 2.79001 21.71 4.01001 21.71 5.50001V13.5C21.71 14.99 20.49 16.21 19 16.21H17.1V10C17.1 7.74001 15.26 5.90001 13 5.90001H8.29004V5.50001C8.29004 4.01001 9.51004 2.79001 11 2.79001ZM5.00004 7.29001H13C14.4967 7.29001 15.71 8.50332 15.71 10V18C15.71 19.4967 14.4967 20.71 13 20.71H5.00004C3.50335 20.71 2.29004 19.4967 2.29004 18V10C2.29004 8.50332 3.50335 7.29001 5.00004 7.29001Z\" fill=\"currentColor\" class=\"filled\"></path></svg></div>`;\n  }\n}\n","import { css } from '@horizon/base';\nexport default css`:host{box-sizing:border-box;width:100%}*,:after,:before{box-sizing:border-box}a{color:inherit;text-decoration:inherit}button,input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button{text-transform:none}[type=button],button{-webkit-appearance:button;background-color:transparent;background-image:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}input::-moz-placeholder{opacity:1}input::placeholder{opacity:1}button{cursor:pointer}[hidden]{display:none}:host{--hzn-internal-color-text-neutral:var(--hzn-color-text-neutral,#2a343d);--hzn-internal-color-text-interactive:var(--hzn-color-text-interactive,#005ab8);--hzn-internal-color-text-disabled:var(--hzn-color-text-disabled,#6d747a);--hzn-internal-color-tone-interactive:var(--hzn-color-tone-interactive,#005ab8);--hzn-internal-color-tone-interactive-weak:var(--hzn-color-tone-interactive-weak,#c2e3fc);--hzn-internal-color-tone-disabled-weak:var(--hzn-color-tone-disabled-weak,#dedfe0);--hzn-internal-color-tone-info-faint:var(--hzn-color-tone-info-faint,#f0f7fc)}:host{display:block;width:-moz-max-content;width:max-content}.copy-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;aspect-ratio:1;border:1px solid transparent;border-radius:4px;color:var(--hzn-internal-color-text-neutral);cursor:pointer;display:flex;height:36px;justify-content:center;line-height:0;margin:0;outline:none;overflow:clip;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.copy-button:active,.copy-button:focus-visible{outline:2px solid var(--hzn-internal-color-tone-interactive);outline-offset:2px}.copy-button:active,.copy-button:focus-visible,.copy-button:hover{background-color:var(--hzn-internal-color-tone-interactive-weak)}.copy-button:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.copy-button:focus-visible{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.is-tone-interactive:not(.is-disabled){color:var(--hzn-internal-color-text-interactive)}.is-tone-interactive:not(.is-disabled):focus-visible,.is-tone-interactive:not(.is-disabled):hover{background-color:var(--hzn-internal-color-tone-info-faint);background-image:none}.is-tone-interactive:not(.is-disabled):active{background-color:var(--hzn-internal-color-tone-interactive-weak);background-image:none}.is-tone-neutral:not(.is-disabled){color:var(--hzn-internal-color-text-neutral)}.is-disabled{background-color:var(--hzn-internal-color-tone-disabled-weak);border:initial;color:var(--hzn-internal-color-text-disabled)}`;","import { HznTooltip } from '@horizon/tooltip';\nimport { HznIconCopy } from '@horizon/icons/individual';\nimport { LitElement, html, ReactiveElement } from '@horizon/base';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';\nimport { property, query, state } from '@horizon/base/decorators';\nimport { HznCopyButtonTone } from '../types.js';\nimport { classMap } from '@horizon/base/directives.js';\nimport CopyButtonStyles from './copy-button.css.js';\n\n/**\n *\n * @tag hzn-copy-button\n * @tagname hzn-copy-button\n * @summary A button that copies text to the clipboard when clicked. Conveys status through a tooltip.\n *\n * @dependency hzn-tooltip\n */\n\nexport class HznCopyButton extends (ScopedElementsMixin(LitElement) as typeof ReactiveElement) {\n  static styles = [CopyButtonStyles];\n\n  get #copyLabel () {\n    return this.copyLabel || 'Copy';\n  }\n\n  /**\n   * @private\n   */\n  static get scopedElements(): ScopedElementsMap {\n    return {\n      'hzn-tooltip': HznTooltip,\n      'hzn-icon-copy': HznIconCopy\n    };\n  }\n\n  /**\n   * @private\n   */\n  @state() isCopying = false;\n\n  /**\n   * @private\n   */\n  @state() status: 'rest' | 'success' | 'error' = 'rest';\n\n  /**\n   * The internal native button\n   */\n  @query('.copy-button') innerButton!: HTMLButtonElement;\n\n  /**\n   * @private\n   * The internal tooltip\n   */\n  @query('hzn-tooltip') tooltip!: HznTooltip;\n\n  /**\n   * A custom label to display in the tooltip.\n   * Default is 'Copy'.\n   */\n  @property({ type: String, attribute: 'copy-label', reflect: false }) copyLabel = '';\n\n  /** Disables the copy button. */\n  @property({ type: Boolean }) disabled = false;\n\n  /**\n   * When true, the tooltip will be hoisted to the body element.\n   * This can be used to ensure the tooltip will be displayed when contained\n   * by an ancestor with `overflow: auto | clip | hidden | scroll`.\n   */\n  @property({ type: Boolean }) hoist = false;\n\n  /** The text value to copy. */\n  @property({ type: String }) value = '';\n\n  /**\n    * An id that references an element in the same document from which data will be copied.\n    * If both this and `value` are present, the value in `from` will take precedence.\n    *\n    * By default, the target element's `textContent` will be copied.\n    * To copy an attribute, append the attribute name wrapped in square brackets, e.g. `from=\"el[value]\"`.\n    * To copy a property, append a dot and the property name, e.g. `from=\"el.value\"`.\n    */\n  @property() from = '';\n\n  /**\n   * Sets the tone for the button. Allowed values are `neutral | interactive`. Default is `neutral`.\n   * @playroomValues {'neutral' | 'interactive'}\n   */\n  @property({ type: String }) tone: HznCopyButtonTone = 'neutral';\n\n  /**\n   * @private\n   */\n  showStatus(status: 'success' | 'error') {\n    const successLabel = 'Copied';\n    const errorLabel = 'Error';\n\n    this.tooltip.content = status === 'success' ? successLabel : errorLabel;\n\n    this.status = status;\n\n    // After a brief delay, restore the original state\n    setTimeout(() => {\n      this.status = 'rest';\n      this.tooltip.content = this.#copyLabel;\n      this.isCopying = false;\n    }, 1350);\n  }\n\n  /**\n   * @private\n   */\n  async #handleCopy() {\n    if (this.disabled || this.isCopying) {\n      return;\n    }\n    this.isCopying = true;\n\n    // Copy the value by default\n    let valueToCopy = this.value;\n\n    // If an element is specified, copy from that instead\n    if (this.from) {\n      const root = this.getRootNode() as ShadowRoot | Document;\n\n      // Simple way to parse ids, properties, and attributes\n      const isProperty = this.from.includes('.');\n      const isAttribute = this.from.includes('[') && this.from.includes(']');\n      let id = this.from;\n      let field = '';\n\n      if (isProperty) {\n        // Split at the dot\n        [id, field] = this.from.trim().split('.');\n      } else if (isAttribute) {\n        // Trim the ] and split at the [\n        [id, field] = this.from.trim().replace(/\\]$/, '').split('[');\n      }\n\n      // Locate the target element by id\n      const target = 'getElementById' in root ? root.getElementById(id) : null;\n\n      if (target) {\n        if (isAttribute) {\n          valueToCopy = target.getAttribute(field) || '';\n        } else if (isProperty) {\n          // @ts-expect-error\n          valueToCopy = target[field] || '';\n        } else {\n          valueToCopy = target.textContent || '';\n        }\n      } else {\n        // No target\n        this.showStatus('error');\n      }\n    }\n\n    // No value\n    if (!valueToCopy) {\n      this.showStatus('error');\n    } else {\n      try {\n        await navigator.clipboard.writeText(valueToCopy);\n        this.showStatus('success');\n      } catch (error) {\n        // Rejected by browser\n        this.showStatus('error');\n      }\n    }\n  }\n\n  render() {\n    // using `inert` to prevent mouseover tooltip behavior when copy-button is disabled.\n    // TODO: implement disabled in tooltip and update here.\n    return html`\n      <hzn-tooltip\n        ?inert=${this.disabled}\n        ?hoist=${this.hoist}\n        content=${this.#copyLabel}\n        icon=\"none\"\n        >\n        <button\n          @click=${this.#handleCopy}\n          aria-label=${this.#copyLabel}\n          ?disabled=${this.disabled}\n          class=${classMap({\n            'copy-button': true,\n            'is-disabled': Boolean(this.disabled),\n            'is-tone-neutral': this.tone !== 'interactive',\n            'is-tone-interactive': this.tone === 'interactive',\n          })}\n        >\n          <hzn-icon-copy></hzn-icon-copy>\n        </button>\n      </hzn-tooltip>\n    `;\n  }\n}\n","import { HznCopyButton } from './copy-button/copy-button.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport '@horizon/style/fonts/inject.js';\nimport './types.js';\ndefineHorizonElement('hzn-copy-button', HznCopyButton);\n","// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { HznIconArrowRight } from './arrow-right.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-icon-arrow-right', HznIconArrowRight);\n","\n// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-arrow-right\n * @tagname hzn-icon-arrow-right\n * @summary An individual icon for Horizon\n */\nexport class HznIconArrowRight extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"hzn-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.6209 11.8476L13.1875 7.41421L14.6018 6L20.7422 12.1405C21.1327 12.531 21.1327 13.1642 20.7422 13.5547L14.6018 19.6952L13.1875 18.2809L17.6209 13.8476H1V11.8476H17.6209Z\" fill=\"currentColor\"></path>\n</svg></div>`;\n  }\n}\n","// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { HznIconChat } from './chat.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-icon-chat', HznIconChat);\n","\n// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-chat\n * @tagname hzn-icon-chat\n * @summary An individual icon for Horizon\n */\nexport class HznIconChat extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"hzn-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V15C21 16.1046 20.1046 17 19 17H12.3508L9.24939 19.4811C7.93986 20.5287 6 19.5964 6 17.9194V17H5C3.89543 17 3 16.1046 3 15V5ZM19 5L5 5V15H6C7.10457 15 8 15.8954 8 17V17.9194L11.1014 15.4383C11.456 15.1546 11.8966 15 12.3508 15H19V5Z\" fill=\"currentColor\"></path>\n</svg></div>`;\n  }\n}\n","// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { HznIconLocation } from './location.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-icon-location', HznIconLocation);\n","\n// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-location\n * @tagname hzn-icon-location\n * @summary An individual icon for Horizon\n */\nexport class HznIconLocation extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"hzn-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 9.26114C6 6.38925 8.42708 3.99829 11.5 3.99829C14.5729 3.99829 17 6.38925 17 9.26114C17 10.7012 16.2125 12.6547 14.9647 14.6823C13.9431 16.3425 12.6805 17.9443 11.5 19.1912C10.3195 17.9443 9.05689 16.3425 8.03525 14.6823C6.78751 12.6547 6 10.7012 6 9.26114ZM11.5 1.99829C7.39322 1.99829 4 5.21527 4 9.26114C4 11.2799 5.04061 13.6321 6.33193 15.7305C7.64565 17.8653 9.32368 19.9043 10.8062 21.3327L11.5 22.0012L12.1938 21.3327C13.6763 19.9043 15.3544 17.8653 16.6681 15.7305C17.9594 13.6321 19 11.2799 19 9.26114C19 5.21527 15.6068 1.99829 11.5 1.99829ZM11.5342 11.6278C12.8874 11.6278 13.9845 10.5741 13.9845 9.27433C13.9845 7.97453 12.8874 6.92084 11.5342 6.92084C10.1809 6.92084 9.08386 7.97453 9.08386 9.27433C9.08386 10.5741 10.1809 11.6278 11.5342 11.6278Z\" fill=\"currentColor\"></path>\n</svg></div>`;\n  }\n}\n","// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { HznIconCaretRight } from './caret-right.js';\nimport { defineHorizonElement } from '@horizon/common/helpers';\nimport './types.js';\ndefineHorizonElement('hzn-icon-caret-right', HznIconCaretRight);\n","\n// GENERATED FILE, DO NOT MANUALLY EDIT\n\nimport { TemplateResult, html } from '@horizon/base';\nimport { HznIconBase } from '../../icon/icon-base.js';\nimport './types.js';\n\n/**\n *\n * @tag hzn-icon-caret-right\n * @tagname hzn-icon-caret-right\n * @summary An individual icon for Horizon\n */\nexport class HznIconCaretRight extends HznIconBase {\n\n  render(): TemplateResult {\n    return html`<div class=\"hzn-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 25 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M10.7933 17.6569L16.6217 11.8285L10.7933 6.00006\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\"></path>\n</svg></div>`;\n  }\n}\n"],"names":["document","fonts","ready","then","async","carMaxSharpSansDispBold","FontFace","style","display","weight","load","add","lato","latoBold","firaCode","firaCodeBold","h","b","c","length","done","value","l","Symbol","iterator","call","next","m","Array","a","push","t","n","Object","create","prototype","q","globalThis","window","self","global","Math","Error","p","r","Reflect","construct","d","e","setPrototypeOf","Function","apply","u","w","__proto__","TypeError","x","ShadowRoot","createElement","L","y","HTMLElement","A","customElements","define","B","get","C","D","WeakMap","E","F","G","CustomElementRegistry","this","Map","o","i","toLowerCase","j","DOMException","attributeChangedCallback","Set","observedAttributes","H","g","connectedCallback","disconnectedCallback","adoptedCallback","formAssociated","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback","set","I","s","delete","J","resolve","upgrade","K","arguments","pop","whenDefined","Promise","promise","constructor","getRootNode","defineProperty","configurable","enumerable","size","setAttribute","f","k","has","z","getAttribute","removeAttribute","toggleAttribute","M","getPrototypeOf","forEach","hasAttribute","isConnected","N","Element","attachShadow","O","P","getOwnPropertyDescriptor","assign","writable","ElementInternals","setFormValue","Q","R","attachInternals","concat","RadioNodeList","S","T","U","defineProperties","V","find","checked","HTMLFormControlsCollection","namedItem","W","HTMLFormElement","ShadyCSS","nativeShadow","Document","CSSStyleSheet","_$cssResult$","cssText","styleSheet","replaceSync","toString","_len","_key","reduce","cssRules","trustedTypes","emptyScript","reactiveElementPolyfillSupport","toAttribute","Boolean","JSON","stringify","fromAttribute","Number","parse","notEqual","attribute","type","String","converter","reflect","hasChanged","super","_$Ei","isUpdatePending","hasUpdated","_$El","_$Eu","addInitializer","finalize","elementProperties","_$Ep","_$Ev","createProperty","undefined","state","noAccessor","hasOwnProperty","getPropertyDescriptor","requestUpdate","getPropertyOptions","properties","getOwnPropertyNames","getOwnPropertySymbols","elementStyles","finalizeStyles","styles","isArray","flat","reverse","unshift","_$E_","enableUpdating","_$AL","_$Eg","addController","_$ES","renderRoot","hostConnected","removeController","splice","indexOf","createRenderRoot","shadowRoot","shadowRootOptions","adoptStyles","adoptedStyleSheets","map","litNonce","textContent","appendChild","hostDisconnected","_$AK","_$EO","_$EC","_$Ej","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$Ek","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","createPolicy","createHTML","random","slice","createMarker","createComment","v","_","RegExp","$","_$litType$","strings","values","for","createTreeWalker","getTemplateHtml","lastIndex","exec","test","startsWith","_ref","parts","el","currentNode","content","firstChild","remove","append","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","split","index","name","ctor","tagName","data","innerHTML","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","nextSibling","Z","_$AI","_$AH","_$AA","_$AB","options","_$Cp","startNode","endNode","_$AR","insertBefore","createTextNode","_$AC","_$AP","setConnected","element","fill","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","litHtmlPolyfillSupport","litHtmlVersions","renderOptions","_$Do","renderBefore","render","_$litPart$","finalized","_$litElement$","litElementHydrateSupport","LitElement","litElementPolyfillSupport","litElementVersions","HasSlotController","slotNames","handleSlotChange","bind","hasDefaultSlot","from","some","node","TEXT_NODE","trim","ELEMENT_NODE","hasNamedSlot","querySelector","slotName","event","slot","target","includes","_$litStatic$","_len2","_key2","join","raw","standardProperty","kind","descriptor","finisher","key","placement","originalKey","initializer","legacyProperty","HTMLSlotElement","assignedElements","_$Ct","_$Ci","PolyfilledSubmitEvent","SubmitEvent","Event","_emit","_internals","_handleClick","handleClick_fn","_renderButtonContents","renderButtonContents_fn","button_css_default","css","loadingSpinner","svg","HznButton","__privateAdd","eventOptions","callback","CustomEvent","bubbles","cancelable","composed","detail","dispatchEvent","defaultPrevented","hasSlotController","variant","tone","compact","disabled","loading","fullWidth","__privateGet","click","innerButton","focus","blur","html","unsafeStatic","href","ifDefined","__privateMethod","title","ariaLabel","download","rel","live","WeakSet","$event","preventDefault","stopImmediatePropagation","emitClick","form","reset","noValidate","reportValidity","submitEvent","submit","nothing","ButtonStyles","__decorateClass","query","property","defineHorizonElement","klass","card_css_default","AllowedCardElements","HznCard","borderRadius","elevation","padding","as","cardStyles","heading_css_default","headingTags","HznHeading","align","lineHeight","HeadingStyles","keys","filter","it","nt","classList","text_css_default","InlineElements","BlockElements","_isBlockStyle","isBlockStyle_get","HznText","inline","truncate","classes","isValidAs","classMap","TextStyles","badge_css_default","HznBadge","label","intense","BadgeStyles","inline_css_default","inlineTags","_computeSpaceClass","computeSpaceClass_fn","HznInline","space","alignY","alignX","wrap","spaceSplit","InlineStyles","animateTo","keyframes","duration","Infinity","animation","animate","matchMedia","matches","stopAnimations","all","getAnimations","handleAnimationEvent","requestAnimationFrame","cancel","HznLoading","toFixed","replaceWith","_$Cv","st","is","JSCompiler_renameProperty","metadata","litPropertyMetadata","_$Eh","_$Em","_$ET","wrapped","_$EU","init","desc","decorate","icon_css_default","HznIconBase","iconStyles","HznIconInfoCircle","icon","_computeSpacing","computeSpacing_fn","column","row","collapseBelow","spacing","popup_styles_default","connectedElements","translations","fallback","documentDirection","documentLanguage","isClient","MutationObserver","documentElement","documentElementObserver","dir","lang","navigator","language","observe","attributes","attributeFilter","registerTranslation","translation","code","$code","LocalizeController","getTranslationData","_a","_b","locale","Intl","Locale","replace","region","primary","secondary","exists","includeFallback","term","console","error","args","date","dateToFormat","Date","DateTimeFormat","format","number","numberToFormat","isNaN","NumberFormat","relativeTime","unit","RelativeTimeFormat","$name","$dir","carousel","clearEntry","close","copied","copy","currentValue","goToSlide","slide","count","hidePassword","nextSlide","numOptionsSelected","num","previousSlide","progress","resize","scrollToEnd","scrollToStart","selectAColorFromTheScreen","showPassword","slideNum","toggleColorFormat","en_default","DefaultLocalizationController","component_styles_default","__defProp","__defProps","__getOwnPropDesc","__getOwnPropDescs","getOwnPropertyDescriptors","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","propertyIsEnumerable","__typeError","msg","__defNormalProp","obj","__spreadValues","prop","__spreadProps","decorators","decorator","result","__accessCheck","member","_hasRecordedInitialProperties","ShoelaceElement","initialReflectedProperties","entries","dependencies","component","emit","elementConstructor","currentlyRegisteredConstructor","_err","newVersion","existingVersion","version","warn","oldValue","newValue","__privateSet","changedProperties","getComputedStyle","position","assignedSlot","SlPopup","localize","active","strategy","distance","skidding","arrow","arrowPlacement","arrowPadding","flip","flipFallbackPlacements","flipFallbackStrategy","flipPadding","shift","shiftPadding","autoSizePadding","hoverBridge","updateHoverBridge","anchorEl","anchorRect","getBoundingClientRect","popupRect","popup","topLeftX","topLeftY","topRightX","topRightY","bottomLeftX","bottomLeftY","bottomRightX","bottomRightY","top","left","bottom","right","setProperty","start","stop","changedProps","handleAnchorChange","reposition","anchor","root","getElementById","contextElement","flatten","cleanup","autoUpdate","removeProperty","middleware","offset","mainAxis","crossAxis","sync","rects","syncWidth","syncHeight","width","reference","height","boundary","flipBoundary","fallbackPlacements","fallbackStrategy","shiftBoundary","autoSize","autoSizeBoundary","_ref2","availableWidth","availableHeight","arrowEl","getOffsetParent","platform","offsetParent","computePosition","_ref3","middlewareData","isRtl","staticSide","arrowX","arrowY","_hoverTimeout","_handleBlur","_handleFocus","_handleDocumentKeyDown","_handleMouseOver","_handleMouseOut","_handleDocumentClick","_show","show_fn","_hide","hide_fn","_renderTooltipBody","renderTooltipBody_fn","_renderWithIcon","renderWithIcon_fn","_renderWithoutIcon","renderWithoutIcon_fn","tooltip_css_default","HznTooltip","ScopedElementsMixin","hoist","clearTimeout","setTimeout","stopPropagation","composedPath","scopedElements","trigger","body","hidden","opacity","scale","easing","iconVariant","TooltipStyles","HznIconCopy","_copyLabel","copyLabel_get","_handleCopy","handleCopy_fn","copy_button_css_default","HznCopyButton","isCopying","status","copyLabel","showStatus","tooltip","valueToCopy","isProperty","isAttribute","id","field","clipboard","writeText","CopyButtonStyles"],"sourceRoot":""}