@fluid-topics/ft-filter 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,48 +12,48 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?u(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(mn){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?u(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(mn){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
20
+ */const o=globalThis,i=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;const a=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),s=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return a(e)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:f,getOwnPropertySymbols:h,getPrototypeOf:p}=Object,d=globalThis,u=d.trustedTypes,y=u?u.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},x=(t,e)=>!s(t,e),v={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let O=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...h(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??x)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[b("elementProperties")]=new Map,O[b("finalized")]=new Map,g?.({ReactiveElement:O}),(d.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:l,defineProperty:c,getOwnPropertyDescriptor:f,getOwnPropertyNames:h,getOwnPropertySymbols:p,getPrototypeOf:d}=Object,u=globalThis,y=u.trustedTypes,g=y?y.emptyScript:"",b=u.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!l(t,e),O={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=new WeakMap;let S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=f(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...h(t),...p(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:x).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[m("elementProperties")]=new Map,S[m("finalized")]=new Map,b?.({ReactiveElement:S}),(u.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const S={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},w=(t=S,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function N(t){return(e,o)=>"object"==typeof o?w(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
31
+ const w={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:v},N=(t=w,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function $(t){return(e,o)=>"object"==typeof o?N(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function $(t){return N({...t,state:!0,attribute:!1})}
36
+ */}function C(t){return $({...t,state:!0,attribute:!1})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */function C(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
41
+ */function k(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */const k=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
46
+ */const R=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */;function R(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return k(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return k(0,0,{get(){return n(this)}})}}
51
+ */;function E(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return R(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return R(0,0,{get(){return n(this)}})}}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
- */let E;class U{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function I(t,e){return t.flatMap((t=>[t,...I(e(t),e)]))}function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!L(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!L(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!L(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function z(t,e){const o=()=>JSON.parse(JSON.stringify(t));return N({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
56
+ */let U;function I(t,e){return t.flatMap((t=>[t,...I(e(t),e)]))}function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!L(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!L(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!L(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function z(t,e){const o=()=>JSON.parse(JSON.stringify(t));return $({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
57
57
  /**
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
@@ -86,7 +86,7 @@ let we=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
86
86
  * @license
87
87
  * Copyright 2019 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */class Fe extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{ze?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Be=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ze=Symbol("constructorPrototype"),De=Symbol("constructorName"),Ae=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[Ke]=new U(5),this[De]=this.constructor.name,this[Ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[De]&&Object.setPrototypeOf(this,this[Ze])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ae].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ke=Ae,Be([N()],Me.prototype,"exportpartsPrefix",void 0),Be([z([])],Me.prototype,"exportpartsPrefixes",void 0),Be([N()],Me.prototype,"customStylesheet",void 0);const Pe=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");$t`
89
+ */class Fe extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{ze?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Be=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ze=Symbol("constructorPrototype"),De=Symbol("constructorName"),Ae=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[Ke]=new e(5),this[De]=this.constructor.name,this[Ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[De]&&Object.setPrototypeOf(this,this[Ze])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ae].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ke=Ae,Be([$()],Me.prototype,"exportpartsPrefix",void 0),Be([z([])],Me.prototype,"exportpartsPrefixes",void 0),Be([$()],Me.prototype,"customStylesheet",void 0);const Pe=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");$t`
90
90
  .highlight-html-match {
91
91
  background: ${Pe};
92
92
  }
@@ -238,7 +238,7 @@ let we=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
238
238
  </${ao(this.element)}>
239
239
  `:lo`
240
240
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
241
- `}}wi.styles=[fi,hi,pi,di,ui,yi,gi,bi,mi,xi,vi,...Oi],Si([N()],wi.prototype,"element",void 0),Si([N()],wi.prototype,"variant",void 0),W("ft-typography")(wi);
241
+ `}}wi.styles=[fi,hi,pi,di,ui,yi,gi,bi,mi,xi,vi,...Oi],Si([$()],wi.prototype,"element",void 0),Si([$()],wi.prototype,"variant",void 0),W("ft-typography")(wi);
242
242
  /**
243
243
  * @license
244
244
  * Copyright 2017 Google LLC
@@ -620,7 +620,7 @@ const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{constructo
620
620
  * @license
621
621
  * Copyright 2017 Google LLC
622
622
  * SPDX-License-Identifier: BSD-3-Clause
623
- */var nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ar extends Me{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new U(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new U(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
623
+ */var nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ar extends Me{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
624
624
  <style>
625
625
  .ft-ripple .ft-ripple--effect {
626
626
  left: ${this.originX}px;
@@ -631,7 +631,7 @@ const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{constructo
631
631
  <div class="ft-ripple--background"></div>
632
632
  <div class="ft-ripple--effect"></div>
633
633
  </div>
634
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ar.elementDefinitions={},ar.styles=ji,nr([N({type:Boolean})],ar.prototype,"primary",void 0),nr([N({type:Boolean})],ar.prototype,"secondary",void 0),nr([N({type:Boolean})],ar.prototype,"unbounded",void 0),nr([N({type:Boolean})],ar.prototype,"activated",void 0),nr([N({type:Boolean})],ar.prototype,"selected",void 0),nr([N({type:Boolean})],ar.prototype,"disabled",void 0),nr([$()],ar.prototype,"hovered",void 0),nr([$()],ar.prototype,"focused",void 0),nr([$()],ar.prototype,"pressed",void 0),nr([$()],ar.prototype,"rippling",void 0),nr([$()],ar.prototype,"originX",void 0),nr([$()],ar.prototype,"originY",void 0),nr([R(".ft-ripple")],ar.prototype,"ripple",void 0),nr([R(".ft-ripple--effect")],ar.prototype,"rippleEffect",void 0),W("ft-ripple")(ar);const sr=Ce.create("--ft-tooltip-distance","","SIZE","4px"),lr=Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),cr=Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),fr=Ce.create("--ft-tooltip-z-index","","NUMBER","100"),hr=Ce.external(Le.borderRadiusS,"Design system"),pr=Ce.create("--ft-tooltip-max-width","","SIZE","150px"),dr=$t`
634
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ar.elementDefinitions={},ar.styles=ji,nr([$({type:Boolean})],ar.prototype,"primary",void 0),nr([$({type:Boolean})],ar.prototype,"secondary",void 0),nr([$({type:Boolean})],ar.prototype,"unbounded",void 0),nr([$({type:Boolean})],ar.prototype,"activated",void 0),nr([$({type:Boolean})],ar.prototype,"selected",void 0),nr([$({type:Boolean})],ar.prototype,"disabled",void 0),nr([C()],ar.prototype,"hovered",void 0),nr([C()],ar.prototype,"focused",void 0),nr([C()],ar.prototype,"pressed",void 0),nr([C()],ar.prototype,"rippling",void 0),nr([C()],ar.prototype,"originX",void 0),nr([C()],ar.prototype,"originY",void 0),nr([E(".ft-ripple")],ar.prototype,"ripple",void 0),nr([E(".ft-ripple--effect")],ar.prototype,"rippleEffect",void 0),W("ft-ripple")(ar);const sr=Ce.create("--ft-tooltip-distance","","SIZE","4px"),lr=Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),cr=Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),fr=Ce.create("--ft-tooltip-z-index","","NUMBER","100"),hr=Ce.external(Le.borderRadiusS,"Design system"),pr=Ce.create("--ft-tooltip-max-width","","SIZE","150px"),dr=$t`
635
635
  .ft-tooltip--container {
636
636
  display: block;
637
637
  }
@@ -660,7 +660,7 @@ const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{constructo
660
660
  position: relative;
661
661
  word-break: break-word;
662
662
  }
663
- `,ur=["start","end"],yr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ur[0],e+"-"+ur[1])),[]),gr=Math.min,br=Math.max,mr=Math.round,xr=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function Sr(t,e,o){return br(t,gr(e,o))}function wr(t,e){return"function"==typeof t?t(e):t}function Nr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Cr(t){return"x"===t?"y":"x"}function kr(t){return"y"===t?"height":"width"}function Rr(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Er(t){return Cr(Rr(t))}function Ur(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Ir(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Lr(t,e,o){let{reference:i,floating:r}=t;const n=Rr(e),a=Er(e),s=kr(a),l=Nr(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:h};break;case"left":d={x:i.x-r.width,y:h};break;default:d={x:i.x,y:i.y}}switch($r(e)){case"start":d[a]-=p*(o&&c?-1:1);break;case"end":d[a]+=p*(o&&c?-1:1)}return d}async function Wr(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=wr(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[p?"floating"===h?"reference":"floating":h],g=Ir(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=Ir(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function zr(t,e,o){return(t?[...o.filter((e=>$r(e)===t)),...o.filter((e=>$r(e)!==t))]:o.filter((t=>Nr(t)===t))).filter((o=>!t||($r(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Or[t]))}(o)!==o)))}const Fr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:p=yr,autoAlignment:d=!0,...u}=wr(t,e),y=void 0!==h||p===yr?zr(h||null,d,p):p,g=await Wr(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const x=function(t,e,o){void 0===o&&(o=!1);const i=$r(t),r=Er(t),n=kr(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ur(a)),[a,Ur(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const v=[g[Nr(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],S=y[b+1];if(S)return{data:{index:b+1,overflows:O},reset:{placement:S}};const w=O.map((t=>{const e=$r(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=w.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||w[0][0];return $!==s?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function Kr(t){return Dr(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zr(t){var e;return null==(e=(Dr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Dr(t){return t instanceof Node||t instanceof Br(t).Node}function Ar(t){return t instanceof Element||t instanceof Br(t).Element}function Mr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Pr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Hr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Vr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function Tr(t){const e=_r(),o=Vr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function _r(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gr(t){return["html","body","#document"].includes(Kr(t))}function Vr(t){return Br(t).getComputedStyle(t)}function Yr(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jr(t){if("html"===Kr(t))return t;const e=t.assignedSlot||t.parentNode||Pr(t)&&t.host||Zr(t);return Pr(e)?e.host:e}function qr(t){const e=Jr(t);return Gr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mr(e)&&Hr(e)?e:qr(e)}function Xr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?e.concat(a,a.visualViewport||[],Hr(r)?r:[],a.frameElement&&o?Xr(a.frameElement):[]):e.concat(r,Xr(r,[],o))}function Qr(t){const e=Vr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Mr(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=mr(o)!==n||mr(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function tn(t){return Ar(t)?t:t.contextElement}function en(t){const e=tn(t);if(!Mr(e))return xr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Qr(e);let a=(n?mr(o.width):o.width)/i,s=(n?mr(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const on=xr(0);function rn(t){const e=Br(t);return _r()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:on}function nn(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=tn(t);let a=xr(1);e&&(i?Ar(i)&&(a=en(i)):a=en(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Br(t))&&e}(n,o,i)?rn(n):xr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Br(n),e=i&&Ar(i)?Br(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=en(o),e=o.getBoundingClientRect(),i=Vr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=Br(o).frameElement}}return Ir({width:f,height:h,x:l,y:c})}function an(t){return nn(Zr(t)).left+Yr(t).scrollLeft}function sn(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Br(t),i=Zr(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=_r();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Zr(t),o=Yr(t),i=t.ownerDocument.body,r=br(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=br(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+an(t);const s=-o.scrollTop;return"rtl"===Vr(i).direction&&(a+=br(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Zr(t));else if(Ar(e))i=function(t,e){const o=nn(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Mr(t)?en(t):xr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=rn(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ir(i)}function ln(t,e){const o=Jr(t);return!(o===e||!Ar(o)||Gr(o))&&("fixed"===Vr(o).position||ln(o,e))}function cn(t,e,o){const i=Mr(e),r=Zr(e),n="fixed"===o,a=nn(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=xr(0);if(i||!i&&!n)if(("body"!==Kr(e)||Hr(r))&&(s=Yr(e)),i){const t=nn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=an(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fn(t,e){return Mr(t)&&"fixed"!==Vr(t).position?e?e(t):t.offsetParent:null}function hn(t,e){const o=Br(t);if(!Mr(t))return o;let i=fn(t,e);for(;i&&jr(i)&&"static"===Vr(i).position;)i=fn(i,e);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Vr(i).position&&!Tr(i))?o:i||function(t){let e=Jr(t);for(;Mr(e)&&!Gr(e);){if(Tr(e))return e;e=Jr(e)}return null}(t)||o}const pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Mr(o),n=Zr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=xr(1);const l=xr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(o)||Hr(n))&&(a=Yr(o)),Mr(o))){const t=nn(o);s=en(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Zr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Xr(t,[],!1).filter((t=>Ar(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Vr(t).position;let a=n?Jr(t):t;for(;Ar(a)&&!Gr(a);){const e=Vr(a),o=Tr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Hr(a)&&!o&&ln(t,a))?i=i.filter((t=>t!==a)):r=e,a=Jr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=sn(e,o,r);return t.top=br(i.top,t.top),t.right=gr(i.right,t.right),t.bottom=gr(i.bottom,t.bottom),t.left=br(i.left,t.left),t}),sn(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hn,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||hn,n=this.getDimensions;return{reference:cn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Qr(t)},getScale:en,isElement:Ar,isRTL:function(t){return"rtl"===Vr(t).direction}},dn=(t,e,o)=>{const i=new Map,r={platform:pn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Lr(c,i,l),p=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:x}=await y({x:f,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:h}=Lr(c,p,l))),o=-1)}return{x:f,y:h,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};function un(t){return function(t){for(let e=t;e;e=yn(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=yn(t);e;e=yn(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function yn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var gn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bn extends Me{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
663
+ `,ur=["start","end"],yr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ur[0],e+"-"+ur[1])),[]),gr=Math.min,br=Math.max,mr=Math.round,xr=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function Sr(t,e,o){return br(t,gr(e,o))}function wr(t,e){return"function"==typeof t?t(e):t}function Nr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Cr(t){return"x"===t?"y":"x"}function kr(t){return"y"===t?"height":"width"}function Rr(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Er(t){return Cr(Rr(t))}function Ur(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Ir(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Lr(t,e,o){let{reference:i,floating:r}=t;const n=Rr(e),a=Er(e),s=kr(a),l=Nr(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:h};break;case"left":d={x:i.x-r.width,y:h};break;default:d={x:i.x,y:i.y}}switch($r(e)){case"start":d[a]-=p*(o&&c?-1:1);break;case"end":d[a]+=p*(o&&c?-1:1)}return d}async function Wr(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=wr(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[p?"floating"===h?"reference":"floating":h],g=Ir(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=Ir(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function zr(t,e,o){return(t?[...o.filter((e=>$r(e)===t)),...o.filter((e=>$r(e)!==t))]:o.filter((t=>Nr(t)===t))).filter((o=>!t||($r(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Or[t]))}(o)!==o)))}const Fr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:p=yr,autoAlignment:d=!0,...u}=wr(t,e),y=void 0!==h||p===yr?zr(h||null,d,p):p,g=await Wr(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const x=function(t,e,o){void 0===o&&(o=!1);const i=$r(t),r=Er(t),n=kr(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ur(a)),[a,Ur(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const v=[g[Nr(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],S=y[b+1];if(S)return{data:{index:b+1,overflows:O},reset:{placement:S}};const w=O.map((t=>{const e=$r(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=w.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||w[0][0];return $!==s?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function Kr(t){return Dr(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zr(t){var e;return null==(e=(Dr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Dr(t){return t instanceof Node||t instanceof Br(t).Node}function Ar(t){return t instanceof Element||t instanceof Br(t).Element}function Mr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Pr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Hr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Vr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function Tr(t){const e=_r(),o=Vr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function _r(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gr(t){return["html","body","#document"].includes(Kr(t))}function Vr(t){return Br(t).getComputedStyle(t)}function Yr(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jr(t){if("html"===Kr(t))return t;const e=t.assignedSlot||t.parentNode||Pr(t)&&t.host||Zr(t);return Pr(e)?e.host:e}function qr(t){const e=Jr(t);return Gr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mr(e)&&Hr(e)?e:qr(e)}function Xr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?e.concat(a,a.visualViewport||[],Hr(r)?r:[],a.frameElement&&o?Xr(a.frameElement):[]):e.concat(r,Xr(r,[],o))}function Qr(t){const e=Vr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Mr(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=mr(o)!==n||mr(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function tn(t){return Ar(t)?t:t.contextElement}function en(t){const e=tn(t);if(!Mr(e))return xr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Qr(e);let a=(n?mr(o.width):o.width)/i,s=(n?mr(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const on=xr(0);function rn(t){const e=Br(t);return _r()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:on}function nn(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=tn(t);let a=xr(1);e&&(i?Ar(i)&&(a=en(i)):a=en(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Br(t))&&e}(n,o,i)?rn(n):xr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Br(n),e=i&&Ar(i)?Br(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=en(o),e=o.getBoundingClientRect(),i=Vr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=Br(o).frameElement}}return Ir({width:f,height:h,x:l,y:c})}function an(t){return nn(Zr(t)).left+Yr(t).scrollLeft}function sn(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Br(t),i=Zr(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=_r();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Zr(t),o=Yr(t),i=t.ownerDocument.body,r=br(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=br(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+an(t);const s=-o.scrollTop;return"rtl"===Vr(i).direction&&(a+=br(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Zr(t));else if(Ar(e))i=function(t,e){const o=nn(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Mr(t)?en(t):xr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=rn(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ir(i)}function ln(t,e){const o=Jr(t);return!(o===e||!Ar(o)||Gr(o))&&("fixed"===Vr(o).position||ln(o,e))}function cn(t,e,o){const i=Mr(e),r=Zr(e),n="fixed"===o,a=nn(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=xr(0);if(i||!i&&!n)if(("body"!==Kr(e)||Hr(r))&&(s=Yr(e)),i){const t=nn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=an(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fn(t,e){return Mr(t)&&"fixed"!==Vr(t).position?e?e(t):t.offsetParent:null}function hn(t,e){const o=Br(t);if(!Mr(t))return o;let i=fn(t,e);for(;i&&jr(i)&&"static"===Vr(i).position;)i=fn(i,e);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Vr(i).position&&!Tr(i))?o:i||function(t){let e=Jr(t);for(;Mr(e)&&!Gr(e);){if(Tr(e))return e;e=Jr(e)}return null}(t)||o}const pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Mr(o),n=Zr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=xr(1);const l=xr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(o)||Hr(n))&&(a=Yr(o)),Mr(o))){const t=nn(o);s=en(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Zr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Xr(t,[],!1).filter((t=>Ar(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Vr(t).position;let a=n?Jr(t):t;for(;Ar(a)&&!Gr(a);){const e=Vr(a),o=Tr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Hr(a)&&!o&&ln(t,a))?i=i.filter((t=>t!==a)):r=e,a=Jr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=sn(e,o,r);return t.top=br(i.top,t.top),t.right=gr(i.right,t.right),t.bottom=gr(i.bottom,t.bottom),t.left=br(i.left,t.left),t}),sn(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hn,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||hn,n=this.getDimensions;return{reference:cn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Qr(t)},getScale:en,isElement:Ar,isRTL:function(t){return"rtl"===Vr(t).direction}},dn=(t,e,o)=>{const i=new Map,r={platform:pn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Lr(c,i,l),p=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:x}=await y({x:f,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:h}=Lr(c,p,l))),o=-1)}return{x:f,y:h,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};function un(t){return function(t){for(let e=t;e;e=yn(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=yn(t);e;e=yn(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function yn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var gn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bn extends Me{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
664
664
  <div part="container"
665
665
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
666
666
  @mouseenter=${this.onHover}
@@ -668,7 +668,7 @@ const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{constructo
668
668
  @focusin=${this.onHover}
669
669
  @focusout=${this.onOut}
670
670
  @touchstart=${this.onTouch}>
671
- <slot part="slot"></slot>
671
+ <slot part="slot" @click=${this.onClick}></slot>
672
672
  <div part="tooltip" role="tooltip" inert
673
673
  class="ft-tooltip ft-tooltip--${this.validPosition}"
674
674
  ?hidden=${!this.visible}>
@@ -678,24 +678,24 @@ const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{constructo
678
678
  </div>
679
679
  </div>
680
680
  </div>
681
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",dn(this.slottedElement,this.tooltip,{platform:{...pn,getOffsetParent:t=>pn.getOffsetParent(t,un)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=wr(t,e),c={x:o,y:i},f=await Wr(e,l),h=Rr(Nr(r)),p=Cr(h);let d=c[p],u=c[h];if(n){const t="y"===p?"bottom":"right";d=Sr(d+f["y"===p?"top":"left"],d,d-f[t])}if(a){const t="y"===h?"bottom":"right";u=Sr(u+f["y"===h?"top":"left"],u,u-f[t])}const y=s.fn({...e,[p]:d,[h]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Fr({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}bn.elementDefinitions={"ft-typography":wi},bn.styles=dr,gn([N()],bn.prototype,"text",void 0),gn([N({type:Boolean})],bn.prototype,"manual",void 0),gn([N({type:Boolean})],bn.prototype,"inline",void 0),gn([N({type:Number})],bn.prototype,"delay",void 0),gn([N()],bn.prototype,"position",void 0),gn([
681
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",dn(this.slottedElement,this.tooltip,{platform:{...pn,getOffsetParent:t=>pn.getOffsetParent(t,un)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=wr(t,e),c={x:o,y:i},f=await Wr(e,l),h=Rr(Nr(r)),p=Cr(h);let d=c[p],u=c[h];if(n){const t="y"===p?"bottom":"right";d=Sr(d+f["y"===p?"top":"left"],d,d-f[t])}if(a){const t="y"===h?"bottom":"right";u=Sr(u+f["y"===h?"top":"left"],u,u-f[t])}const y=s.fn({...e,[p]:d,[h]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Fr({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}bn.elementDefinitions={"ft-typography":wi},bn.styles=dr,gn([$()],bn.prototype,"text",void 0),gn([$({type:Boolean})],bn.prototype,"manual",void 0),gn([$({type:Boolean})],bn.prototype,"inline",void 0),gn([$({type:Number})],bn.prototype,"delay",void 0),gn([$()],bn.prototype,"position",void 0),gn([
682
682
  /**
683
683
  * @license
684
684
  * Copyright 2017 Google LLC
685
685
  * SPDX-License-Identifier: BSD-3-Clause
686
686
  */
687
- function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],bn.prototype,"slotNodes",void 0),gn([R(".ft-tooltip--container")],bn.prototype,"container",void 0),gn([R(".ft-tooltip")],bn.prototype,"tooltip",void 0),gn([R(".ft-tooltip--content")],bn.prototype,"tooltipContent",void 0),gn([$()],bn.prototype,"visible",void 0),gn([C({passive:!0})],bn.prototype,"onTouch",null),gn([C({passive:!0})],bn.prototype,"onHover",null),gn([C({passive:!0})],bn.prototype,"onOut",null),W("ft-tooltip")(bn);
687
+ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],bn.prototype,"slotNodes",void 0),gn([E(".ft-tooltip--container")],bn.prototype,"container",void 0),gn([E(".ft-tooltip")],bn.prototype,"tooltip",void 0),gn([E(".ft-tooltip--content")],bn.prototype,"tooltipContent",void 0),gn([C()],bn.prototype,"visible",void 0),gn([k({passive:!0})],bn.prototype,"onTouch",null),gn([k({passive:!0})],bn.prototype,"onHover",null),gn([k({passive:!0})],bn.prototype,"onOut",null),gn([k({passive:!0})],bn.prototype,"onClick",null),W("ft-tooltip")(bn);
688
688
  /**
689
689
  * @license
690
690
  * Copyright 2017 Google LLC
691
691
  * SPDX-License-Identifier: BSD-3-Clause
692
692
  */
693
- class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mn.directiveName="unsafeHTML",mn.resultType=1;const xn=Ci(mn);var vn,On,Sn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(vn||(vn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(On||(On={})),new Map([...["abw"].map((t=>[t,On.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,On.AUDIO])),...["avi"].map((t=>[t,On.AVI])),...["chm","xhs"].map((t=>[t,On.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,On.CODE])),...["csv"].map((t=>[t,On.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,On.DITA])),...["epub"].map((t=>[t,On.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,On.EXCEL])),...["flac"].map((t=>[t,On.FLAC])),...["gif"].map((t=>[t,On.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,On.GZIP])),...["html","htm","xhtml"].map((t=>[t,On.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,On.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,On.JPEG])),...["json"].map((t=>[t,On.JSON])),...["m4a","m4p"].map((t=>[t,On.M4A])),...["mov","qt"].map((t=>[t,On.MOV])),...["mp3"].map((t=>[t,On.MP3])),...["mp4","m4v"].map((t=>[t,On.MP4])),...["ogg","oga"].map((t=>[t,On.OGG])),...["pdf","ps"].map((t=>[t,On.PDF])),...["png"].map((t=>[t,On.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,On.POWERPOINT])),...["rar"].map((t=>[t,On.RAR])),...["stp"].map((t=>[t,On.STP])),...["txt","rtf","md","mdown"].map((t=>[t,On.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,On.VIDEO])),...["wav"].map((t=>[t,On.WAV])),...["wma"].map((t=>[t,On.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,On.WORD])),...["xml","xsl","rdf"].map((t=>[t,On.XML])),...["yaml","yml","x-yaml"].map((t=>[t,On.YAML])),...["zip"].map((t=>[t,On.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Sn||(Sn={}));var wn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nn extends Me{constructor(){super(...arguments),this.resolvedIcon=ce}render(){const t=this.variant&&Object.values(Sn).includes(this.variant)?this.variant:Sn.fluid_topics,e=t!==Sn.material||!!this.value;return se`
693
+ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mn.directiveName="unsafeHTML",mn.resultType=1;const xn=Ci(mn);var vn,On,Sn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(vn||(vn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(On||(On={})),new Map([...["abw"].map((t=>[t,On.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,On.AUDIO])),...["avi"].map((t=>[t,On.AVI])),...["chm","xhs"].map((t=>[t,On.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,On.CODE])),...["csv"].map((t=>[t,On.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,On.DITA])),...["epub"].map((t=>[t,On.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,On.EXCEL])),...["flac"].map((t=>[t,On.FLAC])),...["gif"].map((t=>[t,On.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,On.GZIP])),...["html","htm","xhtml"].map((t=>[t,On.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,On.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,On.JPEG])),...["json"].map((t=>[t,On.JSON])),...["m4a","m4p"].map((t=>[t,On.M4A])),...["mov","qt"].map((t=>[t,On.MOV])),...["mp3"].map((t=>[t,On.MP3])),...["mp4","m4v"].map((t=>[t,On.MP4])),...["ogg","oga"].map((t=>[t,On.OGG])),...["pdf","ps"].map((t=>[t,On.PDF])),...["png"].map((t=>[t,On.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,On.POWERPOINT])),...["rar"].map((t=>[t,On.RAR])),...["stp"].map((t=>[t,On.STP])),...["txt","rtf","md","mdown"].map((t=>[t,On.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,On.VIDEO])),...["wav"].map((t=>[t,On.WAV])),...["wma"].map((t=>[t,On.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,On.WORD])),...["xml","xsl","rdf"].map((t=>[t,On.XML])),...["yaml","yml","x-yaml"].map((t=>[t,On.YAML])),...["zip"].map((t=>[t,On.ZIP]))]),On.ABW,On.AUDIO,On.AVI,On.CHM,On.CODE,On.CSV,On.DITA,On.EPUB,On.EXCEL,On.FLAC,On.GIF,On.GZIP,On.HTML,On.IMAGE,On.JPEG,On.JSON,On.M4A,On.MOV,On.MP3,On.MP4,On.OGG,On.PDF,On.PNG,On.POWERPOINT,On.RAR,On.STP,On.TEXT,On.UNKNOWN,On.VIDEO,On.WAV,On.WMA,On.WORD,On.XML,On.YAML,On.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Sn||(Sn={}));var wn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nn extends Me{constructor(){super(...arguments),this.resolvedIcon=ce}render(){const t=this.variant&&Object.values(Sn).includes(this.variant)?this.variant:Sn.fluid_topics,e=t!==Sn.material||!!this.value;return se`
694
694
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
695
695
  ${xn(this.resolvedIcon)}
696
696
  <slot ?hidden=${e}></slot>
697
697
  </i>
698
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Sn.file_format:this.resolvedIcon=null!==(t=On[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Sn.material:this.resolvedIcon=this.value||ce;break;default:this.resolvedIcon=null!==(e=vn[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Nn.elementDefinitions={},Nn.styles=Vi,wn([N()],Nn.prototype,"variant",void 0),wn([N()],Nn.prototype,"value",void 0),wn([$()],Nn.prototype,"resolvedIcon",void 0),wn([R("slot")],Nn.prototype,"slottedContent",void 0),W("ft-icon")(Nn);class $n extends Me{render(){return se`
698
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Sn.file_format:this.resolvedIcon=null!==(t=On[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Sn.material:this.resolvedIcon=this.value||ce;break;default:this.resolvedIcon=null!==(e=vn[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Nn.elementDefinitions={},Nn.styles=Vi,wn([$()],Nn.prototype,"variant",void 0),wn([$()],Nn.prototype,"value",void 0),wn([C()],Nn.prototype,"resolvedIcon",void 0),wn([E("slot")],Nn.prototype,"slottedContent",void 0),W("ft-icon")(Nn);class $n extends Me{render(){return se`
699
699
  <div class="ft-loader">
700
700
  <div></div>
701
701
  <div></div>
@@ -725,7 +725,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
725
725
  </ft-tooltip>
726
726
  `:t}resolveIcon(){return this.loading?se`
727
727
  <ft-loader part="loader icon"></ft-loader> `:this.icon?se`
728
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ce}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}kn.elementDefinitions={"ft-ripple":ar,"ft-tooltip":bn,"ft-typography":wi,"ft-icon":Nn,"ft-loader":$n},Cn([N({type:String,reflect:!0})],kn.prototype,"role",void 0),Cn([N()],kn.prototype,"type",void 0),Cn([N({type:Boolean})],kn.prototype,"disabled",void 0),Cn([N()],kn.prototype,"label",void 0),Cn([N()],kn.prototype,"icon",void 0),Cn([N()],kn.prototype,"iconVariant",void 0),Cn([N({type:Boolean})],kn.prototype,"trailingIcon",void 0),Cn([N({type:Boolean})],kn.prototype,"loading",void 0),Cn([N()],kn.prototype,"tooltipPosition",void 0),Cn([N({type:Boolean})],kn.prototype,"hideTooltip",void 0),Cn([N({type:Boolean})],kn.prototype,"forceTooltip",void 0),Cn([R(".ft-button")],kn.prototype,"button",void 0),Cn([R(".ft-button--label slot")],kn.prototype,"slottedContent",void 0);var Rn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class En extends kn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}En.styles=[je,ir],Rn([N({type:Boolean})],En.prototype,"primary",void 0),Rn([N({type:Boolean})],En.prototype,"outlined",void 0),Rn([N({type:Boolean})],En.prototype,"dense",void 0),Rn([N({type:Boolean})],En.prototype,"round",void 0);const Un=[$t`
728
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ce}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}kn.elementDefinitions={"ft-ripple":ar,"ft-tooltip":bn,"ft-typography":wi,"ft-icon":Nn,"ft-loader":$n},Cn([$({type:String,reflect:!0})],kn.prototype,"role",void 0),Cn([$()],kn.prototype,"type",void 0),Cn([$({type:Boolean})],kn.prototype,"disabled",void 0),Cn([$()],kn.prototype,"label",void 0),Cn([$()],kn.prototype,"icon",void 0),Cn([$()],kn.prototype,"iconVariant",void 0),Cn([$({type:Boolean})],kn.prototype,"trailingIcon",void 0),Cn([$({type:Boolean})],kn.prototype,"loading",void 0),Cn([$()],kn.prototype,"tooltipPosition",void 0),Cn([$({type:Boolean})],kn.prototype,"hideTooltip",void 0),Cn([$({type:Boolean})],kn.prototype,"forceTooltip",void 0),Cn([E(".ft-button")],kn.prototype,"button",void 0),Cn([E(".ft-button--label slot")],kn.prototype,"slottedContent",void 0);var Rn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class En extends kn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}En.styles=[je,ir],Rn([$({type:Boolean})],En.prototype,"primary",void 0),Rn([$({type:Boolean})],En.prototype,"outlined",void 0),Rn([$({type:Boolean})],En.prototype,"dense",void 0),Rn([$({type:Boolean})],En.prototype,"round",void 0);const Un=[$t`
729
729
  :host {
730
730
  display: inline-block;
731
731
  max-width: 100%;
@@ -943,7 +943,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
943
943
  width: ${Ie.smallIconOnlyWidth};
944
944
  padding: unset;
945
945
  }
946
- `,He];var In=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ln extends kn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?co.caption1medium:co.body2medium}}Ln.styles=[je,Un],In([N({type:Boolean})],Ln.prototype,"primary",void 0),In([N({type:Boolean})],Ln.prototype,"secondary",void 0),In([N({type:Boolean})],Ln.prototype,"tertiary",void 0),In([N({type:Boolean})],Ln.prototype,"neutral",void 0),In([N({type:Boolean})],Ln.prototype,"small",void 0),W("ft-button")(En),W("ftds-button")(Ln);const Wn=Ce.extend("--ft-checkbox-text-color","",Le.colorOnSurfaceHigh),zn=Ce.external(Le.colorPrimary,"Design system"),Fn=Ce.external(Le.colorOnPrimary,"Design system"),Kn=Ce.extend("--ft-checkbox-border-color","",Le.colorOnSurfaceMedium),Bn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),Zn=$t`
946
+ `,He];var In=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ln extends kn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?co.caption1medium:co.body2medium}}Ln.styles=[je,Un],In([$({type:Boolean})],Ln.prototype,"primary",void 0),In([$({type:Boolean})],Ln.prototype,"secondary",void 0),In([$({type:Boolean})],Ln.prototype,"tertiary",void 0),In([$({type:Boolean})],Ln.prototype,"neutral",void 0),In([$({type:Boolean})],Ln.prototype,"small",void 0),W("ft-button")(En),W("ftds-button")(Ln);const Wn=Ce.extend("--ft-checkbox-text-color","",Le.colorOnSurfaceHigh),zn=Ce.extend("--ft-checkbox-font-size","",po.fontSize),Fn=Ce.external(Le.colorPrimary,"Design system"),Kn=Ce.external(Le.colorOnPrimary,"Design system"),Bn=Ce.extend("--ft-checkbox-border-color","",Le.colorOnSurfaceMedium),Zn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),Dn=$t`
947
947
  * {
948
948
  box-sizing: border-box;
949
949
  }
@@ -951,6 +951,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
951
951
  .ft-checkbox {
952
952
  box-sizing: border-box;
953
953
  color: ${Wn};
954
+ font-size: ${zn};
954
955
 
955
956
  display: inline-flex;
956
957
  align-items: center;
@@ -958,7 +959,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
958
959
  }
959
960
 
960
961
  .ft-checkbox--disabled {
961
- color: ${Bn};
962
+ color: ${Zn};
962
963
  }
963
964
 
964
965
  input {
@@ -982,26 +983,26 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
982
983
 
983
984
  .ft-checkbox--box {
984
985
  display: flex;
985
- border: 2px solid ${Kn};
986
+ border: 2px solid ${Bn};
986
987
  border-radius: 2px;
987
988
 
988
989
  width: 18px;
989
990
  height: 18px;
990
991
 
991
- color: ${Fn};
992
+ color: ${Kn};
992
993
  }
993
994
 
994
995
 
995
996
  .ft-checkbox--checked .ft-checkbox--box,
996
997
  .ft-checkbox--indeterminate .ft-checkbox--box {
997
- border-color: ${zn};
998
- background-color: ${zn};
998
+ border-color: ${Fn};
999
+ background-color: ${Fn};
999
1000
  }
1000
1001
 
1001
1002
  .ft-checkbox--disabled .ft-checkbox--box {
1002
- border-color: ${Bn};
1003
+ border-color: ${Zn};
1003
1004
  background-color: transparent;
1004
- color: ${Bn};
1005
+ color: ${Zn};
1005
1006
  }
1006
1007
 
1007
1008
  .ft-checkbox--checkmark {
@@ -1020,7 +1021,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1020
1021
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
1021
1022
  opacity: 1;
1022
1023
  }
1023
- `;var Dn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class An extends Me{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return se`
1024
+ `;var An=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mn extends Me{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return se`
1024
1025
  <label class="${rr(t)}" for="checkbox-input">
1025
1026
  <div class="ft-checkbox--box-container">
1026
1027
  <ft-ripple
@@ -1046,14 +1047,14 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1046
1047
  <slot></slot>
1047
1048
  </ft-typography>
1048
1049
  </label>
1049
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}An.elementDefinitions={"ft-ripple":ar,"ft-typography":wi},An.styles=Zn,Dn([N()],An.prototype,"name",void 0),Dn([N({type:Boolean,reflect:!0})],An.prototype,"checked",void 0),Dn([N({type:Boolean})],An.prototype,"indeterminate",void 0),Dn([N({type:Boolean})],An.prototype,"disabled",void 0),Dn([R(".ft-checkbox")],An.prototype,"container",void 0),Dn([R("ft-ripple")],An.prototype,"ripple",void 0),W("ft-checkbox")(An);const Mn=Ce.extend("--ft-radio-text-color","",Le.colorOnSurfaceHigh),Pn=Ce.external(Le.colorPrimary,"Design system"),Hn=(Ce.external(Le.colorOnPrimary,"Design system"),Ce.extend("--ft-radio-border-color","",Le.colorOnSurfaceMedium)),jn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),Tn=$t`
1050
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Mn.elementDefinitions={"ft-ripple":ar,"ft-typography":wi},Mn.styles=Dn,An([$()],Mn.prototype,"name",void 0),An([$({type:Boolean,reflect:!0})],Mn.prototype,"checked",void 0),An([$({type:Boolean})],Mn.prototype,"indeterminate",void 0),An([$({type:Boolean})],Mn.prototype,"disabled",void 0),An([E(".ft-checkbox")],Mn.prototype,"container",void 0),An([E("ft-ripple")],Mn.prototype,"ripple",void 0),W("ft-checkbox")(Mn);const Pn=Ce.extend("--ft-radio-text-color","",Le.colorOnSurfaceHigh),Hn=Ce.external(Le.colorPrimary,"Design system"),jn=(Ce.external(Le.colorOnPrimary,"Design system"),Ce.extend("--ft-radio-border-color","",Le.colorOnSurfaceMedium)),Tn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),_n=$t`
1050
1051
  * {
1051
1052
  box-sizing: border-box;
1052
1053
  }
1053
1054
 
1054
1055
  .ft-radio {
1055
1056
  box-sizing: border-box;
1056
- color: ${Mn};
1057
+ color: ${Pn};
1057
1058
 
1058
1059
  display: inline-flex;
1059
1060
  align-items: center;
@@ -1061,7 +1062,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1061
1062
  }
1062
1063
 
1063
1064
  .ft-radio--disabled {
1064
- color: ${jn};
1065
+ color: ${Tn};
1065
1066
  }
1066
1067
 
1067
1068
  input {
@@ -1084,7 +1085,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1084
1085
  }
1085
1086
 
1086
1087
  .ft-radio--box {
1087
- border: 2px solid ${Hn};
1088
+ border: 2px solid ${jn};
1088
1089
  border-radius: 50%;
1089
1090
 
1090
1091
  display: flex;
@@ -1097,7 +1098,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1097
1098
 
1098
1099
  .ft-radio--box:after {
1099
1100
  content: " ";
1100
- background-color: ${Pn};
1101
+ background-color: ${Hn};
1101
1102
 
1102
1103
  border-radius: 50%;
1103
1104
 
@@ -1109,7 +1110,7 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1109
1110
  }
1110
1111
 
1111
1112
  .ft-radio--checked .ft-radio--box {
1112
- border-color: ${Pn};
1113
+ border-color: ${Hn};
1113
1114
  }
1114
1115
 
1115
1116
 
@@ -1118,14 +1119,14 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1118
1119
  }
1119
1120
 
1120
1121
  .ft-radio--disabled .ft-radio--box {
1121
- border-color: ${jn};
1122
+ border-color: ${Tn};
1122
1123
  background-color: transparent;
1123
1124
  }
1124
1125
 
1125
1126
  .ft-radio--disabled .ft-radio--box:after {
1126
- background-color: ${jn};
1127
+ background-color: ${Tn};
1127
1128
  }
1128
- `;var _n=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gn extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Vn extends Me{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return se`
1129
+ `;var Gn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vn extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Yn extends Me{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return se`
1129
1130
  <div class="${rr(t)}">
1130
1131
  <div class="ft-radio--box-container">
1131
1132
  <ft-ripple
@@ -1150,22 +1151,22 @@ class mn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Erro
1150
1151
  </ft-typography>
1151
1152
  </label>
1152
1153
  </div>
1153
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Gn(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Gn(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Vn.elementDefinitions={"ft-ripple":ar,"ft-typography":wi},Vn.styles=Tn,_n([N()],Vn.prototype,"value",void 0),_n([N()],Vn.prototype,"name",void 0),_n([N({type:Boolean,reflect:!0})],Vn.prototype,"checked",void 0),_n([N({type:Boolean})],Vn.prototype,"disabled",void 0),_n([R(".ft-radio")],Vn.prototype,"container",void 0),_n([R("ft-ripple")],Vn.prototype,"ripple",void 0),_n([R("input")],Vn.prototype,"input",void 0);const Yn=$t`
1154
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Vn(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Vn(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Yn.elementDefinitions={"ft-ripple":ar,"ft-typography":wi},Yn.styles=_n,Gn([$()],Yn.prototype,"value",void 0),Gn([$()],Yn.prototype,"name",void 0),Gn([$({type:Boolean,reflect:!0})],Yn.prototype,"checked",void 0),Gn([$({type:Boolean})],Yn.prototype,"disabled",void 0),Gn([E(".ft-radio")],Yn.prototype,"container",void 0),Gn([E("ft-ripple")],Yn.prototype,"ripple",void 0),Gn([E("input")],Yn.prototype,"input",void 0);const Jn=$t`
1154
1155
  :host {
1155
1156
  display: contents;
1156
1157
  }
1157
- `;var Jn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qn extends Me{constructor(){super(...arguments),this.name=""}render(){return se`
1158
+ `;var qn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xn extends Me{constructor(){super(...arguments),this.name=""}render(){return se`
1158
1159
  <slot @slotchange=${this.onSlotChange}
1159
1160
  @change=${this.onChange}
1160
1161
  @keydown=${this.onKeyDown}
1161
1162
  ></slot>
1162
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}qn.elementDefinitions={},qn.styles=Yn,Jn([N()],qn.prototype,"name",void 0),Jn([
1163
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Xn.elementDefinitions={},Xn.styles=Jn,qn([$()],Xn.prototype,"name",void 0),qn([
1163
1164
  /**
1164
1165
  * @license
1165
1166
  * Copyright 2021 Google LLC
1166
1167
  * SPDX-License-Identifier: BSD-3-Clause
1167
1168
  */
1168
- function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],qn.prototype,"radioButtons",void 0),W("ft-radio")(Vn),W("ft-radio-group")(qn);const Xn={borderRadiusM:Ce.external(Le.borderRadiusM,"Design system"),colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ce.external(Le.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorOnPrimary:Ce.external(Le.colorOnPrimary,"Design system"),fontFamily:Ce.external(jo.fontFamily,"Body2 typography"),fontSize:Ce.external(jo.fontSize,"Body2 typography"),fontWeight:Ce.external(jo.fontWeight,"Body2 typography"),letterSpacing:Ce.external(jo.letterSpacing,"Body2 typography"),lineHeight:Ce.external(jo.lineHeight,"Body2 typography"),textTransform:Ce.external(jo.textTransform,"Body2 typography")},Qn=$t`
1169
+ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],Xn.prototype,"radioButtons",void 0),W("ft-radio")(Yn),W("ft-radio-group")(Xn);const Qn={borderRadiusM:Ce.external(Le.borderRadiusM,"Design system"),colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ce.external(Le.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorOnPrimary:Ce.external(Le.colorOnPrimary,"Design system"),fontFamily:Ce.external(jo.fontFamily,"Body2 typography"),fontSize:Ce.external(jo.fontSize,"Body2 typography"),fontWeight:Ce.external(jo.fontWeight,"Body2 typography"),letterSpacing:Ce.external(jo.letterSpacing,"Body2 typography"),lineHeight:Ce.external(jo.lineHeight,"Body2 typography"),textTransform:Ce.external(jo.textTransform,"Body2 typography")},ta=$t`
1169
1170
  .ft-filter-level--container {
1170
1171
  display: flex;
1171
1172
  flex-direction: column;
@@ -1179,14 +1180,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1179
1180
  flex-shrink: 0;
1180
1181
  text-decoration: none;
1181
1182
  position: relative;
1182
- border-radius: ${Xn.borderRadiusM};
1183
+ border-radius: ${Qn.borderRadiusM};
1183
1184
  overflow: hidden;
1184
1185
  display: flex;
1185
1186
  align-items: center;
1186
1187
  padding: 4px 4px;
1187
1188
  gap: 4px;
1188
1189
  cursor: pointer;
1189
- color: ${Xn.colorOnSurface};
1190
+ color: ${Qn.colorOnSurface};
1190
1191
  }
1191
1192
 
1192
1193
  .ft-filter-level--go-back:focus {
@@ -1215,7 +1216,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1215
1216
  }
1216
1217
 
1217
1218
  ft-button {
1218
- ${ke(Ji.color,Xn.colorOnSurface)};
1219
+ ${ke(Ji.color,Qn.colorOnSurface)};
1219
1220
  }
1220
1221
 
1221
1222
  ft-radio, ft-checkbox {
@@ -1229,9 +1230,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1229
1230
 
1230
1231
  .ft-filter-level--no-values {
1231
1232
  margin: 10px 0;
1232
- color: ${Xn.colorOnSurfaceMedium};
1233
+ color: ${Qn.colorOnSurfaceMedium};
1233
1234
  }
1234
- `;var ta=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ea extends Me{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return se`
1235
+ `;var ea=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class oa extends Me{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return se`
1235
1236
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1236
1237
  ${null==this.parent?null:se`
1237
1238
  <div tabindex="0"
@@ -1295,7 +1296,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1295
1296
  @change=${t=>t.stopPropagation()}>
1296
1297
  ${t.renderOption?t.renderOption:t.label}
1297
1298
  </ft-radio>
1298
- `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ea.elementDefinitions={"ft-button":En,"ft-ripple":ar,"ft-typography":wi,"ft-checkbox":An,"ft-icon":Nn,"ft-radio":Vn},ea.styles=Qn,ta([N({type:String})],ea.prototype,"filterId",void 0),ta([N({type:Object})],ea.prototype,"parent",void 0),ta([N({type:Array})],ea.prototype,"options",void 0),ta([N({type:Boolean})],ea.prototype,"multivalued",void 0),ta([N({type:Boolean})],ea.prototype,"disabled",void 0),ta([N({type:Boolean})],ea.prototype,"hideSelectedOptions",void 0),ta([N({type:Boolean})],ea.prototype,"preventNavigation",void 0),ta([N({type:String})],ea.prototype,"filter",void 0),ta([N({type:String})],ea.prototype,"moreValuesButtonLabel",void 0),ta([N({type:String})],ea.prototype,"noValuesLabel",void 0),ta([N({type:Number})],ea.prototype,"displayedValuesLimit",void 0),ta([R(".ft-filter-level--container")],ea.prototype,"container",void 0),ta([$()],ea.prototype,"displayedPages",void 0);const oa={buttonsColor:Ce.extend("--ft-snap-scroll-buttons-color","",Le.colorPrimary),buttonsZIndex:Ce.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ce.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ce.external(Le.colorSurface,"Design system")},ia=$t`
1299
+ `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}oa.elementDefinitions={"ft-button":En,"ft-ripple":ar,"ft-typography":wi,"ft-checkbox":Mn,"ft-icon":Nn,"ft-radio":Yn},oa.styles=ta,ea([$({type:String})],oa.prototype,"filterId",void 0),ea([$({type:Object})],oa.prototype,"parent",void 0),ea([$({type:Array})],oa.prototype,"options",void 0),ea([$({type:Boolean})],oa.prototype,"multivalued",void 0),ea([$({type:Boolean})],oa.prototype,"disabled",void 0),ea([$({type:Boolean})],oa.prototype,"hideSelectedOptions",void 0),ea([$({type:Boolean})],oa.prototype,"preventNavigation",void 0),ea([$({type:String})],oa.prototype,"filter",void 0),ea([$({type:String})],oa.prototype,"moreValuesButtonLabel",void 0),ea([$({type:String})],oa.prototype,"noValuesLabel",void 0),ea([$({type:Number})],oa.prototype,"displayedValuesLimit",void 0),ea([E(".ft-filter-level--container")],oa.prototype,"container",void 0),ea([C()],oa.prototype,"displayedPages",void 0);const ia={buttonsColor:Ce.extend("--ft-snap-scroll-buttons-color","",Le.colorPrimary),buttonsZIndex:Ce.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ce.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ce.external(Le.colorSurface,"Design system")},ra=$t`
1299
1300
  .ft-snap-scroll {
1300
1301
  box-sizing: border-box;
1301
1302
  position: relative;
@@ -1330,7 +1331,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1330
1331
  flex-wrap: nowrap;
1331
1332
  align-items: flex-start;
1332
1333
  justify-content: flex-start;
1333
- gap: ${oa.gap};
1334
+ gap: ${ia.gap};
1334
1335
  }
1335
1336
 
1336
1337
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1373,11 +1374,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1373
1374
  .ft-snap-scroll--next {
1374
1375
  position: absolute;
1375
1376
  display: flex;
1376
- z-index: ${oa.buttonsZIndex};
1377
+ z-index: ${ia.buttonsZIndex};
1377
1378
  opacity: 1;
1378
1379
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1379
1380
  ${ke(Ji.backgroundColor,"transparent")};
1380
- ${ke(Ji.color,oa.buttonsColor)};
1381
+ ${ke(Ji.color,ia.buttonsColor)};
1381
1382
  }
1382
1383
 
1383
1384
  .ft-snap-scroll--previous[hidden],
@@ -1390,37 +1391,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1390
1391
  top: 0;
1391
1392
  left: -1px;
1392
1393
  bottom: 0;
1393
- background: linear-gradient(to right, ${oa.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1394
+ background: linear-gradient(to right, ${ia.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1394
1395
  }
1395
1396
 
1396
1397
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1397
1398
  top: -1px;
1398
1399
  left: 0;
1399
1400
  right: 0;
1400
- background: linear-gradient(to bottom, ${oa.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1401
+ background: linear-gradient(to bottom, ${ia.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1401
1402
  }
1402
1403
 
1403
1404
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1404
1405
  top: 0;
1405
1406
  right: -1px;
1406
1407
  bottom: 0;
1407
- background: linear-gradient(to left, ${oa.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1408
+ background: linear-gradient(to left, ${ia.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1408
1409
  }
1409
1410
 
1410
1411
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1411
1412
  left: 0;
1412
1413
  right: 0;
1413
1414
  bottom: -1px;
1414
- background: linear-gradient(to top, ${oa.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1415
+ background: linear-gradient(to top, ${ia.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1415
1416
  }
1416
1417
 
1417
1418
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1418
1419
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1419
1420
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1420
1421
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1421
- background-color: ${oa.colorSurface};
1422
+ background-color: ${ia.colorSurface};
1422
1423
  }
1423
- `;var ra=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class na extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class aa extends Me{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new U(200),this.updateScrollDebouncer=new U(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=rr({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":io}),e=this.controls&&this.withScroll;return se`
1424
+ `;var na=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class aa extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class sa extends Me{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=rr({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":io}),e=this.controls&&this.withScroll;return se`
1424
1425
  <div part="container" class="${t}">
1425
1426
  <ft-button
1426
1427
  class="ft-snap-scroll--previous"
@@ -1444,7 +1445,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1444
1445
  @click=${this.next}
1445
1446
  ></ft-button>
1446
1447
  </div>
1447
- `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new na(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}aa.elementDefinitions={"ft-button":En},aa.styles=ia,ra([N({type:Boolean})],aa.prototype,"horizontal",void 0),ra([N({type:Boolean})],aa.prototype,"hideScrollbar",void 0),ra([N({type:Boolean})],aa.prototype,"controls",void 0),ra([N({type:Boolean})],aa.prototype,"limitSize",void 0),ra([$()],aa.prototype,"elements",void 0),ra([$()],aa.prototype,"currentElement",void 0),ra([$()],aa.prototype,"withScroll",void 0),ra([$()],aa.prototype,"startReached",void 0),ra([$()],aa.prototype,"endReached",void 0),ra([R(".ft-snap-scroll--content")],aa.prototype,"contentSlot",void 0),W("ft-snap-scroll")(aa);const sa={colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorSurface:Ce.external(Le.colorSurface,"Design system"),transitionDuration:Ce.external(Le.transitionDuration,"Design system"),transitionTimingFunction:Ce.external(Le.transitionTimingFunction,"Design system")},la=[gi,$t`
1448
+ `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new aa(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}sa.elementDefinitions={"ft-button":En},sa.styles=ra,na([$({type:Boolean})],sa.prototype,"horizontal",void 0),na([$({type:Boolean})],sa.prototype,"hideScrollbar",void 0),na([$({type:Boolean})],sa.prototype,"controls",void 0),na([$({type:Boolean})],sa.prototype,"limitSize",void 0),na([C()],sa.prototype,"elements",void 0),na([C()],sa.prototype,"currentElement",void 0),na([C()],sa.prototype,"withScroll",void 0),na([C()],sa.prototype,"startReached",void 0),na([C()],sa.prototype,"endReached",void 0),na([E(".ft-snap-scroll--content")],sa.prototype,"contentSlot",void 0),W("ft-snap-scroll")(sa);const la={colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorSurface:Ce.external(Le.colorSurface,"Design system"),transitionDuration:Ce.external(Le.transitionDuration,"Design system"),transitionTimingFunction:Ce.external(Le.transitionTimingFunction,"Design system"),labelColor:Ce.extend("--ft-filter-label-color","",Le.colorOnSurface),labelFontSize:Ce.extend("--ft-filter-label-font-size","",po.fontSize,"14px")},ca=[gi,$t`
1448
1449
  :host {
1449
1450
  display: flex;
1450
1451
  max-height: 100%;
@@ -1457,7 +1458,6 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1457
1458
  flex-direction: column;
1458
1459
  max-height: 100%;
1459
1460
  max-width: 100%;
1460
- color: ${sa.colorOnSurface};
1461
1461
  }
1462
1462
 
1463
1463
  .ft-filter--header {
@@ -1467,7 +1467,6 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1467
1467
  flex-shrink: 0;
1468
1468
  padding: 0 10px;
1469
1469
  margin-bottom: 8px;
1470
- ${ke(po.fontSize,"14px")};
1471
1470
  }
1472
1471
 
1473
1472
  .ft-filter--header ft-button {
@@ -1481,6 +1480,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1481
1480
  flex-shrink: 1;
1482
1481
  flex-grow: 1;
1483
1482
  word-break: break-word;
1483
+ color: ${la.labelColor};
1484
+ font-size: ${la.labelFontSize};
1484
1485
  ${ke(po.lineHeight,"22px")};
1485
1486
  ${ke(po.fontWeight,"bold")};
1486
1487
  }
@@ -1493,8 +1494,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1493
1494
  padding: 0 10px;
1494
1495
  overflow: hidden;
1495
1496
  height: 32px;
1496
- transition: height ${sa.transitionDuration} ${sa.transitionTimingFunction},
1497
- margin ${sa.transitionDuration} ${sa.transitionTimingFunction};
1497
+ transition: height ${la.transitionDuration} ${la.transitionTimingFunction},
1498
+ margin ${la.transitionDuration} ${la.transitionTimingFunction};
1498
1499
  transition-delay: 500ms;
1499
1500
  }
1500
1501
 
@@ -1507,15 +1508,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1507
1508
  display: block;
1508
1509
  width: 100%;
1509
1510
  border-radius: 4px;
1510
- border: 1px solid ${sa.colorOutline};
1511
+ border: 1px solid ${la.colorOutline};
1511
1512
  padding: 4px;
1512
- background-color: ${sa.colorSurface};
1513
- color: ${sa.colorOnSurface};
1514
- outline-color: ${sa.colorPrimary};
1513
+ background-color: ${la.colorSurface};
1514
+ color: ${la.colorOnSurface};
1515
+ outline-color: ${la.colorPrimary};
1515
1516
  }
1516
1517
 
1517
1518
  input::placeholder {
1518
- color: ${sa.colorOnSurfaceMedium};
1519
+ color: ${la.colorOnSurfaceMedium};
1519
1520
  }
1520
1521
 
1521
1522
  input:placeholder-shown {
@@ -1531,7 +1532,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1531
1532
  }
1532
1533
 
1533
1534
  .ft-filter--separator {
1534
- border-top: 1px solid ${sa.colorOutline};
1535
+ border-top: 1px solid ${la.colorOutline};
1535
1536
  margin: 4px 10px;
1536
1537
  }
1537
1538
 
@@ -1556,7 +1557,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1556
1557
  slot:not([name]) {
1557
1558
  display: none;
1558
1559
  }
1559
- `];var ca=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fa extends CustomEvent{constructor(t){super("change",{detail:t})}}class ha extends Me{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new U(300),this.changeDebouncer=new U(10),this.lastDispatchedValues=[]}get flatOptions(){return I(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return I(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return se`
1560
+ `];var fa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ha extends CustomEvent{constructor(t){super("change",{detail:t})}}class pa extends Me{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e(300),this.changeDebouncer=new e(10),this.lastDispatchedValues=[]}get flatOptions(){return I(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return I(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return se`
1560
1561
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1561
1562
  part="container">
1562
1563
  ${this.label||t?se`
@@ -1628,6 +1629,6 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1628
1629
  .exportpartsPrefixes=${["values","available-values"]}
1629
1630
  noValuesLabel="${this.noValuesLabel}"
1630
1631
  ></ft-filter-level>
1631
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;L(this.lastDispatchedValues,t)||(this.dispatchEvent(new fa(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ha.elementDefinitions={"ft-button":En,"ft-filter-level":ea,"ft-snap-scroll":aa,"ft-typography":wi},ha.styles=la,ca([N({type:String})],ha.prototype,"id",void 0),ca([N({type:String})],ha.prototype,"label",void 0),ca([N({type:String})],ha.prototype,"filterPlaceHolder",void 0),ca([N({type:String})],ha.prototype,"clearButtonLabel",void 0),ca([N({type:String})],ha.prototype,"moreValuesButtonLabel",void 0),ca([N({type:String})],ha.prototype,"noValuesLabel",void 0),ca([z([])],ha.prototype,"options",void 0),ca([N({type:Boolean})],ha.prototype,"multivalued",void 0),ca([N({type:Boolean})],ha.prototype,"disabled",void 0),ca([N({type:Boolean})],ha.prototype,"raiseSelectedOptions",void 0),ca([N({type:Number})],ha.prototype,"displayedValuesLimit",void 0),ca([N({type:Boolean})],ha.prototype,"hideClearButton",void 0),ca([R(".ft-filter--slot")],ha.prototype,"slotElement",void 0),ca([R(".ft-filter--container")],ha.prototype,"container",void 0),ca([R(".ft-filter--values")],ha.prototype,"valuesContainer",void 0),ca([R(".ft-filter--levels")],ha.prototype,"levelsContainer",void 0),ca([$()],ha.prototype,"lastLevelHasHiddenvalues",void 0),ca([R(".ft-filter--filter input")],ha.prototype,"filterInput",void 0),ca([function(t){return(e,o)=>k(0,0,{get(){return(this.renderRoot??(E??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],ha.prototype,"levels",void 0),ca([$()],ha.prototype,"withScroll",void 0),ca([$()],ha.prototype,"filter",void 0),ca([$()],ha.prototype,"slideIn",void 0),ca([$()],ha.prototype,"slideOut",void 0);var pa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class da extends Me{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return se`
1632
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;L(this.lastDispatchedValues,t)||(this.dispatchEvent(new ha(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}pa.elementDefinitions={"ft-button":En,"ft-filter-level":oa,"ft-snap-scroll":sa,"ft-typography":wi},pa.styles=ca,fa([$({type:String})],pa.prototype,"id",void 0),fa([$({type:String})],pa.prototype,"label",void 0),fa([$({type:String})],pa.prototype,"filterPlaceHolder",void 0),fa([$({type:String})],pa.prototype,"clearButtonLabel",void 0),fa([$({type:String})],pa.prototype,"moreValuesButtonLabel",void 0),fa([$({type:String})],pa.prototype,"noValuesLabel",void 0),fa([z([])],pa.prototype,"options",void 0),fa([$({type:Boolean})],pa.prototype,"multivalued",void 0),fa([$({type:Boolean})],pa.prototype,"disabled",void 0),fa([$({type:Boolean})],pa.prototype,"raiseSelectedOptions",void 0),fa([$({type:Number})],pa.prototype,"displayedValuesLimit",void 0),fa([$({type:Boolean})],pa.prototype,"hideClearButton",void 0),fa([E(".ft-filter--slot")],pa.prototype,"slotElement",void 0),fa([E(".ft-filter--container")],pa.prototype,"container",void 0),fa([E(".ft-filter--values")],pa.prototype,"valuesContainer",void 0),fa([E(".ft-filter--levels")],pa.prototype,"levelsContainer",void 0),fa([C()],pa.prototype,"lastLevelHasHiddenvalues",void 0),fa([E(".ft-filter--filter input")],pa.prototype,"filterInput",void 0),fa([function(t){return(e,o)=>R(0,0,{get(){return(this.renderRoot??(U??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],pa.prototype,"levels",void 0),fa([C()],pa.prototype,"withScroll",void 0),fa([C()],pa.prototype,"filter",void 0),fa([C()],pa.prototype,"slideIn",void 0),fa([C()],pa.prototype,"slideOut",void 0);var da=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ua extends Me{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return se`
1632
1633
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1633
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}da.elementDefinitions={},pa([N({type:String})],da.prototype,"label",void 0),pa([N({type:Object,converter:t=>t})],da.prototype,"value",void 0),pa([N({type:Boolean,reflect:!0})],da.prototype,"selected",void 0),pa([N({type:Object})],da.prototype,"subOptions",void 0),pa([z({})],da.prototype,"renderOption",void 0),pa([R(".ft-filter-option--slot")],da.prototype,"slotElement",void 0),W("ft-filter")(ha),W("ft-filter-option")(da),t.FtFilter=ha,t.FtFilterChangeEvent=fa,t.FtFilterCssVariables=sa,t.FtFilterLevelCssVariables=Xn,t.FtFilterOption=da,t.levelStyles=Qn,t.styles=la}({});
1634
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ua.elementDefinitions={},da([$({type:String})],ua.prototype,"label",void 0),da([$({type:Object,converter:t=>t})],ua.prototype,"value",void 0),da([$({type:Boolean,reflect:!0})],ua.prototype,"selected",void 0),da([$({type:Object})],ua.prototype,"subOptions",void 0),da([z({})],ua.prototype,"renderOption",void 0),da([E(".ft-filter-option--slot")],ua.prototype,"slotElement",void 0),W("ft-filter")(pa),W("ft-filter-option")(ua),t.FtFilter=pa,t.FtFilterChangeEvent=ha,t.FtFilterCssVariables=la,t.FtFilterLevelCssVariables=Qn,t.FtFilterOption=ua,t.levelStyles=ta,t.styles=ca}({});