@fluid-topics/ft-reader-metadata 1.1.67 → 1.1.69

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,7 +12,7 @@
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,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){y.push(this),r.upgrade.apply(r,arguments),y.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 r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},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),i.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)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Os){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){y.push(this),r.upgrade.apply(r,arguments),y.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 r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},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),i.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)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ws){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -140,7 +140,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
140
140
  .highlight-html-match {
141
141
  background: ${Hi};
142
142
  }
143
- `,Vi={className:"highlight-html-match"};var qi=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Zi(t);if(r.unmark(Vi),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Vi,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Vi,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:Hi,highlightHtmlStyles:Gi});const Yi=ht`
143
+ `,Vi={className:"highlight-html-match"};function qi(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Zi(t);if(r.unmark(Vi),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Vi,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Vi,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")}var Yi=Object.freeze({__proto__:null,highlightHtml:qi,highlightHtmlColorCssVariable:Hi,highlightHtmlStyles:Gi});const Ji=ht`
144
144
  .ft-no-text-select {
145
145
  -webkit-touch-callout: none;
146
146
  -webkit-user-select: none;
@@ -149,7 +149,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
149
149
  -ms-user-select: none;
150
150
  user-select: none;
151
151
  }
152
- `,Ji=ht`
152
+ `,Xi=ht`
153
153
  .ft-word-wrap {
154
154
  white-space: normal;
155
155
  word-wrap: break-word;
@@ -161,7 +161,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
161
161
  -webkit-hyphens: auto;
162
162
  hyphens: auto
163
163
  }
164
- `,Xi=ht`
164
+ `,Qi=ht`
165
165
  .ft-safari-ellipsis-fix {
166
166
  margin-right: 0;
167
167
 
@@ -172,7 +172,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
172
172
  display: inline-block;
173
173
  width: 0;
174
174
  }
175
- `;var Qi=Object.freeze({__proto__:null,noTextSelect:Yi,safariEllipsisFix:Xi,wordWrap:Ji}),tn=Object.freeze({__proto__:null});class en{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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()}}}var on=Object.freeze({__proto__:null,ParametrizedLabelResolver:en});const rn=()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)},nn=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!ho(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},an=t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)};class sn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function ln(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var cn,fn,pn;const hn=Symbol("internalReduxEventsUnsubscribers"),dn=Symbol("internalStoresUnsubscribers"),un=Symbol("internalStores");class gn extends Mi{constructor(){super(...arguments),this[cn]=new Map,this[fn]=new Map,this[pn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[un].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[un].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[un].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:ln(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[un].delete(e)}setupStore(t,e){this[un].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[un].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.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[dn].has(t.store):this[dn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[dn].set(t,e.subscribe((()=>this.updateFromStores()))),ln(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[hn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[dn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[hn].forEach((t=>t())),this[hn]=[]}unsubscribeFromStore(t){this[dn].has(t)&&this[dn].get(t)(),this[dn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function yn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];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 bn(t){return!!t&&!!t[ra]}function mn(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)===ia}(t)||Array.isArray(t)||!!t[oa]||!!(null===(e=t.constructor)||void 0===e?void 0:e[oa])||Cn(t)||Nn(t))}function vn(t,e,o){void 0===o&&(o=!1),0===xn(t)?(o?Object.keys:na)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function xn(t){var e=t[ra];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Cn(t)?2:Nn(t)?3:0}function On(t,e){return 2===xn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wn(t,e,o){var r=xn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Sn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Cn(t){return Xn&&t instanceof Map}function Nn(t){return Qn&&t instanceof Set}function En(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=aa(t);delete e[ra];for(var o=na(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Rn(t,e){return void 0===e&&(e=!1),kn(t)||bn(t)||!mn(t)||(xn(t)>1&&(t.set=t.add=t.clear=t.delete=In),Object.freeze(t),e&&vn(t,(function(t,e){return Rn(e,!0)}),!0)),t}function In(){yn(2)}function kn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Ln(t){var e=sa[t];return e||yn(18,t),e}function Un(){return Yn}function Wn(t,e){e&&(Ln("Patches"),t.u=[],t.s=[],t.v=e)}function An(t){Bn(t),t.p.forEach(Fn),t.p=null}function Bn(t){t===Yn&&(Yn=t.l)}function zn(t){return Yn={p:[],l:Yn,h:t,m:!0,_:0}}function Fn(t){var e=t[ra];0===e.i||1===e.i?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Ln("ES5").S(e,t,r),r?(o[ra].P&&(An(e),yn(4)),mn(t)&&(t=_n(e,t),e.l||Mn(e,t)),e.u&&Ln("Patches").M(o[ra].t,t,e.u,e.s)):t=_n(e,o,[]),An(e),e.u&&e.v(e.u,e.s),t!==ea?t:void 0}function _n(t,e,o){if(kn(e))return e;var r=e[ra];if(!r)return vn(e,(function(i,n){return jn(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Mn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=$n(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),vn(n,(function(e,n){return jn(t,r,i,e,n,o,a)})),Mn(t,i,!1),o&&t.u&&Ln("Patches").N(r,o,t.u,t.s)}return r.o}function jn(t,e,o,r,i,n,a){if(bn(i)){var s=_n(t,i,n&&e&&3!==e.i&&!On(e.R,r)?n.concat(r):void 0);if(wn(o,r,s),!bn(s))return;t.m=!1}else a&&o.add(i);if(mn(i)&&!kn(i)){if(!t.h.D&&t._<1)return;_n(t,i),e&&e.A.l||Mn(t,i)}}function Mn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&Rn(e,o)}function Dn(t,e){var o=t[ra];return(o?En(o):t)[e]}function Kn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Tn(t){t.P||(t.P=!0,t.l&&Tn(t.l))}function Zn(t){t.o||(t.o=$n(t.t))}function Hn(t,e,o){var r=Cn(e)?Ln("MapSet").F(e,o):Nn(e)?Ln("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:Un(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=la;o&&(i=[r],n=ca);var a=Proxy.revocable(i,n),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,o):Ln("ES5").J(e,o);return(o?o.A:Un()).p.push(r),r}function Gn(t){return bn(t)||yn(22,t),function t(e){if(!mn(e))return e;var o,r=e[ra],i=xn(e);if(r){if(!r.P&&(r.i<4||!Ln("ES5").K(r)))return r.t;r.I=!0,o=Vn(e,i),r.I=!1}else o=Vn(e,i);return vn(o,(function(e,i){r&&function(t,e){return 2===xn(t)?t.get(e):t[e]}(r.t,e)===i||wn(o,e,t(i))})),3===i?new Set(o):o}(t)}function Vn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}cn=dn,fn=un,pn=hn,gn.reduxProperties=new Map,gn.reduxReactiveProperties=new Set,gn.reduxEventListeners=new Map;var qn,Yn,Jn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Xn="undefined"!=typeof Map,Qn="undefined"!=typeof Set,ta="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ea=Jn?Symbol.for("immer-nothing"):((qn={})["immer-nothing"]=!0,qn),oa=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",ra=Jn?Symbol.for("immer-state"):"__$immer_state",ia=""+Object.prototype.constructor,na="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,aa=Object.getOwnPropertyDescriptors||function(t){var e={};return na(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},sa={},la={get:function(t,e){if(e===ra)return t;var o=En(t);if(!On(o,e))return function(t,e,o){var r,i=Kn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!mn(r)?r:r===Dn(t.t,e)?(Zn(t),t.o[e]=Hn(t.A.h,r,t)):r},has:function(t,e){return e in En(t)},ownKeys:function(t){return Reflect.ownKeys(En(t))},set:function(t,e,o){var r=Kn(En(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Dn(En(t),e),n=null==i?void 0:i[ra];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Sn(o,i)&&(void 0!==o||On(t.t,e)))return!0;Zn(t),Tn(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!==Dn(t.t,e)||e in t.t?(t.R[e]=!1,Zn(t),Tn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=En(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){yn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){yn(12)}},ca={};vn(la,(function(t,e){ca[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ca.deleteProperty=function(t,e){return ca.set.call(this,t,e,void 0)},ca.set=function(t,e,o){return la.set.call(this,t[0],e,o,t[0])};var fa=function(){function t(t){var e=this;this.O=ta,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&yn(6),void 0!==r&&"function"!=typeof r&&yn(7),mn(t)){var s=zn(e),l=Hn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?An(s):Bn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Wn(s,r),Pn(t,s)}),(function(t){throw An(s),t})):(Wn(s,r),Pn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ea&&(a=void 0),e.D&&Rn(a,!0),r){var f=[],p=[];Ln("Patches").M(t,a,f,p),r(f,p)}return a}yn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){mn(t)||yn(8),bn(t)&&(t=Gn(t));var e=zn(this),o=Hn(this,t,void 0);return o[ra].C=!0,Bn(e),o},e.finishDraft=function(t,e){var o=(t&&t[ra]).A;return Wn(o,e),Pn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ta&&yn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Ln("Patches").$;return bn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),pa=new fa,ha=pa.produce;function da(t){return da="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},da(t)}function ua(t){var e=function(t,e){if("object"!==da(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===da(e)?e:String(e)}function ga(t,e,o){return(e=ua(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ya(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function ba(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ya(Object(o),!0).forEach((function(e){ga(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ya(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ma(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. "}pa.produceWithPatches.bind(pa),pa.setAutoFreeze.bind(pa),pa.setUseProxies.bind(pa),pa.applyPatches.bind(pa),pa.createDraft.bind(pa),pa.finishDraft.bind(pa);var va="function"==typeof Symbol&&Symbol.observable||"@@observable",xa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Oa={INIT:"@@redux/INIT"+xa(),REPLACE:"@@redux/REPLACE"+xa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xa()}};function wa(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ma(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ma(1));return o(wa)(t,e)}if("function"!=typeof t)throw new Error(ma(2));var i=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ma(3));return n}function p(t){if("function"!=typeof t)throw new Error(ma(4));if(l)throw new Error(ma(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ma(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(ma(7));if(void 0===t.type)throw new Error(ma(8));if(l)throw new Error(ma(9));try{l=!0,n=i(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:Oa.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ma(10));i=t,h({type:Oa.REPLACE})}})[va]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ma(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[va]=function(){return this},t},r}function Sa(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Oa.INIT}))throw new Error(ma(12));if(void 0===o(void 0,{type:Oa.PROBE_UNKNOWN_ACTION()}))throw new Error(ma(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],p=c(f,e);if(void 0===p)throw e&&e.type,new Error(ma(14));i[l]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function Ca(){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 Na(){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),r=function(){throw new Error(ma(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=Ca.apply(void 0,n)(o.dispatch),ba(ba({},o),{},{dispatch:r})}}}function Ea(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var $a=Ea();$a.withExtraArgument=Ea;var Ra,Ia=$a,ka=(Ra=function(t,e){return Ra=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])},Ra(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}Ra(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),La=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Ua=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Wa=Object.defineProperty,Aa=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,_a=function(t,e,o){return e in t?Wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ja=function(t,e){for(var o in e||(e={}))Fa.call(e,o)&&_a(t,o,e[o]);if(za)for(var r=0,i=za(e);r<i.length;r++){o=i[r];Pa.call(e,o)&&_a(t,o,e[o])}return t},Ma=function(t,e){return Aa(t,Ba(e))},Da="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ca:Ca.apply(null,arguments)};var Ka=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ka(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,Ua([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ua([void 0],t.concat(this))))},e}(Array),Ta=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ka(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,Ua([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ua([void 0],t.concat(this))))},e}(Array);function Za(t){return mn(t)?ha(t,(function(){})):t}function Ha(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Ka;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(Ia.withExtraArgument(o.extraArgument)):r.push(Ia));return r}(t)}}function Ga(t){var e,o=Ha(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,l=r.devTools,c=void 0===l||l,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;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=Sa(n)}var u=s;"function"==typeof u&&(u=u(o));var g=Na.apply(void 0,u),y=Ca;c&&(y=Da(ja({trace:!1},"object"==typeof c&&c)));var b=new Ta(g),m=b;return Array.isArray(d)?m=Ua([g],d):"function"==typeof d&&(m=d(b)),wa(e,p,y.apply(void 0,m))}function Va(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return ja(ja({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 qa(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ya(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Za(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?qa(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=ja(ja({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?qa(e):[e,o,r],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Za(t())};else{var c=Za(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=Ua([a[e.type]],s.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 r;if(bn(t))return void 0===(r=o(t,e))?t:r;if(mn(t))return ha(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=r?Va(c,r):Va(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ja=["name","message","stack","code"],Xa=function(t,e){this.payload=t,this.meta=e},Qa=function(t,e){this.payload=t,this.meta=e},ts=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ja;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function es(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 r=Va(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ma(ja({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Va(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ma(ja({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Va(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||ts)(t||"Rejected"),meta:Ma(ja({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,l,c){var f,p=(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}(),h=new a;function d(t){f=t,h.abort()}var u=function(){return a=this,u=null,g=function(){var a,u,g,y,b,m;return La(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:p,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Xa(t,e)},fulfillWithValue:function(t,e){return new Qa(t,e)}})).then((function(e){if(e instanceof Xa)throw e;return e instanceof Qa?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Xa?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,u)).next())}));var a,u,g}();return Object.assign(u,{abort:d,requestId:p,arg:t,unwrap:function(){return u.then(es)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var os="listenerMiddleware";Va(os+"/add"),Va(os+"/removeAll"),Va(os+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ra];return la.get(e,t)},set:function(e){var o=this[ra];la.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][ra];if(!i.P)switch(i.i){case 5:r(i)&&Tn(i);break;case 4:o(i)&&Tn(i)}}}function o(t){for(var e=t.t,o=t.k,r=na(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==ra){var a=e[n];if(void 0===a&&!On(e,n))return!0;var s=o[n],l=s&&s[ra];if(l?l.t!==a:!Sn(s,a))return!0}}var c=!!e[ra];return r.length!==na(e).length+(c?0:1)}function r(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 r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){sa[t]||(sa[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=aa(o);delete n[ra];for(var a=na(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:Un(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,ra,{value:n,writable:!0}),i},S:function(t,o,i){i?bn(o)&&o[ra].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ra];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)vn(n,(function(e){e!==ra&&(void 0!==i[e]||On(i,e)?a[e]||t(n[e]):(a[e]=!0,Tn(o)))})),vn(i,(function(t){void 0!==n[t]||On(n,t)||(a[t]=!1,Tn(o))}));else if(5===s){if(r(o)&&(Tn(o),a.length=!0),n.length<i.length)for(var l=n.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class rs{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(ln(i))return i;if(null==r)return;const n=Ya({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ga({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new rs(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new sn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),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()}}var is=Object.freeze({__proto__:null,FtCommandQueue:sn,FtLitElementRedux:gn,FtReduxStore:rs,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))ln(e)&&e.clear()},isFtReduxStore:ln,redux:nn,reduxEventListener:an,reduxReactive:rn});var ns=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const as=Symbol("elementInternals");function ss(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[as].form}constructor(...t){super(t),this[as]=this.attachInternals(),this[as].role=e}setFormValue(t){this[as].setFormValue(t)}}}var ls,cs,fs,ps,hs=Object.freeze({__proto__:null,toFtFormComponent:ss});const ds=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(fs=null===(cs=null===(ls=window.safari)||void 0===ls?void 0:ls.pushNotification)||void 0===cs?void 0:cs.toString())&&void 0!==fs?fs:""),us="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(ps=window.ftGlobals)&&void 0!==ps?ps:{lit:ve,litDecorators:ke,litRepeat:Ke,litClassMap:Ze,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...io,...oo,...ao,...lo,...vo,...Cr,...Rr,...Li,...wr,...Di,...Ki,...go,...qi,...Qi,...tn,...on,...is,...zi,...ns,...hs,isSafari:ds,isTouchScreen:us}};const gs=ht`
175
+ `;var tn=Object.freeze({__proto__:null,noTextSelect:Ji,safariEllipsisFix:Qi,wordWrap:Xi}),en=Object.freeze({__proto__:null});class on{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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()}}}var rn=Object.freeze({__proto__:null,ParametrizedLabelResolver:on});const nn=()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)},an=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!ho(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},sn=t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)};class ln{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function cn(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var fn,pn,hn;const dn=Symbol("internalReduxEventsUnsubscribers"),un=Symbol("internalStoresUnsubscribers"),gn=Symbol("internalStores");class yn extends Mi{constructor(){super(...arguments),this[fn]=new Map,this[pn]=new Map,this[hn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[gn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[gn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[gn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:cn(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[gn].delete(e)}setupStore(t,e){this[gn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[gn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.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[un].has(t.store):this[un].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[un].set(t,e.subscribe((()=>this.updateFromStores()))),cn(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[dn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[un].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[dn].forEach((t=>t())),this[dn]=[]}unsubscribeFromStore(t){this[un].has(t)&&this[un].get(t)(),this[un].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function bn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];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 mn(t){return!!t&&!!t[ia]}function vn(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)===na}(t)||Array.isArray(t)||!!t[ra]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ra])||Nn(t)||En(t))}function xn(t,e,o){void 0===o&&(o=!1),0===On(t)?(o?Object.keys:aa)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function On(t){var e=t[ia];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Nn(t)?2:En(t)?3:0}function wn(t,e){return 2===On(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Sn(t,e,o){var r=On(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Cn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Nn(t){return Qn&&t instanceof Map}function En(t){return ta&&t instanceof Set}function $n(t){return t.o||t.t}function Rn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sa(t);delete e[ia];for(var o=aa(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function In(t,e){return void 0===e&&(e=!1),Ln(t)||mn(t)||!vn(t)||(On(t)>1&&(t.set=t.add=t.clear=t.delete=kn),Object.freeze(t),e&&xn(t,(function(t,e){return In(e,!0)}),!0)),t}function kn(){bn(2)}function Ln(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Un(t){var e=la[t];return e||bn(18,t),e}function Wn(){return Jn}function An(t,e){e&&(Un("Patches"),t.u=[],t.s=[],t.v=e)}function Bn(t){zn(t),t.p.forEach(Pn),t.p=null}function zn(t){t===Jn&&(Jn=t.l)}function Fn(t){return Jn={p:[],l:Jn,h:t,m:!0,_:0}}function Pn(t){var e=t[ia];0===e.i||1===e.i?e.j():e.g=!0}function _n(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Un("ES5").S(e,t,r),r?(o[ia].P&&(Bn(e),bn(4)),vn(t)&&(t=jn(e,t),e.l||Dn(e,t)),e.u&&Un("Patches").M(o[ia].t,t,e.u,e.s)):t=jn(e,o,[]),Bn(e),e.u&&e.v(e.u,e.s),t!==oa?t:void 0}function jn(t,e,o){if(Ln(e))return e;var r=e[ia];if(!r)return xn(e,(function(i,n){return Mn(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Dn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Rn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),xn(n,(function(e,n){return Mn(t,r,i,e,n,o,a)})),Dn(t,i,!1),o&&t.u&&Un("Patches").N(r,o,t.u,t.s)}return r.o}function Mn(t,e,o,r,i,n,a){if(mn(i)){var s=jn(t,i,n&&e&&3!==e.i&&!wn(e.R,r)?n.concat(r):void 0);if(Sn(o,r,s),!mn(s))return;t.m=!1}else a&&o.add(i);if(vn(i)&&!Ln(i)){if(!t.h.D&&t._<1)return;jn(t,i),e&&e.A.l||Dn(t,i)}}function Dn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&In(e,o)}function Kn(t,e){var o=t[ia];return(o?$n(o):t)[e]}function Tn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Zn(t){t.P||(t.P=!0,t.l&&Zn(t.l))}function Hn(t){t.o||(t.o=Rn(t.t))}function Gn(t,e,o){var r=Nn(e)?Un("MapSet").F(e,o):En(e)?Un("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:Wn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=ca;o&&(i=[r],n=fa);var a=Proxy.revocable(i,n),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,o):Un("ES5").J(e,o);return(o?o.A:Wn()).p.push(r),r}function Vn(t){return mn(t)||bn(22,t),function t(e){if(!vn(e))return e;var o,r=e[ia],i=On(e);if(r){if(!r.P&&(r.i<4||!Un("ES5").K(r)))return r.t;r.I=!0,o=qn(e,i),r.I=!1}else o=qn(e,i);return xn(o,(function(e,i){r&&function(t,e){return 2===On(t)?t.get(e):t[e]}(r.t,e)===i||Sn(o,e,t(i))})),3===i?new Set(o):o}(t)}function qn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Rn(t)}fn=un,pn=gn,hn=dn,yn.reduxProperties=new Map,yn.reduxReactiveProperties=new Set,yn.reduxEventListeners=new Map;var Yn,Jn,Xn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Qn="undefined"!=typeof Map,ta="undefined"!=typeof Set,ea="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,oa=Xn?Symbol.for("immer-nothing"):((Yn={})["immer-nothing"]=!0,Yn),ra=Xn?Symbol.for("immer-draftable"):"__$immer_draftable",ia=Xn?Symbol.for("immer-state"):"__$immer_state",na=""+Object.prototype.constructor,aa="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sa=Object.getOwnPropertyDescriptors||function(t){var e={};return aa(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},la={},ca={get:function(t,e){if(e===ia)return t;var o=$n(t);if(!wn(o,e))return function(t,e,o){var r,i=Tn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!vn(r)?r:r===Kn(t.t,e)?(Hn(t),t.o[e]=Gn(t.A.h,r,t)):r},has:function(t,e){return e in $n(t)},ownKeys:function(t){return Reflect.ownKeys($n(t))},set:function(t,e,o){var r=Tn($n(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Kn($n(t),e),n=null==i?void 0:i[ia];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cn(o,i)&&(void 0!==o||wn(t.t,e)))return!0;Hn(t),Zn(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!==Kn(t.t,e)||e in t.t?(t.R[e]=!1,Hn(t),Zn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=$n(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){bn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){bn(12)}},fa={};xn(ca,(function(t,e){fa[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),fa.deleteProperty=function(t,e){return fa.set.call(this,t,e,void 0)},fa.set=function(t,e,o){return ca.set.call(this,t[0],e,o,t[0])};var pa=function(){function t(t){var e=this;this.O=ea,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&bn(6),void 0!==r&&"function"!=typeof r&&bn(7),vn(t)){var s=Fn(e),l=Gn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Bn(s):zn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return An(s,r),_n(t,s)}),(function(t){throw Bn(s),t})):(An(s,r),_n(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===oa&&(a=void 0),e.D&&In(a,!0),r){var f=[],p=[];Un("Patches").M(t,a,f,p),r(f,p)}return a}bn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){vn(t)||bn(8),mn(t)&&(t=Vn(t));var e=Fn(this),o=Gn(this,t,void 0);return o[ia].C=!0,zn(e),o},e.finishDraft=function(t,e){var o=(t&&t[ia]).A;return An(o,e),_n(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ea&&bn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Un("Patches").$;return mn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ha=new pa,da=ha.produce;function ua(t){return ua="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},ua(t)}function ga(t){var e=function(t,e){if("object"!==ua(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ua(e)?e:String(e)}function ya(t,e,o){return(e=ga(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ba(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function ma(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(o),!0).forEach((function(e){ya(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ba(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function va(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. "}ha.produceWithPatches.bind(ha),ha.setAutoFreeze.bind(ha),ha.setUseProxies.bind(ha),ha.applyPatches.bind(ha),ha.createDraft.bind(ha),ha.finishDraft.bind(ha);var xa="function"==typeof Symbol&&Symbol.observable||"@@observable",Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},wa={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function Sa(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(va(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(va(1));return o(Sa)(t,e)}if("function"!=typeof t)throw new Error(va(2));var i=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(va(3));return n}function p(t){if("function"!=typeof t)throw new Error(va(4));if(l)throw new Error(va(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(va(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(va(7));if(void 0===t.type)throw new Error(va(8));if(l)throw new Error(va(9));try{l=!0,n=i(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:wa.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(va(10));i=t,h({type:wa.REPLACE})}})[xa]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(va(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[xa]=function(){return this},t},r}function Ca(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:wa.INIT}))throw new Error(va(12));if(void 0===o(void 0,{type:wa.PROBE_UNKNOWN_ACTION()}))throw new Error(va(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],p=c(f,e);if(void 0===p)throw e&&e.type,new Error(va(14));i[l]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function Na(){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 Ea(){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),r=function(){throw new Error(va(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=Na.apply(void 0,n)(o.dispatch),ma(ma({},o),{},{dispatch:r})}}}function $a(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var Ra=$a();Ra.withExtraArgument=$a;var Ia,ka=Ra,La=(Ia=function(t,e){return Ia=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])},Ia(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}Ia(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ua=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Wa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Aa=Object.defineProperty,Ba=Object.defineProperties,za=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ja=function(t,e,o){return e in t?Aa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ma=function(t,e){for(var o in e||(e={}))Pa.call(e,o)&&ja(t,o,e[o]);if(Fa)for(var r=0,i=Fa(e);r<i.length;r++){o=i[r];_a.call(e,o)&&ja(t,o,e[o])}return t},Da=function(t,e){return Ba(t,za(e))},Ka="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Na:Na.apply(null,arguments)};var Ta=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return La(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,Wa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Wa([void 0],t.concat(this))))},e}(Array),Za=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return La(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,Wa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Wa([void 0],t.concat(this))))},e}(Array);function Ha(t){return vn(t)?da(t,(function(){})):t}function Ga(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Ta;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ka.withExtraArgument(o.extraArgument)):r.push(ka));return r}(t)}}function Va(t){var e,o=Ga(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,l=r.devTools,c=void 0===l||l,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;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=Ca(n)}var u=s;"function"==typeof u&&(u=u(o));var g=Ea.apply(void 0,u),y=Na;c&&(y=Ka(Ma({trace:!1},"object"==typeof c&&c)));var b=new Za(g),m=b;return Array.isArray(d)?m=Wa([g],d):"function"==typeof d&&(m=d(b)),Sa(e,p,y.apply(void 0,m))}function qa(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ma(Ma({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Ya(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ja(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ha(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ya(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ma(Ma({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ya(e):[e,o,r],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ha(t())};else{var c=Ha(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=Wa([a[e.type]],s.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 r;if(mn(t))return void 0===(r=o(t,e))?t:r;if(vn(t))return da(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=r?qa(c,r):qa(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Xa=["name","message","stack","code"],Qa=function(t,e){this.payload=t,this.meta=e},ts=function(t,e){this.payload=t,this.meta=e},es=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Xa;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function os(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 r=qa(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Da(Ma({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=qa(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Da(Ma({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=qa(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||es)(t||"Rejected"),meta:Da(Ma({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,l,c){var f,p=(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}(),h=new a;function d(t){f=t,h.abort()}var u=function(){return a=this,u=null,g=function(){var a,u,g,y,b,m;return Ua(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:p,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Qa(t,e)},fulfillWithValue:function(t,e){return new ts(t,e)}})).then((function(e){if(e instanceof Qa)throw e;return e instanceof ts?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Qa?n(null,p,t,m.payload,m.meta):n(m,p,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,u)).next())}));var a,u,g}();return Object.assign(u,{abort:d,requestId:p,arg:t,unwrap:function(){return u.then(os)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var rs="listenerMiddleware";qa(rs+"/add"),qa(rs+"/removeAll"),qa(rs+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ia];return ca.get(e,t)},set:function(e){var o=this[ia];ca.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][ia];if(!i.P)switch(i.i){case 5:r(i)&&Zn(i);break;case 4:o(i)&&Zn(i)}}}function o(t){for(var e=t.t,o=t.k,r=aa(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==ia){var a=e[n];if(void 0===a&&!wn(e,n))return!0;var s=o[n],l=s&&s[ia];if(l?l.t!==a:!Cn(s,a))return!0}}var c=!!e[ia];return r.length!==aa(e).length+(c?0:1)}function r(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 r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){la[t]||(la[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=sa(o);delete n[ia];for(var a=aa(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:Wn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,ia,{value:n,writable:!0}),i},S:function(t,o,i){i?mn(o)&&o[ia].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ia];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)xn(n,(function(e){e!==ia&&(void 0!==i[e]||wn(i,e)?a[e]||t(n[e]):(a[e]=!0,Zn(o)))})),xn(i,(function(t){void 0!==n[t]||wn(n,t)||(a[t]=!1,Zn(o))}));else if(5===s){if(r(o)&&(Zn(o),a.length=!0),n.length<i.length)for(var l=n.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class is{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(cn(i))return i;if(null==r)return;const n=Ja({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Va({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new is(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ln,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),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()}}var ns=Object.freeze({__proto__:null,FtCommandQueue:ln,FtLitElementRedux:yn,FtReduxStore:is,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))cn(e)&&e.clear()},isFtReduxStore:cn,redux:an,reduxEventListener:sn,reduxReactive:nn});var as=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,i,n;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(i=e.sort)||void 0===i?void 0:i.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(n=e.filters)||void 0===n?void 0:n.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const ss=Symbol("elementInternals");function ls(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[ss].form}constructor(...t){super(t),this[ss]=this.attachInternals(),this[ss].role=e}setFormValue(t){this[ss].setFormValue(t)}}}var cs,fs,ps,hs,ds=Object.freeze({__proto__:null,toFtFormComponent:ls});const us=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ps=null===(fs=null===(cs=window.safari)||void 0===cs?void 0:cs.pushNotification)||void 0===fs?void 0:fs.toString())&&void 0!==ps?ps:""),gs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(hs=window.ftGlobals)&&void 0!==hs?hs:{lit:ve,litDecorators:ke,litRepeat:Ke,litClassMap:Ze,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...io,...oo,...ao,...lo,...vo,...Cr,...Rr,...Li,...wr,...Di,...Ki,...go,...Yi,...tn,...en,...rn,...ns,...zi,...as,...ds,isSafari:us,isTouchScreen:gs}};const ys=ht`
176
176
  :host {
177
177
  display: inline-block;
178
178
  }
@@ -192,107 +192,107 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
192
192
  all: unset;
193
193
  position: relative;
194
194
  }
195
- `;var ys;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(ys||(ys={}));var bs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ms extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const vs=Symbol("registerInterval");class xs extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[vs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[vs]):this.dispatchEvent(new ms)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=vs,bs([Se()],o.prototype,"stateManager",void 0),o}(gn)){}
195
+ `;var bs;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(bs||(bs={}));var ms=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vs extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const xs=Symbol("registerInterval");class Os extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[xs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[xs]):this.dispatchEvent(new vs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=xs,ms([Se()],o.prototype,"stateManager",void 0),o}(yn)){}
196
196
  /**
197
197
  * @license
198
198
  * Copyright 2020 Google LLC
199
199
  * SPDX-License-Identifier: BSD-3-Clause
200
- */const Os=Symbol.for(""),ws=t=>{if(t?.r===Os)return t?._$litStatic$},Ss=t=>({_$litStatic$:t,r:Os}),Cs=new Map,Ns=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let l,c=0,f=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(n=o[c],i=ws(n));)l+=i+e[++c],f=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Cs.get(t))&&(a.raw=a,Cs.set(t,e=a)),o=s}return t(e,...o)})(D);var Es;!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"}(Es||(Es={}));const $s=Oo.extend("--ft-typography-font-family","",Sr.titleFont),Rs=Oo.extend("--ft-typography-font-family","",Sr.contentFont),Is={fontFamily:Rs,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ks=Oo.extend("--ft-typography-title-font-family","",$s),Ls=Oo.extend("--ft-typography-title-font-size","",Is.fontSize,"20px"),Us=Oo.extend("--ft-typography-title-font-weight","",Is.fontWeight,"normal"),Ws=Oo.extend("--ft-typography-title-letter-spacing","",Is.letterSpacing,"0.15px"),As=Oo.extend("--ft-typography-title-line-height","",Is.lineHeight,"1.2"),Bs=Oo.extend("--ft-typography-title-text-transform","",Is.textTransform,"inherit"),zs=Oo.extend("--ft-typography-title-dense-font-family","",$s),Fs=Oo.extend("--ft-typography-title-dense-font-size","",Is.fontSize,"14px"),Ps=Oo.extend("--ft-typography-title-dense-font-weight","",Is.fontWeight,"normal"),_s=Oo.extend("--ft-typography-title-dense-letter-spacing","",Is.letterSpacing,"0.105px"),js=Oo.extend("--ft-typography-title-dense-line-height","",Is.lineHeight,"1.7"),Ms=Oo.extend("--ft-typography-title-dense-text-transform","",Is.textTransform,"inherit"),Ds=Oo.extend("--ft-typography-subtitle1-font-family","",Rs),Ks=Oo.extend("--ft-typography-subtitle1-font-size","",Is.fontSize,"16px"),Ts=Oo.extend("--ft-typography-subtitle1-font-weight","",Is.fontWeight,"600"),Zs=Oo.extend("--ft-typography-subtitle1-letter-spacing","",Is.letterSpacing,"0.144px"),Hs=Oo.extend("--ft-typography-subtitle1-line-height","",Is.lineHeight,"1.5"),Gs=Oo.extend("--ft-typography-subtitle1-text-transform","",Is.textTransform,"inherit"),Vs=Oo.extend("--ft-typography-subtitle2-font-family","",Rs),qs=Oo.extend("--ft-typography-subtitle2-font-size","",Is.fontSize,"14px"),Ys=Oo.extend("--ft-typography-subtitle2-font-weight","",Is.fontWeight,"normal"),Js=Oo.extend("--ft-typography-subtitle2-letter-spacing","",Is.letterSpacing,"0.098px"),Xs=Oo.extend("--ft-typography-subtitle2-line-height","",Is.lineHeight,"1.7"),Qs=Oo.extend("--ft-typography-subtitle2-text-transform","",Is.textTransform,"inherit"),tl=Oo.extend("--ft-typography-body1-font-family","",Rs),el=Oo.extend("--ft-typography-body1-font-size","",Is.fontSize,"16px"),ol=Oo.extend("--ft-typography-body1-font-weight","",Is.fontWeight,"normal"),rl=Oo.extend("--ft-typography-body1-letter-spacing","",Is.letterSpacing,"0.496px"),il=Oo.extend("--ft-typography-body1-line-height","",Is.lineHeight,"1.5"),nl=Oo.extend("--ft-typography-body1-text-transform","",Is.textTransform,"inherit"),al={fontFamily:Oo.extend("--ft-typography-body2-font-family","",Rs),fontSize:Oo.extend("--ft-typography-body2-font-size","",Is.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-body2-font-weight","",Is.fontWeight,"normal"),letterSpacing:Oo.extend("--ft-typography-body2-letter-spacing","",Is.letterSpacing,"0.252px"),lineHeight:Oo.extend("--ft-typography-body2-line-height","",Is.lineHeight,"1.4"),textTransform:Oo.extend("--ft-typography-body2-text-transform","",Is.textTransform,"inherit")},sl=Oo.extend("--ft-typography-caption-font-family","",Rs),ll=Oo.extend("--ft-typography-caption-font-size","",Is.fontSize,"12px"),cl=Oo.extend("--ft-typography-caption-font-weight","",Is.fontWeight,"normal"),fl=Oo.extend("--ft-typography-caption-letter-spacing","",Is.letterSpacing,"0.396px"),pl=Oo.extend("--ft-typography-caption-line-height","",Is.lineHeight,"1.33"),hl=Oo.extend("--ft-typography-caption-text-transform","",Is.textTransform,"inherit"),dl=Oo.extend("--ft-typography-breadcrumb-font-family","",Rs),ul=Oo.extend("--ft-typography-breadcrumb-font-size","",Is.fontSize,"10px"),gl=Oo.extend("--ft-typography-breadcrumb-font-weight","",Is.fontWeight,"normal"),yl=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",Is.letterSpacing,"0.33px"),bl=Oo.extend("--ft-typography-breadcrumb-line-height","",Is.lineHeight,"1.6"),ml=Oo.extend("--ft-typography-breadcrumb-text-transform","",Is.textTransform,"inherit"),vl=Oo.extend("--ft-typography-overline-font-family","",Rs),xl=Oo.extend("--ft-typography-overline-font-size","",Is.fontSize,"10px"),Ol=Oo.extend("--ft-typography-overline-font-weight","",Is.fontWeight,"normal"),wl=Oo.extend("--ft-typography-overline-letter-spacing","",Is.letterSpacing,"1.5px"),Sl=Oo.extend("--ft-typography-overline-line-height","",Is.lineHeight,"1.6"),Cl=Oo.extend("--ft-typography-overline-text-transform","",Is.textTransform,"uppercase"),Nl={fontFamily:Oo.extend("--ft-typography-button-font-family","",Rs),fontSize:Oo.extend("--ft-typography-button-font-size","",Is.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",Is.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",Is.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",Is.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",Is.textTransform,"uppercase")},El=ht`
200
+ */const ws=Symbol.for(""),Ss=t=>{if(t?.r===ws)return t?._$litStatic$},Cs=t=>({_$litStatic$:t,r:ws}),Ns=new Map,Es=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let l,c=0,f=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(n=o[c],i=Ss(n));)l+=i+e[++c],f=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Ns.get(t))&&(a.raw=a,Ns.set(t,e=a)),o=s}return t(e,...o)})(D);var $s;!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"}($s||($s={}));const Rs=Oo.extend("--ft-typography-font-family","",Sr.titleFont),Is=Oo.extend("--ft-typography-font-family","",Sr.contentFont),ks={fontFamily:Is,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ls=Oo.extend("--ft-typography-title-font-family","",Rs),Us=Oo.extend("--ft-typography-title-font-size","",ks.fontSize,"20px"),Ws=Oo.extend("--ft-typography-title-font-weight","",ks.fontWeight,"normal"),As=Oo.extend("--ft-typography-title-letter-spacing","",ks.letterSpacing,"0.15px"),Bs=Oo.extend("--ft-typography-title-line-height","",ks.lineHeight,"1.2"),zs=Oo.extend("--ft-typography-title-text-transform","",ks.textTransform,"inherit"),Fs=Oo.extend("--ft-typography-title-dense-font-family","",Rs),Ps=Oo.extend("--ft-typography-title-dense-font-size","",ks.fontSize,"14px"),_s=Oo.extend("--ft-typography-title-dense-font-weight","",ks.fontWeight,"normal"),js=Oo.extend("--ft-typography-title-dense-letter-spacing","",ks.letterSpacing,"0.105px"),Ms=Oo.extend("--ft-typography-title-dense-line-height","",ks.lineHeight,"1.7"),Ds=Oo.extend("--ft-typography-title-dense-text-transform","",ks.textTransform,"inherit"),Ks=Oo.extend("--ft-typography-subtitle1-font-family","",Is),Ts=Oo.extend("--ft-typography-subtitle1-font-size","",ks.fontSize,"16px"),Zs=Oo.extend("--ft-typography-subtitle1-font-weight","",ks.fontWeight,"600"),Hs=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ks.letterSpacing,"0.144px"),Gs=Oo.extend("--ft-typography-subtitle1-line-height","",ks.lineHeight,"1.5"),Vs=Oo.extend("--ft-typography-subtitle1-text-transform","",ks.textTransform,"inherit"),qs=Oo.extend("--ft-typography-subtitle2-font-family","",Is),Ys=Oo.extend("--ft-typography-subtitle2-font-size","",ks.fontSize,"14px"),Js=Oo.extend("--ft-typography-subtitle2-font-weight","",ks.fontWeight,"normal"),Xs=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ks.letterSpacing,"0.098px"),Qs=Oo.extend("--ft-typography-subtitle2-line-height","",ks.lineHeight,"1.7"),tl=Oo.extend("--ft-typography-subtitle2-text-transform","",ks.textTransform,"inherit"),el=Oo.extend("--ft-typography-body1-font-family","",Is),ol=Oo.extend("--ft-typography-body1-font-size","",ks.fontSize,"16px"),rl=Oo.extend("--ft-typography-body1-font-weight","",ks.fontWeight,"normal"),il=Oo.extend("--ft-typography-body1-letter-spacing","",ks.letterSpacing,"0.496px"),nl=Oo.extend("--ft-typography-body1-line-height","",ks.lineHeight,"1.5"),al=Oo.extend("--ft-typography-body1-text-transform","",ks.textTransform,"inherit"),sl={fontFamily:Oo.extend("--ft-typography-body2-font-family","",Is),fontSize:Oo.extend("--ft-typography-body2-font-size","",ks.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-body2-font-weight","",ks.fontWeight,"normal"),letterSpacing:Oo.extend("--ft-typography-body2-letter-spacing","",ks.letterSpacing,"0.252px"),lineHeight:Oo.extend("--ft-typography-body2-line-height","",ks.lineHeight,"1.4"),textTransform:Oo.extend("--ft-typography-body2-text-transform","",ks.textTransform,"inherit")},ll=Oo.extend("--ft-typography-caption-font-family","",Is),cl=Oo.extend("--ft-typography-caption-font-size","",ks.fontSize,"12px"),fl=Oo.extend("--ft-typography-caption-font-weight","",ks.fontWeight,"normal"),pl=Oo.extend("--ft-typography-caption-letter-spacing","",ks.letterSpacing,"0.396px"),hl=Oo.extend("--ft-typography-caption-line-height","",ks.lineHeight,"1.33"),dl=Oo.extend("--ft-typography-caption-text-transform","",ks.textTransform,"inherit"),ul=Oo.extend("--ft-typography-breadcrumb-font-family","",Is),gl=Oo.extend("--ft-typography-breadcrumb-font-size","",ks.fontSize,"10px"),yl=Oo.extend("--ft-typography-breadcrumb-font-weight","",ks.fontWeight,"normal"),bl=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ks.letterSpacing,"0.33px"),ml=Oo.extend("--ft-typography-breadcrumb-line-height","",ks.lineHeight,"1.6"),vl=Oo.extend("--ft-typography-breadcrumb-text-transform","",ks.textTransform,"inherit"),xl=Oo.extend("--ft-typography-overline-font-family","",Is),Ol=Oo.extend("--ft-typography-overline-font-size","",ks.fontSize,"10px"),wl=Oo.extend("--ft-typography-overline-font-weight","",ks.fontWeight,"normal"),Sl=Oo.extend("--ft-typography-overline-letter-spacing","",ks.letterSpacing,"1.5px"),Cl=Oo.extend("--ft-typography-overline-line-height","",ks.lineHeight,"1.6"),Nl=Oo.extend("--ft-typography-overline-text-transform","",ks.textTransform,"uppercase"),El={fontFamily:Oo.extend("--ft-typography-button-font-family","",Is),fontSize:Oo.extend("--ft-typography-button-font-size","",ks.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",ks.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",ks.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",ks.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",ks.textTransform,"uppercase")},$l=ht`
201
201
  .ft-typography--title {
202
- font-family: ${ks};
203
- font-size: ${Ls};
204
- font-weight: ${Us};
205
- letter-spacing: ${Ws};
206
- line-height: ${As};
207
- text-transform: ${Bs};
208
- }
209
- `,$l=ht`
210
- .ft-typography--title-dense {
211
- font-family: ${zs};
212
- font-size: ${Fs};
213
- font-weight: ${Ps};
214
- letter-spacing: ${_s};
215
- line-height: ${js};
216
- text-transform: ${Ms};
202
+ font-family: ${Ls};
203
+ font-size: ${Us};
204
+ font-weight: ${Ws};
205
+ letter-spacing: ${As};
206
+ line-height: ${Bs};
207
+ text-transform: ${zs};
217
208
  }
218
209
  `,Rl=ht`
219
- .ft-typography--subtitle1 {
220
- font-family: ${Ds};
221
- font-size: ${Ks};
222
- font-weight: ${Ts};
223
- letter-spacing: ${Zs};
224
- line-height: ${Hs};
225
- text-transform: ${Gs};
210
+ .ft-typography--title-dense {
211
+ font-family: ${Fs};
212
+ font-size: ${Ps};
213
+ font-weight: ${_s};
214
+ letter-spacing: ${js};
215
+ line-height: ${Ms};
216
+ text-transform: ${Ds};
226
217
  }
227
218
  `,Il=ht`
228
- .ft-typography--subtitle2 {
229
- font-family: ${Vs};
230
- font-size: ${qs};
231
- font-weight: ${Ys};
232
- letter-spacing: ${Js};
233
- line-height: ${Xs};
234
- text-transform: ${Qs};
219
+ .ft-typography--subtitle1 {
220
+ font-family: ${Ks};
221
+ font-size: ${Ts};
222
+ font-weight: ${Zs};
223
+ letter-spacing: ${Hs};
224
+ line-height: ${Gs};
225
+ text-transform: ${Vs};
235
226
  }
236
-
237
227
  `,kl=ht`
238
- .ft-typography--body1 {
239
- font-family: ${tl};
240
- font-size: ${el};
241
- font-weight: ${ol};
242
- letter-spacing: ${rl};
243
- line-height: ${il};
244
- text-transform: ${nl};
228
+ .ft-typography--subtitle2 {
229
+ font-family: ${qs};
230
+ font-size: ${Ys};
231
+ font-weight: ${Js};
232
+ letter-spacing: ${Xs};
233
+ line-height: ${Qs};
234
+ text-transform: ${tl};
245
235
  }
236
+
246
237
  `,Ll=ht`
247
- .ft-typography--body2 {
248
- font-family: ${al.fontFamily};
249
- font-size: ${al.fontSize};
250
- font-weight: ${al.fontWeight};
251
- letter-spacing: ${al.letterSpacing};
252
- line-height: ${al.lineHeight};
253
- text-transform: ${al.textTransform};
238
+ .ft-typography--body1 {
239
+ font-family: ${el};
240
+ font-size: ${ol};
241
+ font-weight: ${rl};
242
+ letter-spacing: ${il};
243
+ line-height: ${nl};
244
+ text-transform: ${al};
254
245
  }
255
246
  `,Ul=ht`
256
- .ft-typography--caption {
257
- font-family: ${sl};
258
- font-size: ${ll};
259
- font-weight: ${cl};
260
- letter-spacing: ${fl};
261
- line-height: ${pl};
262
- text-transform: ${hl};
247
+ .ft-typography--body2 {
248
+ font-family: ${sl.fontFamily};
249
+ font-size: ${sl.fontSize};
250
+ font-weight: ${sl.fontWeight};
251
+ letter-spacing: ${sl.letterSpacing};
252
+ line-height: ${sl.lineHeight};
253
+ text-transform: ${sl.textTransform};
263
254
  }
264
255
  `,Wl=ht`
265
- .ft-typography--breadcrumb {
266
- font-family: ${dl};
267
- font-size: ${ul};
268
- font-weight: ${gl};
269
- letter-spacing: ${yl};
270
- line-height: ${bl};
271
- text-transform: ${ml};
256
+ .ft-typography--caption {
257
+ font-family: ${ll};
258
+ font-size: ${cl};
259
+ font-weight: ${fl};
260
+ letter-spacing: ${pl};
261
+ line-height: ${hl};
262
+ text-transform: ${dl};
272
263
  }
273
264
  `,Al=ht`
274
- .ft-typography--overline {
275
- font-family: ${vl};
276
- font-size: ${xl};
277
- font-weight: ${Ol};
278
- letter-spacing: ${wl};
279
- line-height: ${Sl};
280
- text-transform: ${Cl};
265
+ .ft-typography--breadcrumb {
266
+ font-family: ${ul};
267
+ font-size: ${gl};
268
+ font-weight: ${yl};
269
+ letter-spacing: ${bl};
270
+ line-height: ${ml};
271
+ text-transform: ${vl};
281
272
  }
282
273
  `,Bl=ht`
283
- .ft-typography--button {
284
- font-family: ${Nl.fontFamily};
285
- font-size: ${Nl.fontSize};
286
- font-weight: ${Nl.fontWeight};
287
- letter-spacing: ${Nl.letterSpacing};
288
- line-height: ${Nl.lineHeight};
289
- text-transform: ${Nl.textTransform};
274
+ .ft-typography--overline {
275
+ font-family: ${xl};
276
+ font-size: ${Ol};
277
+ font-weight: ${wl};
278
+ letter-spacing: ${Sl};
279
+ line-height: ${Cl};
280
+ text-transform: ${Nl};
290
281
  }
291
282
  `,zl=ht`
283
+ .ft-typography--button {
284
+ font-family: ${El.fontFamily};
285
+ font-size: ${El.fontSize};
286
+ font-weight: ${El.fontWeight};
287
+ letter-spacing: ${El.letterSpacing};
288
+ line-height: ${El.lineHeight};
289
+ text-transform: ${El.textTransform};
290
+ }
291
+ `,Fl=ht`
292
292
  .ft-typography {
293
293
  vertical-align: inherit;
294
294
  }
295
- `,Fl=[Object.keys(Yo).map((t=>function(t){const e=Yo[t];return ht`
295
+ `,Pl=[Object.keys(Yo).map((t=>function(t){const e=Yo[t];return ht`
296
296
  .ft-typography--${pt(t)} {
297
297
  font-family: ${e.fontFamily};
298
298
  font-size: ${e.fontSize};
@@ -301,14 +301,14 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
301
301
  line-height: ${e.lineHeight};
302
302
  text-transform: ${e.textCase};
303
303
  }
304
- `}(t)))];var Pl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _l extends Mi{constructor(){super(...arguments),this.variant=Es.body1}render(){return this.element?Ns`
305
- <${Ss(this.element)}
304
+ `}(t)))];var _l=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jl extends Mi{constructor(){super(...arguments),this.variant=$s.body1}render(){return this.element?Es`
305
+ <${Cs(this.element)}
306
306
  class="ft-typography ft-typography--${this.variant}">
307
307
  <slot></slot>
308
- </${Ss(this.element)}>
309
- `:Ns`
308
+ </${Cs(this.element)}>
309
+ `:Es`
310
310
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
311
- `}}_l.styles=[El,$l,Rl,Il,kl,Ll,Ul,Wl,Al,Bl,zl,...Fl],Pl([we()],_l.prototype,"element",void 0),Pl([we()],_l.prototype,"variant",void 0),yo("ft-typography")(_l);const jl=Oo.create("--ft-tooltip-distance","","SIZE","4px"),Ml=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Dl=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),Kl=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),Tl=Oo.external(Sr.borderRadiusS,"Design system"),Zl=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),Hl=ht`
311
+ `}}jl.styles=[$l,Rl,Il,kl,Ll,Ul,Wl,Al,Bl,zl,Fl,...Pl],_l([we()],jl.prototype,"element",void 0),_l([we()],jl.prototype,"variant",void 0),yo("ft-typography")(jl);const Ml=Oo.create("--ft-tooltip-distance","","SIZE","4px"),Dl=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Kl=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),Tl=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),Zl=Oo.external(Sr.borderRadiusS,"Design system"),Hl=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),Gl=ht`
312
312
  .ft-tooltip--container {
313
313
  display: block;
314
314
  }
@@ -323,21 +323,21 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
323
323
  box-sizing: border-box;
324
324
  overflow: hidden;
325
325
  width: max-content;
326
- max-width: ${Zl};
326
+ max-width: ${Hl};
327
327
  text-align: center;
328
- padding: ${jl};
329
- z-index: ${Kl};
328
+ padding: ${Ml};
329
+ z-index: ${Tl};
330
330
  }
331
331
 
332
332
  .ft-tooltip--content {
333
333
  padding: 4px 8px;
334
- border-radius: ${Tl};
335
- background-color: ${Dl};
336
- color: ${Ml};
334
+ border-radius: ${Zl};
335
+ background-color: ${Kl};
336
+ color: ${Dl};
337
337
  position: relative;
338
338
  word-break: break-word;
339
339
  }
340
- `;var Gl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vl extends Mi{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 so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
340
+ `;var Vl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ql extends Mi{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 so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
341
341
  <div part="container"
342
342
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
343
343
  @mouseenter=${this.onHover}
@@ -355,7 +355,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
355
355
  </div>
356
356
  </div>
357
357
  </div>
358
- `}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()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ki(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Vl.elementDefinitions={"ft-typography":_l},Vl.styles=Hl,Gl([we()],Vl.prototype,"text",void 0),Gl([we({type:Boolean})],Vl.prototype,"manual",void 0),Gl([we({type:Boolean})],Vl.prototype,"inline",void 0),Gl([we({type:Number})],Vl.prototype,"delay",void 0),Gl([we()],Vl.prototype,"position",void 0),Gl([Ie()],Vl.prototype,"slotNodes",void 0),Gl([Ee(".ft-tooltip--container")],Vl.prototype,"container",void 0),Gl([Ee(".ft-tooltip")],Vl.prototype,"tooltip",void 0),Gl([Ee(".ft-tooltip--content")],Vl.prototype,"tooltipContent",void 0),Gl([Se()],Vl.prototype,"visible",void 0),Gl([Ce({passive:!0})],Vl.prototype,"onTouch",null),Gl([Ce({passive:!0})],Vl.prototype,"onHover",null),Gl([Ce({passive:!0})],Vl.prototype,"onOut",null),Gl([Ce({passive:!0})],Vl.prototype,"onClick",null),yo("ft-tooltip")(Vl);const ql=Oo.extend("--ft-ripple-color","",Sr.colorContent),Yl={color:ql,backgroundColor:Oo.extend("--ft-ripple-background-color","",ql),opacityContentOnSurfacePressed:Oo.external(Sr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external(Sr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external(Sr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external(Sr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Jl=Oo.extend("--ft-ripple-color","",Sr.colorPrimary),Xl=Jl,Ql=Oo.extend("--ft-ripple-background-color","",Jl),tc=Oo.extend("--ft-ripple-color","",Sr.colorSecondary),ec=tc,oc=Oo.extend("--ft-ripple-background-color","",tc),rc=ht`
358
+ `}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()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ki(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ql.elementDefinitions={"ft-typography":jl},ql.styles=Gl,Vl([we()],ql.prototype,"text",void 0),Vl([we({type:Boolean})],ql.prototype,"manual",void 0),Vl([we({type:Boolean})],ql.prototype,"inline",void 0),Vl([we({type:Number})],ql.prototype,"delay",void 0),Vl([we()],ql.prototype,"position",void 0),Vl([Ie()],ql.prototype,"slotNodes",void 0),Vl([Ee(".ft-tooltip--container")],ql.prototype,"container",void 0),Vl([Ee(".ft-tooltip")],ql.prototype,"tooltip",void 0),Vl([Ee(".ft-tooltip--content")],ql.prototype,"tooltipContent",void 0),Vl([Se()],ql.prototype,"visible",void 0),Vl([Ce({passive:!0})],ql.prototype,"onTouch",null),Vl([Ce({passive:!0})],ql.prototype,"onHover",null),Vl([Ce({passive:!0})],ql.prototype,"onOut",null),Vl([Ce({passive:!0})],ql.prototype,"onClick",null),yo("ft-tooltip")(ql);const Yl=Oo.extend("--ft-ripple-color","",Sr.colorContent),Jl={color:Yl,backgroundColor:Oo.extend("--ft-ripple-background-color","",Yl),opacityContentOnSurfacePressed:Oo.external(Sr.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external(Sr.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external(Sr.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external(Sr.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Xl=Oo.extend("--ft-ripple-color","",Sr.colorPrimary),Ql=Xl,tc=Oo.extend("--ft-ripple-background-color","",Xl),ec=Oo.extend("--ft-ripple-color","",Sr.colorSecondary),oc=ec,rc=Oo.extend("--ft-ripple-background-color","",ec),ic=ht`
359
359
  :host {
360
360
  display: contents;
361
361
  }
@@ -368,7 +368,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
368
368
 
369
369
  .ft-ripple:not(.ft-ripple--unbounded) {
370
370
  overflow: hidden;
371
- border-radius: ${Yl.borderRadius};
371
+ border-radius: ${Jl.borderRadius};
372
372
  }
373
373
 
374
374
  .ft-ripple .ft-ripple--background,
@@ -402,27 +402,27 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
402
402
  }
403
403
 
404
404
  .ft-ripple .ft-ripple--background {
405
- background-color: ${Yl.backgroundColor};
405
+ background-color: ${Jl.backgroundColor};
406
406
  }
407
407
 
408
408
  .ft-ripple .ft-ripple--effect {
409
- background-color: ${Yl.color};
409
+ background-color: ${Jl.color};
410
410
  }
411
411
 
412
412
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
413
- background-color: ${oc};
413
+ background-color: ${rc};
414
414
  }
415
415
 
416
416
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
417
- background-color: ${ec};
417
+ background-color: ${oc};
418
418
  }
419
419
 
420
420
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
421
- background-color: ${Ql};
421
+ background-color: ${tc};
422
422
  }
423
423
 
424
424
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
425
- background-color: ${Xl};
425
+ background-color: ${Ql};
426
426
  }
427
427
 
428
428
  .ft-ripple .ft-ripple--background {
@@ -452,22 +452,22 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
452
452
  }
453
453
 
454
454
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
455
- opacity: ${Yl.opacityContentOnSurfaceHover};
455
+ opacity: ${Jl.opacityContentOnSurfaceHover};
456
456
  }
457
457
 
458
458
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
459
- opacity: ${Yl.opacityContentOnSurfaceSelected};
459
+ opacity: ${Jl.opacityContentOnSurfaceSelected};
460
460
  }
461
461
 
462
462
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
463
- opacity: ${Yl.opacityContentOnSurfaceFocused};
463
+ opacity: ${Jl.opacityContentOnSurfaceFocused};
464
464
  }
465
465
 
466
466
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
467
- opacity: ${Yl.opacityContentOnSurfacePressed};
467
+ opacity: ${Jl.opacityContentOnSurfacePressed};
468
468
  transform: translate(-50%, -50%) scale(1);
469
469
  }
470
- `;var ic,nc,ac=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sc extends Mi{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 so(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 so(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=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!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-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 Jt`
470
+ `;var nc,ac,sc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class lc extends Mi{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 so(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 so(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=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!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-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 Jt`
471
471
  <style>
472
472
  .ft-ripple .ft-ripple--effect {
473
473
  left: ${this.originX}px;
@@ -478,7 +478,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
478
478
  <div class="ft-ripple--background"></div>
479
479
  <div class="ft-ripple--effect"></div>
480
480
  </div>
481
- `}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"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}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()}}sc.elementDefinitions={},sc.styles=rc,ac([we({type:Boolean})],sc.prototype,"primary",void 0),ac([we({type:Boolean})],sc.prototype,"secondary",void 0),ac([we({type:Boolean})],sc.prototype,"unbounded",void 0),ac([we({type:Boolean})],sc.prototype,"activated",void 0),ac([we({type:Boolean})],sc.prototype,"selected",void 0),ac([we({type:Boolean})],sc.prototype,"disabled",void 0),ac([Se()],sc.prototype,"hovered",void 0),ac([Se()],sc.prototype,"focused",void 0),ac([Se()],sc.prototype,"pressed",void 0),ac([Se()],sc.prototype,"rippling",void 0),ac([Se()],sc.prototype,"originX",void 0),ac([Se()],sc.prototype,"originY",void 0),ac([Ee(".ft-ripple")],sc.prototype,"ripple",void 0),ac([Ee(".ft-ripple--effect")],sc.prototype,"rippleEffect",void 0),yo("ft-ripple")(sc),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.CHART_BAR_NORMALIZED="&#xe97b;",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="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",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.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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(ic||(ic={})),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;"}(nc||(nc={})),new Map([...["abw"].map((t=>[t,nc.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,nc.AUDIO])),...["avi"].map((t=>[t,nc.AVI])),...["chm","xhs"].map((t=>[t,nc.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,nc.CODE])),...["csv"].map((t=>[t,nc.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,nc.DITA])),...["epub"].map((t=>[t,nc.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,nc.EXCEL])),...["flac"].map((t=>[t,nc.FLAC])),...["gif"].map((t=>[t,nc.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,nc.GZIP])),...["html","htm","xhtml"].map((t=>[t,nc.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,nc.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,nc.JPEG])),...["json"].map((t=>[t,nc.JSON])),...["m4a","m4p"].map((t=>[t,nc.M4A])),...["mov","qt"].map((t=>[t,nc.MOV])),...["mp3"].map((t=>[t,nc.MP3])),...["mp4","m4v"].map((t=>[t,nc.MP4])),...["ogg","oga"].map((t=>[t,nc.OGG])),...["pdf","ps"].map((t=>[t,nc.PDF])),...["png"].map((t=>[t,nc.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,nc.POWERPOINT])),...["rar"].map((t=>[t,nc.RAR])),...["stp"].map((t=>[t,nc.STP])),...["txt","rtf","md","mdown"].map((t=>[t,nc.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,nc.VIDEO])),...["wav"].map((t=>[t,nc.WAV])),...["wma"].map((t=>[t,nc.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,nc.WORD])),...["xml","xsl","rdf"].map((t=>[t,nc.XML])),...["yaml","yml","x-yaml"].map((t=>[t,nc.YAML])),...["zip"].map((t=>[t,nc.ZIP]))]),nc.ABW,nc.AUDIO,nc.AVI,nc.CHM,nc.CODE,nc.CSV,nc.DITA,nc.EPUB,nc.EXCEL,nc.FLAC,nc.GIF,nc.GZIP,nc.HTML,nc.IMAGE,nc.JPEG,nc.JSON,nc.M4A,nc.MOV,nc.MP3,nc.MP4,nc.OGG,nc.PDF,nc.PNG,nc.POWERPOINT,nc.RAR,nc.STP,nc.TEXT,nc.UNKNOWN,nc.VIDEO,nc.WAV,nc.WMA,nc.WORD,nc.XML,nc.YAML,nc.ZIP;const lc={size:Oo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Oo.extend("--ft-icon-fluid-topics-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Oo.extend("--ft-icon-file-format-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Oo.extend("--ft-icon-material-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Oo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},cc=ht`
481
+ `}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"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}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()}}lc.elementDefinitions={},lc.styles=ic,sc([we({type:Boolean})],lc.prototype,"primary",void 0),sc([we({type:Boolean})],lc.prototype,"secondary",void 0),sc([we({type:Boolean})],lc.prototype,"unbounded",void 0),sc([we({type:Boolean})],lc.prototype,"activated",void 0),sc([we({type:Boolean})],lc.prototype,"selected",void 0),sc([we({type:Boolean})],lc.prototype,"disabled",void 0),sc([Se()],lc.prototype,"hovered",void 0),sc([Se()],lc.prototype,"focused",void 0),sc([Se()],lc.prototype,"pressed",void 0),sc([Se()],lc.prototype,"rippling",void 0),sc([Se()],lc.prototype,"originX",void 0),sc([Se()],lc.prototype,"originY",void 0),sc([Ee(".ft-ripple")],lc.prototype,"ripple",void 0),sc([Ee(".ft-ripple--effect")],lc.prototype,"rippleEffect",void 0),yo("ft-ripple")(lc),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.CHART_BAR_NORMALIZED="&#xe97b;",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="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",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.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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(nc||(nc={})),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;"}(ac||(ac={})),new Map([...["abw"].map((t=>[t,ac.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,ac.AUDIO])),...["avi"].map((t=>[t,ac.AVI])),...["chm","xhs"].map((t=>[t,ac.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,ac.CODE])),...["csv"].map((t=>[t,ac.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ac.DITA])),...["epub"].map((t=>[t,ac.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ac.EXCEL])),...["flac"].map((t=>[t,ac.FLAC])),...["gif"].map((t=>[t,ac.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ac.GZIP])),...["html","htm","xhtml"].map((t=>[t,ac.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,ac.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ac.JPEG])),...["json"].map((t=>[t,ac.JSON])),...["m4a","m4p"].map((t=>[t,ac.M4A])),...["mov","qt"].map((t=>[t,ac.MOV])),...["mp3"].map((t=>[t,ac.MP3])),...["mp4","m4v"].map((t=>[t,ac.MP4])),...["ogg","oga"].map((t=>[t,ac.OGG])),...["pdf","ps"].map((t=>[t,ac.PDF])),...["png"].map((t=>[t,ac.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ac.POWERPOINT])),...["rar"].map((t=>[t,ac.RAR])),...["stp"].map((t=>[t,ac.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ac.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,ac.VIDEO])),...["wav"].map((t=>[t,ac.WAV])),...["wma"].map((t=>[t,ac.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ac.WORD])),...["xml","xsl","rdf"].map((t=>[t,ac.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ac.YAML])),...["zip"].map((t=>[t,ac.ZIP]))]),ac.ABW,ac.AUDIO,ac.AVI,ac.CHM,ac.CODE,ac.CSV,ac.DITA,ac.EPUB,ac.EXCEL,ac.FLAC,ac.GIF,ac.GZIP,ac.HTML,ac.IMAGE,ac.JPEG,ac.JSON,ac.M4A,ac.MOV,ac.MP3,ac.MP4,ac.OGG,ac.PDF,ac.PNG,ac.POWERPOINT,ac.RAR,ac.STP,ac.TEXT,ac.UNKNOWN,ac.VIDEO,ac.WAV,ac.WMA,ac.WORD,ac.XML,ac.YAML,ac.ZIP;const cc={size:Oo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Oo.extend("--ft-icon-fluid-topics-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Oo.extend("--ft-icon-file-format-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Oo.extend("--ft-icon-material-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Oo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},fc=ht`
482
482
  :host, i.ft-icon {
483
483
  display: inline-flex;
484
484
  align-items: center;
@@ -487,14 +487,14 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
487
487
  }
488
488
 
489
489
  :host {
490
- width: ${lc.size};
491
- height: ${lc.size};
490
+ width: ${cc.size};
491
+ height: ${cc.size};
492
492
  }
493
493
 
494
494
  i.ft-icon {
495
495
  width: 100%;
496
496
  height: 100%;
497
- font-size: ${lc.size};
497
+ font-size: ${cc.size};
498
498
  line-height: 1;
499
499
  font-weight: normal;
500
500
  text-transform: none;
@@ -505,33 +505,33 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
505
505
  text-rendering: auto;
506
506
  -webkit-font-smoothing: antialiased;
507
507
  -moz-osx-font-smoothing: grayscale;
508
- vertical-align: ${lc.verticalAlign};
508
+ vertical-align: ${cc.verticalAlign};
509
509
  }
510
510
 
511
511
  i.ft-icon.ft-icon--fluid-topics {
512
- font-family: ${lc.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
512
+ font-family: ${cc.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
513
513
 
514
514
  /* Ugly fix because font is broken */
515
- font-size: calc(0.75 * ${lc.size});
516
- line-height: ${lc.size};
515
+ font-size: calc(0.75 * ${cc.size});
516
+ line-height: ${cc.size};
517
517
  position: relative;
518
518
  top: -4%;
519
519
  justify-content: center;
520
520
  }
521
521
 
522
522
  .ft-icon--file-format {
523
- font-family: ${lc.fileFormatFontFamily}, ft-mime, sans-serif;
523
+ font-family: ${cc.fileFormatFontFamily}, ft-mime, sans-serif;
524
524
  }
525
525
 
526
526
  .ft-icon--material {
527
- font-family: ${lc.materialFontFamily}, "Material Icons", sans-serif;
527
+ font-family: ${cc.materialFontFamily}, "Material Icons", sans-serif;
528
528
  }
529
- `;var fc;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fc||(fc={}));var pc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hc extends Mi{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(fc).includes(this.variant)?this.variant:fc.fluid_topics,e=t!==fc.material||!!this.value;return Jt`
529
+ `;var pc;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(pc||(pc={}));var hc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dc extends Mi{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(pc).includes(this.variant)?this.variant:pc.fluid_topics,e=t!==pc.material||!!this.value;return Jt`
530
530
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
531
531
  ${Je(this.resolvedIcon)}
532
532
  <slot ?hidden=${e}></slot>
533
533
  </i>
534
- `}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 fc.file_format:this.resolvedIcon=null!==(t=nc[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case fc.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=ic[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}hc.elementDefinitions={},hc.styles=cc,pc([we()],hc.prototype,"variant",void 0),pc([we()],hc.prototype,"value",void 0),pc([Se()],hc.prototype,"resolvedIcon",void 0),pc([Ee("slot")],hc.prototype,"slottedContent",void 0),yo("ft-icon")(hc);const dc={color:Oo.extend("--ft-loader-color","",Sr.colorPrimary),size:Oo.create("--ft-loader-size","","SIZE","80px")},uc=ht`
534
+ `}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 pc.file_format:this.resolvedIcon=null!==(t=ac[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case pc.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=nc[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}dc.elementDefinitions={},dc.styles=fc,hc([we()],dc.prototype,"variant",void 0),hc([we()],dc.prototype,"value",void 0),hc([Se()],dc.prototype,"resolvedIcon",void 0),hc([Ee("slot")],dc.prototype,"slottedContent",void 0),yo("ft-icon")(dc);const uc={color:Oo.extend("--ft-loader-color","",Sr.colorPrimary),size:Oo.create("--ft-loader-size","","SIZE","80px")},gc=ht`
535
535
  :host {
536
536
  line-height: 0;
537
537
  }
@@ -540,8 +540,8 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
540
540
  display: inline-block;
541
541
  position: relative;
542
542
 
543
- width: ${dc.size};
544
- height: ${dc.size};
543
+ width: ${uc.size};
544
+ height: ${uc.size};
545
545
  }
546
546
 
547
547
  .ft-loader div {
@@ -550,7 +550,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
550
550
  width: 25%;
551
551
  height: 25%;
552
552
  border-radius: 50%;
553
- background: ${dc.color};
553
+ background: ${uc.color};
554
554
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
555
555
  }
556
556
 
@@ -597,10 +597,10 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
597
597
  transform: translate(0, 0);
598
598
  }
599
599
  100% {
600
- transform: translate(calc(0.35 * ${dc.size}), 0);
600
+ transform: translate(calc(0.35 * ${uc.size}), 0);
601
601
  }
602
602
  }
603
- `,gc=Oo.extend("--ft-button-color","",Sr.colorPrimary),yc={backgroundColor:Oo.extend("--ft-button-background-color","",Sr.colorSurface),borderRadius:Oo.extend("--ft-button-border-radius","",Sr.borderRadiusL),color:gc,fontSize:Oo.extend("--ft-button-font-size","",Nl.fontSize),iconSize:Oo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Oo.extend("--ft-button-ripple-color","",gc),verticalPadding:Oo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Oo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Oo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Oo.external(Sr.colorOpacityDisabled,"Design system")},bc=Oo.extend("--ft-button-primary-color","",Oo.extend("--ft-button-color","",Sr.colorOnPrimary)),mc={backgroundColor:Oo.extend("--ft-button-primary-background-color","",Oo.extend("--ft-button-background-color","",Sr.colorPrimary)),color:bc,rippleColor:Oo.extend("--ft-button-primary-ripple-color","",bc)},vc=Oo.extend("--ft-button-dense-border-radius","",Oo.extend("--ft-button-border-radius","",Sr.borderRadiusM)),xc=Oo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Oc=Oo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),wc=Oo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Sc=[ht`
603
+ `,yc=Oo.extend("--ft-button-color","",Sr.colorPrimary),bc={backgroundColor:Oo.extend("--ft-button-background-color","",Sr.colorSurface),borderRadius:Oo.extend("--ft-button-border-radius","",Sr.borderRadiusL),color:yc,fontSize:Oo.extend("--ft-button-font-size","",El.fontSize),iconSize:Oo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Oo.extend("--ft-button-ripple-color","",yc),verticalPadding:Oo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Oo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Oo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Oo.external(Sr.colorOpacityDisabled,"Design system")},mc=Oo.extend("--ft-button-primary-color","",Oo.extend("--ft-button-color","",Sr.colorOnPrimary)),vc={backgroundColor:Oo.extend("--ft-button-primary-background-color","",Oo.extend("--ft-button-background-color","",Sr.colorPrimary)),color:mc,rippleColor:Oo.extend("--ft-button-primary-ripple-color","",mc)},xc=Oo.extend("--ft-button-dense-border-radius","",Oo.extend("--ft-button-border-radius","",Sr.borderRadiusM)),Oc=Oo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),wc=Oo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Sc=Oo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Cc=[ht`
604
604
  :host {
605
605
  display: inline-block;
606
606
  max-width: 100%;
@@ -611,7 +611,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
611
611
  box-shadow: 0px 0px 0px transparent;
612
612
  border: 0px solid transparent;
613
613
  text-shadow: 0px 0px 0px transparent;
614
- font-size: ${yc.fontSize};
614
+ font-size: ${bc.fontSize};
615
615
  }
616
616
 
617
617
  button:hover {
@@ -640,31 +640,31 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
640
640
  border: none;
641
641
  pointer-events: auto;
642
642
 
643
- --ft-button-internal-line-height: max(calc(${yc.fontSize} + 2px), ${yc.iconSize});
644
- --ft-button-internal-color: ${yc.color};
645
- ${wo(lc.size,yc.iconSize)};
646
- ${wo(Yl.color,yc.rippleColor)};
643
+ --ft-button-internal-line-height: max(calc(${bc.fontSize} + 2px), ${bc.iconSize});
644
+ --ft-button-internal-color: ${bc.color};
645
+ ${wo(cc.size,bc.iconSize)};
646
+ ${wo(Jl.color,bc.rippleColor)};
647
647
 
648
- border-radius: ${yc.borderRadius};
649
- padding: ${yc.verticalPadding} ${yc.horizontalPadding};
650
- background-color: ${yc.backgroundColor};
648
+ border-radius: ${bc.borderRadius};
649
+ padding: ${bc.verticalPadding} ${bc.horizontalPadding};
650
+ background-color: ${bc.backgroundColor};
651
651
  color: var(--ft-button-internal-color);
652
652
  -webkit-mask-image: radial-gradient(white, black);
653
653
  }
654
654
 
655
655
  .ft-button.ft-button--outlined {
656
656
  border: 1px solid var(--ft-button-internal-color);
657
- padding: calc(${yc.verticalPadding} - 1px) calc(${yc.horizontalPadding} - 1px);
657
+ padding: calc(${bc.verticalPadding} - 1px) calc(${bc.horizontalPadding} - 1px);
658
658
  }
659
659
 
660
660
  .ft-button.ft-button--dense {
661
- padding: ${xc} ${Oc};
662
- border-radius: ${vc};
663
- gap: ${wc};
661
+ padding: ${Oc} ${wc};
662
+ border-radius: ${xc};
663
+ gap: ${Sc};
664
664
  }
665
665
 
666
666
  .ft-button.ft-button--dense.ft-button--outlined {
667
- padding: calc(${xc} - 1px) calc(${Oc} - 1px);
667
+ padding: calc(${Oc} - 1px) calc(${wc} - 1px);
668
668
  }
669
669
 
670
670
  .ft-button:not([disabled]):hover {
@@ -672,22 +672,22 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
672
672
  }
673
673
 
674
674
  .ft-button--round {
675
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${yc.verticalPadding});
675
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bc.verticalPadding});
676
676
  }
677
677
 
678
678
  .ft-button--round.ft-button--dense {
679
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xc});
679
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Oc});
680
680
  }
681
681
 
682
682
  .ft-button[disabled] {
683
683
  filter: grayscale(1);
684
- opacity: ${yc.opacityDisabled};
684
+ opacity: ${bc.opacityDisabled};
685
685
  }
686
686
 
687
687
  .ft-button.ft-button--primary {
688
- background-color: ${mc.backgroundColor};
689
- --ft-button-internal-color: ${mc.color};
690
- ${wo(Yl.color,mc.rippleColor)};
688
+ background-color: ${vc.backgroundColor};
689
+ --ft-button-internal-color: ${vc.color};
690
+ ${wo(Jl.color,vc.rippleColor)};
691
691
  }
692
692
 
693
693
  .ft-button:focus {
@@ -700,13 +700,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
700
700
  white-space: nowrap;
701
701
  text-overflow: ellipsis;
702
702
  display: block;
703
- margin: 0 ${yc.iconPadding};
704
- ${wo(Nl.fontSize,"1em")};
705
- ${wo(Nl.lineHeight,"var(--ft-button-internal-line-height)")};
703
+ margin: 0 ${bc.iconPadding};
704
+ ${wo(El.fontSize,"1em")};
705
+ ${wo(El.lineHeight,"var(--ft-button-internal-line-height)")};
706
706
  }
707
707
 
708
708
  .ft-button--dense .ft-button--label {
709
- margin: 0 ${wc};
709
+ margin: 0 ${Sc};
710
710
  }
711
711
 
712
712
  .ft-button--label[hidden] {
@@ -719,13 +719,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
719
719
  }
720
720
 
721
721
  .ft-button--label[hidden] + ft-icon {
722
- margin: 0 calc(${yc.horizontalPadding} * -1);
723
- padding: 0 ${yc.verticalPadding};
722
+ margin: 0 calc(${bc.horizontalPadding} * -1);
723
+ padding: 0 ${bc.verticalPadding};
724
724
  }
725
725
 
726
726
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
727
- margin: 0 calc(${Oc} * -1);
728
- padding: 0 ${xc};
727
+ margin: 0 calc(${wc} * -1);
728
+ padding: 0 ${Oc};
729
729
  }
730
730
 
731
731
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -734,17 +734,17 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
734
734
  }
735
735
 
736
736
  ft-loader {
737
- ${wo(dc.size,yc.iconSize)};
738
- ${wo(dc.color,"var(--ft-button-internal-color)")};
737
+ ${wo(uc.size,bc.iconSize)};
738
+ ${wo(uc.color,"var(--ft-button-internal-color)")};
739
739
  }
740
- `,Yi];class Cc extends Mi{render(){return Jt`
740
+ `,Ji];class Nc extends Mi{render(){return Jt`
741
741
  <div class="ft-loader">
742
742
  <div></div>
743
743
  <div></div>
744
744
  <div></div>
745
745
  <div></div>
746
746
  </div>
747
- `}}Cc.styles=uc,yo("ft-loader")(Cc);var Nc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ec extends(ss(Mi,"button")){constructor(){super(),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.addEventListener("click",(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(Jt`
747
+ `}}Nc.styles=gc,yo("ft-loader")(Nc);var Ec=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $c extends(ls(Mi,"button")){constructor(){super(),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.addEventListener("click",(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(Jt`
748
748
  <button part="button"
749
749
  class="${Te(this.buttonClasses)}"
750
750
  aria-label="${this.getLabel()}"
@@ -753,7 +753,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
753
753
  <ft-typography part="label"
754
754
  variant=${this.typographyVariant}
755
755
  element="span"
756
- class="ft-button--label ${ds?"ft-safari-ellipsis-fix":""}"
756
+ class="ft-button--label ${us?"ft-safari-ellipsis-fix":""}"
757
757
  ?hidden=${!this.hasTextContent()}>
758
758
  <slot @slotchange=${this.onSlotchange}></slot>
759
759
  </ft-typography>
@@ -767,7 +767,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
767
767
  </ft-tooltip>
768
768
  `:t}resolveIcon(){return this.loading?Jt`
769
769
  <ft-loader part="loader icon"></ft-loader> `:this.icon?Jt`
770
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}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}}Ec.elementDefinitions={"ft-ripple":sc,"ft-tooltip":Vl,"ft-typography":_l,"ft-icon":hc,"ft-loader":Cc},Nc([we({type:String,reflect:!0})],Ec.prototype,"role",void 0),Nc([we()],Ec.prototype,"type",void 0),Nc([we({type:Boolean})],Ec.prototype,"disabled",void 0),Nc([we()],Ec.prototype,"label",void 0),Nc([we()],Ec.prototype,"icon",void 0),Nc([we()],Ec.prototype,"iconVariant",void 0),Nc([we({type:Boolean})],Ec.prototype,"trailingIcon",void 0),Nc([we({type:Boolean})],Ec.prototype,"loading",void 0),Nc([we()],Ec.prototype,"tooltipPosition",void 0),Nc([we({type:Boolean})],Ec.prototype,"hideTooltip",void 0),Nc([we({type:Boolean})],Ec.prototype,"forceTooltip",void 0),Nc([Ee(".ft-button")],Ec.prototype,"button",void 0),Nc([Ee(".ft-button--label slot")],Ec.prototype,"slottedContent",void 0);var $c=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rc extends Ec{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"}}Rc.styles=[Xi,Sc],$c([we({type:Boolean})],Rc.prototype,"primary",void 0),$c([we({type:Boolean})],Rc.prototype,"outlined",void 0),$c([we({type:Boolean})],Rc.prototype,"dense",void 0),$c([we({type:Boolean})],Rc.prototype,"round",void 0);const Ic=[ht`
770
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}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}}$c.elementDefinitions={"ft-ripple":lc,"ft-tooltip":ql,"ft-typography":jl,"ft-icon":dc,"ft-loader":Nc},Ec([we({type:String,reflect:!0})],$c.prototype,"role",void 0),Ec([we()],$c.prototype,"type",void 0),Ec([we({type:Boolean})],$c.prototype,"disabled",void 0),Ec([we()],$c.prototype,"label",void 0),Ec([we()],$c.prototype,"icon",void 0),Ec([we()],$c.prototype,"iconVariant",void 0),Ec([we({type:Boolean})],$c.prototype,"trailingIcon",void 0),Ec([we({type:Boolean})],$c.prototype,"loading",void 0),Ec([we()],$c.prototype,"tooltipPosition",void 0),Ec([we({type:Boolean})],$c.prototype,"hideTooltip",void 0),Ec([we({type:Boolean})],$c.prototype,"forceTooltip",void 0),Ec([Ee(".ft-button")],$c.prototype,"button",void 0),Ec([Ee(".ft-button--label slot")],$c.prototype,"slottedContent",void 0);var Rc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ic extends $c{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"}}Ic.styles=[Qi,Cc],Rc([we({type:Boolean})],Ic.prototype,"primary",void 0),Rc([we({type:Boolean})],Ic.prototype,"outlined",void 0),Rc([we({type:Boolean})],Ic.prototype,"dense",void 0),Rc([we({type:Boolean})],Ic.prototype,"round",void 0);const kc=[ht`
771
771
  :host {
772
772
  display: inline-block;
773
773
  max-width: 100%;
@@ -846,13 +846,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
846
846
  /** Primary styles **/
847
847
 
848
848
  .ft-button--primary {
849
- ${wo(dc.color,Xo.primaryIconColor)};
849
+ ${wo(uc.color,Xo.primaryIconColor)};
850
850
 
851
- ${wo(Yl.color,Xo.primaryStateLayerColor)};
852
- ${wo(Yl.opacityContentOnSurfaceHover,Xo.primaryHoverStateLayerOpacity)};
853
- ${wo(Yl.opacityContentOnSurfaceFocused,Xo.primaryFocusStateLayerOpacity)};
854
- ${wo(Yl.opacityContentOnSurfaceSelected,Xo.primaryActiveStateLayerOpacity)};
855
- ${wo(Yl.opacityContentOnSurfacePressed,Xo.primaryActiveStateLayerOpacity)};
851
+ ${wo(Jl.color,Xo.primaryStateLayerColor)};
852
+ ${wo(Jl.opacityContentOnSurfaceHover,Xo.primaryHoverStateLayerOpacity)};
853
+ ${wo(Jl.opacityContentOnSurfaceFocused,Xo.primaryFocusStateLayerOpacity)};
854
+ ${wo(Jl.opacityContentOnSurfaceSelected,Xo.primaryActiveStateLayerOpacity)};
855
+ ${wo(Jl.opacityContentOnSurfacePressed,Xo.primaryActiveStateLayerOpacity)};
856
856
 
857
857
  background-color: ${Xo.primaryBackgroundColor};
858
858
  color: ${Xo.primaryColor};
@@ -870,13 +870,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
870
870
  /** Secondary styles **/
871
871
 
872
872
  .ft-button--secondary {
873
- ${wo(dc.color,Xo.secondaryIconColor)};
873
+ ${wo(uc.color,Xo.secondaryIconColor)};
874
874
 
875
- ${wo(Yl.color,Xo.secondaryStateLayerColor)};
876
- ${wo(Yl.opacityContentOnSurfaceHover,Xo.secondaryHoverStateLayerOpacity)};
877
- ${wo(Yl.opacityContentOnSurfaceFocused,Xo.secondaryFocusStateLayerOpacity)};
878
- ${wo(Yl.opacityContentOnSurfaceSelected,Xo.secondaryActiveStateLayerOpacity)};
879
- ${wo(Yl.opacityContentOnSurfacePressed,Xo.secondaryActiveStateLayerOpacity)};
875
+ ${wo(Jl.color,Xo.secondaryStateLayerColor)};
876
+ ${wo(Jl.opacityContentOnSurfaceHover,Xo.secondaryHoverStateLayerOpacity)};
877
+ ${wo(Jl.opacityContentOnSurfaceFocused,Xo.secondaryFocusStateLayerOpacity)};
878
+ ${wo(Jl.opacityContentOnSurfaceSelected,Xo.secondaryActiveStateLayerOpacity)};
879
+ ${wo(Jl.opacityContentOnSurfacePressed,Xo.secondaryActiveStateLayerOpacity)};
880
880
 
881
881
  background-color: ${Xo.secondaryBackgroundColor};
882
882
  color: ${Xo.secondaryColor};
@@ -895,13 +895,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
895
895
  /** Tertiary styles **/
896
896
 
897
897
  .ft-button--tertiary {
898
- ${wo(dc.color,Xo.tertiaryIconColor)};
898
+ ${wo(uc.color,Xo.tertiaryIconColor)};
899
899
 
900
- ${wo(Yl.color,Xo.tertiaryStateLayerColor)};
901
- ${wo(Yl.opacityContentOnSurfaceHover,Xo.tertiaryHoverStateLayerOpacity)};
902
- ${wo(Yl.opacityContentOnSurfaceFocused,Xo.tertiaryFocusStateLayerOpacity)};
903
- ${wo(Yl.opacityContentOnSurfaceSelected,Xo.tertiaryActiveStateLayerOpacity)};
904
- ${wo(Yl.opacityContentOnSurfacePressed,Xo.tertiaryActiveStateLayerOpacity)};
900
+ ${wo(Jl.color,Xo.tertiaryStateLayerColor)};
901
+ ${wo(Jl.opacityContentOnSurfaceHover,Xo.tertiaryHoverStateLayerOpacity)};
902
+ ${wo(Jl.opacityContentOnSurfaceFocused,Xo.tertiaryFocusStateLayerOpacity)};
903
+ ${wo(Jl.opacityContentOnSurfaceSelected,Xo.tertiaryActiveStateLayerOpacity)};
904
+ ${wo(Jl.opacityContentOnSurfacePressed,Xo.tertiaryActiveStateLayerOpacity)};
905
905
 
906
906
  background-color: ${Xo.tertiaryBackgroundColor};
907
907
  color: ${Xo.tertiaryColor};
@@ -919,13 +919,13 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
919
919
  /** Neutral styles **/
920
920
 
921
921
  .ft-button--neutral {
922
- ${wo(dc.color,Xo.neutralIconColor)};
922
+ ${wo(uc.color,Xo.neutralIconColor)};
923
923
 
924
- ${wo(Yl.backgroundColor,Xo.neutralStateLayerColor)};
925
- ${wo(Yl.opacityContentOnSurfaceHover,Xo.neutralHoverStateLayerOpacity)};
926
- ${wo(Yl.opacityContentOnSurfaceFocused,Xo.neutralFocusStateLayerOpacity)};
927
- ${wo(Yl.opacityContentOnSurfaceSelected,Xo.neutralActiveStateLayerOpacity)};
928
- ${wo(Yl.opacityContentOnSurfacePressed,Xo.neutralActiveStateLayerOpacity)};
924
+ ${wo(Jl.backgroundColor,Xo.neutralStateLayerColor)};
925
+ ${wo(Jl.opacityContentOnSurfaceHover,Xo.neutralHoverStateLayerOpacity)};
926
+ ${wo(Jl.opacityContentOnSurfaceFocused,Xo.neutralFocusStateLayerOpacity)};
927
+ ${wo(Jl.opacityContentOnSurfaceSelected,Xo.neutralActiveStateLayerOpacity)};
928
+ ${wo(Jl.opacityContentOnSurfacePressed,Xo.neutralActiveStateLayerOpacity)};
929
929
 
930
930
  background-color: ${Xo.neutralBackgroundColor};
931
931
  color: ${Xo.neutralColor};
@@ -943,8 +943,8 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
943
943
  /** Large styles **/
944
944
 
945
945
  .ft-button--large {
946
- ${wo(lc.size,Xo.largeIconSize)};
947
- ${wo(dc.size,Xo.largeIconSize)};
946
+ ${wo(cc.size,Xo.largeIconSize)};
947
+ ${wo(uc.size,Xo.largeIconSize)};
948
948
 
949
949
  height: ${Xo.largeHeight};
950
950
  padding: 0 ${Xo.largeHorizontalPadding};
@@ -966,8 +966,8 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
966
966
  /** Small styles **/
967
967
 
968
968
  .ft-button--small {
969
- ${wo(lc.size,Xo.smallIconSize)};
970
- ${wo(dc.size,Xo.smallIconSize)};
969
+ ${wo(cc.size,Xo.smallIconSize)};
970
+ ${wo(uc.size,Xo.smallIconSize)};
971
971
 
972
972
  height: ${Xo.smallHeight};
973
973
  padding: 0 ${Xo.smallHorizontalPadding};
@@ -985,7 +985,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
985
985
  width: ${Xo.smallIconOnlyWidth};
986
986
  padding: unset;
987
987
  }
988
- `,Yi];var kc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Lc extends Ec{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?Es.caption1medium:Es.body2medium}}Lc.styles=[Xi,Ic],kc([we({type:Boolean})],Lc.prototype,"primary",void 0),kc([we({type:Boolean})],Lc.prototype,"secondary",void 0),kc([we({type:Boolean})],Lc.prototype,"tertiary",void 0),kc([we({type:Boolean})],Lc.prototype,"neutral",void 0),kc([we({type:Boolean})],Lc.prototype,"small",void 0),yo("ft-button")(Rc),yo("ftds-button")(Lc);const Uc=Oo.extend("--ft-chip-color","",Sr.colorOnSurface),Wc={backgroundColor:Oo.extend("--ft-chip-background-color","",Sr.colorSurface),color:Uc,fontSize:Oo.extend("--ft-chip-font-size","",al.fontSize),iconSize:Oo.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:Oo.create("--ft-chip-border-radius","","SIZE",""),rippleColor:Oo.extend("--ft-chip-ripple-color","",Uc),horizontalPadding:Oo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Oo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Oo.external(Sr.colorOutline,"Design system"),opacityDisabled:Oo.external(Sr.colorOpacityDisabled,"Design system")},Ac=Oo.extend("--ft-chip-highlighted-color","",Oo.extend("--ft-chip-color","",Sr.colorOnPrimary)),Bc={backgroundColor:Oo.extend("--ft-chip-highlighted-background-color","",Oo.extend("--ft-chip-background-color","",Sr.colorPrimary)),color:Ac,rippleColor:Oo.extend("--ft-chip-highlighted-ripple-color","",Ac)},zc=Oo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Fc=Oo.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),Pc=[Yi,ht`
988
+ `,Ji];var Lc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Uc extends $c{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?$s.caption1medium:$s.body2medium}}Uc.styles=[Qi,kc],Lc([we({type:Boolean})],Uc.prototype,"primary",void 0),Lc([we({type:Boolean})],Uc.prototype,"secondary",void 0),Lc([we({type:Boolean})],Uc.prototype,"tertiary",void 0),Lc([we({type:Boolean})],Uc.prototype,"neutral",void 0),Lc([we({type:Boolean})],Uc.prototype,"small",void 0),yo("ft-button")(Ic),yo("ftds-button")(Uc);const Wc=Oo.extend("--ft-chip-color","",Sr.colorOnSurface),Ac={backgroundColor:Oo.extend("--ft-chip-background-color","",Sr.colorSurface),color:Wc,fontSize:Oo.extend("--ft-chip-font-size","",sl.fontSize),iconSize:Oo.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:Oo.create("--ft-chip-border-radius","","SIZE",""),rippleColor:Oo.extend("--ft-chip-ripple-color","",Wc),horizontalPadding:Oo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Oo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Oo.external(Sr.colorOutline,"Design system"),opacityDisabled:Oo.external(Sr.colorOpacityDisabled,"Design system")},Bc=Oo.extend("--ft-chip-highlighted-color","",Oo.extend("--ft-chip-color","",Sr.colorOnPrimary)),zc={backgroundColor:Oo.extend("--ft-chip-highlighted-background-color","",Oo.extend("--ft-chip-background-color","",Sr.colorPrimary)),color:Bc,rippleColor:Oo.extend("--ft-chip-highlighted-ripple-color","",Bc)},Fc=Oo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Pc=Oo.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),_c=[Ji,ht`
989
989
  :host {
990
990
  display: inline-block;
991
991
  max-width: 100%;
@@ -1001,20 +1001,20 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1001
1001
  box-sizing: border-box;
1002
1002
  pointer-events: auto;
1003
1003
 
1004
- --ft-chip-internal-font-size: ${Wc.fontSize};
1004
+ --ft-chip-internal-font-size: ${Ac.fontSize};
1005
1005
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1006
- ${wo(lc.size,Wc.iconSize)};
1007
- --ft-chip-internal-vertical-padding: ${Wc.verticalPadding};
1008
- --ft-chip-internal-horizontal-padding: ${Wc.horizontalPadding};
1006
+ ${wo(cc.size,Ac.iconSize)};
1007
+ --ft-chip-internal-vertical-padding: ${Ac.verticalPadding};
1008
+ --ft-chip-internal-horizontal-padding: ${Ac.horizontalPadding};
1009
1009
  --ft-chip-internal-icon-padding: 3px;
1010
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Wc.iconSize});
1010
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ac.iconSize});
1011
1011
 
1012
- border: 1px solid ${Wc.colorOutline};
1013
- color: ${Wc.color};
1014
- ${wo(Yl.color,Wc.rippleColor)};
1015
- border-radius: var(${pt(Wc.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
1012
+ border: 1px solid ${Ac.colorOutline};
1013
+ color: ${Ac.color};
1014
+ ${wo(Jl.color,Ac.rippleColor)};
1015
+ border-radius: var(${pt(Ac.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
1016
1016
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1017
- background-color: ${Wc.backgroundColor};
1017
+ background-color: ${Ac.backgroundColor};
1018
1018
  line-height: var(--ft-chip-internal-content-height);
1019
1019
  }
1020
1020
 
@@ -1024,8 +1024,8 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1024
1024
 
1025
1025
  .ft-chip--dense {
1026
1026
  --ft-chip-internal-icon-padding: 3px;
1027
- --ft-chip-internal-vertical-padding: ${Fc};
1028
- --ft-chip-internal-horizontal-padding: ${zc};
1027
+ --ft-chip-internal-vertical-padding: ${Pc};
1028
+ --ft-chip-internal-horizontal-padding: ${Fc};
1029
1029
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1030
1030
  }
1031
1031
 
@@ -1037,15 +1037,15 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1037
1037
  cursor: default;
1038
1038
  pointer-events: none;
1039
1039
  filter: grayscale(1);
1040
- opacity: ${Wc.opacityDisabled};
1040
+ opacity: ${Ac.opacityDisabled};
1041
1041
  }
1042
1042
 
1043
1043
  .ft-chip--highlighted {
1044
1044
  border: none;
1045
1045
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1046
- background-color: ${Bc.backgroundColor};
1047
- ${wo(Yl.color,Bc.rippleColor)};
1048
- color: ${Bc.color};
1046
+ background-color: ${zc.backgroundColor};
1047
+ ${wo(Jl.color,zc.rippleColor)};
1048
+ color: ${zc.color};
1049
1049
  }
1050
1050
 
1051
1051
  .ft-chip--clickable {
@@ -1075,9 +1075,9 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1075
1075
  }
1076
1076
 
1077
1077
  .ft-chip--icon-button {
1078
- ${wo(yc.iconSize,Wc.iconSize)};
1079
- ${wo(yc.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1080
- ${wo(yc.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1078
+ ${wo(bc.iconSize,Ac.iconSize)};
1079
+ ${wo(bc.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1080
+ ${wo(bc.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1081
1081
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1082
1082
  }
1083
1083
 
@@ -1085,8 +1085,8 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1085
1085
  vertical-align: bottom;
1086
1086
  display: block;
1087
1087
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1088
- ${wo(al.fontSize,"var(--ft-chip-internal-font-size)")};
1089
- ${wo(al.lineHeight,"var(--ft-chip-internal-content-height)")};
1088
+ ${wo(sl.fontSize,"var(--ft-chip-internal-font-size)")};
1089
+ ${wo(sl.lineHeight,"var(--ft-chip-internal-content-height)")};
1090
1090
  }
1091
1091
 
1092
1092
  .ft-chip--safari-fix .ft-chip--label {
@@ -1122,7 +1122,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1122
1122
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1123
1123
  order: -1;
1124
1124
  }
1125
- `];var _c=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jc extends CustomEvent{constructor(){super("icon-click")}}class Mc extends Mi{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":ds};return Jt`
1125
+ `];var jc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mc extends CustomEvent{constructor(){super("icon-click")}}class Dc extends Mi{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":us};return Jt`
1126
1126
  <div class="${Te(t)}"
1127
1127
  aria-label="${this.getLabel()}"
1128
1128
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1147,9 +1147,9 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1147
1147
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1148
1148
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
1149
1149
  </div>
1150
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new jc))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new jc))}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)}}Mc.elementDefinitions={"ft-ripple":sc,"ft-typography":_l,"ft-icon":hc,"ft-button":Rc},Mc.styles=Pc,_c([we({type:Boolean})],Mc.prototype,"highlighted",void 0),_c([we({type:Boolean})],Mc.prototype,"removable",void 0),_c([we({type:Boolean})],Mc.prototype,"disabled",void 0),_c([we({type:Boolean})],Mc.prototype,"clickable",void 0),_c([we({type:Boolean})],Mc.prototype,"iconClickable",void 0),_c([we({type:Boolean})],Mc.prototype,"dense",void 0),_c([we({type:Boolean})],Mc.prototype,"multiLine",void 0),_c([we()],Mc.prototype,"label",void 0),_c([we()],Mc.prototype,"iconLabel",void 0),_c([we()],Mc.prototype,"icon",void 0),_c([we()],Mc.prototype,"iconVariant",void 0),_c([we({type:Boolean})],Mc.prototype,"trailingIcon",void 0),_c([Ee("ft-typography slot")],Mc.prototype,"slottedContent",void 0),yo("ft-chip")(Mc);const Dc=Oo.create("--ft-floating-menu-z-index","","NUMBER","8"),Kc=Oo.create("--ft-floating-menu-max-width","","SIZE","300px"),Tc=Oo.create("--ft-floating-menu-max-height","","SIZE","500px"),Zc=Oo.extend("--ft-floating-menu-text-color","",Sr.colorOnSurfaceHigh),Hc=Oo.external(Sr.colorSurface,"Design system"),Gc=Oo.external(Sr.elevation02,"Design system"),Vc=Oo.external(Sr.borderRadiusS,"Design system"),qc=ht`
1150
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Mc))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Mc))}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)}}Dc.elementDefinitions={"ft-ripple":lc,"ft-typography":jl,"ft-icon":dc,"ft-button":Ic},Dc.styles=_c,jc([we({type:Boolean})],Dc.prototype,"highlighted",void 0),jc([we({type:Boolean})],Dc.prototype,"removable",void 0),jc([we({type:Boolean})],Dc.prototype,"disabled",void 0),jc([we({type:Boolean})],Dc.prototype,"clickable",void 0),jc([we({type:Boolean})],Dc.prototype,"iconClickable",void 0),jc([we({type:Boolean})],Dc.prototype,"dense",void 0),jc([we({type:Boolean})],Dc.prototype,"multiLine",void 0),jc([we()],Dc.prototype,"label",void 0),jc([we()],Dc.prototype,"iconLabel",void 0),jc([we()],Dc.prototype,"icon",void 0),jc([we()],Dc.prototype,"iconVariant",void 0),jc([we({type:Boolean})],Dc.prototype,"trailingIcon",void 0),jc([Ee("ft-typography slot")],Dc.prototype,"slottedContent",void 0),yo("ft-chip")(Dc);const Kc=Oo.create("--ft-floating-menu-z-index","","NUMBER","8"),Tc=Oo.create("--ft-floating-menu-max-width","","SIZE","300px"),Zc=Oo.create("--ft-floating-menu-max-height","","SIZE","500px"),Hc=Oo.extend("--ft-floating-menu-text-color","",Sr.colorOnSurfaceHigh),Gc=Oo.external(Sr.colorSurface,"Design system"),Vc=Oo.external(Sr.elevation02,"Design system"),qc=Oo.external(Sr.borderRadiusS,"Design system"),Yc=ht`
1151
1151
  .ft-floating-menu {
1152
- color: ${Zc};
1152
+ color: ${Hc};
1153
1153
  display: contents;
1154
1154
  }
1155
1155
 
@@ -1166,19 +1166,19 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1166
1166
  display: none;
1167
1167
  position: relative;
1168
1168
  overflow: auto;
1169
- max-width: ${Kc};
1170
- max-height: ${Tc};
1171
- box-shadow: ${Gc};
1172
- background-color: ${Hc};
1173
- border-radius: ${Vc};
1174
- color: ${Zc};
1175
- z-index: ${Dc};
1169
+ max-width: ${Tc};
1170
+ max-height: ${Zc};
1171
+ box-shadow: ${Vc};
1172
+ background-color: ${Gc};
1173
+ border-radius: ${qc};
1174
+ color: ${Hc};
1175
+ z-index: ${Kc};
1176
1176
  }
1177
1177
 
1178
1178
  .ft-floating-menu--open .ft-floating-menu--options {
1179
1179
  display: block;
1180
1180
  }
1181
- `,Yc=Oo.extend("--ft-floating-menu-icon-color","",Sr.colorOnSurfaceMedium),Jc=ht`
1181
+ `,Jc=Oo.extend("--ft-floating-menu-icon-color","",Sr.colorOnSurfaceMedium),Xc=ht`
1182
1182
  .ft-floating-menu-item {
1183
1183
  cursor: pointer;
1184
1184
  display: flex;
@@ -1193,7 +1193,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1193
1193
  }
1194
1194
 
1195
1195
  .ft-floating-menu-item ft-icon {
1196
- color: ${Yc};
1196
+ color: ${Jc};
1197
1197
  margin-left: 0;
1198
1198
  flex-shrink: 0;
1199
1199
  flex-grow: 0;
@@ -1208,7 +1208,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1208
1208
  word-break: break-word;
1209
1209
  hyphens: auto;
1210
1210
  }
1211
- `;var Xc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qc extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class tf extends Mi{constructor(){super(...arguments),this.value="",this.notFocusable=!1}render(){return Jt`
1211
+ `;var Qc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tf extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class ef extends Mi{constructor(){super(...arguments),this.value="",this.notFocusable=!1}render(){return Jt`
1212
1212
  <div class="ft-floating-menu-item"
1213
1213
  tabindex=${this.notFocusable?"-1":"0"}
1214
1214
  @keydown=${t=>this.onKeyDown(t)}
@@ -1221,7 +1221,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1221
1221
  <slot></slot>
1222
1222
  </ft-typography>
1223
1223
  </div>
1224
- `}onClick(t){this.dispatchEvent(new Qc(this.value))}onKeyDown(t){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.dispatchEvent(new Qc(this.value)))}}tf.elementDefinitions={"ft-icon":hc,"ft-ripple":sc,"ft-typography":_l},tf.styles=Jc,Xc([we()],tf.prototype,"iconVariant",void 0),Xc([we()],tf.prototype,"icon",void 0),Xc([we()],tf.prototype,"value",void 0),Xc([we({type:Boolean})],tf.prototype,"notFocusable",void 0);var ef=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class of extends Mi{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=fc.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Jt`
1224
+ `}onClick(t){this.dispatchEvent(new tf(this.value))}onKeyDown(t){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.dispatchEvent(new tf(this.value)))}}ef.elementDefinitions={"ft-icon":dc,"ft-ripple":lc,"ft-typography":jl},ef.styles=Xc,Qc([we()],ef.prototype,"iconVariant",void 0),Qc([we()],ef.prototype,"icon",void 0),Qc([we()],ef.prototype,"value",void 0),Qc([we({type:Boolean})],ef.prototype,"notFocusable",void 0);var of=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rf extends Mi{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=pc.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Jt`
1225
1225
  <div part="container" class="${Te(t)}">
1226
1226
  <slot name="toggle"
1227
1227
  part="toggle"
@@ -1256,7 +1256,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1256
1256
  </div>
1257
1257
  </div>
1258
1258
  </div>
1259
- `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){uo(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";const t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:e,y:o}=await ki(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${e}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}of.elementDefinitions={"ft-floating-menu-item":tf},ef([Se()],of.prototype,"menuOpen",void 0),ef([Se()],of.prototype,"forceMenuOpen",void 0),ef([Ee(".ft-floating-menu")],of.prototype,"container",void 0),ef([Ee(".ft-floating-menu--wrapper")],of.prototype,"menuWrapper",void 0),ef([Ee("#actions-button")],of.prototype,"actionButton",void 0),ef([Re({slot:"toggle"})],of.prototype,"customToggle",void 0),ef([we({type:Boolean})],of.prototype,"primary",void 0),ef([we({type:Boolean})],of.prototype,"secondary",void 0),ef([we({type:Boolean})],of.prototype,"tertiary",void 0),ef([we({type:Boolean})],of.prototype,"neutral",void 0),ef([we({type:Boolean})],of.prototype,"small",void 0),ef([we()],of.prototype,"label",void 0),ef([we()],of.prototype,"tooltipPosition",void 0),ef([we()],of.prototype,"iconVariant",void 0),ef([we()],of.prototype,"icon",void 0),ef([we()],of.prototype,"text",void 0),ef([we()],of.prototype,"horizontalAlignment",void 0),ef([we()],of.prototype,"verticalAlignment",void 0),ef([we({type:Boolean})],of.prototype,"disabled",void 0),ef([bo([])],of.prototype,"closeMenuMatchers",void 0);class rf extends of{}rf.elementDefinitions={"ft-or-ftds-button":Rc},rf.styles=qc;class nf extends of{}nf.elementDefinitions={"ft-or-ftds-button":Lc},nf.styles=qc;const af=Oo.extend("--ft-floating-menu-label-color","",Sr.colorOnSurfaceMedium),sf=ht`
1259
+ `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){uo(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";const t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:e,y:o}=await ki(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${e}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}rf.elementDefinitions={"ft-floating-menu-item":ef},of([Se()],rf.prototype,"menuOpen",void 0),of([Se()],rf.prototype,"forceMenuOpen",void 0),of([Ee(".ft-floating-menu")],rf.prototype,"container",void 0),of([Ee(".ft-floating-menu--wrapper")],rf.prototype,"menuWrapper",void 0),of([Ee("#actions-button")],rf.prototype,"actionButton",void 0),of([Re({slot:"toggle"})],rf.prototype,"customToggle",void 0),of([we({type:Boolean})],rf.prototype,"primary",void 0),of([we({type:Boolean})],rf.prototype,"secondary",void 0),of([we({type:Boolean})],rf.prototype,"tertiary",void 0),of([we({type:Boolean})],rf.prototype,"neutral",void 0),of([we({type:Boolean})],rf.prototype,"small",void 0),of([we()],rf.prototype,"label",void 0),of([we()],rf.prototype,"tooltipPosition",void 0),of([we()],rf.prototype,"iconVariant",void 0),of([we()],rf.prototype,"icon",void 0),of([we()],rf.prototype,"text",void 0),of([we()],rf.prototype,"horizontalAlignment",void 0),of([we()],rf.prototype,"verticalAlignment",void 0),of([we({type:Boolean})],rf.prototype,"disabled",void 0),of([bo([])],rf.prototype,"closeMenuMatchers",void 0);class nf extends rf{}nf.elementDefinitions={"ft-or-ftds-button":Ic},nf.styles=Yc;class af extends rf{}af.elementDefinitions={"ft-or-ftds-button":Uc},af.styles=Yc;const sf=Oo.extend("--ft-floating-menu-label-color","",Sr.colorOnSurfaceMedium),lf=ht`
1260
1260
  .ft-floating-menu-label {
1261
1261
  padding: 4px 8px;
1262
1262
  }
@@ -1267,23 +1267,23 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1267
1267
  width: max-content;
1268
1268
  text-overflow: ellipsis;
1269
1269
  overflow: hidden;
1270
- color: ${af}
1270
+ color: ${sf}
1271
1271
  }
1272
- `;class lf extends Mi{render(){return Jt`
1272
+ `;class cf extends Mi{render(){return Jt`
1273
1273
  <div class="ft-floating-menu-label">
1274
1274
  <ft-typography variant="caption">
1275
1275
  <slot></slot>
1276
1276
  </ft-typography>
1277
1277
  </div>
1278
- `}}var cf,ff,pf,hf,df,uf,gf,yf,bf,mf,vf,xf,Of,wf,Sf,Cf,Nf,Ef;function $f(t){var e,o,r,i,n;if(function(t){var e,o,r,i,n;return(null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.openMode)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.openMode)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.openMode)===Of.EXTERNAL}(t))return null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.originUrl)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.originUrl)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.originUrl;switch(t.type){case Sf.MAP:return t.map.readerUrl;case Sf.DOCUMENT:return t.document.viewerUrl;case Sf.TOPIC:return t.topic.readerUrl}return""}lf.elementDefinitions={"ft-typography":_l},lf.styles=sf,yo("ft-floating-menu")(rf),yo("ftds-floating-menu")(nf),yo("ft-floating-menu-item")(tf),yo("ft-floating-menu-label")(lf),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 r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(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 f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(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=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(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(p)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(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),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);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(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(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)]=a(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)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(e=e||{}).body;if(t instanceof g){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,i||null==t._bodyInit||(i=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",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),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)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.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 m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.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 v(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,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"}(cf||(cf={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ff||(ff={})),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"}(pf||(pf={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(hf||(hf={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(df||(df={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(uf||(uf={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gf||(gf={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yf||(yf={})),function(t){t.ASC="ASC",t.DESC="DESC"}(bf||(bf={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mf||(mf={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(vf||(vf={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xf||(xf={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Of||(Of={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wf||(wf={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sf||(Sf={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Cf||(Cf={})),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.GENERATIVE_AI_USER="GENERATIVE_AI_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"}(Nf||(Nf={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ef||(Ef={})),Nf.PERSONAL_BOOK_SHARE_USER,Nf.PERSONAL_BOOK_USER,Nf.HTML_EXPORT_USER,Nf.PERSONAL_BOOK_USER,Nf.PDF_EXPORT_USER,Nf.PERSONAL_BOOK_USER,Nf.KHUB_ADMIN,Nf.CONTENT_PUBLISHER,Nf.ADMIN,Nf.KHUB_ADMIN,Nf.USERS_ADMIN,Nf.PORTAL_ADMIN,Nf.DEVELOPER,Nf.BETA_USER,Nf.DEBUG_USER;const Rf=ht`
1279
- `,If=rs.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class kf{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=If.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static await(t){return new Promise((e=>{let o=kf.get(t);if(o)e(o);else{const r=If.subscribe((()=>{o=kf.get(t),o&&(r(),e(o))}))}}))}}class Lf{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new ro,this.cache=t?r.commonCache:new ro}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:kf.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:kf.await()}clearCache(){this.cache.clearAll()}}var Uf;const Wf=Symbol("clearAfterUnitTest");class Af extends Lf{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Uf]=()=>{this.defaultMessages={},this.cache=new ro,this.listeners={}},this.currentUiLocale=If.getState().uiLocale,If.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=If.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 r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};ho(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new en(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>co(0).then((()=>t())).catch((()=>null)))))}}Uf=Wf,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Af{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Af{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Bf=window.FluidTopicsI18nService,zf=window.FluidTopicsCustomI18nService;var Ff=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pf extends Mi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>kf.get(),this.cache=new ro,this.cleanSessionDebouncer=new so}render(){return Jt`
1278
+ `}}var ff,pf,hf,df,uf,gf,yf,bf,mf,vf,xf,Of,wf,Sf,Cf,Nf,Ef,$f;function Rf(t){var e,o,r,i,n;if(function(t){var e,o,r,i,n;return(null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.openMode)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.openMode)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.openMode)===wf.EXTERNAL}(t))return null!==(i=null!==(o=null===(e=t.map)||void 0===e?void 0:e.originUrl)&&void 0!==o?o:null===(r=t.topic)||void 0===r?void 0:r.originUrl)&&void 0!==i?i:null===(n=t.document)||void 0===n?void 0:n.originUrl;switch(t.type){case Cf.MAP:return t.map.readerUrl;case Cf.DOCUMENT:return t.document.viewerUrl;case Cf.TOPIC:return t.topic.readerUrl}return""}cf.elementDefinitions={"ft-typography":jl},cf.styles=lf,yo("ft-floating-menu")(nf),yo("ftds-floating-menu")(af),yo("ft-floating-menu-item")(ef),yo("ft-floating-menu-label")(cf),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 r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(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 f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(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=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(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(p)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(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),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);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(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(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)]=a(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)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(e=e||{}).body;if(t instanceof g){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,i||null==t._bodyInit||(i=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",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),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)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.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 m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.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 v(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,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"}(ff||(ff={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(pf||(pf={})),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"}(hf||(hf={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(df||(df={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(uf||(uf={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(gf||(gf={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(yf||(yf={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(bf||(bf={})),function(t){t.ASC="ASC",t.DESC="DESC"}(mf||(mf={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(vf||(vf={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(xf||(xf={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Of||(Of={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wf||(wf={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Sf||(Sf={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Cf||(Cf={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Nf||(Nf={})),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.GENERATIVE_AI_USER="GENERATIVE_AI_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"}(Ef||(Ef={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}($f||($f={})),Ef.PERSONAL_BOOK_SHARE_USER,Ef.PERSONAL_BOOK_USER,Ef.HTML_EXPORT_USER,Ef.PERSONAL_BOOK_USER,Ef.PDF_EXPORT_USER,Ef.PERSONAL_BOOK_USER,Ef.KHUB_ADMIN,Ef.CONTENT_PUBLISHER,Ef.ADMIN,Ef.KHUB_ADMIN,Ef.USERS_ADMIN,Ef.PORTAL_ADMIN,Ef.DEVELOPER,Ef.BETA_USER,Ef.DEBUG_USER;const If=ht`
1279
+ `,kf=is.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});class Lf{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=kf.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static await(t){return new Promise((e=>{let o=Lf.get(t);if(o)e(o);else{const r=kf.subscribe((()=>{o=Lf.get(t),o&&(r(),e(o))}))}}))}}class Uf{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new ro,this.cache=t?r.commonCache:new ro}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Lf.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Lf.await()}clearCache(){this.cache.clearAll()}}var Wf;const Af=Symbol("clearAfterUnitTest");class Bf extends Uf{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wf]=()=>{this.defaultMessages={},this.cache=new ro,this.listeners={}},this.currentUiLocale=kf.getState().uiLocale,kf.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kf.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 r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};ho(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new on(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>co(0).then((()=>t())).catch((()=>null)))))}}Wf=Af,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Bf{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Bf{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const zf=window.FluidTopicsI18nService,Ff=window.FluidTopicsCustomI18nService;var Pf=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _f extends Mi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Lf.get(),this.messageContexts=[],this.cache=new ro,this.cleanSessionDebouncer=new so}render(){return Jt`
1280
1280
  <slot></slot>
1281
- `}update(t){super.update(t),t.has("baseUrl")&&(If.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&If.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&If.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&If.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&If.actions.noCustom(this.noCustom),t.has("editorMode")&&If.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&If.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&If.actions.session(this.session),t.has("availableUiLocales")&&If.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Bf.addContext(t))),t.has("openExternalDocumentInNewTab")&&If.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Pf.elementDefinitions={},Pf.styles=Rf,Ff([we()],Pf.prototype,"baseUrl",void 0),Ff([we()],Pf.prototype,"apiIntegrationIdentifier",void 0),Ff([we()],Pf.prototype,"uiLocale",void 0),Ff([bo(null)],Pf.prototype,"availableUiLocales",void 0),Ff([bo(null)],Pf.prototype,"metadataConfiguration",void 0),Ff([we({type:Boolean})],Pf.prototype,"editorMode",void 0),Ff([we({type:Boolean})],Pf.prototype,"noCustom",void 0),Ff([we({type:Boolean})],Pf.prototype,"openExternalDocumentInNewTab",void 0),Ff([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Pf.prototype,"noCustomComponent",void 0),Ff([we({type:Boolean})],Pf.prototype,"withManualResources",void 0),Ff([bo([])],Pf.prototype,"messageContexts",void 0),Ff([bo(void 0)],Pf.prototype,"session",void 0),Ff([we({type:Object})],Pf.prototype,"apiProvider",void 0);class _f extends Lf{async listMySearches(){let t=If.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class jf extends Lf{async listMyBookmarks(){let t=If.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Mf=rs.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=If.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new jf,this.savedSearchesService=new _f,If.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=If.getState();ho(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(){this.savedSearchesService.clearCache(),Mf.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Mf.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Mf.actions.savedSearches(t)}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;Mf.actions.bookmarks(e)}}},yo("ft-app-context")(Pf);var Df=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Kf=Symbol("i18nAttributes"),Tf=Symbol("i18nProperties"),Zf=Symbol("i18nUnsubs");function Hf(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?zf:Bf}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e,o;null===(e=this[Kf])||void 0===e||e.forEach(((e,o)=>{var r;const i=this.getI18nAttributeValue(o);(null===(r=null==i?void 0:i.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,i,e)})),null===(o=this[Tf])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Kf])||void 0===e||e.forEach(((e,o)=>{const r=this.getI18nAttributeValue(o);(null==r?void 0:r.context)&&r.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(o,r,e))})),null===(o=this[Tf])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,r;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Tf])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(r=null===(o=this[Kf])||void 0===o?void 0:o.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Zf].has(t)||this[Zf].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Zf].forEach((t=>t())),this[Zf].clear()}}return e=Zf,Df([we({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Gf extends(Hf(Mi)){}class Vf extends(Hf(gn)){}const qf=ht`
1282
- `;var Yf=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jf extends Vf{constructor(){super(),this.editorMode=!1,this.addStore(If)}render(){return this.key&&this.context?Jt`
1281
+ `}update(t){super.update(t),t.has("baseUrl")&&(kf.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&kf.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kf.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&kf.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&kf.actions.noCustom(this.noCustom),t.has("editorMode")&&kf.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&kf.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&kf.actions.session(this.session),t.has("availableUiLocales")&&kf.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zf.addContext(t))),t.has("openExternalDocumentInNewTab")&&kf.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&kf.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&kf.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}_f.elementDefinitions={},_f.styles=If,Pf([we()],_f.prototype,"baseUrl",void 0),Pf([we()],_f.prototype,"apiIntegrationIdentifier",void 0),Pf([we()],_f.prototype,"uiLocale",void 0),Pf([bo(null)],_f.prototype,"availableUiLocales",void 0),Pf([bo(null)],_f.prototype,"metadataConfiguration",void 0),Pf([we({type:Boolean})],_f.prototype,"editorMode",void 0),Pf([we({type:Boolean})],_f.prototype,"noCustom",void 0),Pf([we({type:Boolean})],_f.prototype,"openExternalDocumentInNewTab",void 0),Pf([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],_f.prototype,"noCustomComponent",void 0),Pf([we({type:Boolean})],_f.prototype,"withManualResources",void 0),Pf([we({type:Boolean})],_f.prototype,"navigatorOnline",void 0),Pf([we({type:Boolean})],_f.prototype,"forcedOffline",void 0),Pf([we({type:Object})],_f.prototype,"apiProvider",void 0),Pf([bo([])],_f.prototype,"messageContexts",void 0),Pf([bo(void 0)],_f.prototype,"session",void 0);class jf extends Uf{async listMySearches(){let t=kf.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Mf extends Uf{async listMyBookmarks(){let t=kf.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Df=is.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=kf.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mf,this.savedSearchesService=new jf,kf.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=kf.getState();ho(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(){this.savedSearchesService.clearCache(),Df.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Df.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Df.actions.savedSearches(t)}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;Df.actions.bookmarks(e)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,e=!1){kf.commands.add(t,e)}consumeCommand(t){return kf.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){qi(t,e)}},yo("ft-app-context")(_f);var Kf=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Tf=Symbol("i18nAttributes"),Zf=Symbol("i18nProperties"),Hf=Symbol("i18nUnsubs");function Gf(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ff:zf}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e,o;null===(e=this[Tf])||void 0===e||e.forEach(((e,o)=>{var r;const i=this.getI18nAttributeValue(o);(null===(r=null==i?void 0:i.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,i,e)})),null===(o=this[Zf])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Tf])||void 0===e||e.forEach(((e,o)=>{const r=this.getI18nAttributeValue(o);(null==r?void 0:r.context)&&r.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(o,r,e))})),null===(o=this[Zf])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,r;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Zf])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(r=null===(o=this[Tf])||void 0===o?void 0:o.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Hf].has(t)||this[Hf].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Hf].forEach((t=>t())),this[Hf].clear()}}return e=Hf,Kf([we({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Vf extends(Gf(Mi)){}class qf extends(Gf(yn)){}const Yf=ht`
1282
+ `;var Jf=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xf extends qf{constructor(){super(),this.editorMode=!1,this.addStore(kf)}render(){return this.key&&this.context?Jt`
1283
1283
  <span class="ft-i18n">
1284
1284
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1285
1285
  </span>
1286
- `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Jf.elementDefinitions={},Jf.styles=qf,Yf([nn()],Jf.prototype,"editorMode",void 0),Yf([we()],Jf.prototype,"context",void 0),Yf([we()],Jf.prototype,"key",void 0),Yf([bo([])],Jf.prototype,"args",void 0),Yf([we()],Jf.prototype,"defaultMessage",void 0);class Xf{static build(t){return new Xf(t)}static fromGwt(t){return new Xf(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)=>Bf.resolveMessage(this.name,e,...t)})}}yo("ft-i18n")(Jf);const Qf=Xf.build("designedReaderMapMetadata");var tp,ep,op=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rp extends(Hf(xs)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Qf)}setReaderStateManager(t){super.setReaderStateManager(t),this.key&&this.useForSwitchingToRelatives&&t.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var t,e,o,r;this.useForSwitchingToRelatives&&this.key?this.relatives=null!==(r=null===(e=null===(t=this.stateManager)||void 0===t?void 0:t.clusteringHelper)||void 0===e?void 0:e.computeClustersItemsForMetadata(this.key,(null===(o=this.map)||void 0===o?void 0:o.lang)||"en",this.noValueMessage))&&void 0!==r?r:[]:this.relatives=[]}render(){return Jt`
1286
+ `:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Xf.elementDefinitions={},Xf.styles=Yf,Jf([an()],Xf.prototype,"editorMode",void 0),Jf([we()],Xf.prototype,"context",void 0),Jf([we()],Xf.prototype,"key",void 0),Jf([bo([])],Xf.prototype,"args",void 0),Jf([we()],Xf.prototype,"defaultMessage",void 0);class Qf{static build(t){return new Qf(t)}static fromGwt(t){return new Qf(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)=>zf.resolveMessage(this.name,e,...t)})}}yo("ft-i18n")(Xf);const tp=Qf.build("designedReaderMapMetadata");var ep,op,rp=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ip extends(Gf(Os)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(tp)}setReaderStateManager(t){super.setReaderStateManager(t),this.key&&this.useForSwitchingToRelatives&&t.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var t,e,o,r;this.useForSwitchingToRelatives&&this.key?this.relatives=null!==(r=null===(e=null===(t=this.stateManager)||void 0===t?void 0:t.clusteringHelper)||void 0===e?void 0:e.computeClustersItemsForMetadata(this.key,(null===(o=this.map)||void 0===o?void 0:o.lang)||"en",this.noValueMessage))&&void 0!==r?r:[]:this.relatives=[]}render(){return Jt`
1287
1287
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
1288
1288
  ${this.hideIfEmpty()}
1289
1289
  `}renderSwitchToRelatives(){return Jt`
@@ -1309,7 +1309,7 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1309
1309
  </ft-tooltip>
1310
1310
  `}renderChipContent(){var t,e;return this.metadata&&this.metadata.values.length>0?null!==(e=null===(t=this.flatMetadata)||void 0===t?void 0:t.displayValue)&&void 0!==e?e:this.noValueMessage:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}renderRelativeItem(t,e){return Jt`
1311
1311
  <a part="relative-item-link"
1312
- href="${$f(t)}"
1312
+ href="${Rf(t)}"
1313
1313
  @click=${e=>this.addTopicPivotParam(e,t)}>
1314
1314
  <ft-ripple part="relative-item-ripple"></ft-ripple>
1315
1315
  <ft-floating-menu-item part="relative-item" value="${e.value}" notFocusable>
@@ -1324,4 +1324,4 @@ function Re(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=$
1324
1324
  display: none !important;
1325
1325
  }
1326
1326
  </style>
1327
- `:te}addTopicPivotParam(t,e){var o,r;const i=this.stateManager.store.getState().visibleTopics[0];if(i&&"MAP"==e.type){t.stopPropagation(),t.preventDefault();const n=null===(o=this.service)||void 0===o?void 0:o.getTocNodeNow(i);null===(r=this.service)||void 0===r||r.getTopicInfo(n).then((o=>{const r=null==o?void 0:o.metadata.find((t=>t.key==this.relativeTopicPivotMetadata));let i=new URL($f(e));r&&r.values.forEach((t=>i.searchParams.append("topicPivot",t)));const n=document.createElement("a");n.href=i.toString(),(t.ctrlKey||t.metaKey)&&(n.target="_blank"),this.append(n),n.click()}))}}update(t){var e,o,r,i;super.update(t),t.has("key")&&this.useForSwitchingToRelatives&&(t.get("key")&&(null===(e=this.stateManager)||void 0===e||e.unregisterMetadataForSwitchToRelatives(t.get("key"))),this.key&&(null===(o=this.stateManager)||void 0===o||o.registerMetadataForSwitchToRelatives(this.key))),t.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?null===(r=this.stateManager)||void 0===r||r.registerMetadataForSwitchToRelatives(this.key):null===(i=this.stateManager)||void 0===i||i.unregisterMetadataForSwitchToRelatives(this.key)),t.has("metadata")&&(this.flatMetadata=this.metadata&&this.metadata.values.length>0?no.flattenMetadata(this.metadata):{key:this.key,label:this.key,value:void 0,displayValue:void 0})}get metadataLabel(){var t,e,o,r,i,n;return this.metadata?this.metadata.label:null!==(n=null!==(r=null===(o=null===(e=null===(t=this.stateManager)||void 0===t?void 0:t.clusteringHelper)||void 0===e?void 0:e.getMetadataDescriptor(this.key))||void 0===o?void 0:o.label)&&void 0!==r?r:null===(i=this.relatives.find((t=>t.metadata.value)))||void 0===i?void 0:i.metadata.label)&&void 0!==n?n:this.key}}rp.elementDefinitions={"ft-chip":Mc,"ft-floating-menu":rf,"ft-floating-menu-item":tf,"ft-floating-menu-label":lf,"ft-ripple":sc,"ft-tooltip":Vl},rp.styles=gs,op([we(),rn()],rp.prototype,"key",void 0),op([we({type:Boolean})],rp.prototype,"multiLine",void 0),op([we({type:Boolean})],rp.prototype,"useForSwitchingToRelatives",void 0),op([we({attribute:!1})],rp.prototype,"editorMode",void 0),op([nn({selector:(t,e)=>{var o,r;return null===(r=null===(o=t.map)||void 0===o?void 0:o.metadata)||void 0===r?void 0:r.find((t=>t.key===e.key))}})],rp.prototype,"metadata",void 0),op([Se()],rp.prototype,"flatMetadata",void 0),op([nn()],rp.prototype,"map",void 0),op([nn({selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.relativeTopicPivotMetadata}})],rp.prototype,"relativeTopicPivotMetadata",void 0),op([Se()],rp.prototype,"relatives",void 0),op([(tp=Qf.properties.itemWithNoValueForSwitchToRelatives(),(t,e)=>{var o,r;t.constructor.createProperty(e,null!=ep?ep:{attribute:!1,type:String});const i={...tp,key:null!==(o=tp.key)&&void 0!==o?o:e};t[Tf]=null!==(r=t[Tf])&&void 0!==r?r:new Map,t[Tf].set(e,i)})],rp.prototype,"noValueMessage",void 0),op([an({eventName:"clustering-helper-created"})],rp.prototype,"updateRelatives",null),yo("ft-reader-metadata")(rp),t.FtReaderMetadata=rp,t.FtReaderMetadataCssVariables={},t.styles=gs}({});
1327
+ `:te}addTopicPivotParam(t,e){var o,r;const i=this.stateManager.store.getState().visibleTopics[0];if(i&&"MAP"==e.type){t.stopPropagation(),t.preventDefault();const n=null===(o=this.service)||void 0===o?void 0:o.getTocNodeNow(i);null===(r=this.service)||void 0===r||r.getTopicInfo(n).then((o=>{const r=null==o?void 0:o.metadata.find((t=>t.key==this.relativeTopicPivotMetadata));let i=new URL(Rf(e));r&&r.values.forEach((t=>i.searchParams.append("topicPivot",t)));const n=document.createElement("a");n.href=i.toString(),(t.ctrlKey||t.metaKey)&&(n.target="_blank"),this.append(n),n.click()}))}}update(t){var e,o,r,i;super.update(t),t.has("key")&&this.useForSwitchingToRelatives&&(t.get("key")&&(null===(e=this.stateManager)||void 0===e||e.unregisterMetadataForSwitchToRelatives(t.get("key"))),this.key&&(null===(o=this.stateManager)||void 0===o||o.registerMetadataForSwitchToRelatives(this.key))),t.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?null===(r=this.stateManager)||void 0===r||r.registerMetadataForSwitchToRelatives(this.key):null===(i=this.stateManager)||void 0===i||i.unregisterMetadataForSwitchToRelatives(this.key)),t.has("metadata")&&(this.flatMetadata=this.metadata&&this.metadata.values.length>0?no.flattenMetadata(this.metadata):{key:this.key,label:this.key,value:void 0,displayValue:void 0})}get metadataLabel(){var t,e,o,r,i,n;return this.metadata?this.metadata.label:null!==(n=null!==(r=null===(o=null===(e=null===(t=this.stateManager)||void 0===t?void 0:t.clusteringHelper)||void 0===e?void 0:e.getMetadataDescriptor(this.key))||void 0===o?void 0:o.label)&&void 0!==r?r:null===(i=this.relatives.find((t=>t.metadata.value)))||void 0===i?void 0:i.metadata.label)&&void 0!==n?n:this.key}}ip.elementDefinitions={"ft-chip":Dc,"ft-floating-menu":nf,"ft-floating-menu-item":ef,"ft-floating-menu-label":cf,"ft-ripple":lc,"ft-tooltip":ql},ip.styles=ys,rp([we(),nn()],ip.prototype,"key",void 0),rp([we({type:Boolean})],ip.prototype,"multiLine",void 0),rp([we({type:Boolean})],ip.prototype,"useForSwitchingToRelatives",void 0),rp([we({attribute:!1})],ip.prototype,"editorMode",void 0),rp([an({selector:(t,e)=>{var o,r;return null===(r=null===(o=t.map)||void 0===o?void 0:o.metadata)||void 0===r?void 0:r.find((t=>t.key===e.key))}})],ip.prototype,"metadata",void 0),rp([Se()],ip.prototype,"flatMetadata",void 0),rp([an()],ip.prototype,"map",void 0),rp([an({selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.relativeTopicPivotMetadata}})],ip.prototype,"relativeTopicPivotMetadata",void 0),rp([Se()],ip.prototype,"relatives",void 0),rp([(ep=tp.properties.itemWithNoValueForSwitchToRelatives(),(t,e)=>{var o,r;t.constructor.createProperty(e,null!=op?op:{attribute:!1,type:String});const i={...ep,key:null!==(o=ep.key)&&void 0!==o?o:e};t[Zf]=null!==(r=t[Zf])&&void 0!==r?r:new Map,t[Zf].set(e,i)})],ip.prototype,"noValueMessage",void 0),rp([sn({eventName:"clustering-helper-created"})],ip.prototype,"updateRelatives",null),yo("ft-reader-metadata")(ip),t.FtReaderMetadata=ip,t.FtReaderMetadataCssVariables={},t.styles=ys}({});