@fluid-topics/ft-search-selected-facets 1.1.1 → 1.1.3

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,43 +12,43 @@
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,s=new WeakMap,a=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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,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 h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);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=s.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,h=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=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(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&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(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(v(Element,"innerHTML"),v(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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.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(Es){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 extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{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}}
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,s=new WeakMap,a=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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,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 h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);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=s.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,h=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=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(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&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(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(v(Element,"innerHTML"),v(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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.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(ks){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 extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const s=globalThis,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;const h=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==l)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(a&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&c.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,l),f=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return h(e)})(t):t
20
+ */const n=globalThis,s=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;const c=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==a)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(s&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&l.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,a),h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return c(e)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:p,defineProperty:d,getOwnPropertyDescriptor:u,getOwnPropertyNames:y,getOwnPropertySymbols:g,getPrototypeOf:b}=Object,v=globalThis,m=v.trustedTypes,x=m?m.emptyScript:"",O=v.reactiveElementPolyfillSupport,w=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?x: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}},N=(t,e)=>!p(t,e),$={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;let C=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=$){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&&d(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=u(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)??$}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...y(t),...g(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(f(t))}else void 0!==t&&e.push(f(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(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=s.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.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:S).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:S;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??N)(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){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[w("elementProperties")]=new Map,C[w("finalized")]=new Map,O?.({ReactiveElement:C}),(v.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:f,defineProperty:p,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:y,getPrototypeOf:g}=Object,b=globalThis,v=b.trustedTypes,m=v?v.emptyScript:"",x=b.reactiveElementPolyfillSupport,O=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},S=(t,e)=>!f(t,e),N={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;let $=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=N){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&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=d(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)??N}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...u(t),...y(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(h(t))}else void 0!==t&&e.push(h(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(s)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.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:w).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:w;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??S)(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){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[O("elementProperties")]=new Map,$[O("finalized")]=new Map,x?.({ReactiveElement:$}),(b.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 E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},k=(t=E,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 R(t){return(e,o)=>"object"==typeof o?k(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 C={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},E=(t=C,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 k(t){return(e,o)=>"object"==typeof o?E(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 I(t){return R({...t,state:!0,attribute:!1})}
36
+ */}function R(t){return k({...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
- */const U=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
41
+ */const I=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function L(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 U(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 U(0,0,{get(){return n(this)}})}}
46
+ */;function U(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 I(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 I(0,0,{get(){return n(this)}})}}
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */let A;const W=t=>new Promise((e=>setTimeout(e,t)));function j(t,e){return t.flatMap((t=>[t,...j(e(t),e)]))}function z(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(!z(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(!z(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(!z(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function D(t,e){const o=()=>JSON.parse(JSON.stringify(t));return R({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)=>!z(t,e),...null!=e?e:{}})}
51
+ */let L;class A{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}}const W=t=>new Promise((e=>setTimeout(e,t)));function j(t,e){return t.flatMap((t=>[t,...j(e(t),e)]))}function z(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(!z(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(!z(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(!z(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function D(t,e){const o=()=>JSON.parse(JSON.stringify(t));return k({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)=>!z(t,e),...null!=e?e:{}})}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
@@ -81,7 +81,11 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
81
81
  * @license
82
82
  * Copyright 2019 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */class De extends Ce{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)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=ze.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Be,Pe=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ke=Symbol("constructorPrototype"),Me=Symbol("constructorName"),Te=Symbol("exportpartsDebouncer");class Ze extends De{constructor(){super(),this[Be]=new n(5),this[Me]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Me]&&Object.setPrototypeOf(this,this[Ke])}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[Te].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,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).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!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Be=Te,Pe([R()],Ze.prototype,"exportpartsPrefix",void 0),Pe([D([])],Ze.prototype,"exportpartsPrefixes",void 0),Pe([R()],Ze.prototype,"customStylesheet",void 0);const _e=Rt`
84
+ */class De extends Ce{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)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=ze.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Be,Pe=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ke=Symbol("constructorPrototype"),Me=Symbol("constructorName"),Te=Symbol("exportpartsDebouncer");class Ze extends De{constructor(){super(),this[Be]=new A(5),this[Me]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Me]&&Object.setPrototypeOf(this,this[Ke])}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[Te].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,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).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!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Be=Te,Pe([k()],Ze.prototype,"exportpartsPrefix",void 0),Pe([D([])],Ze.prototype,"exportpartsPrefixes",void 0),Pe([k()],Ze.prototype,"customStylesheet",void 0);const _e=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
85
+ .highlight-html-match {
86
+ background: ${_e};
87
+ }
88
+ `;const He=Rt`
85
89
  .ft-no-text-select {
86
90
  -webkit-touch-callout: none;
87
91
  -webkit-user-select: none;
@@ -102,7 +106,7 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
102
106
  -webkit-hyphens: auto;
103
107
  hyphens: auto
104
108
  }
105
- `;const He=Rt`
109
+ `;const Ge=Rt`
106
110
  .ft-safari-ellipsis-fix {
107
111
  margin-right: 0;
108
112
 
@@ -113,36 +117,36 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
113
117
  display: inline-block;
114
118
  width: 0;
115
119
  }
116
- `;class Ge{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),to=Symbol("internalStores");class eo extends Ze{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[to].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[to].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[to].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ve(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[to].delete(e)}setupStore(t,e){this[to].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[to].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Je].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function oo(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function io(t){return!!t&&!!t[Zo]}function ro(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===_o}(t)||Array.isArray(t)||!!t[To]||!!(null===(e=t.constructor)||void 0===e?void 0:e[To])||ho(t)||fo(t))}function no(t,e,o){void 0===o&&(o=!1),0===so(t)?(o?Object.keys:Ho)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function so(t){var e=t[Zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ho(t)?2:fo(t)?3:0}function ao(t,e){return 2===so(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lo(t,e,o){var i=so(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function co(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ho(t){return Bo&&t instanceof Map}function fo(t){return Po&&t instanceof Set}function po(t){return t.o||t.t}function uo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Go(t);delete e[Zo];for(var o=Ho(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function yo(t,e){return void 0===e&&(e=!1),bo(t)||io(t)||!ro(t)||(so(t)>1&&(t.set=t.add=t.clear=t.delete=go),Object.freeze(t),e&&no(t,(function(t,e){return yo(e,!0)}),!0)),t}function go(){oo(2)}function bo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function vo(t){var e=Vo[t];return e||oo(18,t),e}function mo(){return Fo}function xo(t,e){e&&(vo("Patches"),t.u=[],t.s=[],t.v=e)}function Oo(t){wo(t),t.p.forEach(No),t.p=null}function wo(t){t===Fo&&(Fo=t.l)}function So(t){return Fo={p:[],l:Fo,h:t,m:!0,_:0}}function No(t){var e=t[Zo];0===e.i||1===e.i?e.j():e.g=!0}function $o(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||vo("ES5").S(e,t,i),i?(o[Zo].P&&(Oo(e),oo(4)),ro(t)&&(t=Co(e,t),e.l||ko(e,t)),e.u&&vo("Patches").M(o[Zo].t,t,e.u,e.s)):t=Co(e,o,[]),Oo(e),e.u&&e.v(e.u,e.s),t!==Mo?t:void 0}function Co(t,e,o){if(bo(e))return e;var i=e[Zo];if(!i)return no(e,(function(r,n){return Eo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return ko(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=uo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),no(n,(function(e,n){return Eo(t,i,r,e,n,o,s)})),ko(t,r,!1),o&&t.u&&vo("Patches").N(i,o,t.u,t.s)}return i.o}function Eo(t,e,o,i,r,n,s){if(io(r)){var a=Co(t,r,n&&e&&3!==e.i&&!ao(e.R,i)?n.concat(i):void 0);if(lo(o,i,a),!io(a))return;t.m=!1}else s&&o.add(r);if(ro(r)&&!bo(r)){if(!t.h.D&&t._<1)return;Co(t,r),e&&e.A.l||ko(t,r)}}function ko(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yo(e,o)}function Ro(t,e){var o=t[Zo];return(o?po(o):t)[e]}function Io(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Uo(t){t.P||(t.P=!0,t.l&&Uo(t.l))}function Lo(t){t.o||(t.o=uo(t.t))}function Ao(t,e,o){var i=ho(e)?vo("MapSet").F(e,o):fo(e)?vo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:mo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=qo;o&&(r=[i],n=Yo);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):vo("ES5").J(e,o);return(o?o.A:mo()).p.push(i),i}function Wo(t){return io(t)||oo(22,t),function t(e){if(!ro(e))return e;var o,i=e[Zo],r=so(e);if(i){if(!i.P&&(i.i<4||!vo("ES5").K(i)))return i.t;i.I=!0,o=jo(e,r),i.I=!1}else o=jo(e,r);return no(o,(function(e,r){i&&function(t,e){return 2===so(t)?t.get(e):t[e]}(i.t,e)===r||lo(o,e,t(r))})),3===r?new Set(o):o}(t)}function jo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return uo(t)}qe=Qe,Ye=to,Xe=Je;var zo,Fo,Do="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bo="undefined"!=typeof Map,Po="undefined"!=typeof Set,Ko="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mo=Do?Symbol.for("immer-nothing"):((zo={})["immer-nothing"]=!0,zo),To=Do?Symbol.for("immer-draftable"):"__$immer_draftable",Zo=Do?Symbol.for("immer-state"):"__$immer_state",_o=""+Object.prototype.constructor,Ho="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Go=Object.getOwnPropertyDescriptors||function(t){var e={};return Ho(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Vo={},qo={get:function(t,e){if(e===Zo)return t;var o=po(t);if(!ao(o,e))return function(t,e,o){var i,r=Io(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!ro(i)?i:i===Ro(t.t,e)?(Lo(t),t.o[e]=Ao(t.A.h,i,t)):i},has:function(t,e){return e in po(t)},ownKeys:function(t){return Reflect.ownKeys(po(t))},set:function(t,e,o){var i=Io(po(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ro(po(t),e),n=null==r?void 0:r[Zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(co(o,r)&&(void 0!==o||ao(t.t,e)))return!0;Lo(t),Uo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ro(t.t,e)||e in t.t?(t.R[e]=!1,Lo(t),Uo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=po(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){oo(12)}},Yo={};no(qo,(function(t,e){Yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Yo.deleteProperty=function(t,e){return Yo.set.call(this,t,e,void 0)},Yo.set=function(t,e,o){return qo.set.call(this,t[0],e,o,t[0])};var Xo=function(){function t(t){var e=this;this.O=Ko,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&oo(6),void 0!==i&&"function"!=typeof i&&oo(7),ro(t)){var a=So(e),l=Ao(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?Oo(a):wo(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return xo(a,i),$o(t,a)}),(function(t){throw Oo(a),t})):(xo(a,i),$o(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Mo&&(s=void 0),e.D&&yo(s,!0),i){var h=[],f=[];vo("Patches").M(t,s,h,f),i(h,f)}return s}oo(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ro(t)||oo(8),io(t)&&(t=Wo(t));var e=So(this),o=Ao(this,t,void 0);return o[Zo].C=!0,wo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Zo]).A;return xo(o,e),$o(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ko&&oo(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=vo("Patches").$;return io(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Jo=new Xo,Qo=Jo.produce;function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){var e=function(t,e){if("object"!==ti(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ti(e)?e:String(e)}function oi(t,e,o){return(e=ei(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ii(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ri(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ii(Object(o),!0).forEach((function(e){oi(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ii(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ni(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Jo.produceWithPatches.bind(Jo),Jo.setAutoFreeze.bind(Jo),Jo.setUseProxies.bind(Jo),Jo.applyPatches.bind(Jo),Jo.createDraft.bind(Jo),Jo.finishDraft.bind(Jo);var si="function"==typeof Symbol&&Symbol.observable||"@@observable",ai=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+ai(),REPLACE:"@@redux/REPLACE"+ai(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ai()}};function ci(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ni(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ni(1));return o(ci)(t,e)}if("function"!=typeof t)throw new Error(ni(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(ni(3));return n}function f(t){if("function"!=typeof t)throw new Error(ni(4));if(l)throw new Error(ni(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ni(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ni(7));if(void 0===t.type)throw new Error(ni(8));if(l)throw new Error(ni(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:li.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ni(10));r=t,p({type:li.REPLACE})}})[si]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ni(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[si]=function(){return this},t},i}function hi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:li.INIT}))throw new Error(ni(12));if(void 0===o(void 0,{type:li.PROBE_UNKNOWN_ACTION()}))throw new Error(ni(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ni(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function fi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function pi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ni(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=fi.apply(void 0,n)(o.dispatch),ri(ri({},o),{},{dispatch:i})}}}function di(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var ui=di();ui.withExtraArgument=di;var yi,gi=ui,bi=(yi=function(t,e){return yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},yi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}yi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),vi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},mi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},xi=Object.defineProperty,Oi=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Si=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ci=function(t,e,o){return e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ei=function(t,e){for(var o in e||(e={}))Ni.call(e,o)&&Ci(t,o,e[o]);if(Si)for(var i=0,r=Si(e);i<r.length;i++){o=r[i];$i.call(e,o)&&Ci(t,o,e[o])}return t},ki=function(t,e){return Oi(t,wi(e))},Ri="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?fi:fi.apply(null,arguments)};var Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mi([void 0],t[0].concat(this)))):new(e.bind.apply(e,mi([void 0],t.concat(this))))},e}(Array),Ui=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mi([void 0],t[0].concat(this)))):new(e.bind.apply(e,mi([void 0],t.concat(this))))},e}(Array);function Li(t){return ro(t)?Qo(t,(function(){})):t}function Ai(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ii;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(gi.withExtraArgument(o.extraArgument)):i.push(gi));return i}(t)}}function Wi(t){var e,o=Ai(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=hi(n)}var u=a;"function"==typeof u&&(u=u(o));var y=pi.apply(void 0,u),g=fi;c&&(g=Ri(Ei({trace:!1},"object"==typeof c&&c)));var b=new Ui(y),v=b;return Array.isArray(d)?v=mi([y],d):"function"==typeof d&&(v=d(b)),ci(e,f,g.apply(void 0,v))}function ji(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ei(Ei({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function zi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Fi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Li(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?zi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Ei(Ei({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?zi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Li(t())};else{var c=Li(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=mi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(io(t))return void 0===(i=o(t,e))?t:i;if(ro(t))return Qo(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?ji(c,i):ji(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Di=["name","message","stack","code"],Bi=function(t,e){this.payload=t,this.meta=e},Pi=function(t,e){this.payload=t,this.meta=e},Ki=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Di;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Mi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=ji(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:ki(Ei({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=ji(t+"/pending",(function(t,e,o){return{payload:void 0,meta:ki(Ei({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=ji(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ki)(t||"Rejected"),meta:ki(Ei({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function d(t){h=t,p.abort()}var u=function(){return s=this,u=null,y=function(){var s,u,y,g,b,v;return vi(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Bi(t,e)},fulfillWithValue:function(t,e){return new Pi(t,e)}})).then((function(e){if(e instanceof Bi)throw e;return e instanceof Pi?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Bi?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,u)).next())}));var s,u,y}();return Object.assign(u,{abort:d,requestId:f,arg:t,unwrap:function(){return u.then(Mi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Ti="listenerMiddleware";ji(Ti+"/add"),ji(Ti+"/removeAll"),ji(Ti+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Zo];return qo.get(e,t)},set:function(e){var o=this[Zo];qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zo];if(!r.P)switch(r.i){case 5:i(r)&&Uo(r);break;case 4:o(r)&&Uo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Ho(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Zo){var s=e[n];if(void 0===s&&!ao(e,n))return!0;var a=o[n],l=a&&a[Zo];if(l?l.t!==s:!co(a,s))return!0}}var c=!!e[Zo];return i.length!==Ho(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Vo[t]||(Vo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Go(o);delete n[Zo];for(var s=Ho(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:mo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zo,{value:n,writable:!0}),r},S:function(t,o,r){r?io(o)&&o[Zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Zo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)no(n,(function(e){e!==Zo&&(void 0!==r[e]||ao(r,e)?s[e]||t(n[e]):(s[e]=!0,Uo(o)))})),no(r,(function(t){void 0!==n[t]||ao(n,t)||(s[t]=!1,Uo(o))}));else if(5===a){if(i(o)&&(Uo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Zi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Ve(r))return r;if(null==i)return;const n=Fi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=Wi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Zi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const _i=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!z(t,e),attribute:!1,...e};R(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Hi=Symbol("elementInternals");var Gi,Vi,qi;const Yi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qi=null===(Vi=null===(Gi=window.safari)||void 0===Gi?void 0:Gi.pushNotification)||void 0===Vi?void 0:Vi.toString())&&void 0!==qi?qi:""),Xi=1,Ji=2,Qi=t=>(...e)=>({_$litDirective$:t,values:e});
120
+ `;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ye,Xe,Je;const Qe=Symbol("internalReduxEventsUnsubscribers"),to=Symbol("internalStoresUnsubscribers"),eo=Symbol("internalStores");class oo extends Ze{constructor(){super(...arguments),this[Ye]=new Map,this[Xe]=new Map,this[Je]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[eo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[eo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[eo].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[eo].delete(e)}setupStore(t,e){this[eo].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[eo].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[to].has(t.store):this[to].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[to].set(t,e.subscribe((()=>this.updateFromStores()))),qe(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Qe].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[to].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qe].forEach((t=>t())),this[Qe]=[]}unsubscribeFromStore(t){this[to].has(t)&&this[to].get(t)(),this[to].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function io(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ro(t){return!!t&&!!t[_o]}function no(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ho}(t)||Array.isArray(t)||!!t[Zo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zo])||fo(t)||po(t))}function so(t,e,o){void 0===o&&(o=!1),0===ao(t)?(o?Object.keys:Go)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ao(t){var e=t[_o];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fo(t)?2:po(t)?3:0}function lo(t,e){return 2===ao(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function co(t,e,o){var i=ao(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function ho(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fo(t){return Po&&t instanceof Map}function po(t){return Ko&&t instanceof Set}function uo(t){return t.o||t.t}function yo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vo(t);delete e[_o];for(var o=Go(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function go(t,e){return void 0===e&&(e=!1),vo(t)||ro(t)||!no(t)||(ao(t)>1&&(t.set=t.add=t.clear=t.delete=bo),Object.freeze(t),e&&so(t,(function(t,e){return go(e,!0)}),!0)),t}function bo(){io(2)}function vo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mo(t){var e=qo[t];return e||io(18,t),e}function xo(){return Do}function Oo(t,e){e&&(mo("Patches"),t.u=[],t.s=[],t.v=e)}function wo(t){So(t),t.p.forEach($o),t.p=null}function So(t){t===Do&&(Do=t.l)}function No(t){return Do={p:[],l:Do,h:t,m:!0,_:0}}function $o(t){var e=t[_o];0===e.i||1===e.i?e.j():e.g=!0}function Co(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||mo("ES5").S(e,t,i),i?(o[_o].P&&(wo(e),io(4)),no(t)&&(t=Eo(e,t),e.l||Ro(e,t)),e.u&&mo("Patches").M(o[_o].t,t,e.u,e.s)):t=Eo(e,o,[]),wo(e),e.u&&e.v(e.u,e.s),t!==To?t:void 0}function Eo(t,e,o){if(vo(e))return e;var i=e[_o];if(!i)return so(e,(function(r,n){return ko(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ro(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=yo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),so(n,(function(e,n){return ko(t,i,r,e,n,o,s)})),Ro(t,r,!1),o&&t.u&&mo("Patches").N(i,o,t.u,t.s)}return i.o}function ko(t,e,o,i,r,n,s){if(ro(r)){var a=Eo(t,r,n&&e&&3!==e.i&&!lo(e.R,i)?n.concat(i):void 0);if(co(o,i,a),!ro(a))return;t.m=!1}else s&&o.add(r);if(no(r)&&!vo(r)){if(!t.h.D&&t._<1)return;Eo(t,r),e&&e.A.l||Ro(t,r)}}function Ro(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&go(e,o)}function Io(t,e){var o=t[_o];return(o?uo(o):t)[e]}function Uo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Lo(t){t.P||(t.P=!0,t.l&&Lo(t.l))}function Ao(t){t.o||(t.o=yo(t.t))}function Wo(t,e,o){var i=fo(e)?mo("MapSet").F(e,o):po(e)?mo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:xo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Yo;o&&(r=[i],n=Xo);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):mo("ES5").J(e,o);return(o?o.A:xo()).p.push(i),i}function jo(t){return ro(t)||io(22,t),function t(e){if(!no(e))return e;var o,i=e[_o],r=ao(e);if(i){if(!i.P&&(i.i<4||!mo("ES5").K(i)))return i.t;i.I=!0,o=zo(e,r),i.I=!1}else o=zo(e,r);return so(o,(function(e,r){i&&function(t,e){return 2===ao(t)?t.get(e):t[e]}(i.t,e)===r||co(o,e,t(r))})),3===r?new Set(o):o}(t)}function zo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yo(t)}Ye=to,Xe=eo,Je=Qe;var Fo,Do,Bo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Po="undefined"!=typeof Map,Ko="undefined"!=typeof Set,Mo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,To=Bo?Symbol.for("immer-nothing"):((Fo={})["immer-nothing"]=!0,Fo),Zo=Bo?Symbol.for("immer-draftable"):"__$immer_draftable",_o=Bo?Symbol.for("immer-state"):"__$immer_state",Ho=""+Object.prototype.constructor,Go="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vo=Object.getOwnPropertyDescriptors||function(t){var e={};return Go(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},qo={},Yo={get:function(t,e){if(e===_o)return t;var o=uo(t);if(!lo(o,e))return function(t,e,o){var i,r=Uo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!no(i)?i:i===Io(t.t,e)?(Ao(t),t.o[e]=Wo(t.A.h,i,t)):i},has:function(t,e){return e in uo(t)},ownKeys:function(t){return Reflect.ownKeys(uo(t))},set:function(t,e,o){var i=Uo(uo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Io(uo(t),e),n=null==r?void 0:r[_o];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ho(o,r)&&(void 0!==o||lo(t.t,e)))return!0;Ao(t),Lo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Io(t.t,e)||e in t.t?(t.R[e]=!1,Ao(t),Lo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=uo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){io(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){io(12)}},Xo={};so(Yo,(function(t,e){Xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xo.deleteProperty=function(t,e){return Xo.set.call(this,t,e,void 0)},Xo.set=function(t,e,o){return Yo.set.call(this,t[0],e,o,t[0])};var Jo=function(){function t(t){var e=this;this.O=Mo,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&io(6),void 0!==i&&"function"!=typeof i&&io(7),no(t)){var a=No(e),l=Wo(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?wo(a):So(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Oo(a,i),Co(t,a)}),(function(t){throw wo(a),t})):(Oo(a,i),Co(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===To&&(s=void 0),e.D&&go(s,!0),i){var h=[],f=[];mo("Patches").M(t,s,h,f),i(h,f)}return s}io(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){no(t)||io(8),ro(t)&&(t=jo(t));var e=No(this),o=Wo(this,t,void 0);return o[_o].C=!0,So(e),o},e.finishDraft=function(t,e){var o=(t&&t[_o]).A;return Oo(o,e),Co(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Mo&&io(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=mo("Patches").$;return ro(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Qo=new Jo,ti=Qo.produce;function ei(t){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(t)}function oi(t){var e=function(t,e){if("object"!==ei(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ei(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ei(e)?e:String(e)}function ii(t,e,o){return(e=oi(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ri(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ni(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ri(Object(o),!0).forEach((function(e){ii(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ri(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function si(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Qo.produceWithPatches.bind(Qo),Qo.setAutoFreeze.bind(Qo),Qo.setUseProxies.bind(Qo),Qo.applyPatches.bind(Qo),Qo.createDraft.bind(Qo),Qo.finishDraft.bind(Qo);var ai="function"==typeof Symbol&&Symbol.observable||"@@observable",li=function(){return Math.random().toString(36).substring(7).split("").join(".")},ci={INIT:"@@redux/INIT"+li(),REPLACE:"@@redux/REPLACE"+li(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+li()}};function hi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(si(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(si(1));return o(hi)(t,e)}if("function"!=typeof t)throw new Error(si(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(si(3));return n}function f(t){if("function"!=typeof t)throw new Error(si(4));if(l)throw new Error(si(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(si(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(si(7));if(void 0===t.type)throw new Error(si(8));if(l)throw new Error(si(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ci.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(si(10));r=t,p({type:ci.REPLACE})}})[ai]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(si(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[ai]=function(){return this},t},i}function fi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ci.INIT}))throw new Error(si(12));if(void 0===o(void 0,{type:ci.PROBE_UNKNOWN_ACTION()}))throw new Error(si(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(si(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function pi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function di(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(si(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=pi.apply(void 0,n)(o.dispatch),ni(ni({},o),{},{dispatch:i})}}}function ui(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var yi=ui();yi.withExtraArgument=ui;var gi,bi=yi,vi=(gi=function(t,e){return gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},gi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}gi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),mi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},xi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Oi=Object.defineProperty,wi=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Ei=function(t,e,o){return e in t?Oi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ki=function(t,e){for(var o in e||(e={}))$i.call(e,o)&&Ei(t,o,e[o]);if(Ni)for(var i=0,r=Ni(e);i<r.length;i++){o=r[i];Ci.call(e,o)&&Ei(t,o,e[o])}return t},Ri=function(t,e){return wi(t,Si(e))},Ii="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pi:pi.apply(null,arguments)};var Ui=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return vi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),Li=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return vi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);function Ai(t){return no(t)?ti(t,(function(){})):t}function Wi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ui;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(bi.withExtraArgument(o.extraArgument)):i.push(bi));return i}(t)}}function ji(t){var e,o=Wi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=fi(n)}var u=a;"function"==typeof u&&(u=u(o));var y=di.apply(void 0,u),g=pi;c&&(g=Ii(ki({trace:!1},"object"==typeof c&&c)));var b=new Li(y),v=b;return Array.isArray(d)?v=xi([y],d):"function"==typeof d&&(v=d(b)),hi(e,f,g.apply(void 0,v))}function zi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return ki(ki({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Fi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Di(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Ai(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Fi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=ki(ki({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Fi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ai(t())};else{var c=Ai(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=xi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ro(t))return void 0===(i=o(t,e))?t:i;if(no(t))return ti(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?zi(c,i):zi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Bi=["name","message","stack","code"],Pi=function(t,e){this.payload=t,this.meta=e},Ki=function(t,e){this.payload=t,this.meta=e},Mi=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Bi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ti(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=zi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ri(ki({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=zi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ri(ki({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=zi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Mi)(t||"Rejected"),meta:Ri(ki({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function d(t){h=t,p.abort()}var u=function(){return s=this,u=null,y=function(){var s,u,y,g,b,v;return mi(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Pi(t,e)},fulfillWithValue:function(t,e){return new Ki(t,e)}})).then((function(e){if(e instanceof Pi)throw e;return e instanceof Ki?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Pi?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,u)).next())}));var s,u,y}();return Object.assign(u,{abort:d,requestId:f,arg:t,unwrap:function(){return u.then(Ti)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Zi="listenerMiddleware";zi(Zi+"/add"),zi(Zi+"/removeAll"),zi(Zi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[_o];return Yo.get(e,t)},set:function(e){var o=this[_o];Yo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][_o];if(!r.P)switch(r.i){case 5:i(r)&&Lo(r);break;case 4:o(r)&&Lo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Go(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==_o){var s=e[n];if(void 0===s&&!lo(e,n))return!0;var a=o[n],l=a&&a[_o];if(l?l.t!==s:!ho(a,s))return!0}}var c=!!e[_o];return i.length!==Go(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){qo[t]||(qo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Vo(o);delete n[_o];for(var s=Go(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:xo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,_o,{value:n,writable:!0}),r},S:function(t,o,r){r?ro(o)&&o[_o].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[_o];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)so(n,(function(e){e!==_o&&(void 0!==r[e]||lo(r,e)?s[e]||t(n[e]):(s[e]=!0,Lo(o)))})),so(r,(function(t){void 0!==n[t]||lo(n,t)||(s[t]=!1,Lo(o))}));else if(5===a){if(i(o)&&(Lo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class _i{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(qe(r))return r;if(null==i)return;const n=Di({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=ji({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new _i(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Hi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!z(t,e),attribute:!1,...e};k(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Gi=Symbol("elementInternals");var Vi,qi,Yi;const Xi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yi=null===(qi=null===(Vi=window.safari)||void 0===Vi?void 0:Vi.pushNotification)||void 0===qi?void 0:qi.toString())&&void 0!==Yi?Yi:""),Ji=1,Qi=2,tr=t=>(...e)=>({_$litDirective$:t,values:e});
117
121
  /**
118
122
  * @license
119
123
  * Copyright 2017 Google LLC
120
124
  * SPDX-License-Identifier: BSD-3-Clause
121
- */let tr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
125
+ */let er=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
122
126
  /**
123
127
  * @license
124
128
  * Copyright 2020 Google LLC
125
129
  * SPDX-License-Identifier: BSD-3-Clause
126
- */const{D:er}=Ot,or=()=>document.createComment(""),ir=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(or(),r),n=i.insertBefore(or(),r);o=new er(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,s=n!==t;if(s){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},rr=(t,e,o=t)=>(t._$AI(e,o),t),nr={},sr=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},ar=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},lr=Qi(class extends tr{constructor(t){if(super(t),t.type!==Ji)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let s=0;for(const e of t)r[s]=i?i(e,s):s,n[s]=o(e,s),s++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:s}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=s,n;const a=this.dt??=[],l=[];let c,h,f=0,p=r.length-1,d=0,u=n.length-1;for(;f<=p&&d<=u;)if(null===r[f])f++;else if(null===r[p])p--;else if(a[f]===s[d])l[d]=rr(r[f],n[d]),f++,d++;else if(a[p]===s[u])l[u]=rr(r[p],n[u]),p--,u--;else if(a[f]===s[u])l[u]=rr(r[f],n[u]),ir(t,l[u+1],r[f]),f++,u--;else if(a[p]===s[d])l[d]=rr(r[p],n[d]),ir(t,r[f],r[p]),p--,d++;else if(void 0===c&&(c=ar(s,d,u),h=ar(a,f,p)),c.has(a[f]))if(c.has(a[p])){const e=h.get(s[d]),o=void 0!==e?r[e]:null;if(null===o){const e=ir(t,r[f]);rr(e,n[d]),l[d]=e}else l[d]=rr(o,n[d]),ir(t,r[f],o),r[e]=null;d++}else sr(r[p]),p--;else sr(r[f]),f++;for(;d<=u;){const e=ir(t,l[u+1]);rr(e,n[d]),l[d++]=e}for(;f<=p;){const t=r[f++];null!==t&&sr(t)}return this.dt=s,((t,e=nr)=>{t._$AH=e})(t,l),st}}),cr={spacing:Re.create("--ft-search-selected-facets-spacing","","SIZE","8px")},hr=Rt`
130
+ */const{D:or}=Ot,ir=()=>document.createComment(""),rr=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(ir(),r),n=i.insertBefore(ir(),r);o=new or(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,s=n!==t;if(s){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},nr=(t,e,o=t)=>(t._$AI(e,o),t),sr={},ar=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},lr=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},cr=tr(class extends er{constructor(t){if(super(t),t.type!==Qi)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let s=0;for(const e of t)r[s]=i?i(e,s):s,n[s]=o(e,s),s++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:s}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=s,n;const a=this.dt??=[],l=[];let c,h,f=0,p=r.length-1,d=0,u=n.length-1;for(;f<=p&&d<=u;)if(null===r[f])f++;else if(null===r[p])p--;else if(a[f]===s[d])l[d]=nr(r[f],n[d]),f++,d++;else if(a[p]===s[u])l[u]=nr(r[p],n[u]),p--,u--;else if(a[f]===s[u])l[u]=nr(r[f],n[u]),rr(t,l[u+1],r[f]),f++,u--;else if(a[p]===s[d])l[d]=nr(r[p],n[d]),rr(t,r[f],r[p]),p--,d++;else if(void 0===c&&(c=lr(s,d,u),h=lr(a,f,p)),c.has(a[f]))if(c.has(a[p])){const e=h.get(s[d]),o=void 0!==e?r[e]:null;if(null===o){const e=rr(t,r[f]);nr(e,n[d]),l[d]=e}else l[d]=nr(o,n[d]),rr(t,r[f],o),r[e]=null;d++}else ar(r[p]),p--;else ar(r[f]),f++;for(;d<=u;){const e=rr(t,l[u+1]);nr(e,n[d]),l[d++]=e}for(;f<=p;){const t=r[f++];null!==t&&ar(t)}return this.dt=s,((t,e=sr)=>{t._$AH=e})(t,l),st}}),hr={spacing:Re.create("--ft-search-selected-facets-spacing","","SIZE","8px")},fr=Rt`
127
131
  .ft-search-selected-facets--container {
128
132
  display: flex;
129
133
  flex-wrap: wrap;
130
- gap: ${cr.spacing};
134
+ gap: ${hr.spacing};
131
135
  }
132
- `,fr={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};
136
+ `,pr={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};
133
137
  /**
134
138
  * @license
135
139
  * Copyright 2017 Google LLC
136
140
  * SPDX-License-Identifier: BSD-3-Clause
137
- */var pr,dr,ur,yr,gr,br,vr,mr,xr,Or,wr,Sr,Nr,$r;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new b(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(pr||(pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(yr||(yr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(gr||(gr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(vr||(vr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(mr||(mr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sr||(Sr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Nr||(Nr={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}($r||($r={})),$r.PERSONAL_BOOK_SHARE_USER,$r.PERSONAL_BOOK_USER,$r.HTML_EXPORT_USER,$r.PERSONAL_BOOK_USER,$r.PDF_EXPORT_USER,$r.PERSONAL_BOOK_USER,$r.KHUB_ADMIN,$r.CONTENT_PUBLISHER,$r.ADMIN,$r.KHUB_ADMIN,$r.USERS_ADMIN,$r.PORTAL_ADMIN,$r.DEVELOPER,$r.BETA_USER,$r.DEBUG_USER;const Cr=Rt`
138
- `,Er=Zi.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class kr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Er.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?kr.build(t):null!==(e=kr.API)&&void 0!==e?e:kr.API=kr.build()}static await(t){return new Promise((e=>{let o=kr.get(t);if(o)e(o);else{const i=Er.subscribe((()=>{o=kr.get(t),o&&(i(),e(o))}))}}))}}var Rr;const Ir=Symbol("clearAfterUnitTest");class Ur{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Rr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Er.getState().uiLocale,Er.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Er.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};z(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}Rr=Ir,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ur((async(t,e)=>(await kr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ur((async(t,e)=>(await kr.await()).getCustomMessageContext(t,e))));const Lr=window.FluidTopicsI18nService,Ar=window.FluidTopicsCustomI18nService;var Wr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class jr extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>kr.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return fe`
141
+ */var dr,ur,yr,gr,br,vr,mr,xr,Or,wr,Sr,Nr,$r,Cr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new b(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(dr||(dr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ur||(ur={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(yr||(yr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gr||(gr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(br||(br={})),function(t){t.ASC="ASC",t.DESC="DESC"}(vr||(vr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mr||(mr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(xr||(xr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Or||(Or={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Sr||(Sr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Nr||(Nr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}($r||($r={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Cr||(Cr={})),Cr.PERSONAL_BOOK_SHARE_USER,Cr.PERSONAL_BOOK_USER,Cr.HTML_EXPORT_USER,Cr.PERSONAL_BOOK_USER,Cr.PDF_EXPORT_USER,Cr.PERSONAL_BOOK_USER,Cr.KHUB_ADMIN,Cr.CONTENT_PUBLISHER,Cr.ADMIN,Cr.KHUB_ADMIN,Cr.USERS_ADMIN,Cr.PORTAL_ADMIN,Cr.DEVELOPER,Cr.BETA_USER,Cr.DEBUG_USER;const Er=Rt`
142
+ `,kr=_i.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Rr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=kr.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Rr.build(t):null!==(e=Rr.API)&&void 0!==e?e:Rr.API=Rr.build()}static await(t){return new Promise((e=>{let o=Rr.get(t);if(o)e(o);else{const i=kr.subscribe((()=>{o=Rr.get(t),o&&(i(),e(o))}))}}))}}var Ir;const Ur=Symbol("clearAfterUnitTest");class Lr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Ir]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=kr.getState().uiLocale,kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};z(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ve(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}Ir=Ur,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Lr((async(t,e)=>(await Rr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Lr((async(t,e)=>(await Rr.await()).getCustomMessageContext(t,e))));const Ar=window.FluidTopicsI18nService,Wr=window.FluidTopicsCustomI18nService;var jr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class zr extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Rr.get(),this.cache=new r,this.cleanSessionDebouncer=new A}render(){return fe`
139
143
  <slot></slot>
140
- `}update(t){super.update(t),t.has("baseUrl")&&Er.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Er.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Er.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Er.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Er.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Er.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Er.actions.setSession(this.session),t.has("availableUiLocales")&&Er.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Lr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}jr.elementDefinitions={},jr.styles=Cr,Wr([R()],jr.prototype,"baseUrl",void 0),Wr([R()],jr.prototype,"apiIntegrationIdentifier",void 0),Wr([R()],jr.prototype,"uiLocale",void 0),Wr([D([])],jr.prototype,"availableUiLocales",void 0),Wr([R({type:Boolean})],jr.prototype,"editorMode",void 0),Wr([R({type:Boolean})],jr.prototype,"noCustom",void 0),Wr([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Wr([R({type:Boolean})],jr.prototype,"withManualResources",void 0),Wr([D([])],jr.prototype,"messageContexts",void 0),Wr([D(void 0)],jr.prototype,"session",void 0),Wr([R({type:Object})],jr.prototype,"apiProvider",void 0);class zr{async listMySearches(){var t;return(null===(t=Er.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await kr.await()).listMySearches(Er.getState().session.profile.userId):[]}}const Fr=new r;class Dr{async listMyBookmarks(){return Fr.get("bookmarks",(async()=>(await kr.await()).listMyBookmarks(Er.getState().session.profile.userId)))}clearCache(){Fr.clear("bookmarks")}}const Br=Zi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Pr=new class{constructor(){this.currentSession=Er.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,Er.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Er.getState();z(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Br.actions.savedSearches(void 0)}clearMyBookmarks(){Br.actions.bookmarks(void 0)}async reloadMySearches(){const t=new zr,e=await t.listMySearches();Br.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Br.actions.bookmarks(e)}}};F("ft-app-context")(jr);class Kr{static async build(){return new Kr(await kr.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Mr=t=>t.request.virtualField===mr.TITLE_ONLY&&t.request.scope===Nr.DOCUMENTS;class Tr extends Event{constructor(){super(Tr.eventName)}}Tr.eventName="search-context-clear-all-filters";class Zr{static build(t){return new Zr((t=>Zi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:fr}))(t.trim()||"context"),Kr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(mr.TITLE_ONLY),this.store.actions.setRequestScope(Nr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(mr.EVERYWHERE),this.store.actions.setRequestScope(Nr.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Mr(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Tr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var _r=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Hr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Gr=Symbol("registerInterval");class Vr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Gr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Gr]):this.dispatchEvent(new Hr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Gr,_r([I()],o.prototype,"stateManager",void 0),o}(eo)){}
144
+ `}update(t){super.update(t),t.has("baseUrl")&&kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&kr.actions.setSession(this.session),t.has("availableUiLocales")&&kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ar.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}zr.elementDefinitions={},zr.styles=Er,jr([k()],zr.prototype,"baseUrl",void 0),jr([k()],zr.prototype,"apiIntegrationIdentifier",void 0),jr([k()],zr.prototype,"uiLocale",void 0),jr([D([])],zr.prototype,"availableUiLocales",void 0),jr([k({type:Boolean})],zr.prototype,"editorMode",void 0),jr([k({type:Boolean})],zr.prototype,"noCustom",void 0),jr([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],zr.prototype,"noCustomComponent",void 0),jr([k({type:Boolean})],zr.prototype,"withManualResources",void 0),jr([D([])],zr.prototype,"messageContexts",void 0),jr([D(void 0)],zr.prototype,"session",void 0),jr([k({type:Object})],zr.prototype,"apiProvider",void 0);class Fr{async listMySearches(){var t;return(null===(t=kr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Rr.await()).listMySearches(kr.getState().session.profile.userId):[]}}const Dr=new r;class Br{async listMyBookmarks(){return Dr.get("bookmarks",(async()=>(await Rr.await()).listMyBookmarks(kr.getState().session.profile.userId)))}clearCache(){Dr.clear("bookmarks")}}const Pr=_i.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Kr=new class{constructor(){this.currentSession=kr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Br,kr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=kr.getState();z(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Pr.actions.savedSearches(void 0)}clearMyBookmarks(){Pr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Fr,e=await t.listMySearches();Pr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Pr.actions.bookmarks(e)}}};F("ft-app-context")(zr);class Mr{static async build(){return new Mr(await Rr.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Tr=t=>t.request.virtualField===xr.TITLE_ONLY&&t.request.scope===$r.DOCUMENTS;class Zr extends Event{constructor(){super(Zr.eventName)}}Zr.eventName="search-context-clear-all-filters";class _r{static build(t){return new _r((t=>_i.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:pr}))(t.trim()||"context"),Mr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new A(100),this.suggestDebouncer=new A(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(xr.TITLE_ONLY),this.store.actions.setRequestScope($r.DOCUMENTS)):(this.store.actions.setRequestVirtualField(xr.EVERYWHERE),this.store.actions.setRequestScope($r.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Tr(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Zr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Hr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Gr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Vr=Symbol("registerInterval");class qr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Vr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Vr]):this.dispatchEvent(new Gr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Vr,Hr([R()],o.prototype,"stateManager",void 0),o}(oo)){}
141
145
  /**
142
146
  * @license
143
147
  * Copyright 2018 Google LLC
144
148
  * SPDX-License-Identifier: BSD-3-Clause
145
- */const qr=Qi(class extends tr{constructor(t){if(super(t),t.type!==Xi||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return st}}),Yr=Re.extend("--ft-ripple-color","",je.colorContent),Xr={color:Yr,backgroundColor:Re.extend("--ft-ripple-background-color","",Yr),opacityContentOnSurfacePressed:Re.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},Jr=Re.extend("--ft-ripple-color","",je.colorPrimary),Qr=Jr,tn=Re.extend("--ft-ripple-background-color","",Jr),en=Re.extend("--ft-ripple-color","",je.colorSecondary),on=en,rn=Re.extend("--ft-ripple-background-color","",en),nn=Rt`
149
+ */const Yr=tr(class extends er{constructor(t){if(super(t),t.type!==Ji||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return st}}),Xr=Re.extend("--ft-ripple-color","",je.colorContent),Jr={color:Xr,backgroundColor:Re.extend("--ft-ripple-background-color","",Xr),opacityContentOnSurfacePressed:Re.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},Qr=Re.extend("--ft-ripple-color","",je.colorPrimary),tn=Qr,en=Re.extend("--ft-ripple-background-color","",Qr),on=Re.extend("--ft-ripple-color","",je.colorSecondary),rn=on,nn=Re.extend("--ft-ripple-background-color","",on),sn=Rt`
146
150
  :host {
147
151
  display: contents;
148
152
  }
@@ -155,7 +159,7 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
155
159
 
156
160
  .ft-ripple:not(.ft-ripple--unbounded) {
157
161
  overflow: hidden;
158
- border-radius: ${Xr.borderRadius};
162
+ border-radius: ${Jr.borderRadius};
159
163
  }
160
164
 
161
165
  .ft-ripple .ft-ripple--background,
@@ -189,27 +193,27 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
189
193
  }
190
194
 
191
195
  .ft-ripple .ft-ripple--background {
192
- background-color: ${Xr.backgroundColor};
196
+ background-color: ${Jr.backgroundColor};
193
197
  }
194
198
 
195
199
  .ft-ripple .ft-ripple--effect {
196
- background-color: ${Xr.color};
200
+ background-color: ${Jr.color};
197
201
  }
198
202
 
199
203
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
200
- background-color: ${rn};
204
+ background-color: ${nn};
201
205
  }
202
206
 
203
207
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
204
- background-color: ${on};
208
+ background-color: ${rn};
205
209
  }
206
210
 
207
211
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
208
- background-color: ${tn};
212
+ background-color: ${en};
209
213
  }
210
214
 
211
215
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
212
- background-color: ${Qr};
216
+ background-color: ${tn};
213
217
  }
214
218
 
215
219
  .ft-ripple .ft-ripple--background {
@@ -239,134 +243,134 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
239
243
  }
240
244
 
241
245
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
242
- opacity: ${Xr.opacityContentOnSurfaceHover};
246
+ opacity: ${Jr.opacityContentOnSurfaceHover};
243
247
  }
244
248
 
245
249
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
246
- opacity: ${Xr.opacityContentOnSurfaceSelected};
250
+ opacity: ${Jr.opacityContentOnSurfaceSelected};
247
251
  }
248
252
 
249
253
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
250
- opacity: ${Xr.opacityContentOnSurfaceFocused};
254
+ opacity: ${Jr.opacityContentOnSurfaceFocused};
251
255
  }
252
256
 
253
257
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
254
- opacity: ${Xr.opacityContentOnSurfacePressed};
258
+ opacity: ${Jr.opacityContentOnSurfacePressed};
255
259
  transform: translate(-50%, -50%) scale(1);
256
260
  }
257
- `;var sn=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class an extends Ze{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 n(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 n(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 fe`
261
+ `;var an=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ln extends Ze{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 A(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 A(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 fe`
258
262
  <style>
259
263
  .ft-ripple .ft-ripple--effect {
260
264
  left: ${this.originX}px;
261
265
  top: ${this.originY}px;
262
266
  }
263
267
  </style>
264
- <div class="${qr(t)}">
268
+ <div class="${Yr(t)}">
265
269
  <div class="ft-ripple--background"></div>
266
270
  <div class="ft-ripple--effect"></div>
267
271
  </div>
268
- `}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)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),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()}}an.elementDefinitions={},an.styles=nn,sn([R({type:Boolean})],an.prototype,"primary",void 0),sn([R({type:Boolean})],an.prototype,"secondary",void 0),sn([R({type:Boolean})],an.prototype,"unbounded",void 0),sn([R({type:Boolean})],an.prototype,"activated",void 0),sn([R({type:Boolean})],an.prototype,"selected",void 0),sn([R({type:Boolean})],an.prototype,"disabled",void 0),sn([I()],an.prototype,"hovered",void 0),sn([I()],an.prototype,"focused",void 0),sn([I()],an.prototype,"pressed",void 0),sn([I()],an.prototype,"rippling",void 0),sn([I()],an.prototype,"originX",void 0),sn([I()],an.prototype,"originY",void 0),sn([L(".ft-ripple")],an.prototype,"ripple",void 0),sn([L(".ft-ripple--effect")],an.prototype,"rippleEffect",void 0),F("ft-ripple")(an);
272
+ `}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)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),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()}}ln.elementDefinitions={},ln.styles=sn,an([k({type:Boolean})],ln.prototype,"primary",void 0),an([k({type:Boolean})],ln.prototype,"secondary",void 0),an([k({type:Boolean})],ln.prototype,"unbounded",void 0),an([k({type:Boolean})],ln.prototype,"activated",void 0),an([k({type:Boolean})],ln.prototype,"selected",void 0),an([k({type:Boolean})],ln.prototype,"disabled",void 0),an([R()],ln.prototype,"hovered",void 0),an([R()],ln.prototype,"focused",void 0),an([R()],ln.prototype,"pressed",void 0),an([R()],ln.prototype,"rippling",void 0),an([R()],ln.prototype,"originX",void 0),an([R()],ln.prototype,"originY",void 0),an([U(".ft-ripple")],ln.prototype,"ripple",void 0),an([U(".ft-ripple--effect")],ln.prototype,"rippleEffect",void 0),F("ft-ripple")(ln);
269
273
  /**
270
274
  * @license
271
275
  * Copyright 2020 Google LLC
272
276
  * SPDX-License-Identifier: BSD-3-Clause
273
277
  */
274
- const ln=Symbol.for(""),cn=t=>{if(t?.r===ln)return t?._$litStatic$},hn=t=>({_$litStatic$:t,r:ln}),fn=new Map,pn=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=cn(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=fn.get(t))&&(s.raw=s,fn.set(t,e=s)),o=a}return t(e,...o)})(nt);var dn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(dn||(dn={}));const un=Re.extend("--ft-typography-font-family","",je.titleFont),yn=Re.extend("--ft-typography-font-family","",je.contentFont),gn={fontFamily:yn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},bn=Re.extend("--ft-typography-title-font-family","",un),vn=Re.extend("--ft-typography-title-font-size","",gn.fontSize,"20px"),mn=Re.extend("--ft-typography-title-font-weight","",gn.fontWeight,"normal"),xn=Re.extend("--ft-typography-title-letter-spacing","",gn.letterSpacing,"0.15px"),On=Re.extend("--ft-typography-title-line-height","",gn.lineHeight,"1.2"),wn=Re.extend("--ft-typography-title-text-transform","",gn.textTransform,"inherit"),Sn=Re.extend("--ft-typography-title-dense-font-family","",un),Nn=Re.extend("--ft-typography-title-dense-font-size","",gn.fontSize,"14px"),$n=Re.extend("--ft-typography-title-dense-font-weight","",gn.fontWeight,"normal"),Cn=Re.extend("--ft-typography-title-dense-letter-spacing","",gn.letterSpacing,"0.105px"),En=Re.extend("--ft-typography-title-dense-line-height","",gn.lineHeight,"1.7"),kn=Re.extend("--ft-typography-title-dense-text-transform","",gn.textTransform,"inherit"),Rn=Re.extend("--ft-typography-subtitle1-font-family","",yn),In=Re.extend("--ft-typography-subtitle1-font-size","",gn.fontSize,"16px"),Un=Re.extend("--ft-typography-subtitle1-font-weight","",gn.fontWeight,"600"),Ln=Re.extend("--ft-typography-subtitle1-letter-spacing","",gn.letterSpacing,"0.144px"),An=Re.extend("--ft-typography-subtitle1-line-height","",gn.lineHeight,"1.5"),Wn=Re.extend("--ft-typography-subtitle1-text-transform","",gn.textTransform,"inherit"),jn=Re.extend("--ft-typography-subtitle2-font-family","",yn),zn=Re.extend("--ft-typography-subtitle2-font-size","",gn.fontSize,"14px"),Fn=Re.extend("--ft-typography-subtitle2-font-weight","",gn.fontWeight,"normal"),Dn=Re.extend("--ft-typography-subtitle2-letter-spacing","",gn.letterSpacing,"0.098px"),Bn=Re.extend("--ft-typography-subtitle2-line-height","",gn.lineHeight,"1.7"),Pn=Re.extend("--ft-typography-subtitle2-text-transform","",gn.textTransform,"inherit"),Kn=Re.extend("--ft-typography-body1-font-family","",yn),Mn=Re.extend("--ft-typography-body1-font-size","",gn.fontSize,"16px"),Tn=Re.extend("--ft-typography-body1-font-weight","",gn.fontWeight,"normal"),Zn=Re.extend("--ft-typography-body1-letter-spacing","",gn.letterSpacing,"0.496px"),_n=Re.extend("--ft-typography-body1-line-height","",gn.lineHeight,"1.5"),Hn=Re.extend("--ft-typography-body1-text-transform","",gn.textTransform,"inherit"),Gn={fontFamily:Re.extend("--ft-typography-body2-font-family","",yn),fontSize:Re.extend("--ft-typography-body2-font-size","",gn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-body2-font-weight","",gn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body2-letter-spacing","",gn.letterSpacing,"0.252px"),lineHeight:Re.extend("--ft-typography-body2-line-height","",gn.lineHeight,"1.4"),textTransform:Re.extend("--ft-typography-body2-text-transform","",gn.textTransform,"inherit")},Vn=Re.extend("--ft-typography-caption-font-family","",yn),qn=Re.extend("--ft-typography-caption-font-size","",gn.fontSize,"12px"),Yn=Re.extend("--ft-typography-caption-font-weight","",gn.fontWeight,"normal"),Xn=Re.extend("--ft-typography-caption-letter-spacing","",gn.letterSpacing,"0.396px"),Jn=Re.extend("--ft-typography-caption-line-height","",gn.lineHeight,"1.33"),Qn=Re.extend("--ft-typography-caption-text-transform","",gn.textTransform,"inherit"),ts=Re.extend("--ft-typography-breadcrumb-font-family","",yn),es=Re.extend("--ft-typography-breadcrumb-font-size","",gn.fontSize,"10px"),os=Re.extend("--ft-typography-breadcrumb-font-weight","",gn.fontWeight,"normal"),is=Re.extend("--ft-typography-breadcrumb-letter-spacing","",gn.letterSpacing,"0.33px"),rs=Re.extend("--ft-typography-breadcrumb-line-height","",gn.lineHeight,"1.6"),ns=Re.extend("--ft-typography-breadcrumb-text-transform","",gn.textTransform,"inherit"),ss=Re.extend("--ft-typography-overline-font-family","",yn),as=Re.extend("--ft-typography-overline-font-size","",gn.fontSize,"10px"),ls=Re.extend("--ft-typography-overline-font-weight","",gn.fontWeight,"normal"),cs=Re.extend("--ft-typography-overline-letter-spacing","",gn.letterSpacing,"1.5px"),hs=Re.extend("--ft-typography-overline-line-height","",gn.lineHeight,"1.6"),fs=Re.extend("--ft-typography-overline-text-transform","",gn.textTransform,"uppercase"),ps={fontFamily:Re.extend("--ft-typography-button-font-family","",yn),fontSize:Re.extend("--ft-typography-button-font-size","",gn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",gn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",gn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",gn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",gn.textTransform,"uppercase")},ds=Rt`
278
+ const cn=Symbol.for(""),hn=t=>{if(t?.r===cn)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:cn}),pn=new Map,dn=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=hn(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=pn.get(t))&&(s.raw=s,pn.set(t,e=s)),o=a}return t(e,...o)})(nt);var un;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(un||(un={}));const yn=Re.extend("--ft-typography-font-family","",je.titleFont),gn=Re.extend("--ft-typography-font-family","",je.contentFont),bn={fontFamily:gn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},vn=Re.extend("--ft-typography-title-font-family","",yn),mn=Re.extend("--ft-typography-title-font-size","",bn.fontSize,"20px"),xn=Re.extend("--ft-typography-title-font-weight","",bn.fontWeight,"normal"),On=Re.extend("--ft-typography-title-letter-spacing","",bn.letterSpacing,"0.15px"),wn=Re.extend("--ft-typography-title-line-height","",bn.lineHeight,"1.2"),Sn=Re.extend("--ft-typography-title-text-transform","",bn.textTransform,"inherit"),Nn=Re.extend("--ft-typography-title-dense-font-family","",yn),$n=Re.extend("--ft-typography-title-dense-font-size","",bn.fontSize,"14px"),Cn=Re.extend("--ft-typography-title-dense-font-weight","",bn.fontWeight,"normal"),En=Re.extend("--ft-typography-title-dense-letter-spacing","",bn.letterSpacing,"0.105px"),kn=Re.extend("--ft-typography-title-dense-line-height","",bn.lineHeight,"1.7"),Rn=Re.extend("--ft-typography-title-dense-text-transform","",bn.textTransform,"inherit"),In=Re.extend("--ft-typography-subtitle1-font-family","",gn),Un=Re.extend("--ft-typography-subtitle1-font-size","",bn.fontSize,"16px"),Ln=Re.extend("--ft-typography-subtitle1-font-weight","",bn.fontWeight,"600"),An=Re.extend("--ft-typography-subtitle1-letter-spacing","",bn.letterSpacing,"0.144px"),Wn=Re.extend("--ft-typography-subtitle1-line-height","",bn.lineHeight,"1.5"),jn=Re.extend("--ft-typography-subtitle1-text-transform","",bn.textTransform,"inherit"),zn=Re.extend("--ft-typography-subtitle2-font-family","",gn),Fn=Re.extend("--ft-typography-subtitle2-font-size","",bn.fontSize,"14px"),Dn=Re.extend("--ft-typography-subtitle2-font-weight","",bn.fontWeight,"normal"),Bn=Re.extend("--ft-typography-subtitle2-letter-spacing","",bn.letterSpacing,"0.098px"),Pn=Re.extend("--ft-typography-subtitle2-line-height","",bn.lineHeight,"1.7"),Kn=Re.extend("--ft-typography-subtitle2-text-transform","",bn.textTransform,"inherit"),Mn=Re.extend("--ft-typography-body1-font-family","",gn),Tn=Re.extend("--ft-typography-body1-font-size","",bn.fontSize,"16px"),Zn=Re.extend("--ft-typography-body1-font-weight","",bn.fontWeight,"normal"),_n=Re.extend("--ft-typography-body1-letter-spacing","",bn.letterSpacing,"0.496px"),Hn=Re.extend("--ft-typography-body1-line-height","",bn.lineHeight,"1.5"),Gn=Re.extend("--ft-typography-body1-text-transform","",bn.textTransform,"inherit"),Vn={fontFamily:Re.extend("--ft-typography-body2-font-family","",gn),fontSize:Re.extend("--ft-typography-body2-font-size","",bn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-body2-font-weight","",bn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body2-letter-spacing","",bn.letterSpacing,"0.252px"),lineHeight:Re.extend("--ft-typography-body2-line-height","",bn.lineHeight,"1.4"),textTransform:Re.extend("--ft-typography-body2-text-transform","",bn.textTransform,"inherit")},qn=Re.extend("--ft-typography-caption-font-family","",gn),Yn=Re.extend("--ft-typography-caption-font-size","",bn.fontSize,"12px"),Xn=Re.extend("--ft-typography-caption-font-weight","",bn.fontWeight,"normal"),Jn=Re.extend("--ft-typography-caption-letter-spacing","",bn.letterSpacing,"0.396px"),Qn=Re.extend("--ft-typography-caption-line-height","",bn.lineHeight,"1.33"),ts=Re.extend("--ft-typography-caption-text-transform","",bn.textTransform,"inherit"),es=Re.extend("--ft-typography-breadcrumb-font-family","",gn),os=Re.extend("--ft-typography-breadcrumb-font-size","",bn.fontSize,"10px"),is=Re.extend("--ft-typography-breadcrumb-font-weight","",bn.fontWeight,"normal"),rs=Re.extend("--ft-typography-breadcrumb-letter-spacing","",bn.letterSpacing,"0.33px"),ns=Re.extend("--ft-typography-breadcrumb-line-height","",bn.lineHeight,"1.6"),ss=Re.extend("--ft-typography-breadcrumb-text-transform","",bn.textTransform,"inherit"),as=Re.extend("--ft-typography-overline-font-family","",gn),ls=Re.extend("--ft-typography-overline-font-size","",bn.fontSize,"10px"),cs=Re.extend("--ft-typography-overline-font-weight","",bn.fontWeight,"normal"),hs=Re.extend("--ft-typography-overline-letter-spacing","",bn.letterSpacing,"1.5px"),fs=Re.extend("--ft-typography-overline-line-height","",bn.lineHeight,"1.6"),ps=Re.extend("--ft-typography-overline-text-transform","",bn.textTransform,"uppercase"),ds={fontFamily:Re.extend("--ft-typography-button-font-family","",gn),fontSize:Re.extend("--ft-typography-button-font-size","",bn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",bn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",bn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",bn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",bn.textTransform,"uppercase")},us=Rt`
275
279
  .ft-typography--title {
276
- font-family: ${bn};
277
- font-size: ${vn};
278
- font-weight: ${mn};
279
- letter-spacing: ${xn};
280
- line-height: ${On};
281
- text-transform: ${wn};
282
- }
283
- `,us=Rt`
284
- .ft-typography--title-dense {
285
- font-family: ${Sn};
286
- font-size: ${Nn};
287
- font-weight: ${$n};
288
- letter-spacing: ${Cn};
289
- line-height: ${En};
290
- text-transform: ${kn};
280
+ font-family: ${vn};
281
+ font-size: ${mn};
282
+ font-weight: ${xn};
283
+ letter-spacing: ${On};
284
+ line-height: ${wn};
285
+ text-transform: ${Sn};
291
286
  }
292
287
  `,ys=Rt`
293
- .ft-typography--subtitle1 {
294
- font-family: ${Rn};
295
- font-size: ${In};
296
- font-weight: ${Un};
297
- letter-spacing: ${Ln};
298
- line-height: ${An};
299
- text-transform: ${Wn};
288
+ .ft-typography--title-dense {
289
+ font-family: ${Nn};
290
+ font-size: ${$n};
291
+ font-weight: ${Cn};
292
+ letter-spacing: ${En};
293
+ line-height: ${kn};
294
+ text-transform: ${Rn};
300
295
  }
301
296
  `,gs=Rt`
302
- .ft-typography--subtitle2 {
303
- font-family: ${jn};
304
- font-size: ${zn};
305
- font-weight: ${Fn};
306
- letter-spacing: ${Dn};
307
- line-height: ${Bn};
308
- text-transform: ${Pn};
297
+ .ft-typography--subtitle1 {
298
+ font-family: ${In};
299
+ font-size: ${Un};
300
+ font-weight: ${Ln};
301
+ letter-spacing: ${An};
302
+ line-height: ${Wn};
303
+ text-transform: ${jn};
309
304
  }
310
-
311
305
  `,bs=Rt`
312
- .ft-typography--body1 {
313
- font-family: ${Kn};
314
- font-size: ${Mn};
315
- font-weight: ${Tn};
316
- letter-spacing: ${Zn};
317
- line-height: ${_n};
318
- text-transform: ${Hn};
306
+ .ft-typography--subtitle2 {
307
+ font-family: ${zn};
308
+ font-size: ${Fn};
309
+ font-weight: ${Dn};
310
+ letter-spacing: ${Bn};
311
+ line-height: ${Pn};
312
+ text-transform: ${Kn};
319
313
  }
314
+
320
315
  `,vs=Rt`
321
- .ft-typography--body2 {
322
- font-family: ${Gn.fontFamily};
323
- font-size: ${Gn.fontSize};
324
- font-weight: ${Gn.fontWeight};
325
- letter-spacing: ${Gn.letterSpacing};
326
- line-height: ${Gn.lineHeight};
327
- text-transform: ${Gn.textTransform};
316
+ .ft-typography--body1 {
317
+ font-family: ${Mn};
318
+ font-size: ${Tn};
319
+ font-weight: ${Zn};
320
+ letter-spacing: ${_n};
321
+ line-height: ${Hn};
322
+ text-transform: ${Gn};
328
323
  }
329
324
  `,ms=Rt`
330
- .ft-typography--caption {
331
- font-family: ${Vn};
332
- font-size: ${qn};
333
- font-weight: ${Yn};
334
- letter-spacing: ${Xn};
335
- line-height: ${Jn};
336
- text-transform: ${Qn};
325
+ .ft-typography--body2 {
326
+ font-family: ${Vn.fontFamily};
327
+ font-size: ${Vn.fontSize};
328
+ font-weight: ${Vn.fontWeight};
329
+ letter-spacing: ${Vn.letterSpacing};
330
+ line-height: ${Vn.lineHeight};
331
+ text-transform: ${Vn.textTransform};
337
332
  }
338
333
  `,xs=Rt`
339
- .ft-typography--breadcrumb {
340
- font-family: ${ts};
341
- font-size: ${es};
342
- font-weight: ${os};
343
- letter-spacing: ${is};
344
- line-height: ${rs};
345
- text-transform: ${ns};
334
+ .ft-typography--caption {
335
+ font-family: ${qn};
336
+ font-size: ${Yn};
337
+ font-weight: ${Xn};
338
+ letter-spacing: ${Jn};
339
+ line-height: ${Qn};
340
+ text-transform: ${ts};
346
341
  }
347
342
  `,Os=Rt`
348
- .ft-typography--overline {
349
- font-family: ${ss};
350
- font-size: ${as};
351
- font-weight: ${ls};
352
- letter-spacing: ${cs};
353
- line-height: ${hs};
354
- text-transform: ${fs};
343
+ .ft-typography--breadcrumb {
344
+ font-family: ${es};
345
+ font-size: ${os};
346
+ font-weight: ${is};
347
+ letter-spacing: ${rs};
348
+ line-height: ${ns};
349
+ text-transform: ${ss};
355
350
  }
356
351
  `,ws=Rt`
357
- .ft-typography--button {
358
- font-family: ${ps.fontFamily};
359
- font-size: ${ps.fontSize};
360
- font-weight: ${ps.fontWeight};
361
- letter-spacing: ${ps.letterSpacing};
362
- line-height: ${ps.lineHeight};
363
- text-transform: ${ps.textTransform};
352
+ .ft-typography--overline {
353
+ font-family: ${as};
354
+ font-size: ${ls};
355
+ font-weight: ${cs};
356
+ letter-spacing: ${hs};
357
+ line-height: ${fs};
358
+ text-transform: ${ps};
364
359
  }
365
360
  `,Ss=Rt`
361
+ .ft-typography--button {
362
+ font-family: ${ds.fontFamily};
363
+ font-size: ${ds.fontSize};
364
+ font-weight: ${ds.fontWeight};
365
+ letter-spacing: ${ds.letterSpacing};
366
+ line-height: ${ds.lineHeight};
367
+ text-transform: ${ds.textTransform};
368
+ }
369
+ `,Ns=Rt`
366
370
  .ft-typography {
367
371
  vertical-align: inherit;
368
372
  }
369
- `,Ns=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
373
+ `,$s=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
370
374
  .ft-typography--${kt(t)} {
371
375
  font-family: ${e.fontFamily};
372
376
  font-size: ${e.fontSize};
@@ -375,20 +379,20 @@ const ln=Symbol.for(""),cn=t=>{if(t?.r===ln)return t?._$litStatic$},hn=t=>({_$li
375
379
  line-height: ${e.lineHeight};
376
380
  text-transform: ${e.textCase};
377
381
  }
378
- `}(t)))];var $s=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Cs extends Ze{constructor(){super(...arguments),this.variant=dn.body1}render(){return this.element?pn`
379
- <${hn(this.element)}
382
+ `}(t)))];var Cs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Es extends Ze{constructor(){super(...arguments),this.variant=un.body1}render(){return this.element?dn`
383
+ <${fn(this.element)}
380
384
  class="ft-typography ft-typography--${this.variant}">
381
385
  <slot></slot>
382
- </${hn(this.element)}>
383
- `:pn`
386
+ </${fn(this.element)}>
387
+ `:dn`
384
388
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
385
- `}}Cs.styles=[ds,us,ys,gs,bs,vs,ms,xs,Os,ws,Ss,...Ns],$s([R()],Cs.prototype,"element",void 0),$s([R()],Cs.prototype,"variant",void 0),F("ft-typography")(Cs);
389
+ `}}Es.styles=[us,ys,gs,bs,vs,ms,xs,Os,ws,Ss,Ns,...$s],Cs([k()],Es.prototype,"element",void 0),Cs([k()],Es.prototype,"variant",void 0),F("ft-typography")(Es);
386
390
  /**
387
391
  * @license
388
392
  * Copyright 2017 Google LLC
389
393
  * SPDX-License-Identifier: BSD-3-Clause
390
394
  */
391
- class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===st)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:[]}}}Es.directiveName="unsafeHTML",Es.resultType=1;const ks=Qi(Es);var Rs,Is;!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;"}(Rs||(Rs={})),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;"}(Is||(Is={})),new Map([...["abw"].map((t=>[t,Is.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,Is.AUDIO])),...["avi"].map((t=>[t,Is.AVI])),...["chm","xhs"].map((t=>[t,Is.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,Is.CODE])),...["csv"].map((t=>[t,Is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Is.DITA])),...["epub"].map((t=>[t,Is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Is.EXCEL])),...["flac"].map((t=>[t,Is.FLAC])),...["gif"].map((t=>[t,Is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Is.GZIP])),...["html","htm","xhtml"].map((t=>[t,Is.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,Is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Is.JPEG])),...["json"].map((t=>[t,Is.JSON])),...["m4a","m4p"].map((t=>[t,Is.M4A])),...["mov","qt"].map((t=>[t,Is.MOV])),...["mp3"].map((t=>[t,Is.MP3])),...["mp4","m4v"].map((t=>[t,Is.MP4])),...["ogg","oga"].map((t=>[t,Is.OGG])),...["pdf","ps"].map((t=>[t,Is.PDF])),...["png"].map((t=>[t,Is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Is.POWERPOINT])),...["rar"].map((t=>[t,Is.RAR])),...["stp"].map((t=>[t,Is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Is.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,Is.VIDEO])),...["wav"].map((t=>[t,Is.WAV])),...["wma"].map((t=>[t,Is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Is.WORD])),...["xml","xsl","rdf"].map((t=>[t,Is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Is.YAML])),...["zip"].map((t=>[t,Is.ZIP]))]);const Us={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ls=Rt`
395
+ class ks extends er{constructor(t){if(super(t),this.et=at,t.type!==Qi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===st)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:[]}}}ks.directiveName="unsafeHTML",ks.resultType=1;const Rs=tr(ks);var Is,Us;!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;"}(Is||(Is={})),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;"}(Us||(Us={})),new Map([...["abw"].map((t=>[t,Us.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,Us.AUDIO])),...["avi"].map((t=>[t,Us.AVI])),...["chm","xhs"].map((t=>[t,Us.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,Us.CODE])),...["csv"].map((t=>[t,Us.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Us.DITA])),...["epub"].map((t=>[t,Us.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Us.EXCEL])),...["flac"].map((t=>[t,Us.FLAC])),...["gif"].map((t=>[t,Us.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Us.GZIP])),...["html","htm","xhtml"].map((t=>[t,Us.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,Us.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Us.JPEG])),...["json"].map((t=>[t,Us.JSON])),...["m4a","m4p"].map((t=>[t,Us.M4A])),...["mov","qt"].map((t=>[t,Us.MOV])),...["mp3"].map((t=>[t,Us.MP3])),...["mp4","m4v"].map((t=>[t,Us.MP4])),...["ogg","oga"].map((t=>[t,Us.OGG])),...["pdf","ps"].map((t=>[t,Us.PDF])),...["png"].map((t=>[t,Us.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Us.POWERPOINT])),...["rar"].map((t=>[t,Us.RAR])),...["stp"].map((t=>[t,Us.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Us.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,Us.VIDEO])),...["wav"].map((t=>[t,Us.WAV])),...["wma"].map((t=>[t,Us.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Us.WORD])),...["xml","xsl","rdf"].map((t=>[t,Us.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Us.YAML])),...["zip"].map((t=>[t,Us.ZIP]))]);const Ls={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},As=Rt`
392
396
  :host, i.ft-icon {
393
397
  display: inline-flex;
394
398
  align-items: center;
@@ -397,14 +401,14 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
397
401
  }
398
402
 
399
403
  :host {
400
- width: ${Us.size};
401
- height: ${Us.size};
404
+ width: ${Ls.size};
405
+ height: ${Ls.size};
402
406
  }
403
407
 
404
408
  i.ft-icon {
405
409
  width: 100%;
406
410
  height: 100%;
407
- font-size: ${Us.size};
411
+ font-size: ${Ls.size};
408
412
  line-height: 1;
409
413
  font-weight: normal;
410
414
  text-transform: none;
@@ -415,33 +419,33 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
415
419
  text-rendering: auto;
416
420
  -webkit-font-smoothing: antialiased;
417
421
  -moz-osx-font-smoothing: grayscale;
418
- vertical-align: ${Us.verticalAlign};
422
+ vertical-align: ${Ls.verticalAlign};
419
423
  }
420
424
 
421
425
  i.ft-icon.ft-icon--fluid-topics {
422
- font-family: ${Us.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
426
+ font-family: ${Ls.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
423
427
 
424
428
  /* Ugly fix because font is broken */
425
- font-size: calc(0.75 * ${Us.size});
426
- line-height: ${Us.size};
429
+ font-size: calc(0.75 * ${Ls.size});
430
+ line-height: ${Ls.size};
427
431
  position: relative;
428
432
  top: -4%;
429
433
  justify-content: center;
430
434
  }
431
435
 
432
436
  .ft-icon--file-format {
433
- font-family: ${Us.fileFormatFontFamily}, ft-mime, sans-serif;
437
+ font-family: ${Ls.fileFormatFontFamily}, ft-mime, sans-serif;
434
438
  }
435
439
 
436
440
  .ft-icon--material {
437
- font-family: ${Us.materialFontFamily}, "Material Icons", sans-serif;
441
+ font-family: ${Ls.materialFontFamily}, "Material Icons", sans-serif;
438
442
  }
439
- `;var As;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(As||(As={}));var Ws=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class js extends Ze{constructor(){super(...arguments),this.resolvedIcon=de}render(){const t=this.variant&&Object.values(As).includes(this.variant)?this.variant:As.fluid_topics,e=t!==As.material||!!this.value;return fe`
443
+ `;var Ws;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ws||(Ws={}));var js=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class zs extends Ze{constructor(){super(...arguments),this.resolvedIcon=de}render(){const t=this.variant&&Object.values(Ws).includes(this.variant)?this.variant:Ws.fluid_topics,e=t!==Ws.material||!!this.value;return fe`
440
444
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
441
- ${ks(this.resolvedIcon)}
445
+ ${Rs(this.resolvedIcon)}
442
446
  <slot ?hidden=${e}></slot>
443
447
  </i>
444
- `}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 As.file_format:this.resolvedIcon=null!==(t=Is[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case As.material:this.resolvedIcon=this.value||de;break;default:this.resolvedIcon=null!==(e=Rs[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}js.elementDefinitions={},js.styles=Ls,Ws([R()],js.prototype,"variant",void 0),Ws([R()],js.prototype,"value",void 0),Ws([I()],js.prototype,"resolvedIcon",void 0),Ws([L("slot")],js.prototype,"slottedContent",void 0),F("ft-icon")(js);const zs={color:Re.extend("--ft-loader-color","",je.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},Fs=Rt`
448
+ `}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 Ws.file_format:this.resolvedIcon=null!==(t=Us[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ws.material:this.resolvedIcon=this.value||de;break;default:this.resolvedIcon=null!==(e=Is[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zs.elementDefinitions={},zs.styles=As,js([k()],zs.prototype,"variant",void 0),js([k()],zs.prototype,"value",void 0),js([R()],zs.prototype,"resolvedIcon",void 0),js([U("slot")],zs.prototype,"slottedContent",void 0),F("ft-icon")(zs);const Fs={color:Re.extend("--ft-loader-color","",je.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},Ds=Rt`
445
449
  :host {
446
450
  line-height: 0;
447
451
  }
@@ -450,8 +454,8 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
450
454
  display: inline-block;
451
455
  position: relative;
452
456
 
453
- width: ${zs.size};
454
- height: ${zs.size};
457
+ width: ${Fs.size};
458
+ height: ${Fs.size};
455
459
  }
456
460
 
457
461
  .ft-loader div {
@@ -460,7 +464,7 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
460
464
  width: 25%;
461
465
  height: 25%;
462
466
  border-radius: 50%;
463
- background: ${zs.color};
467
+ background: ${Fs.color};
464
468
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
465
469
  }
466
470
 
@@ -507,10 +511,10 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
507
511
  transform: translate(0, 0);
508
512
  }
509
513
  100% {
510
- transform: translate(calc(0.35 * ${zs.size}), 0);
514
+ transform: translate(calc(0.35 * ${Fs.size}), 0);
511
515
  }
512
516
  }
513
- `,Ds=Re.extend("--ft-button-color","",je.colorPrimary),Bs={backgroundColor:Re.extend("--ft-button-background-color","",je.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",je.borderRadiusL),color:Ds,fontSize:Re.extend("--ft-button-font-size","",ps.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",Ds),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},Ps=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",je.colorOnPrimary)),Ks={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",je.colorPrimary)),color:Ps,rippleColor:Re.extend("--ft-button-primary-ripple-color","",Ps)},Ms=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",je.borderRadiusM)),Ts=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Zs=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),_s=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Hs=[Rt`
517
+ `,Bs=Re.extend("--ft-button-color","",je.colorPrimary),Ps={backgroundColor:Re.extend("--ft-button-background-color","",je.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",je.borderRadiusL),color:Bs,fontSize:Re.extend("--ft-button-font-size","",ds.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",Bs),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},Ks=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",je.colorOnPrimary)),Ms={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",je.colorPrimary)),color:Ks,rippleColor:Re.extend("--ft-button-primary-ripple-color","",Ks)},Ts=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",je.borderRadiusM)),Zs=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),_s=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Hs=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Gs=[Rt`
514
518
  :host {
515
519
  display: inline-block;
516
520
  max-width: 100%;
@@ -521,7 +525,7 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
521
525
  box-shadow: 0px 0px 0px transparent;
522
526
  border: 0px solid transparent;
523
527
  text-shadow: 0px 0px 0px transparent;
524
- font-size: ${Bs.fontSize};
528
+ font-size: ${Ps.fontSize};
525
529
  }
526
530
 
527
531
  button:hover {
@@ -550,31 +554,31 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
550
554
  border: none;
551
555
  pointer-events: auto;
552
556
 
553
- --ft-button-internal-line-height: max(calc(${Bs.fontSize} + 2px), ${Bs.iconSize});
554
- --ft-button-internal-color: ${Bs.color};
555
- ${Ie(Us.size,Bs.iconSize)};
556
- ${Ie(Xr.color,Bs.rippleColor)};
557
+ --ft-button-internal-line-height: max(calc(${Ps.fontSize} + 2px), ${Ps.iconSize});
558
+ --ft-button-internal-color: ${Ps.color};
559
+ ${Ie(Ls.size,Ps.iconSize)};
560
+ ${Ie(Jr.color,Ps.rippleColor)};
557
561
 
558
- border-radius: ${Bs.borderRadius};
559
- padding: ${Bs.verticalPadding} ${Bs.horizontalPadding};
560
- background-color: ${Bs.backgroundColor};
562
+ border-radius: ${Ps.borderRadius};
563
+ padding: ${Ps.verticalPadding} ${Ps.horizontalPadding};
564
+ background-color: ${Ps.backgroundColor};
561
565
  color: var(--ft-button-internal-color);
562
566
  -webkit-mask-image: radial-gradient(white, black);
563
567
  }
564
568
 
565
569
  .ft-button.ft-button--outlined {
566
570
  border: 1px solid var(--ft-button-internal-color);
567
- padding: calc(${Bs.verticalPadding} - 1px) calc(${Bs.horizontalPadding} - 1px);
571
+ padding: calc(${Ps.verticalPadding} - 1px) calc(${Ps.horizontalPadding} - 1px);
568
572
  }
569
573
 
570
574
  .ft-button.ft-button--dense {
571
- padding: ${Ts} ${Zs};
572
- border-radius: ${Ms};
573
- gap: ${_s};
575
+ padding: ${Zs} ${_s};
576
+ border-radius: ${Ts};
577
+ gap: ${Hs};
574
578
  }
575
579
 
576
580
  .ft-button.ft-button--dense.ft-button--outlined {
577
- padding: calc(${Ts} - 1px) calc(${Zs} - 1px);
581
+ padding: calc(${Zs} - 1px) calc(${_s} - 1px);
578
582
  }
579
583
 
580
584
  .ft-button:not([disabled]):hover {
@@ -582,22 +586,22 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
582
586
  }
583
587
 
584
588
  .ft-button--round {
585
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Bs.verticalPadding});
589
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ps.verticalPadding});
586
590
  }
587
591
 
588
592
  .ft-button--round.ft-button--dense {
589
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ts});
593
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zs});
590
594
  }
591
595
 
592
596
  .ft-button[disabled] {
593
597
  filter: grayscale(1);
594
- opacity: ${Bs.opacityDisabled};
598
+ opacity: ${Ps.opacityDisabled};
595
599
  }
596
600
 
597
601
  .ft-button.ft-button--primary {
598
- background-color: ${Ks.backgroundColor};
599
- --ft-button-internal-color: ${Ks.color};
600
- ${Ie(Xr.color,Ks.rippleColor)};
602
+ background-color: ${Ms.backgroundColor};
603
+ --ft-button-internal-color: ${Ms.color};
604
+ ${Ie(Jr.color,Ms.rippleColor)};
601
605
  }
602
606
 
603
607
  .ft-button:focus {
@@ -610,13 +614,13 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
610
614
  white-space: nowrap;
611
615
  text-overflow: ellipsis;
612
616
  display: block;
613
- margin: 0 ${Bs.iconPadding};
614
- ${Ie(ps.fontSize,"1em")};
615
- ${Ie(ps.lineHeight,"var(--ft-button-internal-line-height)")};
617
+ margin: 0 ${Ps.iconPadding};
618
+ ${Ie(ds.fontSize,"1em")};
619
+ ${Ie(ds.lineHeight,"var(--ft-button-internal-line-height)")};
616
620
  }
617
621
 
618
622
  .ft-button--dense .ft-button--label {
619
- margin: 0 ${_s};
623
+ margin: 0 ${Hs};
620
624
  }
621
625
 
622
626
  .ft-button--label[hidden] {
@@ -629,13 +633,13 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
629
633
  }
630
634
 
631
635
  .ft-button--label[hidden] + ft-icon {
632
- margin: 0 calc(${Bs.horizontalPadding} * -1);
633
- padding: 0 ${Bs.verticalPadding};
636
+ margin: 0 calc(${Ps.horizontalPadding} * -1);
637
+ padding: 0 ${Ps.verticalPadding};
634
638
  }
635
639
 
636
640
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
637
- margin: 0 calc(${Zs} * -1);
638
- padding: 0 ${Ts};
641
+ margin: 0 calc(${_s} * -1);
642
+ padding: 0 ${Zs};
639
643
  }
640
644
 
641
645
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -644,10 +648,10 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
644
648
  }
645
649
 
646
650
  ft-loader {
647
- ${Ie(zs.size,Bs.iconSize)};
648
- ${Ie(zs.color,"var(--ft-button-internal-color)")};
651
+ ${Ie(Fs.size,Ps.iconSize)};
652
+ ${Ie(Fs.color,"var(--ft-button-internal-color)")};
649
653
  }
650
- `,_e],Gs=Re.create("--ft-tooltip-distance","","SIZE","4px"),Vs=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),qs=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Ys=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Xs=Re.external(je.borderRadiusS,"Design system"),Js=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Qs=Rt`
654
+ `,He],Vs=Re.create("--ft-tooltip-distance","","SIZE","4px"),qs=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ys=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Xs=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Js=Re.external(je.borderRadiusS,"Design system"),Qs=Re.create("--ft-tooltip-max-width","","SIZE","150px"),ta=Rt`
651
655
  .ft-tooltip--container {
652
656
  display: block;
653
657
  }
@@ -662,21 +666,21 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
662
666
  box-sizing: border-box;
663
667
  overflow: hidden;
664
668
  width: max-content;
665
- max-width: ${Js};
669
+ max-width: ${Qs};
666
670
  text-align: center;
667
- padding: ${Gs};
668
- z-index: ${Ys};
671
+ padding: ${Vs};
672
+ z-index: ${Xs};
669
673
  }
670
674
 
671
675
  .ft-tooltip--content {
672
676
  padding: 4px 8px;
673
- border-radius: ${Xs};
674
- background-color: ${qs};
675
- color: ${Vs};
677
+ border-radius: ${Js};
678
+ background-color: ${Ys};
679
+ color: ${qs};
676
680
  position: relative;
677
681
  word-break: break-word;
678
682
  }
679
- `;var ta=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ea extends Ze{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
683
+ `;var ea=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class oa extends Ze{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 A,this.revealDebouncer=new A}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
680
684
  <div part="container"
681
685
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
682
686
  @mouseenter=${this.onHover}
@@ -694,29 +698,29 @@ class Es extends tr{constructor(t){if(super(t),this.et=at,t.type!==Ji)throw Erro
694
698
  </div>
695
699
  </div>
696
700
  </div>
697
- `}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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,p=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,p))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Js})`}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))}}ea.elementDefinitions={"ft-typography":Cs},ea.styles=Qs,ta([R()],ea.prototype,"text",void 0),ta([R({type:Boolean})],ea.prototype,"manual",void 0),ta([R({type:Boolean})],ea.prototype,"inline",void 0),ta([R({type:Number})],ea.prototype,"delay",void 0),ta([R()],ea.prototype,"position",void 0),ta([
701
+ `}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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,p=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,p))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Qs})`}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))}}oa.elementDefinitions={"ft-typography":Es},oa.styles=ta,ea([k()],oa.prototype,"text",void 0),ea([k({type:Boolean})],oa.prototype,"manual",void 0),ea([k({type:Boolean})],oa.prototype,"inline",void 0),ea([k({type:Number})],oa.prototype,"delay",void 0),ea([k()],oa.prototype,"position",void 0),ea([
698
702
  /**
699
703
  * @license
700
704
  * Copyright 2017 Google LLC
701
705
  * SPDX-License-Identifier: BSD-3-Clause
702
706
  */
703
- function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ea.prototype,"slotNodes",void 0),ta([L(".ft-tooltip--container")],ea.prototype,"container",void 0),ta([L(".ft-tooltip")],ea.prototype,"tooltip",void 0),ta([L(".ft-tooltip--content")],ea.prototype,"tooltipContent",void 0),ta([I()],ea.prototype,"visible",void 0),F("ft-tooltip")(ea);class oa extends Ze{render(){return fe`
707
+ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],oa.prototype,"slotNodes",void 0),ea([U(".ft-tooltip--container")],oa.prototype,"container",void 0),ea([U(".ft-tooltip")],oa.prototype,"tooltip",void 0),ea([U(".ft-tooltip--content")],oa.prototype,"tooltipContent",void 0),ea([R()],oa.prototype,"visible",void 0),F("ft-tooltip")(oa);class ia extends Ze{render(){return fe`
704
708
  <div class="ft-loader">
705
709
  <div></div>
706
710
  <div></div>
707
711
  <div></div>
708
712
  <div></div>
709
713
  </div>
710
- `}}oa.styles=Fs,F("ft-loader")(oa);var ia=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ra extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Hi].form}constructor(...t){super(t),this[Hi]=this.attachInternals(),this[Hi].role=e}setFormValue(t){this[Hi].setFormValue(t)}}}(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
714
+ `}}ia.styles=Ds,F("ft-loader")(ia);var ra=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class na extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Gi].form}constructor(...t){super(t),this[Gi]=this.attachInternals(),this[Gi].role=e}setFormValue(t){this[Gi].setFormValue(t)}}}(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
711
715
  <button part="button"
712
- class="${qr(this.buttonClasses)}"
716
+ class="${Yr(this.buttonClasses)}"
713
717
  aria-label="${this.getLabel()}"
714
718
  ?disabled=${this.isDisabled()}>
715
719
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
716
720
  <ft-typography part="label"
717
721
  variant=${this.typographyVariant}
718
722
  element="span"
719
- class="ft-button--label ${Yi?"ft-safari-ellipsis-fix":""}"
723
+ class="ft-button--label ${Xi?"ft-safari-ellipsis-fix":""}"
720
724
  ?hidden=${!this.hasTextContent()}>
721
725
  <slot @slotchange=${this.onSlotchange}></slot>
722
726
  </ft-typography>
@@ -730,7 +734,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
730
734
  </ft-tooltip>
731
735
  `:t}resolveIcon(){return this.loading?fe`
732
736
  <ft-loader part="loader icon"></ft-loader> `:this.icon?fe`
733
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:de}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}}ra.elementDefinitions={"ft-ripple":an,"ft-tooltip":ea,"ft-typography":Cs,"ft-icon":js,"ft-loader":oa},ia([R({type:String,reflect:!0})],ra.prototype,"role",void 0),ia([R()],ra.prototype,"type",void 0),ia([R({type:Boolean})],ra.prototype,"disabled",void 0),ia([R()],ra.prototype,"label",void 0),ia([R()],ra.prototype,"icon",void 0),ia([R()],ra.prototype,"iconVariant",void 0),ia([R({type:Boolean})],ra.prototype,"trailingIcon",void 0),ia([R({type:Boolean})],ra.prototype,"loading",void 0),ia([R()],ra.prototype,"tooltipPosition",void 0),ia([R({type:Boolean})],ra.prototype,"hideTooltip",void 0),ia([R({type:Boolean})],ra.prototype,"forceTooltip",void 0),ia([L(".ft-button")],ra.prototype,"button",void 0),ia([L(".ft-button--label slot")],ra.prototype,"slottedContent",void 0);var na=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class sa extends ra{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"}}sa.styles=[He,Hs],na([R({type:Boolean})],sa.prototype,"primary",void 0),na([R({type:Boolean})],sa.prototype,"outlined",void 0),na([R({type:Boolean})],sa.prototype,"dense",void 0),na([R({type:Boolean})],sa.prototype,"round",void 0);const aa=[Rt`
737
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:de}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}}na.elementDefinitions={"ft-ripple":ln,"ft-tooltip":oa,"ft-typography":Es,"ft-icon":zs,"ft-loader":ia},ra([k({type:String,reflect:!0})],na.prototype,"role",void 0),ra([k()],na.prototype,"type",void 0),ra([k({type:Boolean})],na.prototype,"disabled",void 0),ra([k()],na.prototype,"label",void 0),ra([k()],na.prototype,"icon",void 0),ra([k()],na.prototype,"iconVariant",void 0),ra([k({type:Boolean})],na.prototype,"trailingIcon",void 0),ra([k({type:Boolean})],na.prototype,"loading",void 0),ra([k()],na.prototype,"tooltipPosition",void 0),ra([k({type:Boolean})],na.prototype,"hideTooltip",void 0),ra([k({type:Boolean})],na.prototype,"forceTooltip",void 0),ra([U(".ft-button")],na.prototype,"button",void 0),ra([U(".ft-button--label slot")],na.prototype,"slottedContent",void 0);var sa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class aa extends na{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"}}aa.styles=[Ge,Gs],sa([k({type:Boolean})],aa.prototype,"primary",void 0),sa([k({type:Boolean})],aa.prototype,"outlined",void 0),sa([k({type:Boolean})],aa.prototype,"dense",void 0),sa([k({type:Boolean})],aa.prototype,"round",void 0);const la=[Rt`
734
738
  :host {
735
739
  display: inline-block;
736
740
  max-width: 100%;
@@ -809,13 +813,13 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
809
813
  /** Primary styles **/
810
814
 
811
815
  .ft-button--primary {
812
- ${Ie(zs.color,We.primaryIconColor)};
816
+ ${Ie(Fs.color,We.primaryIconColor)};
813
817
 
814
- ${Ie(Xr.color,We.primaryStateLayerColor)};
815
- ${Ie(Xr.opacityContentOnSurfaceHover,We.primaryStateLayerOpacityHover)};
816
- ${Ie(Xr.opacityContentOnSurfaceFocused,We.primaryStateLayerOpacityFocus)};
817
- ${Ie(Xr.opacityContentOnSurfaceSelected,We.primaryStateLayerOpacityActive)};
818
- ${Ie(Xr.opacityContentOnSurfacePressed,We.primaryStateLayerOpacityActive)};
818
+ ${Ie(Jr.color,We.primaryStateLayerColor)};
819
+ ${Ie(Jr.opacityContentOnSurfaceHover,We.primaryStateLayerOpacityHover)};
820
+ ${Ie(Jr.opacityContentOnSurfaceFocused,We.primaryStateLayerOpacityFocus)};
821
+ ${Ie(Jr.opacityContentOnSurfaceSelected,We.primaryStateLayerOpacityActive)};
822
+ ${Ie(Jr.opacityContentOnSurfacePressed,We.primaryStateLayerOpacityActive)};
819
823
 
820
824
  background-color: ${We.primaryBackgroundColor};
821
825
  color: ${We.primaryColor};
@@ -833,13 +837,13 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
833
837
  /** Secondary styles **/
834
838
 
835
839
  .ft-button--secondary {
836
- ${Ie(zs.color,We.secondaryIconColor)};
840
+ ${Ie(Fs.color,We.secondaryIconColor)};
837
841
 
838
- ${Ie(Xr.color,We.secondaryStateLayerColor)};
839
- ${Ie(Xr.opacityContentOnSurfaceHover,We.secondaryStateLayerOpacityHover)};
840
- ${Ie(Xr.opacityContentOnSurfaceFocused,We.secondaryStateLayerOpacityFocus)};
841
- ${Ie(Xr.opacityContentOnSurfaceSelected,We.secondaryStateLayerOpacityActive)};
842
- ${Ie(Xr.opacityContentOnSurfacePressed,We.secondaryStateLayerOpacityActive)};
842
+ ${Ie(Jr.color,We.secondaryStateLayerColor)};
843
+ ${Ie(Jr.opacityContentOnSurfaceHover,We.secondaryStateLayerOpacityHover)};
844
+ ${Ie(Jr.opacityContentOnSurfaceFocused,We.secondaryStateLayerOpacityFocus)};
845
+ ${Ie(Jr.opacityContentOnSurfaceSelected,We.secondaryStateLayerOpacityActive)};
846
+ ${Ie(Jr.opacityContentOnSurfacePressed,We.secondaryStateLayerOpacityActive)};
843
847
 
844
848
  background-color: ${We.secondaryBackgroundColor};
845
849
  color: ${We.secondaryColor};
@@ -858,13 +862,13 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
858
862
  /** Tertiary styles **/
859
863
 
860
864
  .ft-button--tertiary {
861
- ${Ie(zs.color,We.tertiaryIconColor)};
865
+ ${Ie(Fs.color,We.tertiaryIconColor)};
862
866
 
863
- ${Ie(Xr.color,We.tertiaryStateLayerColor)};
864
- ${Ie(Xr.opacityContentOnSurfaceHover,We.tertiaryStateLayerOpacityHover)};
865
- ${Ie(Xr.opacityContentOnSurfaceFocused,We.tertiaryStateLayerOpacityFocus)};
866
- ${Ie(Xr.opacityContentOnSurfaceSelected,We.tertiaryStateLayerOpacityActive)};
867
- ${Ie(Xr.opacityContentOnSurfacePressed,We.tertiaryStateLayerOpacityActive)};
867
+ ${Ie(Jr.color,We.tertiaryStateLayerColor)};
868
+ ${Ie(Jr.opacityContentOnSurfaceHover,We.tertiaryStateLayerOpacityHover)};
869
+ ${Ie(Jr.opacityContentOnSurfaceFocused,We.tertiaryStateLayerOpacityFocus)};
870
+ ${Ie(Jr.opacityContentOnSurfaceSelected,We.tertiaryStateLayerOpacityActive)};
871
+ ${Ie(Jr.opacityContentOnSurfacePressed,We.tertiaryStateLayerOpacityActive)};
868
872
 
869
873
  background-color: ${We.tertiaryBackgroundColor};
870
874
  color: ${We.tertiaryColor};
@@ -882,13 +886,13 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
882
886
  /** Neutral styles **/
883
887
 
884
888
  .ft-button--neutral {
885
- ${Ie(zs.color,We.neutralIconColor)};
889
+ ${Ie(Fs.color,We.neutralIconColor)};
886
890
 
887
- ${Ie(Xr.backgroundColor,We.neutralStateLayerColor)};
888
- ${Ie(Xr.opacityContentOnSurfaceHover,We.neutralStateLayerOpacityHover)};
889
- ${Ie(Xr.opacityContentOnSurfaceFocused,We.neutralStateLayerOpacityFocus)};
890
- ${Ie(Xr.opacityContentOnSurfaceSelected,We.neutralStateLayerOpacityActive)};
891
- ${Ie(Xr.opacityContentOnSurfacePressed,We.neutralStateLayerOpacityActive)};
891
+ ${Ie(Jr.backgroundColor,We.neutralStateLayerColor)};
892
+ ${Ie(Jr.opacityContentOnSurfaceHover,We.neutralStateLayerOpacityHover)};
893
+ ${Ie(Jr.opacityContentOnSurfaceFocused,We.neutralStateLayerOpacityFocus)};
894
+ ${Ie(Jr.opacityContentOnSurfaceSelected,We.neutralStateLayerOpacityActive)};
895
+ ${Ie(Jr.opacityContentOnSurfacePressed,We.neutralStateLayerOpacityActive)};
892
896
 
893
897
  background-color: ${We.neutralBackgroundColor};
894
898
  color: ${We.neutralColor};
@@ -906,8 +910,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
906
910
  /** Large styles **/
907
911
 
908
912
  .ft-button--large {
909
- ${Ie(Us.size,We.largeIconSize)};
910
- ${Ie(zs.size,We.largeIconSize)};
913
+ ${Ie(Ls.size,We.largeIconSize)};
914
+ ${Ie(Fs.size,We.largeIconSize)};
911
915
 
912
916
  height: ${We.largeHeight};
913
917
  padding: 0 ${We.largeHorizontalPadding};
@@ -929,8 +933,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
929
933
  /** Small styles **/
930
934
 
931
935
  .ft-button--small {
932
- ${Ie(Us.size,We.smallIconSize)};
933
- ${Ie(zs.size,We.smallIconSize)};
936
+ ${Ie(Ls.size,We.smallIconSize)};
937
+ ${Ie(Fs.size,We.smallIconSize)};
934
938
 
935
939
  height: ${We.smallHeight};
936
940
  padding: 0 ${We.smallHorizontalPadding};
@@ -948,7 +952,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
948
952
  width: ${We.smallIconOnlyWidth};
949
953
  padding: unset;
950
954
  }
951
- `,_e];var la=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ca extends ra{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?dn.caption1medium:dn.body2medium}}ca.styles=[He,aa],la([R({type:Boolean})],ca.prototype,"primary",void 0),la([R({type:Boolean})],ca.prototype,"secondary",void 0),la([R({type:Boolean})],ca.prototype,"tertiary",void 0),la([R({type:Boolean})],ca.prototype,"neutral",void 0),la([R({type:Boolean})],ca.prototype,"small",void 0),F("ft-button")(sa),F("ftds-button")(ca);const ha=Re.extend("--ft-chip-color","",je.colorOnSurface),fa={backgroundColor:Re.extend("--ft-chip-background-color","",je.colorSurface),color:ha,fontSize:Re.extend("--ft-chip-font-size","",Gn.fontSize),iconSize:Re.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Re.extend("--ft-chip-ripple-color","",ha),horizontalPadding:Re.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Re.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Re.external(je.colorOutline,"Design system"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},pa=Re.extend("--ft-chip-highlighted-color","",Re.extend("--ft-chip-color","",je.colorOnPrimary)),da={backgroundColor:Re.extend("--ft-chip-highlighted-background-color","",Re.extend("--ft-chip-background-color","",je.colorPrimary)),color:pa,rippleColor:Re.extend("--ft-chip-highlighted-ripple-color","",pa)},ua=Re.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ya=Re.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ga=[_e,Rt`
955
+ `,He];var ca=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ha extends na{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?un.caption1medium:un.body2medium}}ha.styles=[Ge,la],ca([k({type:Boolean})],ha.prototype,"primary",void 0),ca([k({type:Boolean})],ha.prototype,"secondary",void 0),ca([k({type:Boolean})],ha.prototype,"tertiary",void 0),ca([k({type:Boolean})],ha.prototype,"neutral",void 0),ca([k({type:Boolean})],ha.prototype,"small",void 0),F("ft-button")(aa),F("ftds-button")(ha);const fa=Re.extend("--ft-chip-color","",je.colorOnSurface),pa={backgroundColor:Re.extend("--ft-chip-background-color","",je.colorSurface),color:fa,fontSize:Re.extend("--ft-chip-font-size","",Vn.fontSize),iconSize:Re.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Re.extend("--ft-chip-ripple-color","",fa),horizontalPadding:Re.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Re.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Re.external(je.colorOutline,"Design system"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},da=Re.extend("--ft-chip-highlighted-color","",Re.extend("--ft-chip-color","",je.colorOnPrimary)),ua={backgroundColor:Re.extend("--ft-chip-highlighted-background-color","",Re.extend("--ft-chip-background-color","",je.colorPrimary)),color:da,rippleColor:Re.extend("--ft-chip-highlighted-ripple-color","",da)},ya=Re.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ga=Re.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ba=[He,Rt`
952
956
  :host {
953
957
  display: inline-block;
954
958
  max-width: 100%;
@@ -964,20 +968,20 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
964
968
  box-sizing: border-box;
965
969
  pointer-events: auto;
966
970
 
967
- --ft-chip-internal-font-size: ${fa.fontSize};
971
+ --ft-chip-internal-font-size: ${pa.fontSize};
968
972
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
969
- ${Ie(Us.size,fa.iconSize)};
970
- --ft-chip-internal-vertical-padding: ${fa.verticalPadding};
971
- --ft-chip-internal-horizontal-padding: ${fa.horizontalPadding};
973
+ ${Ie(Ls.size,pa.iconSize)};
974
+ --ft-chip-internal-vertical-padding: ${pa.verticalPadding};
975
+ --ft-chip-internal-horizontal-padding: ${pa.horizontalPadding};
972
976
  --ft-chip-internal-icon-padding: 3px;
973
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${fa.iconSize});
977
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${pa.iconSize});
974
978
 
975
- border: 1px solid ${fa.colorOutline};
976
- color: ${fa.color};
977
- ${Ie(Xr.color,fa.rippleColor)};
979
+ border: 1px solid ${pa.colorOutline};
980
+ color: ${pa.color};
981
+ ${Ie(Jr.color,pa.rippleColor)};
978
982
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
979
983
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
980
- background-color: ${fa.backgroundColor};
984
+ background-color: ${pa.backgroundColor};
981
985
  line-height: var(--ft-chip-internal-content-height);
982
986
  }
983
987
 
@@ -987,8 +991,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
987
991
 
988
992
  .ft-chip--dense {
989
993
  --ft-chip-internal-icon-padding: 3px;
990
- --ft-chip-internal-vertical-padding: ${ya};
991
- --ft-chip-internal-horizontal-padding: ${ua};
994
+ --ft-chip-internal-vertical-padding: ${ga};
995
+ --ft-chip-internal-horizontal-padding: ${ya};
992
996
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
993
997
  }
994
998
 
@@ -1000,15 +1004,15 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1000
1004
  cursor: default;
1001
1005
  pointer-events: none;
1002
1006
  filter: grayscale(1);
1003
- opacity: ${fa.opacityDisabled};
1007
+ opacity: ${pa.opacityDisabled};
1004
1008
  }
1005
1009
 
1006
1010
  .ft-chip--highlighted {
1007
1011
  border: none;
1008
1012
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1009
- background-color: ${da.backgroundColor};
1010
- ${Ie(Xr.color,da.rippleColor)};
1011
- color: ${da.color};
1013
+ background-color: ${ua.backgroundColor};
1014
+ ${Ie(Jr.color,ua.rippleColor)};
1015
+ color: ${ua.color};
1012
1016
  }
1013
1017
 
1014
1018
  .ft-chip--clickable {
@@ -1038,9 +1042,9 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1038
1042
  }
1039
1043
 
1040
1044
  .ft-chip--icon-button {
1041
- ${Ie(Bs.iconSize,fa.iconSize)};
1042
- ${Ie(Bs.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1043
- ${Ie(Bs.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1045
+ ${Ie(Ps.iconSize,pa.iconSize)};
1046
+ ${Ie(Ps.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1047
+ ${Ie(Ps.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1044
1048
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1045
1049
  }
1046
1050
 
@@ -1048,8 +1052,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1048
1052
  vertical-align: bottom;
1049
1053
  display: block;
1050
1054
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1051
- ${Ie(Gn.fontSize,"var(--ft-chip-internal-font-size)")};
1052
- ${Ie(Gn.lineHeight,"var(--ft-chip-internal-content-height)")};
1055
+ ${Ie(Vn.fontSize,"var(--ft-chip-internal-font-size)")};
1056
+ ${Ie(Vn.lineHeight,"var(--ft-chip-internal-content-height)")};
1053
1057
  }
1054
1058
 
1055
1059
  .ft-chip--safari-fix .ft-chip--label {
@@ -1085,8 +1089,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1085
1089
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1086
1090
  order: -1;
1087
1091
  }
1088
- `];var ba=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class va extends CustomEvent{constructor(){super("icon-click")}}class ma extends Ze{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Yi};return fe`
1089
- <div class="${qr(t)}"
1092
+ `];var va=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ma extends CustomEvent{constructor(){super("icon-click")}}class xa extends Ze{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Xi};return fe`
1093
+ <div class="${Yr(t)}"
1090
1094
  aria-label="${this.getLabel()}"
1091
1095
  tabindex="${this.interactionsOnChip?0:-1}"
1092
1096
  @keyup=${this.onKeyUp}>
@@ -1108,23 +1112,23 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1108
1112
  <div class="ft-chip--icon-container ft-no-text-select">
1109
1113
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1110
1114
  </div>
1111
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new va))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new va))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ma.elementDefinitions={"ft-ripple":an,"ft-typography":Cs,"ft-icon":js,"ft-button":sa},ma.styles=ga,ba([R({type:Boolean})],ma.prototype,"highlighted",void 0),ba([R({type:Boolean})],ma.prototype,"removable",void 0),ba([R({type:Boolean})],ma.prototype,"disabled",void 0),ba([R({type:Boolean})],ma.prototype,"clickable",void 0),ba([R({type:Boolean})],ma.prototype,"iconClickable",void 0),ba([R({type:Boolean})],ma.prototype,"dense",void 0),ba([R({type:Boolean})],ma.prototype,"multiLine",void 0),ba([R()],ma.prototype,"label",void 0),ba([R()],ma.prototype,"iconLabel",void 0),ba([R()],ma.prototype,"icon",void 0),ba([R()],ma.prototype,"iconVariant",void 0),ba([R({type:Boolean})],ma.prototype,"trailingIcon",void 0),ba([L("ft-typography slot")],ma.prototype,"slottedContent",void 0),F("ft-chip")(ma);const xa=Rt`
1112
- `;var Oa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const wa=Symbol("i18nProperties"),Sa=Symbol("i18nUnsubs");function Na(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ar:Lr}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[wa])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[wa])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[wa]&&new Set([...this[wa].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Sa].has(t)||this[Sa].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Sa].forEach((t=>t())),this[Sa].clear()}}return e=Sa,Oa([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class $a extends(Na(Ze)){}class Ca extends(Na(eo)){}var Ea=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ka extends Ca{constructor(){super(),this.editorMode=!1,this.addStore(Er)}render(){return this.key&&this.context?fe`
1115
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ma))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ma))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}xa.elementDefinitions={"ft-ripple":ln,"ft-typography":Es,"ft-icon":zs,"ft-button":aa},xa.styles=ba,va([k({type:Boolean})],xa.prototype,"highlighted",void 0),va([k({type:Boolean})],xa.prototype,"removable",void 0),va([k({type:Boolean})],xa.prototype,"disabled",void 0),va([k({type:Boolean})],xa.prototype,"clickable",void 0),va([k({type:Boolean})],xa.prototype,"iconClickable",void 0),va([k({type:Boolean})],xa.prototype,"dense",void 0),va([k({type:Boolean})],xa.prototype,"multiLine",void 0),va([k()],xa.prototype,"label",void 0),va([k()],xa.prototype,"iconLabel",void 0),va([k()],xa.prototype,"icon",void 0),va([k()],xa.prototype,"iconVariant",void 0),va([k({type:Boolean})],xa.prototype,"trailingIcon",void 0),va([U("ft-typography slot")],xa.prototype,"slottedContent",void 0),F("ft-chip")(xa);const Oa=Rt`
1116
+ `;var wa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Sa=Symbol("i18nProperties"),Na=Symbol("i18nUnsubs");function $a(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Wr:Ar}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Sa])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Sa])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Sa]&&new Set([...this[Sa].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Na].has(t)||this[Na].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Na].forEach((t=>t())),this[Na].clear()}}return e=Na,wa([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ca extends($a(Ze)){}class Ea extends($a(oo)){}var ka=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ra extends Ea{constructor(){super(),this.editorMode=!1,this.addStore(kr)}render(){return this.key&&this.context?fe`
1113
1117
  <span class="ft-i18n">
1114
1118
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1115
1119
  </span>
1116
- `:this.editorMode?"Select a context and a label key.":de}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ka.elementDefinitions={},ka.styles=xa,Ea([_i()],ka.prototype,"editorMode",void 0),Ea([R()],ka.prototype,"context",void 0),Ea([R()],ka.prototype,"key",void 0),Ea([D([])],ka.prototype,"args",void 0),Ea([R()],ka.prototype,"defaultMessage",void 0);class Ra{static build(t){return new Ra(t)}static fromGwt(t){return new Ra(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Lr.resolveMessage(this.name,e,...t)})}}F("ft-i18n")(ka);const Ia=Rt`
1117
- `;var Ua=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class La extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Aa extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Wa extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class ja extends eo{get stateManager(){return null==this._stateManager&&(this._stateManager=Zr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Er)}render(){return fe`
1120
+ `:this.editorMode?"Select a context and a label key.":de}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ra.elementDefinitions={},Ra.styles=Oa,ka([Hi()],Ra.prototype,"editorMode",void 0),ka([k()],Ra.prototype,"context",void 0),ka([k()],Ra.prototype,"key",void 0),ka([D([])],Ra.prototype,"args",void 0),ka([k()],Ra.prototype,"defaultMessage",void 0);class Ia{static build(t){return new Ia(t)}static fromGwt(t){return new Ia(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ar.resolveMessage(this.name,e,...t)})}}F("ft-i18n")(Ra);const Ua=Rt`
1121
+ `;var La=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Aa extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Wa extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class ja extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class za extends oo{get stateManager(){return null==this._stateManager&&(this._stateManager=_r.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(kr)}render(){return fe`
1118
1122
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1119
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Aa(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Wa(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new La(t))}reloadSavedSearches(){Pr.clearMySearches()}clear(){this.stateManager.clear()}}ja.elementDefinitions={},ja.styles=Ia,Ua([R()],ja.prototype,"query",void 0),Ua([R()],ja.prototype,"contentLocale",void 0),Ua([R({type:Number})],ja.prototype,"pageSize",void 0),Ua([R({type:Boolean})],ja.prototype,"searchInDocumentTitlesOnly",void 0),Ua([R()],ja.prototype,"scope",void 0),Ua([R({type:Boolean})],ja.prototype,"ignoreEmptyQuery",void 0),Ua([D([])],ja.prototype,"filters",void 0),Ua([D([])],ja.prototype,"sort",void 0),Ua([_i({store:"search"})],ja.prototype,"request",void 0),Ua([_i({store:"search"})],ja.prototype,"paging",void 0),Ua([_i({store:"search",selector:t=>t.spellcheck})],ja.prototype,"autocorrect",void 0),Ua([_i({store:Er.name})],ja.prototype,"session",void 0),F("ft-search-context")(ja);const za=Rt`
1120
- `,Fa=Re.extend("--ft-checkbox-text-color","",je.colorOnSurfaceHigh),Da=Re.external(je.colorPrimary,"Design system"),Ba=Re.external(je.colorOnPrimary,"Design system"),Pa=Re.extend("--ft-checkbox-border-color","",je.colorOnSurfaceMedium),Ka=Re.external(je.colorOnSurfaceDisabled,"Design system"),Ma=Rt`
1123
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Wa(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new ja(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Aa(t))}reloadSavedSearches(){Kr.clearMySearches()}clear(){this.stateManager.clear()}}za.elementDefinitions={},za.styles=Ua,La([k()],za.prototype,"query",void 0),La([k()],za.prototype,"contentLocale",void 0),La([k({type:Number})],za.prototype,"pageSize",void 0),La([k({type:Boolean})],za.prototype,"searchInDocumentTitlesOnly",void 0),La([k()],za.prototype,"scope",void 0),La([k({type:Boolean})],za.prototype,"ignoreEmptyQuery",void 0),La([D([])],za.prototype,"filters",void 0),La([D([])],za.prototype,"sort",void 0),La([Hi({store:"search"})],za.prototype,"request",void 0),La([Hi({store:"search"})],za.prototype,"paging",void 0),La([Hi({store:"search",selector:t=>t.spellcheck})],za.prototype,"autocorrect",void 0),La([Hi({store:kr.name})],za.prototype,"session",void 0),F("ft-search-context")(za);const Fa=Rt`
1124
+ `,Da=Re.extend("--ft-checkbox-text-color","",je.colorOnSurfaceHigh),Ba=Re.external(je.colorPrimary,"Design system"),Pa=Re.external(je.colorOnPrimary,"Design system"),Ka=Re.extend("--ft-checkbox-border-color","",je.colorOnSurfaceMedium),Ma=Re.external(je.colorOnSurfaceDisabled,"Design system"),Ta=Rt`
1121
1125
  * {
1122
1126
  box-sizing: border-box;
1123
1127
  }
1124
1128
 
1125
1129
  .ft-checkbox {
1126
1130
  box-sizing: border-box;
1127
- color: ${Fa};
1131
+ color: ${Da};
1128
1132
 
1129
1133
  display: inline-flex;
1130
1134
  align-items: center;
@@ -1132,7 +1136,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1132
1136
  }
1133
1137
 
1134
1138
  .ft-checkbox--disabled {
1135
- color: ${Ka};
1139
+ color: ${Ma};
1136
1140
  }
1137
1141
 
1138
1142
  input {
@@ -1156,26 +1160,26 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1156
1160
 
1157
1161
  .ft-checkbox--box {
1158
1162
  display: flex;
1159
- border: 2px solid ${Pa};
1163
+ border: 2px solid ${Ka};
1160
1164
  border-radius: 2px;
1161
1165
 
1162
1166
  width: 18px;
1163
1167
  height: 18px;
1164
1168
 
1165
- color: ${Ba};
1169
+ color: ${Pa};
1166
1170
  }
1167
1171
 
1168
1172
 
1169
1173
  .ft-checkbox--checked .ft-checkbox--box,
1170
1174
  .ft-checkbox--indeterminate .ft-checkbox--box {
1171
- border-color: ${Da};
1172
- background-color: ${Da};
1175
+ border-color: ${Ba};
1176
+ background-color: ${Ba};
1173
1177
  }
1174
1178
 
1175
1179
  .ft-checkbox--disabled .ft-checkbox--box {
1176
- border-color: ${Ka};
1180
+ border-color: ${Ma};
1177
1181
  background-color: transparent;
1178
- color: ${Ka};
1182
+ color: ${Ma};
1179
1183
  }
1180
1184
 
1181
1185
  .ft-checkbox--checkmark {
@@ -1194,8 +1198,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1194
1198
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
1195
1199
  opacity: 1;
1196
1200
  }
1197
- `;var Ta=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Za extends Ze{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 fe`
1198
- <label class="${qr(t)}" for="checkbox-input">
1201
+ `;var Za=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class _a extends Ze{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 fe`
1202
+ <label class="${Yr(t)}" for="checkbox-input">
1199
1203
  <div class="ft-checkbox--box-container">
1200
1204
  <ft-ripple
1201
1205
  ?disabled=${this.disabled}
@@ -1220,14 +1224,14 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1220
1224
  <slot></slot>
1221
1225
  </ft-typography>
1222
1226
  </label>
1223
- `}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)}}Za.elementDefinitions={"ft-ripple":an,"ft-typography":Cs},Za.styles=Ma,Ta([R()],Za.prototype,"name",void 0),Ta([R({type:Boolean,reflect:!0})],Za.prototype,"checked",void 0),Ta([R({type:Boolean})],Za.prototype,"indeterminate",void 0),Ta([R({type:Boolean})],Za.prototype,"disabled",void 0),Ta([L(".ft-checkbox")],Za.prototype,"container",void 0),Ta([L("ft-ripple")],Za.prototype,"ripple",void 0),F("ft-checkbox")(Za);const _a=Re.extend("--ft-radio-text-color","",je.colorOnSurfaceHigh),Ha=Re.external(je.colorPrimary,"Design system"),Ga=(Re.external(je.colorOnPrimary,"Design system"),Re.extend("--ft-radio-border-color","",je.colorOnSurfaceMedium)),Va=Re.external(je.colorOnSurfaceDisabled,"Design system"),qa=Rt`
1227
+ `}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)}}_a.elementDefinitions={"ft-ripple":ln,"ft-typography":Es},_a.styles=Ta,Za([k()],_a.prototype,"name",void 0),Za([k({type:Boolean,reflect:!0})],_a.prototype,"checked",void 0),Za([k({type:Boolean})],_a.prototype,"indeterminate",void 0),Za([k({type:Boolean})],_a.prototype,"disabled",void 0),Za([U(".ft-checkbox")],_a.prototype,"container",void 0),Za([U("ft-ripple")],_a.prototype,"ripple",void 0),F("ft-checkbox")(_a);const Ha=Re.extend("--ft-radio-text-color","",je.colorOnSurfaceHigh),Ga=Re.external(je.colorPrimary,"Design system"),Va=(Re.external(je.colorOnPrimary,"Design system"),Re.extend("--ft-radio-border-color","",je.colorOnSurfaceMedium)),qa=Re.external(je.colorOnSurfaceDisabled,"Design system"),Ya=Rt`
1224
1228
  * {
1225
1229
  box-sizing: border-box;
1226
1230
  }
1227
1231
 
1228
1232
  .ft-radio {
1229
1233
  box-sizing: border-box;
1230
- color: ${_a};
1234
+ color: ${Ha};
1231
1235
 
1232
1236
  display: inline-flex;
1233
1237
  align-items: center;
@@ -1235,7 +1239,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1235
1239
  }
1236
1240
 
1237
1241
  .ft-radio--disabled {
1238
- color: ${Va};
1242
+ color: ${qa};
1239
1243
  }
1240
1244
 
1241
1245
  input {
@@ -1258,7 +1262,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1258
1262
  }
1259
1263
 
1260
1264
  .ft-radio--box {
1261
- border: 2px solid ${Ga};
1265
+ border: 2px solid ${Va};
1262
1266
  border-radius: 50%;
1263
1267
 
1264
1268
  display: flex;
@@ -1271,7 +1275,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1271
1275
 
1272
1276
  .ft-radio--box:after {
1273
1277
  content: " ";
1274
- background-color: ${Ha};
1278
+ background-color: ${Ga};
1275
1279
 
1276
1280
  border-radius: 50%;
1277
1281
 
@@ -1283,7 +1287,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1283
1287
  }
1284
1288
 
1285
1289
  .ft-radio--checked .ft-radio--box {
1286
- border-color: ${Ha};
1290
+ border-color: ${Ga};
1287
1291
  }
1288
1292
 
1289
1293
 
@@ -1292,15 +1296,15 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1292
1296
  }
1293
1297
 
1294
1298
  .ft-radio--disabled .ft-radio--box {
1295
- border-color: ${Va};
1299
+ border-color: ${qa};
1296
1300
  background-color: transparent;
1297
1301
  }
1298
1302
 
1299
1303
  .ft-radio--disabled .ft-radio--box:after {
1300
- background-color: ${Va};
1304
+ background-color: ${qa};
1301
1305
  }
1302
- `;var Ya=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Xa extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ja extends Ze{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 fe`
1303
- <div class="${qr(t)}">
1306
+ `;var Xa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ja extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Qa extends Ze{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 fe`
1307
+ <div class="${Yr(t)}">
1304
1308
  <div class="ft-radio--box-container">
1305
1309
  <ft-ripple
1306
1310
  ?disabled=${this.disabled}
@@ -1324,22 +1328,22 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1324
1328
  </ft-typography>
1325
1329
  </label>
1326
1330
  </div>
1327
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Xa(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 Xa(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ja.elementDefinitions={"ft-ripple":an,"ft-typography":Cs},Ja.styles=qa,Ya([R()],Ja.prototype,"value",void 0),Ya([R()],Ja.prototype,"name",void 0),Ya([R({type:Boolean,reflect:!0})],Ja.prototype,"checked",void 0),Ya([R({type:Boolean})],Ja.prototype,"disabled",void 0),Ya([L(".ft-radio")],Ja.prototype,"container",void 0),Ya([L("ft-ripple")],Ja.prototype,"ripple",void 0),Ya([L("input")],Ja.prototype,"input",void 0);const Qa=Rt`
1331
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ja(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 Ja(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Qa.elementDefinitions={"ft-ripple":ln,"ft-typography":Es},Qa.styles=Ya,Xa([k()],Qa.prototype,"value",void 0),Xa([k()],Qa.prototype,"name",void 0),Xa([k({type:Boolean,reflect:!0})],Qa.prototype,"checked",void 0),Xa([k({type:Boolean})],Qa.prototype,"disabled",void 0),Xa([U(".ft-radio")],Qa.prototype,"container",void 0),Xa([U("ft-ripple")],Qa.prototype,"ripple",void 0),Xa([U("input")],Qa.prototype,"input",void 0);const tl=Rt`
1328
1332
  :host {
1329
1333
  display: contents;
1330
1334
  }
1331
- `;var tl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class el extends Ze{constructor(){super(...arguments),this.name=""}render(){return fe`
1335
+ `;var el=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ol extends Ze{constructor(){super(...arguments),this.name=""}render(){return fe`
1332
1336
  <slot @slotchange=${this.onSlotChange}
1333
1337
  @change=${this.onChange}
1334
1338
  @keydown=${this.onKeyDown}
1335
1339
  ></slot>
1336
- `}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)}}el.elementDefinitions={},el.styles=Qa,tl([R()],el.prototype,"name",void 0),tl([
1340
+ `}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)}}ol.elementDefinitions={},ol.styles=tl,el([k()],ol.prototype,"name",void 0),el([
1337
1341
  /**
1338
1342
  * @license
1339
1343
  * Copyright 2021 Google LLC
1340
1344
  * SPDX-License-Identifier: BSD-3-Clause
1341
1345
  */
1342
- function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],el.prototype,"radioButtons",void 0),F("ft-radio")(Ja),F("ft-radio-group")(el);const ol={borderRadiusM:Re.external(je.borderRadiusM,"Design system"),colorOutline:Re.external(je.colorOutline,"Design system"),colorOnSurface:Re.external(je.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(je.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Re.external(je.colorOnSurfaceDisabled,"Design system"),colorPrimary:Re.external(je.colorPrimary,"Design system"),colorOnPrimary:Re.external(je.colorOnPrimary,"Design system"),fontFamily:Re.external(Gn.fontFamily,"Body2 typography"),fontSize:Re.external(Gn.fontSize,"Body2 typography"),fontWeight:Re.external(Gn.fontWeight,"Body2 typography"),letterSpacing:Re.external(Gn.letterSpacing,"Body2 typography"),lineHeight:Re.external(Gn.lineHeight,"Body2 typography"),textTransform:Re.external(Gn.textTransform,"Body2 typography")},il=Rt`
1346
+ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],ol.prototype,"radioButtons",void 0),F("ft-radio")(Qa),F("ft-radio-group")(ol);const il={borderRadiusM:Re.external(je.borderRadiusM,"Design system"),colorOutline:Re.external(je.colorOutline,"Design system"),colorOnSurface:Re.external(je.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(je.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Re.external(je.colorOnSurfaceDisabled,"Design system"),colorPrimary:Re.external(je.colorPrimary,"Design system"),colorOnPrimary:Re.external(je.colorOnPrimary,"Design system"),fontFamily:Re.external(Vn.fontFamily,"Body2 typography"),fontSize:Re.external(Vn.fontSize,"Body2 typography"),fontWeight:Re.external(Vn.fontWeight,"Body2 typography"),letterSpacing:Re.external(Vn.letterSpacing,"Body2 typography"),lineHeight:Re.external(Vn.lineHeight,"Body2 typography"),textTransform:Re.external(Vn.textTransform,"Body2 typography")},rl=Rt`
1343
1347
  .ft-filter-level--container {
1344
1348
  display: flex;
1345
1349
  flex-direction: column;
@@ -1353,14 +1357,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1353
1357
  flex-shrink: 0;
1354
1358
  text-decoration: none;
1355
1359
  position: relative;
1356
- border-radius: ${ol.borderRadiusM};
1360
+ border-radius: ${il.borderRadiusM};
1357
1361
  overflow: hidden;
1358
1362
  display: flex;
1359
1363
  align-items: center;
1360
1364
  padding: 4px 4px;
1361
1365
  gap: 4px;
1362
1366
  cursor: pointer;
1363
- color: ${ol.colorOnSurface};
1367
+ color: ${il.colorOnSurface};
1364
1368
  }
1365
1369
 
1366
1370
  .ft-filter-level--go-back:focus {
@@ -1389,7 +1393,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1389
1393
  }
1390
1394
 
1391
1395
  ft-button {
1392
- ${Ie(Bs.color,ol.colorOnSurface)};
1396
+ ${Ie(Ps.color,il.colorOnSurface)};
1393
1397
  }
1394
1398
 
1395
1399
  ft-radio, ft-checkbox {
@@ -1403,9 +1407,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1403
1407
 
1404
1408
  .ft-filter-level--no-values {
1405
1409
  margin: 10px 0;
1406
- color: ${ol.colorOnSurfaceMedium};
1410
+ color: ${il.colorOnSurfaceMedium};
1407
1411
  }
1408
- `;var rl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class nl extends Ze{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 fe`
1412
+ `;var nl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class sl extends Ze{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 fe`
1409
1413
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1410
1414
  ${null==this.parent?null:fe`
1411
1415
  <div tabindex="0"
@@ -1424,7 +1428,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1424
1428
  ${this.noValuesLabel}
1425
1429
  </ft-typography>
1426
1430
  `:de}
1427
- ${lr(e,(t=>t.value),(t=>{var e;return fe`
1431
+ ${cr(e,(t=>t.value),(t=>{var e;return fe`
1428
1432
  <div class="ft-filter-level--option" part="options">
1429
1433
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
1430
1434
  ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?de:fe`
@@ -1469,7 +1473,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1469
1473
  @change=${t=>t.stopPropagation()}>
1470
1474
  ${t.renderOption?t.renderOption:t.label}
1471
1475
  </ft-radio>
1472
- `}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}))}}nl.elementDefinitions={"ft-button":sa,"ft-ripple":an,"ft-typography":Cs,"ft-checkbox":Za,"ft-icon":js,"ft-radio":Ja},nl.styles=il,rl([R({type:String})],nl.prototype,"filterId",void 0),rl([R({type:Object})],nl.prototype,"parent",void 0),rl([R({type:Array})],nl.prototype,"options",void 0),rl([R({type:Boolean})],nl.prototype,"multivalued",void 0),rl([R({type:Boolean})],nl.prototype,"disabled",void 0),rl([R({type:Boolean})],nl.prototype,"hideSelectedOptions",void 0),rl([R({type:Boolean})],nl.prototype,"preventNavigation",void 0),rl([R({type:String})],nl.prototype,"filter",void 0),rl([R({type:String})],nl.prototype,"moreValuesButtonLabel",void 0),rl([R({type:String})],nl.prototype,"noValuesLabel",void 0),rl([R({type:Number})],nl.prototype,"displayedValuesLimit",void 0),rl([L(".ft-filter-level--container")],nl.prototype,"container",void 0),rl([I()],nl.prototype,"displayedPages",void 0);const sl={buttonsColor:Re.extend("--ft-snap-scroll-buttons-color","",je.colorPrimary),buttonsZIndex:Re.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Re.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Re.external(je.colorSurface,"Design system")},al=Rt`
1476
+ `}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}))}}sl.elementDefinitions={"ft-button":aa,"ft-ripple":ln,"ft-typography":Es,"ft-checkbox":_a,"ft-icon":zs,"ft-radio":Qa},sl.styles=rl,nl([k({type:String})],sl.prototype,"filterId",void 0),nl([k({type:Object})],sl.prototype,"parent",void 0),nl([k({type:Array})],sl.prototype,"options",void 0),nl([k({type:Boolean})],sl.prototype,"multivalued",void 0),nl([k({type:Boolean})],sl.prototype,"disabled",void 0),nl([k({type:Boolean})],sl.prototype,"hideSelectedOptions",void 0),nl([k({type:Boolean})],sl.prototype,"preventNavigation",void 0),nl([k({type:String})],sl.prototype,"filter",void 0),nl([k({type:String})],sl.prototype,"moreValuesButtonLabel",void 0),nl([k({type:String})],sl.prototype,"noValuesLabel",void 0),nl([k({type:Number})],sl.prototype,"displayedValuesLimit",void 0),nl([U(".ft-filter-level--container")],sl.prototype,"container",void 0),nl([R()],sl.prototype,"displayedPages",void 0);const al={buttonsColor:Re.extend("--ft-snap-scroll-buttons-color","",je.colorPrimary),buttonsZIndex:Re.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Re.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Re.external(je.colorSurface,"Design system")},ll=Rt`
1473
1477
  .ft-snap-scroll {
1474
1478
  box-sizing: border-box;
1475
1479
  position: relative;
@@ -1504,7 +1508,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1504
1508
  flex-wrap: nowrap;
1505
1509
  align-items: flex-start;
1506
1510
  justify-content: flex-start;
1507
- gap: ${sl.gap};
1511
+ gap: ${al.gap};
1508
1512
  }
1509
1513
 
1510
1514
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1547,11 +1551,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1547
1551
  .ft-snap-scroll--next {
1548
1552
  position: absolute;
1549
1553
  display: flex;
1550
- z-index: ${sl.buttonsZIndex};
1554
+ z-index: ${al.buttonsZIndex};
1551
1555
  opacity: 1;
1552
1556
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1553
- ${Ie(Bs.backgroundColor,"transparent")};
1554
- ${Ie(Bs.color,sl.buttonsColor)};
1557
+ ${Ie(Ps.backgroundColor,"transparent")};
1558
+ ${Ie(Ps.color,al.buttonsColor)};
1555
1559
  }
1556
1560
 
1557
1561
  .ft-snap-scroll--previous[hidden],
@@ -1564,37 +1568,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1564
1568
  top: 0;
1565
1569
  left: -1px;
1566
1570
  bottom: 0;
1567
- background: linear-gradient(to right, ${sl.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1571
+ background: linear-gradient(to right, ${al.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1568
1572
  }
1569
1573
 
1570
1574
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1571
1575
  top: -1px;
1572
1576
  left: 0;
1573
1577
  right: 0;
1574
- background: linear-gradient(to bottom, ${sl.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1578
+ background: linear-gradient(to bottom, ${al.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1575
1579
  }
1576
1580
 
1577
1581
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1578
1582
  top: 0;
1579
1583
  right: -1px;
1580
1584
  bottom: 0;
1581
- background: linear-gradient(to left, ${sl.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1585
+ background: linear-gradient(to left, ${al.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1582
1586
  }
1583
1587
 
1584
1588
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1585
1589
  left: 0;
1586
1590
  right: 0;
1587
1591
  bottom: -1px;
1588
- background: linear-gradient(to top, ${sl.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1592
+ background: linear-gradient(to top, ${al.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1589
1593
  }
1590
1594
 
1591
1595
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1592
1596
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1593
1597
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1594
1598
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1595
- background-color: ${sl.colorSurface};
1599
+ background-color: ${al.colorSurface};
1596
1600
  }
1597
- `;var ll=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class cl extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class hl extends Ze{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 n(200),this.updateScrollDebouncer=new n(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=qr({"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":Yi}),e=this.controls&&this.withScroll;return fe`
1601
+ `;var cl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class hl extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class fl extends Ze{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 A(200),this.updateScrollDebouncer=new A(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=Yr({"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":Xi}),e=this.controls&&this.withScroll;return fe`
1598
1602
  <div part="container" class="${t}">
1599
1603
  <ft-button
1600
1604
  class="ft-snap-scroll--previous"
@@ -1618,7 +1622,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1618
1622
  @click=${this.next}
1619
1623
  ></ft-button>
1620
1624
  </div>
1621
- `}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 cl(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)}}hl.elementDefinitions={"ft-button":sa},hl.styles=al,ll([R({type:Boolean})],hl.prototype,"horizontal",void 0),ll([R({type:Boolean})],hl.prototype,"hideScrollbar",void 0),ll([R({type:Boolean})],hl.prototype,"controls",void 0),ll([R({type:Boolean})],hl.prototype,"limitSize",void 0),ll([I()],hl.prototype,"elements",void 0),ll([I()],hl.prototype,"currentElement",void 0),ll([I()],hl.prototype,"withScroll",void 0),ll([I()],hl.prototype,"startReached",void 0),ll([I()],hl.prototype,"endReached",void 0),ll([L(".ft-snap-scroll--content")],hl.prototype,"contentSlot",void 0),F("ft-snap-scroll")(hl);const fl=Re.external(je.colorOutline,"Design system"),pl=Re.external(je.colorOnSurface,"Design system"),dl=Re.external(je.colorOnSurfaceMedium,"Design system"),ul=Re.external(je.colorPrimary,"Design system"),yl=Re.external(je.colorSurface,"Design system"),gl=Re.external(je.transitionDuration,"Design system"),bl=Re.external(je.transitionTimingFunction,"Design system"),vl=[ms,Rt`
1625
+ `}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 hl(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)}}fl.elementDefinitions={"ft-button":aa},fl.styles=ll,cl([k({type:Boolean})],fl.prototype,"horizontal",void 0),cl([k({type:Boolean})],fl.prototype,"hideScrollbar",void 0),cl([k({type:Boolean})],fl.prototype,"controls",void 0),cl([k({type:Boolean})],fl.prototype,"limitSize",void 0),cl([R()],fl.prototype,"elements",void 0),cl([R()],fl.prototype,"currentElement",void 0),cl([R()],fl.prototype,"withScroll",void 0),cl([R()],fl.prototype,"startReached",void 0),cl([R()],fl.prototype,"endReached",void 0),cl([U(".ft-snap-scroll--content")],fl.prototype,"contentSlot",void 0),F("ft-snap-scroll")(fl);const pl=Re.external(je.colorOutline,"Design system"),dl=Re.external(je.colorOnSurface,"Design system"),ul=Re.external(je.colorOnSurfaceMedium,"Design system"),yl=Re.external(je.colorPrimary,"Design system"),gl=Re.external(je.colorSurface,"Design system"),bl=Re.external(je.transitionDuration,"Design system"),vl=Re.external(je.transitionTimingFunction,"Design system"),ml=[xs,Rt`
1622
1626
  :host {
1623
1627
  display: flex;
1624
1628
  max-height: 100%;
@@ -1631,7 +1635,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1631
1635
  flex-direction: column;
1632
1636
  max-height: 100%;
1633
1637
  max-width: 100%;
1634
- color: ${pl};
1638
+ color: ${dl};
1635
1639
  }
1636
1640
 
1637
1641
  .ft-filter--header {
@@ -1641,13 +1645,13 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1641
1645
  flex-shrink: 0;
1642
1646
  padding: 0 10px;
1643
1647
  margin-bottom: 8px;
1644
- ${Ie(gn.fontSize,"14px")};
1648
+ ${Ie(bn.fontSize,"14px")};
1645
1649
  }
1646
1650
 
1647
1651
  .ft-filter--header ft-button {
1648
1652
  flex-shrink: 0;
1649
1653
  margin-left: auto;
1650
- ${Ie(Bs.iconSize,"18px")};
1654
+ ${Ie(Ps.iconSize,"18px")};
1651
1655
  }
1652
1656
 
1653
1657
  .ft-filter--label {
@@ -1655,8 +1659,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1655
1659
  flex-shrink: 1;
1656
1660
  flex-grow: 1;
1657
1661
  word-break: break-word;
1658
- ${Ie(gn.lineHeight,"22px")};
1659
- ${Ie(gn.fontWeight,"bold")};
1662
+ ${Ie(bn.lineHeight,"22px")};
1663
+ ${Ie(bn.fontWeight,"bold")};
1660
1664
  }
1661
1665
 
1662
1666
  .ft-filter--filter {
@@ -1667,8 +1671,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1667
1671
  padding: 0 10px;
1668
1672
  overflow: hidden;
1669
1673
  height: 32px;
1670
- transition: height ${gl} ${bl},
1671
- margin ${gl} ${bl};
1674
+ transition: height ${bl} ${vl},
1675
+ margin ${bl} ${vl};
1672
1676
  transition-delay: 500ms;
1673
1677
  }
1674
1678
 
@@ -1681,15 +1685,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1681
1685
  display: block;
1682
1686
  width: 100%;
1683
1687
  border-radius: 4px;
1684
- border: 1px solid ${fl};
1688
+ border: 1px solid ${pl};
1685
1689
  padding: 4px;
1686
- background-color: ${yl};
1687
- color: ${pl};
1688
- outline-color: ${ul};
1690
+ background-color: ${gl};
1691
+ color: ${dl};
1692
+ outline-color: ${yl};
1689
1693
  }
1690
1694
 
1691
1695
  input::placeholder {
1692
- color: ${dl};
1696
+ color: ${ul};
1693
1697
  }
1694
1698
 
1695
1699
  input:placeholder-shown {
@@ -1705,7 +1709,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1705
1709
  }
1706
1710
 
1707
1711
  .ft-filter--separator {
1708
- border-top: 1px solid ${fl};
1712
+ border-top: 1px solid ${pl};
1709
1713
  margin: 4px 10px;
1710
1714
  }
1711
1715
 
@@ -1730,7 +1734,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1730
1734
  slot:not([name]) {
1731
1735
  display: none;
1732
1736
  }
1733
- `];var ml=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class xl extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ol extends Ze{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 n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return j(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.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 fe`
1737
+ `];var xl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ol extends CustomEvent{constructor(t){super("change",{detail:t})}}class wl extends Ze{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 A(300),this.changeDebouncer=new A(10),this.lastDispatchedValues=[]}get flatOptions(){return j(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.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 fe`
1734
1738
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1735
1739
  part="container">
1736
1740
  ${this.label||t?fe`
@@ -1802,21 +1806,21 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1802
1806
  .exportpartsPrefixes=${["values","available-values"]}
1803
1807
  noValuesLabel="${this.noValuesLabel}"
1804
1808
  ></ft-filter-level>
1805
- `}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;z(this.lastDispatchedValues,t)||(this.dispatchEvent(new xl(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)}}Ol.elementDefinitions={"ft-button":sa,"ft-filter-level":nl,"ft-snap-scroll":hl,"ft-typography":Cs},Ol.styles=vl,ml([R({type:String})],Ol.prototype,"id",void 0),ml([R({type:String})],Ol.prototype,"label",void 0),ml([R({type:String})],Ol.prototype,"filterPlaceHolder",void 0),ml([R({type:String})],Ol.prototype,"clearButtonLabel",void 0),ml([R({type:String})],Ol.prototype,"moreValuesButtonLabel",void 0),ml([R({type:String})],Ol.prototype,"noValuesLabel",void 0),ml([D([])],Ol.prototype,"options",void 0),ml([R({type:Boolean})],Ol.prototype,"multivalued",void 0),ml([R({type:Boolean})],Ol.prototype,"disabled",void 0),ml([R({type:Boolean})],Ol.prototype,"raiseSelectedOptions",void 0),ml([R({type:Number})],Ol.prototype,"displayedValuesLimit",void 0),ml([R({type:Boolean})],Ol.prototype,"hideClearButton",void 0),ml([L(".ft-filter--slot")],Ol.prototype,"slotElement",void 0),ml([L(".ft-filter--container")],Ol.prototype,"container",void 0),ml([L(".ft-filter--values")],Ol.prototype,"valuesContainer",void 0),ml([L(".ft-filter--levels")],Ol.prototype,"levelsContainer",void 0),ml([I()],Ol.prototype,"lastLevelHasHiddenvalues",void 0),ml([L(".ft-filter--filter input")],Ol.prototype,"filterInput",void 0),ml([function(t){return(e,o)=>U(0,0,{get(){return(this.renderRoot??(A??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],Ol.prototype,"levels",void 0),ml([I()],Ol.prototype,"withScroll",void 0),ml([I()],Ol.prototype,"filter",void 0),ml([I()],Ol.prototype,"slideIn",void 0),ml([I()],Ol.prototype,"slideOut",void 0);var wl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Sl extends Ze{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return fe`
1809
+ `}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;z(this.lastDispatchedValues,t)||(this.dispatchEvent(new Ol(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)}}wl.elementDefinitions={"ft-button":aa,"ft-filter-level":sl,"ft-snap-scroll":fl,"ft-typography":Es},wl.styles=ml,xl([k({type:String})],wl.prototype,"id",void 0),xl([k({type:String})],wl.prototype,"label",void 0),xl([k({type:String})],wl.prototype,"filterPlaceHolder",void 0),xl([k({type:String})],wl.prototype,"clearButtonLabel",void 0),xl([k({type:String})],wl.prototype,"moreValuesButtonLabel",void 0),xl([k({type:String})],wl.prototype,"noValuesLabel",void 0),xl([D([])],wl.prototype,"options",void 0),xl([k({type:Boolean})],wl.prototype,"multivalued",void 0),xl([k({type:Boolean})],wl.prototype,"disabled",void 0),xl([k({type:Boolean})],wl.prototype,"raiseSelectedOptions",void 0),xl([k({type:Number})],wl.prototype,"displayedValuesLimit",void 0),xl([k({type:Boolean})],wl.prototype,"hideClearButton",void 0),xl([U(".ft-filter--slot")],wl.prototype,"slotElement",void 0),xl([U(".ft-filter--container")],wl.prototype,"container",void 0),xl([U(".ft-filter--values")],wl.prototype,"valuesContainer",void 0),xl([U(".ft-filter--levels")],wl.prototype,"levelsContainer",void 0),xl([R()],wl.prototype,"lastLevelHasHiddenvalues",void 0),xl([U(".ft-filter--filter input")],wl.prototype,"filterInput",void 0),xl([function(t){return(e,o)=>I(0,0,{get(){return(this.renderRoot??(L??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],wl.prototype,"levels",void 0),xl([R()],wl.prototype,"withScroll",void 0),xl([R()],wl.prototype,"filter",void 0),xl([R()],wl.prototype,"slideIn",void 0),xl([R()],wl.prototype,"slideOut",void 0);var Sl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Nl extends Ze{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return fe`
1806
1810
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1807
- `}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}))}}Sl.elementDefinitions={},wl([R({type:String})],Sl.prototype,"label",void 0),wl([R({type:Object,converter:t=>t})],Sl.prototype,"value",void 0),wl([R({type:Boolean,reflect:!0})],Sl.prototype,"selected",void 0),wl([R({type:Object})],Sl.prototype,"subOptions",void 0),wl([D({})],Sl.prototype,"renderOption",void 0),wl([L(".ft-filter-option--slot")],Sl.prototype,"slotElement",void 0),F("ft-filter")(Ol),F("ft-filter-option")(Sl);const Nl=Ra.build("designedSearchType"),$l={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Cl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class El extends(Na(Vr)){constructor(){super(),this.addI18nContext(Nl,$l)}render(){return fe`
1811
+ `}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}))}}Nl.elementDefinitions={},Sl([k({type:String})],Nl.prototype,"label",void 0),Sl([k({type:Object,converter:t=>t})],Nl.prototype,"value",void 0),Sl([k({type:Boolean,reflect:!0})],Nl.prototype,"selected",void 0),Sl([k({type:Object})],Nl.prototype,"subOptions",void 0),Sl([D({})],Nl.prototype,"renderOption",void 0),Sl([U(".ft-filter-option--slot")],Nl.prototype,"slotElement",void 0),F("ft-filter")(wl),F("ft-filter-option")(Nl);const $l=Ia.build("designedSearchType"),Cl={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var El=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class kl extends($a(qr)){constructor(){super(),this.addI18nContext($l,Cl)}render(){return fe`
1808
1812
  <ft-filter
1809
- label=${Nl.messages.label()}
1810
- .options=${[{label:Nl.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
1813
+ label=${$l.messages.label()}
1814
+ .options=${[{label:$l.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
1811
1815
  part="filter"
1812
1816
  .exportpartsPrefixes=${["filter"]}
1813
1817
  multivalued
1814
1818
  @change=${this.onSelected}
1815
1819
  ></ft-filter>
1816
- `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}El.elementDefinitions={"ft-filter":Ol},El.styles=za,Cl([_i({selector:Mr})],El.prototype,"searchInDocumentTitlesOnly",void 0),Cl([L("ft-filter")],El.prototype,"filter",void 0),F("ft-search-type")(El);var kl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Rl extends(Na(Vr)){constructor(){super(),this.editorMode=!1,this.addStore(Er),this.addI18nContext(Nl,$l)}render(){return this.editorMode?this.renderDummyFacet():null!=this.facets&&0!==this.facets.length||this.searchInDocumentTitlesOnly?fe`
1820
+ `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}kl.elementDefinitions={"ft-filter":wl},kl.styles=Fa,El([Hi({selector:Tr})],kl.prototype,"searchInDocumentTitlesOnly",void 0),El([U("ft-filter")],kl.prototype,"filter",void 0),F("ft-search-type")(kl);var Rl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Il extends($a(qr)){constructor(){super(),this.editorMode=!1,this.addStore(kr),this.addI18nContext($l,Cl)}render(){return this.editorMode?this.renderDummyFacet():null!=this.facets&&0!==this.facets.length||this.searchInDocumentTitlesOnly?fe`
1817
1821
 
1818
1822
  <div class="ft-search-selected-facets--container">
1819
- ${lr(this.facets||[],(t=>t.key),(t=>{const e=this.getSelectedValues(t);return lr(e,(e=>t.key+"-"+e),(o=>this.renderFacet(t.key,t.label,e,o)))}))}
1823
+ ${cr(this.facets||[],(t=>t.key),(t=>{const e=this.getSelectedValues(t);return cr(e,(e=>t.key+"-"+e),(o=>this.renderFacet(t.key,t.label,e,o)))}))}
1820
1824
  ${this.renderSearchInDocumentTitlesOnly()}
1821
1825
  </div>
1822
1826
  `:de}renderDummyFacet(){return fe`
@@ -1837,13 +1841,13 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1837
1841
  </ft-chip>
1838
1842
  </ft-tooltip>
1839
1843
  `}getSelectedValues(t){return j(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}renderSearchInDocumentTitlesOnly(){return this.searchInDocumentTitlesOnly?fe`
1840
- <ft-tooltip inline text="${Nl.messages.documentTitlesOnly()}"
1844
+ <ft-tooltip inline text="${$l.messages.documentTitlesOnly()}"
1841
1845
  part="tooltips tooltip-search-in-document-titles-only">
1842
1846
  <ft-chip
1843
1847
  part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
1844
1848
  removable
1845
1849
  @icon-click=${()=>{var t;return null===(t=this.stateManager)||void 0===t?void 0:t.setSearchInDocumentTitlesOnly(!1)}}>
1846
- ${Nl.messages.documentTitlesOnly()}
1850
+ ${$l.messages.documentTitlesOnly()}
1847
1851
  </ft-chip>
1848
1852
  </ft-tooltip>
1849
- `:de}}Rl.elementDefinitions={"ft-chip":ma,"ft-tooltip":ea},Rl.styles=hr,kl([_i({store:"search"})],Rl.prototype,"facets",void 0),kl([_i({store:"search",selector:Mr})],Rl.prototype,"searchInDocumentTitlesOnly",void 0),kl([_i({store:Er.name})],Rl.prototype,"editorMode",void 0),F("ft-search-selected-facets")(Rl),t.FtSearchSelectedFacets=Rl,t.FtSearchSelectedFacetsCssVariables=cr,t.styles=hr}({});
1853
+ `:de}}Il.elementDefinitions={"ft-chip":xa,"ft-tooltip":oa},Il.styles=fr,Rl([Hi({store:"search"})],Il.prototype,"facets",void 0),Rl([Hi({store:"search",selector:Tr})],Il.prototype,"searchInDocumentTitlesOnly",void 0),Rl([Hi({store:kr.name})],Il.prototype,"editorMode",void 0),F("ft-search-selected-facets")(Il),t.FtSearchSelectedFacets=Il,t.FtSearchSelectedFacetsCssVariables=hr,t.styles=fr}({});