@fluid-topics/ft-reader-feedback 1.1.26 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,43 +12,43 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o 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,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(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 i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qa){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o 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,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(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 i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qa){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){const i=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findMatchingResult(t,e){var i,o;let n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(o=null!==(i=this.findResultMatchingMetadata(a))&&void 0!==i?i:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==o?o:this.allResults[0]}findResultMatchingMetadata(t){return this.allResults.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let i=r.extractResultMetadata(t);return e.every((t=>i.some((e=>e.key==t.key&&e.value==t.value))))}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const n=globalThis,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),l=new WeakMap;const c=t=>new class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,s),f=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t
20
+ */const a=globalThis,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;const f=t=>new class{constructor(t,e,i){if(this._$cssResult$=!0,i!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,l),h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return f(e)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:h,defineProperty:d,getOwnPropertyDescriptor:u,getOwnPropertyNames:p,getOwnPropertySymbols:y,getPrototypeOf:g}=Object,b=globalThis,v=b.trustedTypes,m=v?v.emptyScript:"",x=b.reactiveElementPolyfillSupport,w=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>!h(t,e),$={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;let N=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&d(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...p(t),...y(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=n.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:O).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??S)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[w("elementProperties")]=new Map,N[w("finalized")]=new Map,x?.({ReactiveElement:N}),(b.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:y,getOwnPropertySymbols:g,getPrototypeOf:b}=Object,v=globalThis,m=v.trustedTypes,x=m?m.emptyScript:"",w=v.reactiveElementPolyfillSupport,O=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>!d(t,e),$={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;let C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&u(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...y(t),...g(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(s)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=a.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:S).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:S;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??N)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[O("elementProperties")]=new Map,C[O("finalized")]=new Map,w?.({ReactiveElement:C}),(v.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S},E=(t=C,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function k(t){return(e,i)=>"object"==typeof i?E(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
31
+ const E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},k=(t=E,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function I(t){return(e,i)=>"object"==typeof i?k(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function R(t){return k({...t,state:!0,attribute:!1})}
36
+ */}function R(t){return I({...t,state:!0,attribute:!1})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */function I(t){return(e,i)=>{const o="function"==typeof e?e:e[i];Object.assign(o,t)}}
41
+ */function U(t){return(e,i)=>{const o="function"==typeof e?e:e[i];Object.assign(o,t)}}
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */const U=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i)
46
+ */const L=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i)
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */;function L(t,e){return(i,o,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof o?i:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return U(0,0,{get(){let i=t.call(this);return void 0===i&&(i=n(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return U(0,0,{get(){return n(this)}})}}
51
+ */;function A(t,e){return(i,o,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof o?i:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return L(0,0,{get(){let i=t.call(this);return void 0===i&&(i=n(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return L(0,0,{get(){return n(this)}})}}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2021 Google LLC
@@ -59,45 +59,45 @@ const C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S},E=(t=C,e,
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
61
  */
62
- function A(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function T(t,e=5,i){return await async function(t,e=5,i){let o,r,n=await t();for(o=r=performance.now();!n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded")}((async()=>null!=await t()),e,i),await t()}function D(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!D(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!D(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!D(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function F(t,e){const i=()=>JSON.parse(JSON.stringify(t));return k({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!D(t,e),...null!=e?e:{}})}
62
+ function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));function W(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!W(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!W(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!W(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const D=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function F(t,e){const i=()=>JSON.parse(JSON.stringify(t));return I({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!W(t,e),...null!=e?e:{}})}
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2017 Google LLC
66
66
  * SPDX-License-Identifier: BSD-3-Clause
67
- */const P=globalThis,M=P.trustedTypes,j=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,K="?"+B,Z=`<${K}>`,H=document,G=()=>H.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,Y=t=>q(t)||"function"==typeof t?.[Symbol.iterator],X="[ \t\n\f\r]",J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,tt=/>/g,et=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),at=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),lt=new WeakMap,ct=H.createTreeWalker(H,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const ht=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=J;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===J?"!--"===l[1]?a=Q:void 0!==l[1]?a=tt:void 0!==l[2]?(rt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=et):void 0!==l[3]&&(a=et):a===et?">"===l[0]?(a=r??J,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?et:'"'===l[3]?ot:it):a===ot||a===it?a=et:a===Q||a===tt?a=J:(a=et,r=void 0);const h=a===et&&t[e+1].startsWith("/>")?" ":"";n+=a===J?i+Z:c>=0?(o.push(s),i.slice(0,c)+z+i.slice(c)+B+h):i+B+(-2===c?e:h)}return[ft(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let dt=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=ht(e,i);if(this.el=t.createElement(c,o),ct.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ct.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const e=f[a++],i=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?bt:"?"===o[1]?vt:"@"===o[1]?mt:gt}),r.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(rt.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],G()),ct.nextNode(),l.push({type:2,index:++n});r.append(t[e],G())}}}else if(8===r.nodeType)if(r.data===K)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)l.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const i=H.createElement("template");return i.innerHTML=t,i}};function ut(t,e,i=t,o){if(e===at)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=V(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ut(t,r._$AS(t,e.values),r,o)),e}let pt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??H).importNode(e,!0);ct.currentNode=o;let r=ct.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new yt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new xt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ct.nextNode(),n++)}return ct.currentNode=H,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ut(this,t,e),V(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Y(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&V(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=dt.createElement(ft(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new pt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=lt.get(t.strings);return void 0===e&&lt.set(t.strings,e=new dt(t)),e}T(e){q(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(G()),this.k(G()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=st}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ut(this,t,e,0),n=!V(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ut(this,o[i+a],e,a),s===at&&(s=this._$AH[a]),n||=!V(s)||s!==this._$AH[a],s===st?t=st:t!==st&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}},vt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},mt=class extends gt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ut(this,t,e,0)??st)===at)return;const i=this._$AH,o=t===st&&i!==st||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==st&&(i===st||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ut(this,t)}};const wt={j:z,P:B,A:K,C:1,M:ht,L:pt,R:Y,V:ut,D:yt,I:gt,H:vt,N:mt,U:bt,B:xt},Ot=P.litHtmlPolyfillSupport;Ot?.(dt,yt),(P.litHtmlVersions??=[]).push("3.1.0");
67
+ */const M=globalThis,P=M.trustedTypes,z=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,K="?"+B,Z=`<${K}>`,H=document,G=()=>H.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,Y=t=>q(t)||"function"==typeof t?.[Symbol.iterator],X="[ \t\n\f\r]",J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,tt=/>/g,et=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),at=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),lt=new WeakMap,ct=H.createTreeWalker(H,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==z?z.createHTML(e):e}const ht=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=J;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===J?"!--"===l[1]?a=Q:void 0!==l[1]?a=tt:void 0!==l[2]?(rt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=et):void 0!==l[3]&&(a=et):a===et?">"===l[0]?(a=r??J,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?et:'"'===l[3]?ot:it):a===ot||a===it?a=et:a===Q||a===tt?a=J:(a=et,r=void 0);const h=a===et&&t[e+1].startsWith("/>")?" ":"";n+=a===J?i+Z:c>=0?(o.push(s),i.slice(0,c)+j+i.slice(c)+B+h):i+B+(-2===c?e:h)}return[ft(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let dt=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=ht(e,i);if(this.el=t.createElement(c,o),ct.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ct.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(j)){const e=f[a++],i=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?bt:"?"===o[1]?vt:"@"===o[1]?mt:gt}),r.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(rt.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],G()),ct.nextNode(),l.push({type:2,index:++n});r.append(t[e],G())}}}else if(8===r.nodeType)if(r.data===K)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)l.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const i=H.createElement("template");return i.innerHTML=t,i}};function ut(t,e,i=t,o){if(e===at)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=V(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ut(t,r._$AS(t,e.values),r,o)),e}let pt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??H).importNode(e,!0);ct.currentNode=o;let r=ct.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new yt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new xt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ct.nextNode(),n++)}return ct.currentNode=H,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ut(this,t,e),V(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Y(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&V(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=dt.createElement(ft(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new pt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=lt.get(t.strings);return void 0===e&&lt.set(t.strings,e=new dt(t)),e}T(e){q(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(G()),this.k(G()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=st}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ut(this,t,e,0),n=!V(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ut(this,o[i+a],e,a),s===at&&(s=this._$AH[a]),n||=!V(s)||s!==this._$AH[a],s===st?t=st:t!==st&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}},vt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},mt=class extends gt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ut(this,t,e,0)??st)===at)return;const i=this._$AH,o=t===st&&i!==st||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==st&&(i===st||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ut(this,t)}};const wt={j,P:B,A:K,C:1,M:ht,L:pt,R:Y,V:ut,D:yt,I:gt,H:vt,N:mt,U:bt,B:xt},Ot=M.litHtmlPolyfillSupport;Ot?.(dt,yt),(M.litHtmlVersions??=[]).push("3.1.0");
68
68
  /**
69
69
  * @license
70
70
  * Copyright 2019 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
72
  */
73
- const St=globalThis,$t=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),Ct=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ct.set(e,t))}return t}toString(){return this.cssText}};const kt=t=>new Et("string"==typeof t?t:t+"",void 0,Nt),Rt=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new Et(i,t,Nt)},It=$t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return kt(e)})(t):t
73
+ const St=globalThis,Nt=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),Ct=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Nt&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ct.set(e,t))}return t}toString(){return this.cssText}};const kt=t=>new Et("string"==typeof t?t:t+"",void 0,$t),It=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new Et(i,t,$t)},Rt=Nt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return kt(e)})(t):t
74
74
  /**
75
75
  * @license
76
76
  * Copyright 2017 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
- */,{is:Ut,defineProperty:Lt,getOwnPropertyDescriptor:At,getOwnPropertyNames:_t,getOwnPropertySymbols:Tt,getPrototypeOf:Dt}=Object,Wt=globalThis,Ft=Wt.trustedTypes,Pt=Ft?Ft.emptyScript:"",Mt=Wt.reactiveElementPolyfillSupport,jt=(t,e)=>t,zt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Bt=(t,e)=>!Ut(t,e),Kt={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:Bt};Symbol.metadata??=Symbol("metadata"),Wt.litPropertyMetadata??=new WeakMap;let Zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Lt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=At(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Kt}static _$Ei(){if(this.hasOwnProperty(jt("elementProperties")))return;const t=Dt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jt("properties"))){const t=this.properties,e=[..._t(t),...Tt(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(It(t))}else void 0!==t&&e.push(It(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=St.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:zt).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:zt;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Bt)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[jt("elementProperties")]=new Map,Zt[jt("finalized")]=new Map,Mt?.({ReactiveElement:Zt}),(Wt.reactiveElementVersions??=[]).push("2.0.2");
78
+ */,{is:Ut,defineProperty:Lt,getOwnPropertyDescriptor:At,getOwnPropertyNames:Tt,getOwnPropertySymbols:_t,getPrototypeOf:Wt}=Object,Dt=globalThis,Ft=Dt.trustedTypes,Mt=Ft?Ft.emptyScript:"",Pt=Dt.reactiveElementPolyfillSupport,zt=(t,e)=>t,jt={toAttribute(t,e){switch(e){case Boolean:t=t?Mt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Bt=(t,e)=>!Ut(t,e),Kt={attribute:!0,type:String,converter:jt,reflect:!1,hasChanged:Bt};Symbol.metadata??=Symbol("metadata"),Dt.litPropertyMetadata??=new WeakMap;let Zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Lt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=At(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Kt}static _$Ei(){if(this.hasOwnProperty(zt("elementProperties")))return;const t=Wt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(zt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zt("properties"))){const t=this.properties,e=[...Tt(t),..._t(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Rt(t))}else void 0!==t&&e.push(Rt(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Nt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=St.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:jt).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:jt;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Bt)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[zt("elementProperties")]=new Map,Zt[zt("finalized")]=new Map,Pt?.({ReactiveElement:Zt}),(Dt.reactiveElementVersions??=[]).push("2.0.2");
79
79
  /**
80
80
  * @license
81
81
  * Copyright 2017 Google LLC
82
82
  * SPDX-License-Identifier: BSD-3-Clause
83
83
  */
84
- const Ht=globalThis,Gt=Ht.trustedTypes,Vt=Gt?Gt.createPolicy("lit-html",{createHTML:t=>t}):void 0,qt="$lit$",Yt=`lit$${(Math.random()+"").slice(9)}$`,Xt="?"+Yt,Jt=`<${Xt}>`,Qt=document,te=()=>Qt.createComment(""),ee=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ie=Array.isArray,oe="[ \t\n\f\r]",re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ae=/>/g,se=RegExp(`>|${oe}(?:([^\\s"'>=/]+)(${oe}*=${oe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,ce=/"/g,fe=/^(?:script|style|textarea|title)$/i,he=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),de=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),pe=new WeakMap,ye=Qt.createTreeWalker(Qt,129);function ge(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Vt?Vt.createHTML(e):e}class be{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=re;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===re?"!--"===l[1]?a=ne:void 0!==l[1]?a=ae:void 0!==l[2]?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=se):void 0!==l[3]&&(a=se):a===se?">"===l[0]?(a=r??re,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?se:'"'===l[3]?ce:le):a===ce||a===le?a=se:a===ne||a===ae?a=re:(a=se,r=void 0);const h=a===se&&t[e+1].startsWith("/>")?" ":"";n+=a===re?i+Jt:c>=0?(o.push(s),i.slice(0,c)+qt+i.slice(c)+Yt+h):i+Yt+(-2===c?e:h)}return[ge(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=be.createElement(l,i),ye.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ye.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(qt)){const e=c[n++],i=o.getAttribute(t).split(Yt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?we:"?"===a[1]?Oe:"@"===a[1]?Se:xe}),o.removeAttribute(t)}else t.startsWith(Yt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(fe.test(o.tagName)){const t=o.textContent.split(Yt),e=t.length-1;if(e>0){o.textContent=Gt?Gt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],te()),ye.nextNode(),s.push({type:2,index:++r});o.append(t[e],te())}}}else if(8===o.nodeType)if(o.data===Xt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Yt,t+1));)s.push({type:7,index:r}),t+=Yt.length-1}r++}}static createElement(t,e){const i=Qt.createElement("template");return i.innerHTML=t,i}}function ve(t,e,i=t,o){if(e===de)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=ee(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ve(t,r._$AS(t,e.values),r,o)),e}let me=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ve(this,t,e),ee(t)?t===ue||null==t||""===t?(this._$AH!==ue&&this._$AR(),this._$AH=ue):t!==this._$AH&&t!==de&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ie(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ue&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.$(Qt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=be.createElement(ge(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??Qt).importNode(e,!0);ye.currentNode=o;let r=ye.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new me(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new $e(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ye.nextNode(),n++)}return ye.currentNode=Qt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=pe.get(t.strings);return void 0===e&&pe.set(t.strings,e=new be(t)),e}T(e){ie(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(te()),this.k(te()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ue}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ve(this,t,e,0),n=!ee(t)||t!==this._$AH&&t!==de,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ve(this,o[i+a],e,a),s===de&&(s=this._$AH[a]),n||=!ee(s)||s!==this._$AH[a],s===ue?t=ue:t!==ue&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},we=class extends xe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ue?void 0:t}},Oe=class extends xe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ue)}},Se=class extends xe{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ve(this,t,e,0)??ue)===de)return;const i=this._$AH,o=t===ue&&i!==ue||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==ue&&(i===ue||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},$e=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ve(this,t)}};const Ne=Ht.litHtmlPolyfillSupport;Ne?.(be,me),(Ht.litHtmlVersions??=[]).push("3.1.0");
84
+ const Ht=globalThis,Gt=Ht.trustedTypes,Vt=Gt?Gt.createPolicy("lit-html",{createHTML:t=>t}):void 0,qt="$lit$",Yt=`lit$${(Math.random()+"").slice(9)}$`,Xt="?"+Yt,Jt=`<${Xt}>`,Qt=document,te=()=>Qt.createComment(""),ee=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ie=Array.isArray,oe="[ \t\n\f\r]",re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ae=/>/g,se=RegExp(`>|${oe}(?:([^\\s"'>=/]+)(${oe}*=${oe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,ce=/"/g,fe=/^(?:script|style|textarea|title)$/i,he=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),de=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),pe=new WeakMap,ye=Qt.createTreeWalker(Qt,129);function ge(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Vt?Vt.createHTML(e):e}class be{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=re;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===re?"!--"===l[1]?a=ne:void 0!==l[1]?a=ae:void 0!==l[2]?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=se):void 0!==l[3]&&(a=se):a===se?">"===l[0]?(a=r??re,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?se:'"'===l[3]?ce:le):a===ce||a===le?a=se:a===ne||a===ae?a=re:(a=se,r=void 0);const h=a===se&&t[e+1].startsWith("/>")?" ":"";n+=a===re?i+Jt:c>=0?(o.push(s),i.slice(0,c)+qt+i.slice(c)+Yt+h):i+Yt+(-2===c?e:h)}return[ge(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=be.createElement(l,i),ye.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ye.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(qt)){const e=c[n++],i=o.getAttribute(t).split(Yt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?we:"?"===a[1]?Oe:"@"===a[1]?Se:xe}),o.removeAttribute(t)}else t.startsWith(Yt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(fe.test(o.tagName)){const t=o.textContent.split(Yt),e=t.length-1;if(e>0){o.textContent=Gt?Gt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],te()),ye.nextNode(),s.push({type:2,index:++r});o.append(t[e],te())}}}else if(8===o.nodeType)if(o.data===Xt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Yt,t+1));)s.push({type:7,index:r}),t+=Yt.length-1}r++}}static createElement(t,e){const i=Qt.createElement("template");return i.innerHTML=t,i}}function ve(t,e,i=t,o){if(e===de)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=ee(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ve(t,r._$AS(t,e.values),r,o)),e}let me=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ve(this,t,e),ee(t)?t===ue||null==t||""===t?(this._$AH!==ue&&this._$AR(),this._$AH=ue):t!==this._$AH&&t!==de&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ie(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ue&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.$(Qt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=be.createElement(ge(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??Qt).importNode(e,!0);ye.currentNode=o;let r=ye.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new me(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Ne(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ye.nextNode(),n++)}return ye.currentNode=Qt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=pe.get(t.strings);return void 0===e&&pe.set(t.strings,e=new be(t)),e}T(e){ie(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(te()),this.k(te()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ue}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ve(this,t,e,0),n=!ee(t)||t!==this._$AH&&t!==de,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ve(this,o[i+a],e,a),s===de&&(s=this._$AH[a]),n||=!ee(s)||s!==this._$AH[a],s===ue?t=ue:t!==ue&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},we=class extends xe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ue?void 0:t}},Oe=class extends xe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ue)}},Se=class extends xe{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ve(this,t,e,0)??ue)===de)return;const i=this._$AH,o=t===ue&&i!==ue||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==ue&&(i===ue||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ne=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ve(this,t)}};const $e=Ht.litHtmlPolyfillSupport;$e?.(be,me),(Ht.litHtmlVersions??=[]).push("3.1.0");
85
85
  /**
86
86
  * @license
87
87
  * Copyright 2017 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
89
  */
90
- let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Re{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${ke(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Rt`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ie(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8")},Le={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for information components.",Ue.colorCyan30),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Re.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Re.extend("--ft-tabs-label-gap","",Ue.spacing1),Re.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-group-gap","",Ue.spacing1),Re.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Re.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ue.colorCyan50),Re.extend("--ft-chart-4-base","",Ue.colorCyan100),Re.extend("--ft-chart-5-light","",Ue.colorRed40),Re.extend("--ft-chart-5-base","",Ue.colorRed60),Re.extend("--ft-chart-6-light","",Ue.colorGreen40),Re.extend("--ft-chart-6-base","",Ue.colorGreen70),Re.extend("--ft-chart-7-light","",Ue.colorOrange70),Re.extend("--ft-chart-7-base","",Ue.colorOrange100),Re.extend("--ft-chart-8-light","",Ue.colorAvocado70),Re.extend("--ft-chart-8-base","",Ue.colorAvocado200),Re.extend("--ft-chart-9-light","",Ue.colorBrown50),Re.extend("--ft-chart-9-base","",Ue.colorBrown200),Re.extend("--ft-chart-10-light","",Ue.colorGray50),Re.extend("--ft-chart-10-base","",Ue.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Re.extend("--ft-chip-large-gap","",Ue.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Re.extend("--ft-chip-medium-gap","",Ue.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Re.extend("--ft-chip-small-gap","",Ue.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Ae.borderErrorPrimary),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Re.extend("--ft-notice-vertical-padding","",Ue.spacing1),Re.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Re.extend("--ft-notice-gap","",Ue.spacing2),Re.extend("--ft-notice-icon-size","",Ue.iconSize3),Re.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Ue.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Ue.spacing3),Re.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Ue.spacing3),Re.extend("--ft-notification-icon-size","",Ue.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Re.extend("--ft-notification-vertical-padding","",Ue.spacing4),Re.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Ae.borderErrorPrimary),Re.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ue.spacing2),Re.extend("--ft-notification-gap-trailing","",Ue.spacing8);const Te={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Re.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Re.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Re.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Re.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Re.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Re.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Re.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Re.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Re.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const We=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+We[0],e+"-"+We[1])),[]),Pe=Math.min,Me=Math.max,je=Math.round,ze=t=>({x:t,y:t}),Be={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Ze(t,e,i){return Me(t,Pe(e,i))}function He(t,e){return"function"==typeof t?t(e):t}function Ge(t){return t.split("-")[0]}function Ve(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Ye(t){return"y"===t?"height":"width"}function Xe(t){return["top","bottom"].includes(Ge(t))?"y":"x"}function Je(t){return qe(Xe(t))}function Qe(t){return t.replace(/left|right|bottom|top/g,(t=>Be[t]))}function ti(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ei(t,e,i){let{reference:o,floating:r}=t;const n=Xe(e),a=Je(e),s=Ye(a),l=Ge(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ve(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ii(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=He(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ti(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ti(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function oi(t,e,i){return(t?[...i.filter((e=>Ve(e)===t)),...i.filter((e=>Ve(e)!==t))]:i.filter((t=>Ge(t)===t))).filter((i=>!t||(Ve(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ke[t]))}(i)!==i)))}const ri=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Fe,autoAlignment:u=!0,...p}=He(t,e),y=void 0!==h||d===Fe?oi(h||null,u,d):d,g=await ii(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ve(t),r=Je(t),n=Ye(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Qe(a)),[a,Qe(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ge(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ve(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ve(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ni(t){return li(t)?(t.nodeName||"").toLowerCase():"#document"}function ai(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function si(t){var e;return null==(e=(li(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function li(t){return t instanceof Node||t instanceof ai(t).Node}function ci(t){return t instanceof Element||t instanceof ai(t).Element}function fi(t){return t instanceof HTMLElement||t instanceof ai(t).HTMLElement}function hi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ai(t).ShadowRoot)}function di(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=bi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function ui(t){return["table","td","th"].includes(ni(t))}function pi(t){const e=yi(),i=bi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function yi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(ni(t))}function bi(t){return ai(t).getComputedStyle(t)}function vi(t){return ci(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mi(t){if("html"===ni(t))return t;const e=t.assignedSlot||t.parentNode||hi(t)&&t.host||si(t);return hi(e)?e.host:e}function xi(t){const e=mi(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&di(e)?e:xi(e)}function wi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=xi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ai(r);return n?e.concat(a,a.visualViewport||[],di(r)?r:[],a.frameElement&&i?wi(a.frameElement):[]):e.concat(r,wi(r,[],i))}function Oi(t){const e=bi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=fi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=je(i)!==n||je(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Si(t){return ci(t)?t:t.contextElement}function $i(t){const e=Si(t);if(!fi(e))return ze(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Oi(e);let a=(n?je(i.width):i.width)/o,s=(n?je(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ni=ze(0);function Ci(t){const e=ai(t);return yi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ni}function Ei(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Si(t);let a=ze(1);e&&(o?ci(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ai(t))&&e}(n,i,o)?Ci(n):ze(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=ai(n),e=o&&ci(o)?ai(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=bi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=ai(i).frameElement}}return ti({width:f,height:h,x:l,y:c})}function ki(t){return Ei(si(t)).left+vi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ai(t),o=si(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=si(t),i=vi(t),o=t.ownerDocument.body,r=Me(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Me(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ki(t);const s=-i.scrollTop;return"rtl"===bi(o).direction&&(a+=Me(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(si(t));else if(ci(e))o=function(t,e){const i=Ei(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=fi(t)?$i(t):ze(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ci(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ti(o)}function Ii(t,e){const i=mi(t);return!(i===e||!ci(i)||gi(i))&&("fixed"===bi(i).position||Ii(i,e))}function Ui(t,e,i){const o=fi(e),r=si(e),n="fixed"===i,a=Ei(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=ze(0);if(o||!o&&!n)if(("body"!==ni(e)||di(r))&&(s=vi(e)),o){const t=Ei(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ki(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Li(t,e){return fi(t)&&"fixed"!==bi(t).position?e?e(t):t.offsetParent:null}function Ai(t,e){const i=ai(t);if(!fi(t))return i;let o=Li(t,e);for(;o&&ui(o)&&"static"===bi(o).position;)o=Li(o,e);return o&&("html"===ni(o)||"body"===ni(o)&&"static"===bi(o).position&&!pi(o))?i:o||function(t){let e=mi(t);for(;fi(e)&&!gi(e);){if(pi(e))return e;e=mi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=fi(i),n=si(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=ze(1);const l=ze(0);if((r||!r&&"fixed"!==o)&&(("body"!==ni(i)||di(n))&&(a=vi(i)),fi(i))){const t=Ei(i);s=$i(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:si,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=wi(t,[],!1).filter((t=>ci(t)&&"body"!==ni(t))),r=null;const n="fixed"===bi(t).position;let a=n?mi(t):t;for(;ci(a)&&!gi(a);){const e=bi(a),i=pi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||di(a)&&!i&&Ii(t,a))?o=o.filter((t=>t!==a)):r=e,a=mi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=Ri(e,i,r);return t.top=Me(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=Me(o.left,t.left),t}),Ri(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ai,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ai,n=this.getDimensions;return{reference:Ui(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Oi(t)},getScale:$i,isElement:ci,isRTL:function(t){return"rtl"===bi(t).direction}},Ti=(t,e,i)=>{const o=new Map,r={platform:_i,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ei(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ei(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Wi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Wi(t);e;e=Wi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Wi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
90
+ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Ie{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=It`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>It`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=It`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>It`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),o=It`var(${ke(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>It`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Re(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Ie.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ie.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ie.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ie.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ie.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ie.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ie.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ie.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ie.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ie.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ie.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ie.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ie.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ie.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ie.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ie.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ie.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ie.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ie.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ie.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ie.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ie.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ie.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ie.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ie.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ie.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ie.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ie.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ie.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ie.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ie.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ie.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ie.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ie.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ie.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ie.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ie.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ie.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ie.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ie.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ie.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ie.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ie.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ie.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ie.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ie.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ie.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ie.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ie.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ie.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ie.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ie.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ie.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ie.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ie.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ie.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ie.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ie.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ie.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ie.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ie.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ie.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ie.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ie.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ie.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ie.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ie.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ie.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ie.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ie.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ie.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ie.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ie.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ie.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ie.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ie.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ie.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ie.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ie.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ie.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ie.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ie.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ie.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ie.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ie.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ie.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ie.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ie.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ie.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ie.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ie.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ie.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ie.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ie.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ie.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ie.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ie.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ie.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ie.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ie.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ie.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ie.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ie.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ie.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ie.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ie.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ie.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ie.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ie.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ie.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ie.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ie.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ie.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ie.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ie.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ie.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ie.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ie.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ie.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ie.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ie.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ie.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ie.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ie.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ie.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ie.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ie.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ie.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ie.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ie.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ie.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ie.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ie.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ie.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ie.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ie.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ie.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ie.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ie.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ie.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ie.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ie.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ie.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ie.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ie.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ie.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ie.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ie.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ie.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ie.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ie.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ie.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ie.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ie.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ie.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ie.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ie.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ie.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ie.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ie.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ie.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ie.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ie.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ie.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ie.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ie.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ie.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ie.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ie.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ie.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ie.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ie.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ie.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ie.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ie.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ie.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ie.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ie.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ie.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ie.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ie.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ie.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ie.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ie.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ie.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ie.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Ie.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:Ie.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:Ie.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:Ie.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:Ie.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:Ie.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:Ie.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:Ie.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:Ie.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Le={display:{fontFamily:Ie.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ie.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ie.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Ie.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ie.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Ie.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ie.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Ie.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ie.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ie.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ie.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ie.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ie.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ie.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ie.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ie.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ie.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ie.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ie.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ie.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ie.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ie.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ie.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ie.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ie.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ie.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ie.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ie.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ie.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Ie.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Ie.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Ie.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Ie.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Ie.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Ie.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Ie.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Ie.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Ie.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Ie.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Ie.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Ie.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Ie.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Ie.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Ie.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Ie.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Ie.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Ie.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Ie.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Ie.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Ie.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Ie.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessPrimary:Ie.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentSuccessIconOnly:Ie.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentGlobalPrimary:Ie.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Ie.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Ie.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Ie.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Ie.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Ie.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Ie.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Ue.colorOrange300),borderWarningSubtle:Ie.extend("--ft-border-warning-subtle","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Ie.extend("--ft-border-success-primary","Used as border for success buttons.",Ue.colorGreen200),borderSuccessSubtle:Ie.extend("--ft-border-success-subtle","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Ie.extend("--ft-border-error-primary","Used as border for text fields in error states.",Ue.colorRed0),borderErrorSubtle:Ie.extend("--ft-border-error-subtle","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Ie.extend("--ft-border-info-primary","Used as border for buttons in info color.",Ue.colorCyan200),borderInfoSubtle:Ie.extend("--ft-border-info-subtle","Used as border for information components.",Ue.colorCyan30),borderGlobalPrimary:Ie.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderGlobalSubtle:Ie.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderInputPrimary:Ie.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},Te={largeHeight:Ie.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ie.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Ie.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Ie.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Ie.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Ie.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ie.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ie.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ie.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ie.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ie.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Ie.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Ie.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Ie.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Ie.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ie.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ie.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ie.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ie.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Ie.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Ie.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Ie.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Ie.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Ie.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Ie.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Ie.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Ie.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Ie.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ie.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Ie.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Ie.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Ie.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Ie.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Ie.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Ie.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Ie.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ie.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Ie.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Ie.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Ie.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Ie.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Ie.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Ie.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Ie.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Ie.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ie.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Ie.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Ie.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Ie.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Ie.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Ie.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Ie.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Ie.extend("--ft-floating-menu-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-floating-menu-vertical-padding","",Ue.spacing4),Ie.extend("--ft-floating-menu-off-icon-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-floating-menu-off-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-floating-menu-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-on-icon-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-gap","",Ue.spacing3),Ie.extend("--ft-floating-menu-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Ie.extend("--ft-floating-menu-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-floating-menu-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-floating-menu-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-floating-menu-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-floating-menu-icon-size","",Ue.iconSize3),Ie.extend("--ft-floating-menu-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Ie.extend("--ft-tabs-label-gap","",Ue.spacing1),Ie.extend("--ft-tabs-icon-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-tabs-icon-vertical-padding","",Ue.spacing4),Ie.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-tabs-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-tabs-off-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-tabs-off-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-tabs-off-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-tabs-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-tabs-off-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-tabs-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-tabs-on-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-tabs-on-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-tabs-on-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-tabs-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-tabs-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-tabs-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-collapsible-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-collapsible-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-collapsible-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-collapsible-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-collapsible-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-collapsible-vertical-padding","",Ue.spacing3),Ie.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Ie.extend("--ft-collapsible-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-collapsible-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-collapsible-state-layer-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-collapsible-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-collapsible-border-color","",Ae.borderGlobalSubtle),Ie.extend("--ft-collapsible-icon-size","",Ue.iconSize3),Ie.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Ie.extend("--ft-switch-group-gap","",Ue.spacing1),Ie.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Ie.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Ie.create("--ft-switch-group-border-radius","","SIZE","6px"),Ie.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Ie.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Ie.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-switch-on-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-switch-on-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-switch-on-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-switch-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-switch-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-switch-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Ie.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Ie.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Ie.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Ie.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Ie.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Ie.extend("--ft-chart-4-light","",Ue.colorCyan50),Ie.extend("--ft-chart-4-base","",Ue.colorCyan100),Ie.extend("--ft-chart-5-light","",Ue.colorRed40),Ie.extend("--ft-chart-5-base","",Ue.colorRed60),Ie.extend("--ft-chart-6-light","",Ue.colorGreen40),Ie.extend("--ft-chart-6-base","",Ue.colorGreen70),Ie.extend("--ft-chart-7-light","",Ue.colorOrange70),Ie.extend("--ft-chart-7-base","",Ue.colorOrange100),Ie.extend("--ft-chart-8-light","",Ue.colorAvocado70),Ie.extend("--ft-chart-8-base","",Ue.colorAvocado200),Ie.extend("--ft-chart-9-light","",Ue.colorBrown50),Ie.extend("--ft-chart-9-base","",Ue.colorBrown200),Ie.extend("--ft-chart-10-light","",Ue.colorGray50),Ie.extend("--ft-chart-10-base","",Ue.colorGray80),Ie.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Ie.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Ie.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Ie.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Ie.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Ie.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Ie.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Ie.extend("--ft-chip-large-gap","",Ue.spacing1),Ie.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-large-border-width","","SIZE","1px"),Ie.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Ie.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Ie.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Ie.extend("--ft-chip-medium-gap","",Ue.spacing1),Ie.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-medium-border-width","","SIZE","1px"),Ie.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Ie.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Ie.extend("--ft-chip-small-gap","",Ue.spacing1),Ie.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-small-border-width","","SIZE","1px"),Ie.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Ie.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Ie.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-chip-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Ie.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Ie.extend("--ft-chip-success-border-color","",Ae.borderSuccessSubtle),Ie.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-chip-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Ie.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Ie.extend("--ft-chip-error-border-color","",Ae.borderErrorSubtle),Ie.create("--ft-notice-border-width","","SIZE","1px"),Ie.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-notice-vertical-padding","",Ue.spacing1),Ie.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-notice-gap","",Ue.spacing2),Ie.extend("--ft-notice-icon-size","",Ue.iconSize3),Ie.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-notice-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-notice-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Ie.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Ie.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Ie.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ie.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-checkbox-gap","",Ue.spacing3),Ie.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-toggle-gap","",Ue.spacing3),Ie.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Ie.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Ie.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ie.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-radio-gap","",Ue.spacing3),Ie.extend("--ft-notification-icon-size","",Ue.iconSize4),Ie.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-notification-vertical-padding","",Ue.spacing4),Ie.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-notification-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Ie.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Ie.extend("--ft-notification-success-border-color","",Ae.borderSuccessSubtle),Ie.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-notification-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Ie.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Ie.extend("--ft-notification-error-border-color","",Ae.borderErrorSubtle),Ie.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-notification-border-width","","SIZE","1px"),Ie.extend("--ft-notification-gap-leading","",Ue.spacing2),Ie.extend("--ft-notification-gap-trailing","",Ue.spacing8),Ie.extend("--ft-tooltip-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-tooltip-vertical-padding","",Ue.spacing2),Ie.extend("--ft-tooltip-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tooltip-label","",Ae.contentGlobalOnColor),Ie.extend("--ft-tooltip-background","",Ae.contentGlobalPrimary),Ie.extend("--ft-tooltip-background-opacity","",Ue.opacity80),Ie.extend("--ft-tooltip-shadow","",Ue.shadowElevation03);const _e={colorPrimary:Ie.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ie.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ie.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ie.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ie.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ie.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ie.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ie.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ie.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ie.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ie.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ie.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ie.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ie.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ie.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ie.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ie.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ie.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ie.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ie.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ie.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ie.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ie.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ie.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ie.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ie.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ie.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ie.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ie.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ie.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ie.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ie.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ie.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ie.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ie.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ie.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ie.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ie.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ie.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ie.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ie.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ie.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ie.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ie.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ie.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ie.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ie.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ie.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ie.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ie.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ie.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ie.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ie.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ie.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ie.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ie.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ie.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ie.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ie.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ie.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ie.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ie.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class We extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const De=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+De[0],e+"-"+De[1])),[]),Me=Math.min,Pe=Math.max,ze=Math.round,je=t=>({x:t,y:t}),Be={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Ze(t,e,i){return Pe(t,Me(e,i))}function He(t,e){return"function"==typeof t?t(e):t}function Ge(t){return t.split("-")[0]}function Ve(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Ye(t){return"y"===t?"height":"width"}function Xe(t){return["top","bottom"].includes(Ge(t))?"y":"x"}function Je(t){return qe(Xe(t))}function Qe(t){return t.replace(/left|right|bottom|top/g,(t=>Be[t]))}function ti(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ei(t,e,i){let{reference:o,floating:r}=t;const n=Xe(e),a=Je(e),s=Ye(a),l=Ge(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ve(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ii(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=He(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ti(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ti(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function oi(t,e,i){return(t?[...i.filter((e=>Ve(e)===t)),...i.filter((e=>Ve(e)!==t))]:i.filter((t=>Ge(t)===t))).filter((i=>!t||(Ve(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ke[t]))}(i)!==i)))}const ri=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Fe,autoAlignment:u=!0,...p}=He(t,e),y=void 0!==h||d===Fe?oi(h||null,u,d):d,g=await ii(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ve(t),r=Je(t),n=Ye(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Qe(a)),[a,Qe(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ge(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ve(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Ve(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ni(t){return li(t)?(t.nodeName||"").toLowerCase():"#document"}function ai(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function si(t){var e;return null==(e=(li(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function li(t){return t instanceof Node||t instanceof ai(t).Node}function ci(t){return t instanceof Element||t instanceof ai(t).Element}function fi(t){return t instanceof HTMLElement||t instanceof ai(t).HTMLElement}function hi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ai(t).ShadowRoot)}function di(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=bi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function ui(t){return["table","td","th"].includes(ni(t))}function pi(t){const e=yi(),i=bi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function yi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(ni(t))}function bi(t){return ai(t).getComputedStyle(t)}function vi(t){return ci(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mi(t){if("html"===ni(t))return t;const e=t.assignedSlot||t.parentNode||hi(t)&&t.host||si(t);return hi(e)?e.host:e}function xi(t){const e=mi(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&di(e)?e:xi(e)}function wi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=xi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ai(r);return n?e.concat(a,a.visualViewport||[],di(r)?r:[],a.frameElement&&i?wi(a.frameElement):[]):e.concat(r,wi(r,[],i))}function Oi(t){const e=bi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=fi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ze(i)!==n||ze(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Si(t){return ci(t)?t:t.contextElement}function Ni(t){const e=Si(t);if(!fi(e))return je(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Oi(e);let a=(n?ze(i.width):i.width)/o,s=(n?ze(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $i=je(0);function Ci(t){const e=ai(t);return yi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$i}function Ei(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Si(t);let a=je(1);e&&(o?ci(o)&&(a=Ni(o)):a=Ni(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ai(t))&&e}(n,i,o)?Ci(n):je(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=ai(n),e=o&&ci(o)?ai(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Ni(i),e=i.getBoundingClientRect(),o=bi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=ai(i).frameElement}}return ti({width:f,height:h,x:l,y:c})}function ki(t){return Ei(si(t)).left+vi(t).scrollLeft}function Ii(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ai(t),o=si(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=si(t),i=vi(t),o=t.ownerDocument.body,r=Pe(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Pe(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ki(t);const s=-i.scrollTop;return"rtl"===bi(o).direction&&(a+=Pe(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(si(t));else if(ci(e))o=function(t,e){const i=Ei(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=fi(t)?Ni(t):je(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ci(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ti(o)}function Ri(t,e){const i=mi(t);return!(i===e||!ci(i)||gi(i))&&("fixed"===bi(i).position||Ri(i,e))}function Ui(t,e,i){const o=fi(e),r=si(e),n="fixed"===i,a=Ei(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=je(0);if(o||!o&&!n)if(("body"!==ni(e)||di(r))&&(s=vi(e)),o){const t=Ei(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ki(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Li(t,e){return fi(t)&&"fixed"!==bi(t).position?e?e(t):t.offsetParent:null}function Ai(t,e){const i=ai(t);if(!fi(t))return i;let o=Li(t,e);for(;o&&ui(o)&&"static"===bi(o).position;)o=Li(o,e);return o&&("html"===ni(o)||"body"===ni(o)&&"static"===bi(o).position&&!pi(o))?i:o||function(t){let e=mi(t);for(;fi(e)&&!gi(e);){if(pi(e))return e;e=mi(e)}return null}(t)||i}const Ti={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=fi(i),n=si(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=je(1);const l=je(0);if((r||!r&&"fixed"!==o)&&(("body"!==ni(i)||di(n))&&(a=vi(i)),fi(i))){const t=Ei(i);s=Ni(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:si,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=wi(t,[],!1).filter((t=>ci(t)&&"body"!==ni(t))),r=null;const n="fixed"===bi(t).position;let a=n?mi(t):t;for(;ci(a)&&!gi(a);){const e=bi(a),i=pi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||di(a)&&!i&&Ri(t,a))?o=o.filter((t=>t!==a)):r=e,a=mi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=Ii(e,i,r);return t.top=Pe(o.top,t.top),t.right=Me(o.right,t.right),t.bottom=Me(o.bottom,t.bottom),t.left=Pe(o.left,t.left),t}),Ii(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ai,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ai,n=this.getDimensions;return{reference:Ui(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Oi(t)},getScale:Ni,isElement:ci,isRTL:function(t){return"rtl"===bi(t).direction}},_i=(t,e,i)=>{const o=new Map,r={platform:Ti,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ei(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ei(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Wi(t){return function(t){for(let e=t;e;e=Di(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Di(t);e;e=Di(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Di(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
91
91
  /**
92
92
  * @license
93
93
  * Copyright 2019 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
95
  */
96
- const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Mi extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Fi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var ji,zi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Bi=Symbol("constructorPrototype"),Ki=Symbol("constructorName"),Zi=Symbol("exportpartsDebouncer");class Hi extends Mi{constructor(){super(),this[ji]=new r(5),this[Ki]=this.constructor.name,this[Bi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ki]&&Object.setPrototypeOf(this,this[Bi])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Zi].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ji=Zi,zi([k()],Hi.prototype,"exportpartsPrefix",void 0),zi([F([])],Hi.prototype,"exportpartsPrefixes",void 0),zi([k()],Hi.prototype,"customStylesheet",void 0);const Gi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
96
+ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Pi extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Mi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Fi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var zi,ji=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Bi=Symbol("constructorPrototype"),Ki=Symbol("constructorName"),Zi=Symbol("exportpartsDebouncer");class Hi extends Pi{constructor(){super(),this[zi]=new n(5),this[Ki]=this.constructor.name,this[Bi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ki]&&Object.setPrototypeOf(this,this[Bi])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Zi].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}zi=Zi,ji([I()],Hi.prototype,"exportpartsPrefix",void 0),ji([F([])],Hi.prototype,"exportpartsPrefixes",void 0),ji([I()],Hi.prototype,"customStylesheet",void 0);const Gi=Ie.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");It`
97
97
  .highlight-html-match {
98
98
  background: ${Gi};
99
99
  }
100
- `;const Vi=Rt`
100
+ `;const Vi=It`
101
101
  .ft-no-text-select {
102
102
  -webkit-touch-callout: none;
103
103
  -webkit-user-select: none;
@@ -106,7 +106,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
106
106
  -ms-user-select: none;
107
107
  user-select: none;
108
108
  }
109
- `;Rt`
109
+ `;It`
110
110
  .ft-word-wrap {
111
111
  white-space: normal;
112
112
  word-wrap: break-word;
@@ -118,7 +118,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
118
118
  -webkit-hyphens: auto;
119
119
  hyphens: auto
120
120
  }
121
- `;const qi=Rt`
121
+ `;const qi=It`
122
122
  .ft-safari-ellipsis-fix {
123
123
  margin-right: 0;
124
124
 
@@ -129,7 +129,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
129
129
  display: inline-block;
130
130
  width: 0;
131
131
  }
132
- `;class Yi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Xi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};k(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ji{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 Qi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,io;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class ao extends Hi{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[no].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[no].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[no].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Qi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[no].delete(e)}setupStore(t,e){this[no].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[no].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qi(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lo(t){return!!t&&!!t[qo]}function co(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Yo}(t)||Array.isArray(t)||!!t[Vo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vo])||go(t)||bo(t))}function fo(t,e,i){void 0===i&&(i=!1),0===ho(t)?(i?Object.keys:Xo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ho(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:go(t)?2:bo(t)?3:0}function uo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,i){var o=ho(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function go(t){return Ko&&t instanceof Map}function bo(t){return Zo&&t instanceof Set}function vo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var i=Xo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),Oo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=wo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function wo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||so(18,t),e}function $o(){return zo}function No(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===zo&&(zo=t.l)}function ko(t){return zo={p:[],l:zo,h:t,m:!0,_:0}}function Ro(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function Io(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||So("ES5").S(e,t,o),o?(i[qo].P&&(Co(e),so(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(i[qo].t,t,e.u,e.s)):t=Uo(e,i,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,i){if(Oo(e))return e;var o=e[qo];if(!o)return fo(e,(function(r,n){return Lo(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ao(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=mo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),fo(n,(function(e,n){return Lo(t,o,r,e,n,i,a)})),Ao(t,r,!1),i&&t.u&&So("Patches").N(o,i,t.u,t.s)}return o.o}function Lo(t,e,i,o,r,n,a){if(lo(r)){var s=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,o)?n.concat(o):void 0);if(po(i,o,s),!lo(s))return;t.m=!1}else a&&i.add(r);if(co(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&xo(e,i)}function _o(t,e){var i=t[qo];return(i?vo(i):t)[e]}function To(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Do(t){t.P||(t.P=!0,t.l&&Do(t.l))}function Wo(t){t.o||(t.o=mo(t.t))}function Fo(t,e,i){var o=go(e)?So("MapSet").F(e,i):bo(e)?So("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:$o(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=tr;i&&(r=[o],n=er);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):So("ES5").J(e,i);return(i?i.A:$o()).p.push(o),o}function Po(t){return lo(t)||so(22,t),function t(e){if(!co(e))return e;var i,o=e[qo],r=ho(e);if(o){if(!o.P&&(o.i<4||!So("ES5").K(o)))return o.t;o.I=!0,i=Mo(e,r),o.I=!1}else i=Mo(e,r);return fo(i,(function(e,r){o&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(o.t,e)===r||po(i,e,t(r))})),3===r?new Set(i):i}(t)}function Mo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}to=ro,eo=no,io=oo,ao.reduxProperties=new Map,ao.reduxReactiveProperties=new Set,ao.reduxEventListeners=new Map;var jo,zo,Bo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Bo?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),Vo=Bo?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Bo?Symbol.for("immer-state"):"__$immer_state",Yo=""+Object.prototype.constructor,Xo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jo=Object.getOwnPropertyDescriptors||function(t){var e={};return Xo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Qo={},tr={get:function(t,e){if(e===qo)return t;var i=vo(t);if(!uo(i,e))return function(t,e,i){var o,r=To(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!co(o)?o:o===_o(t.t,e)?(Wo(t),t.o[e]=Fo(t.A.h,o,t)):o},has:function(t,e){return e in vo(t)},ownKeys:function(t){return Reflect.ownKeys(vo(t))},set:function(t,e,i){var o=To(vo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=_o(vo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(yo(i,r)&&(void 0!==i||uo(t.t,e)))return!0;Wo(t),Do(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==_o(t.t,e)||e in t.t?(t.R[e]=!1,Wo(t),Do(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=vo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},er={};fo(tr,(function(t,e){er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),er.deleteProperty=function(t,e){return er.set.call(this,t,e,void 0)},er.set=function(t,e,i){return tr.set.call(this,t[0],e,i,t[0])};var ir=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&so(6),void 0!==o&&"function"!=typeof o&&so(7),co(t)){var s=ko(e),l=Fo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return No(s,o),Io(t,s)}),(function(t){throw Co(s),t})):(No(s,o),Io(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Go&&(a=void 0),e.D&&xo(a,!0),o){var f=[],h=[];So("Patches").M(t,a,f,h),o(f,h)}return a}so(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||so(8),lo(t)&&(t=Po(t));var e=ko(this),i=Fo(this,t,void 0);return i[qo].C=!0,Eo(e),i},e.finishDraft=function(t,e){var i=(t&&t[qo]).A;return No(i,e),Io(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&so(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),or=new ir,rr=or.produce;function nr(t){return nr="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},nr(t)}function ar(t){var e=function(t,e){if("object"!==nr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==nr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nr(e)?e:String(e)}function sr(t,e,i){return(e=ar(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function lr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function cr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(i),!0).forEach((function(e){sr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function fr(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. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var hr="function"==typeof Symbol&&Symbol.observable||"@@observable",dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function pr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(fr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(fr(1));return i(pr)(t,e)}if("function"!=typeof t)throw new Error(fr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(fr(3));return n}function h(t){if("function"!=typeof t)throw new Error(fr(4));if(l)throw new Error(fr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(fr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(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(fr(7));if(void 0===t.type)throw new Error(fr(8));if(l)throw new Error(fr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ur.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fr(10));r=t,d({type:ur.REPLACE})}})[hr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[hr]=function(){return this},t},o}function yr(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ur.INIT}))throw new Error(fr(12));if(void 0===i(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(fr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function gr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 br(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(fr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=gr.apply(void 0,n)(i.dispatch),cr(cr({},i),{},{dispatch:o})}}}function vr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var mr=vr();mr.withExtraArgument=vr;var xr,wr=mr,Or=(xr=function(t,e){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},xr(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 i(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Sr=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},$r=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Nr=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Ur=function(t,e,i){return e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Lr=function(t,e){for(var i in e||(e={}))Rr.call(e,i)&&Ur(t,i,e[i]);if(kr)for(var o=0,r=kr(e);o<r.length;o++){i=r[o];Ir.call(e,i)&&Ur(t,i,e[i])}return t},Ar=function(t,e){return Cr(t,Er(e))},_r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?gr:gr.apply(null,arguments)};var Tr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array),Dr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function Wr(t){return co(t)?rr(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Tr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(wr.withExtraArgument(i.extraArgument)):o.push(wr));return o}(t)}}function Pr(t){var e,i=Fr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=yr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=br.apply(void 0,p),g=gr;c&&(g=_r(Lr({trace:!1},"object"==typeof c&&c)));var b=new Dr(y),v=b;return Array.isArray(u)?v=$r([y],u):"function"==typeof u&&(v=u(b)),pr(e,h,g.apply(void 0,v))}function Mr(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Lr(Lr({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function jr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function zr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Wr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Lr(Lr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Wr(t())};else{var c=Wr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=$r([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(lo(t))return void 0===(o=i(t,e))?t:o;if(co(t))return rr(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Mr(c,o):Mr(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Br=["name","message","stack","code"],Kr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Br;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Mr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Ar(Lr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Mr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Ar(Lr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Mr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Hr)(t||"Rejected"),meta:Ar(Lr({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,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,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Sr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Kr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof Kr)throw e;return e instanceof Zr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Kr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Gr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Vr="listenerMiddleware";Mr(Vr+"/add"),Mr(Vr+"/removeAll"),Mr(Vr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[qo];return tr.get(e,t)},set:function(e){var i=this[qo];tr.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][qo];if(!r.P)switch(r.i){case 5:o(r)&&Do(r);break;case 4:i(r)&&Do(r)}}}function i(t){for(var e=t.t,i=t.k,o=Xo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==qo){var a=e[n];if(void 0===a&&!uo(e,n))return!0;var s=i[n],l=s&&s[qo];if(l?l.t!==a:!yo(s,a))return!0}}var c=!!e[qo];return o.length!==Xo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Jo(i);delete n[qo];for(var a=Xo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:$o(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,i,r){r?lo(i)&&i[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[qo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?a[e]||t(n[e]):(a[e]=!0,Do(i)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(a[t]=!1,Do(i))}));else if(5===s){if(o(i)&&(Do(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Qi(r))return r;if(null==o)return;const n=zr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ji,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yr=Symbol("elementInternals");function Xr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Yr].form}constructor(...t){super(t),this[Yr]=this.attachInternals(),this[Yr].role=e}setFormValue(t){this[Yr].setFormValue(t)}}}var Jr,Qr,tn;const en=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(tn=null===(Qr=null===(Jr=window.safari)||void 0===Jr?void 0:Jr.pushNotification)||void 0===Qr?void 0:Qr.toString())&&void 0!==tn?tn:"");var on;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(on||(on={}));var rn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class nn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const an=Symbol("registerInterval");class sn extends(function(t){var e;class i 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[an]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[an]):this.dispatchEvent(new nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=an,rn([R()],i.prototype,"stateManager",void 0),i}(ao)){}const ln=Re.extend("--ft-ripple-color","",Te.colorContent),cn={color:ln,backgroundColor:Re.extend("--ft-ripple-background-color","",ln),opacityContentOnSurfacePressed:Re.external(Te.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(Te.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(Te.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(Te.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},fn=Re.extend("--ft-ripple-color","",Te.colorPrimary),hn=fn,dn=Re.extend("--ft-ripple-background-color","",fn),un=Re.extend("--ft-ripple-color","",Te.colorSecondary),pn=un,yn=Re.extend("--ft-ripple-background-color","",un),gn=Rt`
132
+ `;class Yi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Xi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ji{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 Qi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,io;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class ao extends Hi{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[no].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[no].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[no].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Qi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[no].delete(e)}setupStore(t,e){this[no].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[no].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qi(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lo(t){return!!t&&!!t[qo]}function co(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Yo}(t)||Array.isArray(t)||!!t[Vo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vo])||go(t)||bo(t))}function fo(t,e,i){void 0===i&&(i=!1),0===ho(t)?(i?Object.keys:Xo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ho(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:go(t)?2:bo(t)?3:0}function uo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,i){var o=ho(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function go(t){return Ko&&t instanceof Map}function bo(t){return Zo&&t instanceof Set}function vo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var i=Xo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),Oo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=wo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function wo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||so(18,t),e}function No(){return jo}function $o(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Io),t.p=null}function Eo(t){t===jo&&(jo=t.l)}function ko(t){return jo={p:[],l:jo,h:t,m:!0,_:0}}function Io(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||So("ES5").S(e,t,o),o?(i[qo].P&&(Co(e),so(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(i[qo].t,t,e.u,e.s)):t=Uo(e,i,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,i){if(Oo(e))return e;var o=e[qo];if(!o)return fo(e,(function(r,n){return Lo(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ao(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=mo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),fo(n,(function(e,n){return Lo(t,o,r,e,n,i,a)})),Ao(t,r,!1),i&&t.u&&So("Patches").N(o,i,t.u,t.s)}return o.o}function Lo(t,e,i,o,r,n,a){if(lo(r)){var s=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,o)?n.concat(o):void 0);if(po(i,o,s),!lo(s))return;t.m=!1}else a&&i.add(r);if(co(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&xo(e,i)}function To(t,e){var i=t[qo];return(i?vo(i):t)[e]}function _o(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function Do(t){t.o||(t.o=mo(t.t))}function Fo(t,e,i){var o=go(e)?So("MapSet").F(e,i):bo(e)?So("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:No(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=tr;i&&(r=[o],n=er);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):So("ES5").J(e,i);return(i?i.A:No()).p.push(o),o}function Mo(t){return lo(t)||so(22,t),function t(e){if(!co(e))return e;var i,o=e[qo],r=ho(e);if(o){if(!o.P&&(o.i<4||!So("ES5").K(o)))return o.t;o.I=!0,i=Po(e,r),o.I=!1}else i=Po(e,r);return fo(i,(function(e,r){o&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(o.t,e)===r||po(i,e,t(r))})),3===r?new Set(i):i}(t)}function Po(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}to=ro,eo=no,io=oo,ao.reduxProperties=new Map,ao.reduxReactiveProperties=new Set,ao.reduxEventListeners=new Map;var zo,jo,Bo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Bo?Symbol.for("immer-nothing"):((zo={})["immer-nothing"]=!0,zo),Vo=Bo?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Bo?Symbol.for("immer-state"):"__$immer_state",Yo=""+Object.prototype.constructor,Xo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jo=Object.getOwnPropertyDescriptors||function(t){var e={};return Xo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Qo={},tr={get:function(t,e){if(e===qo)return t;var i=vo(t);if(!uo(i,e))return function(t,e,i){var o,r=_o(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!co(o)?o:o===To(t.t,e)?(Do(t),t.o[e]=Fo(t.A.h,o,t)):o},has:function(t,e){return e in vo(t)},ownKeys:function(t){return Reflect.ownKeys(vo(t))},set:function(t,e,i){var o=_o(vo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=To(vo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(yo(i,r)&&(void 0!==i||uo(t.t,e)))return!0;Do(t),Wo(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==To(t.t,e)||e in t.t?(t.R[e]=!1,Do(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=vo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},er={};fo(tr,(function(t,e){er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),er.deleteProperty=function(t,e){return er.set.call(this,t,e,void 0)},er.set=function(t,e,i){return tr.set.call(this,t[0],e,i,t[0])};var ir=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&so(6),void 0!==o&&"function"!=typeof o&&so(7),co(t)){var s=ko(e),l=Fo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return $o(s,o),Ro(t,s)}),(function(t){throw Co(s),t})):($o(s,o),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Go&&(a=void 0),e.D&&xo(a,!0),o){var f=[],h=[];So("Patches").M(t,a,f,h),o(f,h)}return a}so(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||so(8),lo(t)&&(t=Mo(t));var e=ko(this),i=Fo(this,t,void 0);return i[qo].C=!0,Eo(e),i},e.finishDraft=function(t,e){var i=(t&&t[qo]).A;return $o(i,e),Ro(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&so(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),or=new ir,rr=or.produce;function nr(t){return nr="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},nr(t)}function ar(t){var e=function(t,e){if("object"!==nr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==nr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nr(e)?e:String(e)}function sr(t,e,i){return(e=ar(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function lr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function cr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(i),!0).forEach((function(e){sr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function fr(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. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var hr="function"==typeof Symbol&&Symbol.observable||"@@observable",dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function pr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(fr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(fr(1));return i(pr)(t,e)}if("function"!=typeof t)throw new Error(fr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(fr(3));return n}function h(t){if("function"!=typeof t)throw new Error(fr(4));if(l)throw new Error(fr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(fr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(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(fr(7));if(void 0===t.type)throw new Error(fr(8));if(l)throw new Error(fr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ur.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fr(10));r=t,d({type:ur.REPLACE})}})[hr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[hr]=function(){return this},t},o}function yr(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ur.INIT}))throw new Error(fr(12));if(void 0===i(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(fr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function gr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 br(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(fr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=gr.apply(void 0,n)(i.dispatch),cr(cr({},i),{},{dispatch:o})}}}function vr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var mr=vr();mr.withExtraArgument=vr;var xr,wr=mr,Or=(xr=function(t,e){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},xr(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 i(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Sr=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Nr=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},$r=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Ur=function(t,e,i){return e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Lr=function(t,e){for(var i in e||(e={}))Ir.call(e,i)&&Ur(t,i,e[i]);if(kr)for(var o=0,r=kr(e);o<r.length;o++){i=r[o];Rr.call(e,i)&&Ur(t,i,e[i])}return t},Ar=function(t,e){return Cr(t,Er(e))},Tr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?gr:gr.apply(null,arguments)};var _r=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],t.concat(this))))},e}(Array);function Dr(t){return co(t)?rr(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new _r;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(wr.withExtraArgument(i.extraArgument)):o.push(wr));return o}(t)}}function Mr(t){var e,i=Fr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;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 i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(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=yr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=br.apply(void 0,p),g=gr;c&&(g=Tr(Lr({trace:!1},"object"==typeof c&&c)));var b=new Wr(y),v=b;return Array.isArray(u)?v=Nr([y],u):"function"==typeof u&&(v=u(b)),pr(e,h,g.apply(void 0,v))}function Pr(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Lr(Lr({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function zr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function jr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Dr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?zr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Lr(Lr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?zr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Dr(t())};else{var c=Dr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Nr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(lo(t))return void 0===(o=i(t,e))?t:o;if(co(t))return rr(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Pr(c,o):Pr(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Br=["name","message","stack","code"],Kr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Br;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Pr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Ar(Lr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Pr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Ar(Lr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Pr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Hr)(t||"Rejected"),meta:Ar(Lr({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,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,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Sr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Kr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof Kr)throw e;return e instanceof Zr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Kr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Gr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Vr="listenerMiddleware";Pr(Vr+"/add"),Pr(Vr+"/removeAll"),Pr(Vr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[qo];return tr.get(e,t)},set:function(e){var i=this[qo];tr.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][qo];if(!r.P)switch(r.i){case 5:o(r)&&Wo(r);break;case 4:i(r)&&Wo(r)}}}function i(t){for(var e=t.t,i=t.k,o=Xo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==qo){var a=e[n];if(void 0===a&&!uo(e,n))return!0;var s=i[n],l=s&&s[qo];if(l?l.t!==a:!yo(s,a))return!0}}var c=!!e[qo];return o.length!==Xo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Jo(i);delete n[qo];for(var a=Xo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:No(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,i,r){r?lo(i)&&i[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[qo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?a[e]||t(n[e]):(a[e]=!0,Wo(i)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(a[t]=!1,Wo(i))}));else if(5===s){if(o(i)&&(Wo(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Qi(r))return r;if(null==o)return;const n=jr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Mr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ji,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yr=Symbol("elementInternals");function Xr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Yr].form}constructor(...t){super(t),this[Yr]=this.attachInternals(),this[Yr].role=e}setFormValue(t){this[Yr].setFormValue(t)}}}var Jr,Qr,tn;const en=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(tn=null===(Qr=null===(Jr=window.safari)||void 0===Jr?void 0:Jr.pushNotification)||void 0===Qr?void 0:Qr.toString())&&void 0!==tn?tn:"");var on;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(on||(on={}));var rn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class nn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const an=Symbol("registerInterval");class sn extends(function(t){var e;class i 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[an]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[an]):this.dispatchEvent(new nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=an,rn([R()],i.prototype,"stateManager",void 0),i}(ao)){}const ln=Ie.extend("--ft-ripple-color","",_e.colorContent),cn={color:ln,backgroundColor:Ie.extend("--ft-ripple-background-color","",ln),opacityContentOnSurfacePressed:Ie.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ie.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ie.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ie.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ie.create("--ft-ripple-border-radius","","SIZE","0px")},fn=Ie.extend("--ft-ripple-color","",_e.colorPrimary),hn=fn,dn=Ie.extend("--ft-ripple-background-color","",fn),un=Ie.extend("--ft-ripple-color","",_e.colorSecondary),pn=un,yn=Ie.extend("--ft-ripple-background-color","",un),gn=It`
133
133
  :host {
134
134
  display: contents;
135
135
  }
@@ -241,7 +241,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
241
241
  opacity: ${cn.opacityContentOnSurfacePressed};
242
242
  transform: translate(-50%, -50%) scale(1);
243
243
  }
244
- `;const bn=Re.extend("--ft-typography-font-family","",Te.titleFont),vn=Re.extend("--ft-typography-font-family","",Te.contentFont),mn={fontFamily:vn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xn={fontFamily:Re.extend("--ft-typography-title-font-family","",bn),fontSize:Re.extend("--ft-typography-title-font-size","",mn.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",mn.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",mn.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",mn.textTransform,"inherit")},wn={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",bn),fontSize:Re.extend("--ft-typography-title-dense-font-size","",mn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",mn.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",mn.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",mn.textTransform,"inherit")},On=Re.extend("--ft-typography-subtitle1-font-family","",vn),Sn=Re.extend("--ft-typography-subtitle1-font-size","",mn.fontSize,"16px"),$n=Re.extend("--ft-typography-subtitle1-font-weight","",mn.fontWeight,"600"),Nn=Re.extend("--ft-typography-subtitle1-letter-spacing","",mn.letterSpacing,"0.144px"),Cn=Re.extend("--ft-typography-subtitle1-line-height","",mn.lineHeight,"1.5"),En=Re.extend("--ft-typography-subtitle1-text-transform","",mn.textTransform,"inherit"),kn=Re.extend("--ft-typography-subtitle2-font-family","",vn),Rn=Re.extend("--ft-typography-subtitle2-font-size","",mn.fontSize,"14px"),In=Re.extend("--ft-typography-subtitle2-font-weight","",mn.fontWeight,"normal"),Un=Re.extend("--ft-typography-subtitle2-letter-spacing","",mn.letterSpacing,"0.098px"),Ln=Re.extend("--ft-typography-subtitle2-line-height","",mn.lineHeight,"1.7"),An=Re.extend("--ft-typography-subtitle2-text-transform","",mn.textTransform,"inherit"),_n={fontFamily:Re.extend("--ft-typography-body1-font-family","",vn),fontSize:Re.extend("--ft-typography-body1-font-size","",mn.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",mn.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",mn.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",mn.textTransform,"inherit")},Tn=Re.extend("--ft-typography-body2-font-family","",vn),Dn=Re.extend("--ft-typography-body2-font-size","",mn.fontSize,"14px"),Wn=Re.extend("--ft-typography-body2-font-weight","",mn.fontWeight,"normal"),Fn=Re.extend("--ft-typography-body2-letter-spacing","",mn.letterSpacing,"0.252px"),Pn=Re.extend("--ft-typography-body2-line-height","",mn.lineHeight,"1.4"),Mn=Re.extend("--ft-typography-body2-text-transform","",mn.textTransform,"inherit"),jn={fontFamily:Re.extend("--ft-typography-caption-font-family","",vn),fontSize:Re.extend("--ft-typography-caption-font-size","",mn.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",mn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",mn.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",mn.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",mn.textTransform,"inherit")},zn=Re.extend("--ft-typography-breadcrumb-font-family","",vn),Bn=Re.extend("--ft-typography-breadcrumb-font-size","",mn.fontSize,"10px"),Kn=Re.extend("--ft-typography-breadcrumb-font-weight","",mn.fontWeight,"normal"),Zn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",mn.letterSpacing,"0.33px"),Hn=Re.extend("--ft-typography-breadcrumb-line-height","",mn.lineHeight,"1.6"),Gn=Re.extend("--ft-typography-breadcrumb-text-transform","",mn.textTransform,"inherit"),Vn=Re.extend("--ft-typography-overline-font-family","",vn),qn=Re.extend("--ft-typography-overline-font-size","",mn.fontSize,"10px"),Yn=Re.extend("--ft-typography-overline-font-weight","",mn.fontWeight,"normal"),Xn=Re.extend("--ft-typography-overline-letter-spacing","",mn.letterSpacing,"1.5px"),Jn=Re.extend("--ft-typography-overline-line-height","",mn.lineHeight,"1.6"),Qn=Re.extend("--ft-typography-overline-text-transform","",mn.textTransform,"uppercase"),ta={fontFamily:Re.extend("--ft-typography-button-font-family","",vn),fontSize:Re.extend("--ft-typography-button-font-size","",mn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",mn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",mn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",mn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",mn.textTransform,"uppercase")},ea=Rt`
244
+ `;const bn=Ie.extend("--ft-typography-font-family","",_e.titleFont),vn=Ie.extend("--ft-typography-font-family","",_e.contentFont),mn={fontFamily:vn,fontSize:Ie.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ie.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ie.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ie.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ie.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xn={fontFamily:Ie.extend("--ft-typography-title-font-family","",bn),fontSize:Ie.extend("--ft-typography-title-font-size","",mn.fontSize,"20px"),fontWeight:Ie.extend("--ft-typography-title-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-title-letter-spacing","",mn.letterSpacing,"0.15px"),lineHeight:Ie.extend("--ft-typography-title-line-height","",mn.lineHeight,"1.2"),textTransform:Ie.extend("--ft-typography-title-text-transform","",mn.textTransform,"inherit")},wn={fontFamily:Ie.extend("--ft-typography-title-dense-font-family","",bn),fontSize:Ie.extend("--ft-typography-title-dense-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-title-dense-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-title-dense-letter-spacing","",mn.letterSpacing,"0.105px"),lineHeight:Ie.extend("--ft-typography-title-dense-line-height","",mn.lineHeight,"1.7"),textTransform:Ie.extend("--ft-typography-title-dense-text-transform","",mn.textTransform,"inherit")},On=Ie.extend("--ft-typography-subtitle1-font-family","",vn),Sn=Ie.extend("--ft-typography-subtitle1-font-size","",mn.fontSize,"16px"),Nn=Ie.extend("--ft-typography-subtitle1-font-weight","",mn.fontWeight,"600"),$n=Ie.extend("--ft-typography-subtitle1-letter-spacing","",mn.letterSpacing,"0.144px"),Cn=Ie.extend("--ft-typography-subtitle1-line-height","",mn.lineHeight,"1.5"),En=Ie.extend("--ft-typography-subtitle1-text-transform","",mn.textTransform,"inherit"),kn=Ie.extend("--ft-typography-subtitle2-font-family","",vn),In=Ie.extend("--ft-typography-subtitle2-font-size","",mn.fontSize,"14px"),Rn=Ie.extend("--ft-typography-subtitle2-font-weight","",mn.fontWeight,"normal"),Un=Ie.extend("--ft-typography-subtitle2-letter-spacing","",mn.letterSpacing,"0.098px"),Ln=Ie.extend("--ft-typography-subtitle2-line-height","",mn.lineHeight,"1.7"),An=Ie.extend("--ft-typography-subtitle2-text-transform","",mn.textTransform,"inherit"),Tn={fontFamily:Ie.extend("--ft-typography-body1-font-family","",vn),fontSize:Ie.extend("--ft-typography-body1-font-size","",mn.fontSize,"16px"),fontWeight:Ie.extend("--ft-typography-body1-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-body1-letter-spacing","",mn.letterSpacing,"0.496px"),lineHeight:Ie.extend("--ft-typography-body1-line-height","",mn.lineHeight,"1.5"),textTransform:Ie.extend("--ft-typography-body1-text-transform","",mn.textTransform,"inherit")},_n=Ie.extend("--ft-typography-body2-font-family","",vn),Wn=Ie.extend("--ft-typography-body2-font-size","",mn.fontSize,"14px"),Dn=Ie.extend("--ft-typography-body2-font-weight","",mn.fontWeight,"normal"),Fn=Ie.extend("--ft-typography-body2-letter-spacing","",mn.letterSpacing,"0.252px"),Mn=Ie.extend("--ft-typography-body2-line-height","",mn.lineHeight,"1.4"),Pn=Ie.extend("--ft-typography-body2-text-transform","",mn.textTransform,"inherit"),zn={fontFamily:Ie.extend("--ft-typography-caption-font-family","",vn),fontSize:Ie.extend("--ft-typography-caption-font-size","",mn.fontSize,"12px"),fontWeight:Ie.extend("--ft-typography-caption-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-caption-letter-spacing","",mn.letterSpacing,"0.396px"),lineHeight:Ie.extend("--ft-typography-caption-line-height","",mn.lineHeight,"1.33"),textTransform:Ie.extend("--ft-typography-caption-text-transform","",mn.textTransform,"inherit")},jn=Ie.extend("--ft-typography-breadcrumb-font-family","",vn),Bn=Ie.extend("--ft-typography-breadcrumb-font-size","",mn.fontSize,"10px"),Kn=Ie.extend("--ft-typography-breadcrumb-font-weight","",mn.fontWeight,"normal"),Zn=Ie.extend("--ft-typography-breadcrumb-letter-spacing","",mn.letterSpacing,"0.33px"),Hn=Ie.extend("--ft-typography-breadcrumb-line-height","",mn.lineHeight,"1.6"),Gn=Ie.extend("--ft-typography-breadcrumb-text-transform","",mn.textTransform,"inherit"),Vn=Ie.extend("--ft-typography-overline-font-family","",vn),qn=Ie.extend("--ft-typography-overline-font-size","",mn.fontSize,"10px"),Yn=Ie.extend("--ft-typography-overline-font-weight","",mn.fontWeight,"normal"),Xn=Ie.extend("--ft-typography-overline-letter-spacing","",mn.letterSpacing,"1.5px"),Jn=Ie.extend("--ft-typography-overline-line-height","",mn.lineHeight,"1.6"),Qn=Ie.extend("--ft-typography-overline-text-transform","",mn.textTransform,"uppercase"),ta={fontFamily:Ie.extend("--ft-typography-button-font-family","",vn),fontSize:Ie.extend("--ft-typography-button-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-button-font-weight","",mn.fontWeight,"600"),letterSpacing:Ie.extend("--ft-typography-button-letter-spacing","",mn.letterSpacing,"1.246px"),lineHeight:Ie.extend("--ft-typography-button-line-height","",mn.lineHeight,"1.15"),textTransform:Ie.extend("--ft-typography-button-text-transform","",mn.textTransform,"uppercase")},ea=It`
245
245
  .ft-typography--title {
246
246
  font-family: ${xn.fontFamily};
247
247
  font-size: ${xn.fontSize};
@@ -250,7 +250,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
250
250
  line-height: ${xn.lineHeight};
251
251
  text-transform: ${xn.textTransform};
252
252
  }
253
- `,ia=Rt`
253
+ `,ia=It`
254
254
  .ft-typography--title-dense {
255
255
  font-family: ${wn.fontFamily};
256
256
  font-size: ${wn.fontSize};
@@ -259,62 +259,62 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
259
259
  line-height: ${wn.lineHeight};
260
260
  text-transform: ${wn.textTransform};
261
261
  }
262
- `,oa=Rt`
262
+ `,oa=It`
263
263
  .ft-typography--subtitle1 {
264
264
  font-family: ${On};
265
265
  font-size: ${Sn};
266
- font-weight: ${$n};
267
- letter-spacing: ${Nn};
266
+ font-weight: ${Nn};
267
+ letter-spacing: ${$n};
268
268
  line-height: ${Cn};
269
269
  text-transform: ${En};
270
270
  }
271
- `,ra=Rt`
271
+ `,ra=It`
272
272
  .ft-typography--subtitle2 {
273
273
  font-family: ${kn};
274
- font-size: ${Rn};
275
- font-weight: ${In};
274
+ font-size: ${In};
275
+ font-weight: ${Rn};
276
276
  letter-spacing: ${Un};
277
277
  line-height: ${Ln};
278
278
  text-transform: ${An};
279
279
  }
280
280
 
281
- `,na=Rt`
281
+ `,na=It`
282
282
  .ft-typography--body1 {
283
- font-family: ${_n.fontFamily};
284
- font-size: ${_n.fontSize};
285
- font-weight: ${_n.fontWeight};
286
- letter-spacing: ${_n.letterSpacing};
287
- line-height: ${_n.lineHeight};
288
- text-transform: ${_n.textTransform};
289
- }
290
- `,aa=Rt`
283
+ font-family: ${Tn.fontFamily};
284
+ font-size: ${Tn.fontSize};
285
+ font-weight: ${Tn.fontWeight};
286
+ letter-spacing: ${Tn.letterSpacing};
287
+ line-height: ${Tn.lineHeight};
288
+ text-transform: ${Tn.textTransform};
289
+ }
290
+ `,aa=It`
291
291
  .ft-typography--body2 {
292
- font-family: ${Tn};
293
- font-size: ${Dn};
294
- font-weight: ${Wn};
292
+ font-family: ${_n};
293
+ font-size: ${Wn};
294
+ font-weight: ${Dn};
295
295
  letter-spacing: ${Fn};
296
- line-height: ${Pn};
297
- text-transform: ${Mn};
296
+ line-height: ${Mn};
297
+ text-transform: ${Pn};
298
298
  }
299
- `,sa=Rt`
299
+ `,sa=It`
300
300
  .ft-typography--caption {
301
- font-family: ${jn.fontFamily};
302
- font-size: ${jn.fontSize};
303
- font-weight: ${jn.fontWeight};
304
- letter-spacing: ${jn.letterSpacing};
305
- line-height: ${jn.lineHeight};
306
- text-transform: ${jn.textTransform};
307
- }
308
- `,la=Rt`
301
+ font-family: ${zn.fontFamily};
302
+ font-size: ${zn.fontSize};
303
+ font-weight: ${zn.fontWeight};
304
+ letter-spacing: ${zn.letterSpacing};
305
+ line-height: ${zn.lineHeight};
306
+ text-transform: ${zn.textTransform};
307
+ }
308
+ `,la=It`
309
309
  .ft-typography--breadcrumb {
310
- font-family: ${zn};
310
+ font-family: ${jn};
311
311
  font-size: ${Bn};
312
312
  font-weight: ${Kn};
313
313
  letter-spacing: ${Zn};
314
314
  line-height: ${Hn};
315
315
  text-transform: ${Gn};
316
316
  }
317
- `,ca=Rt`
317
+ `,ca=It`
318
318
  .ft-typography--overline {
319
319
  font-family: ${Vn};
320
320
  font-size: ${qn};
@@ -323,7 +323,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
323
323
  line-height: ${Jn};
324
324
  text-transform: ${Qn};
325
325
  }
326
- `,fa=Rt`
326
+ `,fa=It`
327
327
  .ft-typography--button {
328
328
  font-family: ${ta.fontFamily};
329
329
  font-size: ${ta.fontSize};
@@ -332,11 +332,11 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
332
332
  line-height: ${ta.lineHeight};
333
333
  text-transform: ${ta.textTransform};
334
334
  }
335
- `,ha=Rt`
335
+ `,ha=It`
336
336
  .ft-typography {
337
337
  vertical-align: inherit;
338
338
  }
339
- `,da=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
339
+ `,da=[Object.keys(Le).map((t=>function(t){const e=Le[t];return It`
340
340
  .ft-typography--${kt(t)} {
341
341
  font-family: ${e.fontFamily};
342
342
  font-size: ${e.fontSize};
@@ -345,7 +345,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
345
345
  line-height: ${e.lineHeight};
346
346
  text-transform: ${e.textCase};
347
347
  }
348
- `}(t)))],ua={color:Re.extend("--ft-loader-color","",Te.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},pa=Rt`
348
+ `}(t)))],ua={color:Ie.extend("--ft-loader-color","",_e.colorPrimary),size:Ie.create("--ft-loader-size","","SIZE","80px")},pa=It`
349
349
  :host {
350
350
  line-height: 0;
351
351
  }
@@ -414,7 +414,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
414
414
  transform: translate(calc(0.35 * ${ua.size}), 0);
415
415
  }
416
416
  }
417
- `,ya={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ga=Rt`
417
+ `,ya={size:Ie.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ie.extend("--ft-icon-fluid-topics-font-family","",Ie.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ie.extend("--ft-icon-file-format-font-family","",Ie.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ie.extend("--ft-icon-material-font-family","",Ie.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ie.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ga=It`
418
418
  :host, i.ft-icon {
419
419
  display: inline-flex;
420
420
  align-items: center;
@@ -462,7 +462,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
462
462
  .ft-icon--material {
463
463
  font-family: ${ya.materialFontFamily}, "Material Icons", sans-serif;
464
464
  }
465
- `,ba=Re.extend("--ft-button-color","",Te.colorPrimary),va={backgroundColor:Re.extend("--ft-button-background-color","",Te.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",Te.borderRadiusL),color:ba,fontSize:Re.extend("--ft-button-font-size","",ta.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",ba),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(Te.colorOpacityDisabled,"Design system")},ma=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",Te.colorOnPrimary)),xa={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",Te.colorPrimary)),color:ma,rippleColor:Re.extend("--ft-button-primary-ripple-color","",ma)},wa=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",Te.borderRadiusM)),Oa=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Sa=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$a=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Na=[Rt`
465
+ `,ba=Ie.extend("--ft-button-color","",_e.colorPrimary),va={backgroundColor:Ie.extend("--ft-button-background-color","",_e.colorSurface),borderRadius:Ie.extend("--ft-button-border-radius","",_e.borderRadiusL),color:ba,fontSize:Ie.extend("--ft-button-font-size","",ta.fontSize),iconSize:Ie.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ie.extend("--ft-button-ripple-color","",ba),verticalPadding:Ie.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ie.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ie.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ie.external(_e.colorOpacityDisabled,"Design system")},ma=Ie.extend("--ft-button-primary-color","",Ie.extend("--ft-button-color","",_e.colorOnPrimary)),xa={backgroundColor:Ie.extend("--ft-button-primary-background-color","",Ie.extend("--ft-button-background-color","",_e.colorPrimary)),color:ma,rippleColor:Ie.extend("--ft-button-primary-ripple-color","",ma)},wa=Ie.extend("--ft-button-dense-border-radius","",Ie.extend("--ft-button-border-radius","",_e.borderRadiusM)),Oa=Ie.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Sa=Ie.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Na=Ie.create("--ft-button-dense-icon-padding","","SIZE","4px"),$a=[It`
466
466
  :host {
467
467
  display: inline-block;
468
468
  max-width: 100%;
@@ -504,8 +504,8 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
504
504
 
505
505
  --ft-button-internal-line-height: max(calc(${va.fontSize} + 2px), ${va.iconSize});
506
506
  --ft-button-internal-color: ${va.color};
507
- ${Ie(ya.size,va.iconSize)};
508
- ${Ie(cn.color,va.rippleColor)};
507
+ ${Re(ya.size,va.iconSize)};
508
+ ${Re(cn.color,va.rippleColor)};
509
509
 
510
510
  border-radius: ${va.borderRadius};
511
511
  padding: ${va.verticalPadding} ${va.horizontalPadding};
@@ -522,7 +522,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
522
522
  .ft-button.ft-button--dense {
523
523
  padding: ${Oa} ${Sa};
524
524
  border-radius: ${wa};
525
- gap: ${$a};
525
+ gap: ${Na};
526
526
  }
527
527
 
528
528
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -549,7 +549,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
549
549
  .ft-button.ft-button--primary {
550
550
  background-color: ${xa.backgroundColor};
551
551
  --ft-button-internal-color: ${xa.color};
552
- ${Ie(cn.color,xa.rippleColor)};
552
+ ${Re(cn.color,xa.rippleColor)};
553
553
  }
554
554
 
555
555
  .ft-button:focus {
@@ -563,12 +563,12 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
563
563
  text-overflow: ellipsis;
564
564
  display: block;
565
565
  margin: 0 ${va.iconPadding};
566
- ${Ie(ta.fontSize,"1em")};
567
- ${Ie(ta.lineHeight,"var(--ft-button-internal-line-height)")};
566
+ ${Re(ta.fontSize,"1em")};
567
+ ${Re(ta.lineHeight,"var(--ft-button-internal-line-height)")};
568
568
  }
569
569
 
570
570
  .ft-button--dense .ft-button--label {
571
- margin: 0 ${$a};
571
+ margin: 0 ${Na};
572
572
  }
573
573
 
574
574
  .ft-button--label[hidden] {
@@ -596,10 +596,10 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
596
596
  }
597
597
 
598
598
  ft-loader {
599
- ${Ie(ua.size,va.iconSize)};
600
- ${Ie(ua.color,"var(--ft-button-internal-color)")};
599
+ ${Re(ua.size,va.iconSize)};
600
+ ${Re(ua.color,"var(--ft-button-internal-color)")};
601
601
  }
602
- `,Vi],Ca={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",ta.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Ea={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(xn.fontSize,"Typography"),sectionTitleFontSize:Re.external(wn.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",Te.colorSurface)},ka=Rt`
602
+ `,Vi],Ca={textColor:Ie.extend("--ft-switch-text-color","",_e.colorOnSurfaceHigh),backgroundColor:Ie.extend("--ft-switch-background-color","",_e.colorSurface),selectedTextColor:Ie.extend("--ft-switch-selected-text-color","",_e.colorPrimary),selectedBackgroundColor:Ie.extend("--ft-switch-selected-background-color","",_e.colorPrimary),borderColor:Ie.extend("--ft-switch-border-color","",_e.colorOutline),borderRadius:Ie.extend("--ft-switch-border-radius","",_e.borderRadiusL),fontSize:Ie.extend("--ft-switch-font-size","",ta.fontSize),iconSize:Ie.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ie.extend("--ft-switch-text-color","",_e.colorOnSurfaceMedium),rippleColor:Ie.extend("--ft-switch-ripple-color","",_e.colorPrimary),outlineColor:Ie.extend("--ft-switch-outline-color","",_e.colorPrimary)},Ea={feedbackInputMinWidth:Ie.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ie.external(_e.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ie.extend("--ft-reader-feedback-send-feedback-color","",_e.colorOnPrimary),sendFeedbackBackgroundColor:Ie.extend("--ft-reader-feedback-send-feedback-background-color","",_e.colorPrimary),filledRatingColor:Ie.extend("--ft-reader-feedback-filled-rating-color","",_e.colorPrimary),emptyRatingColor:Ie.extend("--ft-reader-feedback-empty-rating-color","",_e.colorOnSurfaceMedium),mainTitleFontSize:Ie.external(xn.fontSize,"Typography"),sectionTitleFontSize:Ie.external(wn.fontSize,"Typography"),starsBackgroundColor:Ie.create("--ft-reader-feedback-stars-background-color","","COLOR",_e.colorSurface)},ka=It`
603
603
  .ft-reader-feedback {
604
604
  box-sizing: border-box;
605
605
  display: flex;
@@ -612,7 +612,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
612
612
  flex-direction: row;
613
613
  align-items: center;
614
614
  margin-left: -6px;
615
- ${Ie(va.backgroundColor,Ea.starsBackgroundColor)}
615
+ ${Re(va.backgroundColor,Ea.starsBackgroundColor)}
616
616
  }
617
617
 
618
618
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -625,14 +625,14 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
625
625
  }
626
626
 
627
627
  .ft-reader-feedback--rating {
628
- ${Ie(va.color,Ea.emptyRatingColor)};
629
- ${Ie(va.rippleColor,Ea.filledRatingColor)};
630
- ${Ie(Ca.textColor,Ea.emptyRatingColor)};
631
- ${Ie(Ca.selectedTextColor,Ea.filledRatingColor)};
628
+ ${Re(va.color,Ea.emptyRatingColor)};
629
+ ${Re(va.rippleColor,Ea.filledRatingColor)};
630
+ ${Re(Ca.textColor,Ea.emptyRatingColor)};
631
+ ${Re(Ca.selectedTextColor,Ea.filledRatingColor)};
632
632
  }
633
633
 
634
634
  .ft-reader-feedback--rating .ft-reader-feedback--active {
635
- ${Ie(va.color,Ea.filledRatingColor)};
635
+ ${Re(va.color,Ea.filledRatingColor)};
636
636
  }
637
637
 
638
638
  .ft-reader-feedback--feedback {
@@ -649,44 +649,44 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
649
649
 
650
650
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
651
651
  align-self: flex-end;
652
- ${Ie(va.color,Ea.sendFeedbackColor)};
653
- ${Ie(va.backgroundColor,Ea.sendFeedbackBackgroundColor)};
652
+ ${Re(va.color,Ea.sendFeedbackColor)};
653
+ ${Re(va.backgroundColor,Ea.sendFeedbackBackgroundColor)};
654
654
  }
655
655
  `
656
656
  /**
657
657
  * @license
658
658
  * Copyright 2020 Google LLC
659
659
  * SPDX-License-Identifier: BSD-3-Clause
660
- */,Ra=Symbol.for(""),Ia=t=>{if(t?.r===Ra)return t?._$litStatic$},Ua=t=>({_$litStatic$:t,r:Ra}),La=new Map,Aa=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ia(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=La.get(t))&&(a.raw=a,La.set(t,e=a)),i=s}return t(e,...i)})(nt);var _a;!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"}(_a||(_a={}));var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Da extends Hi{constructor(){super(...arguments),this.variant=_a.body1}render(){return this.element?Aa`
660
+ */,Ia=Symbol.for(""),Ra=t=>{if(t?.r===Ia)return t?._$litStatic$},Ua=t=>({_$litStatic$:t,r:Ia}),La=new Map,Aa=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ra(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=La.get(t))&&(a.raw=a,La.set(t,e=a)),i=s}return t(e,...i)})(nt);var Ta;!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"}(Ta||(Ta={}));var _a=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Wa extends Hi{constructor(){super(...arguments),this.variant=Ta.body1}render(){return this.element?Aa`
661
661
  <${Ua(this.element)}
662
662
  class="ft-typography ft-typography--${this.variant}">
663
663
  <slot></slot>
664
664
  </${Ua(this.element)}>
665
665
  `:Aa`
666
666
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
667
- `}}Da.styles=[ea,ia,oa,ra,na,aa,sa,la,ca,fa,ha,...da],Ta([k()],Da.prototype,"element",void 0),Ta([k()],Da.prototype,"variant",void 0),W("ft-typography")(Da);
667
+ `}}Wa.styles=[ea,ia,oa,ra,na,aa,sa,la,ca,fa,ha,...da],_a([I()],Wa.prototype,"element",void 0),_a([I()],Wa.prototype,"variant",void 0),D("ft-typography")(Wa);
668
668
  /**
669
669
  * @license
670
670
  * Copyright 2017 Google LLC
671
671
  * SPDX-License-Identifier: BSD-3-Clause
672
672
  */
673
- const Wa=1,Fa=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class Ma{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
673
+ const Da=1,Fa=2,Ma=t=>(...e)=>({_$litDirective$:t,values:e});class Pa{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
674
674
  /**
675
675
  * @license
676
676
  * Copyright 2018 Google LLC
677
677
  * SPDX-License-Identifier: BSD-3-Clause
678
- */const ja=Pa(class extends Ma{constructor(t){if(super(t),t.type!==Wa||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return at}});var za=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ba extends Hi{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 r(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 r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return he`
678
+ */const za=Ma(class extends Pa{constructor(t){if(super(t),t.type!==Da||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return at}});var ja=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ba extends Hi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return he`
679
679
  <style>
680
680
  .ft-ripple .ft-ripple--effect {
681
681
  left: ${this.originX}px;
682
682
  top: ${this.originY}px;
683
683
  }
684
684
  </style>
685
- <div class="${ja(t)}">
685
+ <div class="${za(t)}">
686
686
  <div class="ft-ripple--background"></div>
687
687
  <div class="ft-ripple--effect"></div>
688
688
  </div>
689
- `}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ba.elementDefinitions={},Ba.styles=gn,za([k({type:Boolean})],Ba.prototype,"primary",void 0),za([k({type:Boolean})],Ba.prototype,"secondary",void 0),za([k({type:Boolean})],Ba.prototype,"unbounded",void 0),za([k({type:Boolean})],Ba.prototype,"activated",void 0),za([k({type:Boolean})],Ba.prototype,"selected",void 0),za([k({type:Boolean})],Ba.prototype,"disabled",void 0),za([R()],Ba.prototype,"hovered",void 0),za([R()],Ba.prototype,"focused",void 0),za([R()],Ba.prototype,"pressed",void 0),za([R()],Ba.prototype,"rippling",void 0),za([R()],Ba.prototype,"originX",void 0),za([R()],Ba.prototype,"originY",void 0),za([L(".ft-ripple")],Ba.prototype,"ripple",void 0),za([L(".ft-ripple--effect")],Ba.prototype,"rippleEffect",void 0),W("ft-ripple")(Ba);const Ka=Re.create("--ft-tooltip-distance","","SIZE","4px"),Za=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ha=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Ga=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Va=Re.external(Te.borderRadiusS,"Design system"),qa=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Ya=Rt`
689
+ `}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ba.elementDefinitions={},Ba.styles=gn,ja([I({type:Boolean})],Ba.prototype,"primary",void 0),ja([I({type:Boolean})],Ba.prototype,"secondary",void 0),ja([I({type:Boolean})],Ba.prototype,"unbounded",void 0),ja([I({type:Boolean})],Ba.prototype,"activated",void 0),ja([I({type:Boolean})],Ba.prototype,"selected",void 0),ja([I({type:Boolean})],Ba.prototype,"disabled",void 0),ja([R()],Ba.prototype,"hovered",void 0),ja([R()],Ba.prototype,"focused",void 0),ja([R()],Ba.prototype,"pressed",void 0),ja([R()],Ba.prototype,"rippling",void 0),ja([R()],Ba.prototype,"originX",void 0),ja([R()],Ba.prototype,"originY",void 0),ja([A(".ft-ripple")],Ba.prototype,"ripple",void 0),ja([A(".ft-ripple--effect")],Ba.prototype,"rippleEffect",void 0),D("ft-ripple")(Ba);const Ka=Ie.create("--ft-tooltip-distance","","SIZE","4px"),Za=Ie.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ha=Ie.create("--ft-tooltip-background-color","","COLOR","#666666"),Ga=Ie.create("--ft-tooltip-z-index","","NUMBER","100"),Va=Ie.external(_e.borderRadiusS,"Design system"),qa=Ie.create("--ft-tooltip-max-width","","SIZE","150px"),Ya=It`
690
690
  .ft-tooltip--container {
691
691
  display: block;
692
692
  }
@@ -715,7 +715,7 @@ const Wa=1,Fa=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class Ma{constructo
715
715
  position: relative;
716
716
  word-break: break-word;
717
717
  }
718
- `;var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends Hi{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
718
+ `;var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends Hi{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
719
719
  <div part="container"
720
720
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
721
721
  @mouseenter=${this.onHover}
@@ -733,18 +733,18 @@ const Wa=1,Fa=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class Ma{constructo
733
733
  </div>
734
734
  </div>
735
735
  </div>
736
- `}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="",async function(t,e,i){return Ti(t,e,{platform:{..._i,getOffsetParent:t=>_i.getOffsetParent(t,Di)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=He(o,t),c={x:e,y:i},f=await ii(t,l),h=Xe(Ge(r)),d=qe(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=Ze(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=Ze(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ri({allowedPlacements:[i]})]});var o}(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))}}Ja.elementDefinitions={"ft-typography":Da},Ja.styles=Ya,Xa([k()],Ja.prototype,"text",void 0),Xa([k({type:Boolean})],Ja.prototype,"manual",void 0),Xa([k({type:Boolean})],Ja.prototype,"inline",void 0),Xa([k({type:Number})],Ja.prototype,"delay",void 0),Xa([k()],Ja.prototype,"position",void 0),Xa([A()],Ja.prototype,"slotNodes",void 0),Xa([L(".ft-tooltip--container")],Ja.prototype,"container",void 0),Xa([L(".ft-tooltip")],Ja.prototype,"tooltip",void 0),Xa([L(".ft-tooltip--content")],Ja.prototype,"tooltipContent",void 0),Xa([R()],Ja.prototype,"visible",void 0),Xa([I({passive:!0})],Ja.prototype,"onTouch",null),Xa([I({passive:!0})],Ja.prototype,"onHover",null),Xa([I({passive:!0})],Ja.prototype,"onOut",null),Xa([I({passive:!0})],Ja.prototype,"onClick",null),W("ft-tooltip")(Ja);
736
+ `}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="",async function(t,e,i){return _i(t,e,{platform:{...Ti,getOffsetParent:t=>Ti.getOffsetParent(t,Wi)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=He(o,t),c={x:e,y:i},f=await ii(t,l),h=Xe(Ge(r)),d=qe(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=Ze(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=Ze(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ri({allowedPlacements:[i]})]});var o}(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))}}Ja.elementDefinitions={"ft-typography":Wa},Ja.styles=Ya,Xa([I()],Ja.prototype,"text",void 0),Xa([I({type:Boolean})],Ja.prototype,"manual",void 0),Xa([I({type:Boolean})],Ja.prototype,"inline",void 0),Xa([I({type:Number})],Ja.prototype,"delay",void 0),Xa([I()],Ja.prototype,"position",void 0),Xa([T()],Ja.prototype,"slotNodes",void 0),Xa([A(".ft-tooltip--container")],Ja.prototype,"container",void 0),Xa([A(".ft-tooltip")],Ja.prototype,"tooltip",void 0),Xa([A(".ft-tooltip--content")],Ja.prototype,"tooltipContent",void 0),Xa([R()],Ja.prototype,"visible",void 0),Xa([U({passive:!0})],Ja.prototype,"onTouch",null),Xa([U({passive:!0})],Ja.prototype,"onHover",null),Xa([U({passive:!0})],Ja.prototype,"onOut",null),Xa([U({passive:!0})],Ja.prototype,"onClick",null),D("ft-tooltip")(Ja);
737
737
  /**
738
738
  * @license
739
739
  * Copyright 2017 Google LLC
740
740
  * SPDX-License-Identifier: BSD-3-Clause
741
741
  */
742
- class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qa.directiveName="unsafeHTML",Qa.resultType=1;const ts=Pa(Qa);var es,is,os;!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_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(es||(es={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(os||(os={}));var rs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ns extends Hi{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(os).includes(this.variant)?this.variant:os.fluid_topics,e=t!==os.material||!!this.value;return he`
742
+ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qa.directiveName="unsafeHTML",Qa.resultType=1;const ts=Ma(Qa);var es,is,os;!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_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(es||(es={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(is||(is={})),new Map([...["abw"].map((t=>[t,is.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(os||(os={}));var rs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ns extends Hi{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(os).includes(this.variant)?this.variant:os.fluid_topics,e=t!==os.material||!!this.value;return he`
743
743
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
744
744
  ${ts(this.resolvedIcon)}
745
745
  <slot ?hidden=${e}></slot>
746
746
  </i>
747
- `}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 i=this.value||this.textContent;switch(this.variant){case os.file_format:this.resolvedIcon=null!==(t=is[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case os.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=es[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ns.elementDefinitions={},ns.styles=ga,rs([k()],ns.prototype,"variant",void 0),rs([k()],ns.prototype,"value",void 0),rs([R()],ns.prototype,"resolvedIcon",void 0),rs([L("slot")],ns.prototype,"slottedContent",void 0),W("ft-icon")(ns);const as={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",Te.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",Te.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ss=Rt`
747
+ `}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 i=this.value||this.textContent;switch(this.variant){case os.file_format:this.resolvedIcon=null!==(t=is[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case os.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=es[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ns.elementDefinitions={},ns.styles=ga,rs([I()],ns.prototype,"variant",void 0),rs([I()],ns.prototype,"value",void 0),rs([R()],ns.prototype,"resolvedIcon",void 0),rs([A("slot")],ns.prototype,"slottedContent",void 0),D("ft-icon")(ns);const as={borderRadiusLeft:Ie.extend("--ft-switch-option-border-radius-left","",_e.borderRadiusL),borderRadiusRight:Ie.extend("--ft-switch-option-border-radius-right","",_e.borderRadiusL),borderWidthLeft:Ie.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ie.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ie.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ss=It`
748
748
  .ft-switch-option {
749
749
  position: relative;
750
750
  display: inline-block;
@@ -769,7 +769,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
769
769
  align-items: center;
770
770
  justify-content: center;
771
771
  overflow: hidden;
772
- ${Ie(ya.size,Ca.iconSize)};
772
+ ${Re(ya.size,Ca.iconSize)};
773
773
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
774
774
  background-color: ${Ca.backgroundColor};
775
775
  -webkit-mask-image: radial-gradient(white, black);
@@ -786,7 +786,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
786
786
  inset: 0;
787
787
  content: "";
788
788
  z-index: 1;
789
- opacity: ${Te.opacityPrimaryOnSurfaceSelected};
789
+ opacity: ${_e.opacityPrimaryOnSurfaceSelected};
790
790
  }
791
791
 
792
792
  .ft-switch-option--label {
@@ -796,8 +796,8 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
796
796
  text-overflow: ellipsis;
797
797
  display: block;
798
798
  margin: 0 8px;
799
- ${Ie(ta.fontSize,Ca.fontSize)};
800
- ${Ie(ta.lineHeight,"var(--ft-switch-option-internal-content-height)")}
799
+ ${Re(ta.fontSize,Ca.fontSize)};
800
+ ${Re(ta.lineHeight,"var(--ft-switch-option-internal-content-height)")}
801
801
  }
802
802
 
803
803
  .ft-switch-option--selected .ft-switch-option--label {
@@ -809,7 +809,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
809
809
  }
810
810
 
811
811
  .ft-switch-option--ripple {
812
- ${Ie(cn.color,Ca.rippleColor)};
812
+ ${Re(cn.color,Ca.rippleColor)};
813
813
  }
814
814
 
815
815
  ft-icon, ft-ripple, ft-typography {
@@ -829,7 +829,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
829
829
  color: ${Ca.selectedTextColor};
830
830
  }
831
831
  `;var ls=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class cs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class hs extends Hi{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new fs(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(he`
832
- <label part="label" for="input" class=${ja(t)}
832
+ <label part="label" for="input" class=${za(t)}
833
833
  @click=${this.onChange}>
834
834
  <div class="ft-switch-option--content">
835
835
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
@@ -852,14 +852,14 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
852
852
  </ft-tooltip>
853
853
  `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new cs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?he`
854
854
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
855
- `:ue}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()}}hs.elementDefinitions={"ft-ripple":Ba,"ft-typography":Da,"ft-tooltip":Ja,"ft-icon":ns},hs.styles=[qi,ss],ls([k()],hs.prototype,"value",void 0),ls([k()],hs.prototype,"icon",void 0),ls([k()],hs.prototype,"iconVariant",void 0),ls([k()],hs.prototype,"label",void 0),ls([k()],hs.prototype,"tooltipPosition",void 0),ls([k({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),ls([k({type:Boolean})],hs.prototype,"trailingIcon",void 0),ls([k({type:Boolean})],hs.prototype,"unselectable",void 0),ls([L(".ft-switch-option--content slot")],hs.prototype,"slottedContent",void 0),ls([L(".ft-switch-option--input")],hs.prototype,"input",void 0);var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends CustomEvent{constructor(t){super("change",{detail:t})}}class ps extends Hi{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return he`
856
- <div @keydown=${this.onKeyDown} tabindex="0" class="${ja(t)}">
855
+ `:ue}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()}}hs.elementDefinitions={"ft-ripple":Ba,"ft-typography":Wa,"ft-tooltip":Ja,"ft-icon":ns},hs.styles=[qi,ss],ls([I()],hs.prototype,"value",void 0),ls([I()],hs.prototype,"icon",void 0),ls([I()],hs.prototype,"iconVariant",void 0),ls([I()],hs.prototype,"label",void 0),ls([I()],hs.prototype,"tooltipPosition",void 0),ls([I({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),ls([I({type:Boolean})],hs.prototype,"trailingIcon",void 0),ls([I({type:Boolean})],hs.prototype,"unselectable",void 0),ls([A(".ft-switch-option--content slot")],hs.prototype,"slottedContent",void 0),ls([A(".ft-switch-option--input")],hs.prototype,"input",void 0);var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends CustomEvent{constructor(t){super("change",{detail:t})}}class ps extends Hi{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return he`
856
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${za(t)}">
857
857
  <slot @slotchange=${this.onSlotchange}
858
858
  @option-change=${this.onOptionChangeByScript}
859
859
  @option-change-by-user=${this.onOptionChangeByUser}
860
860
  ></slot>
861
861
  </div>
862
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof hs&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new us(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}ps.elementDefinitions={},ps.styles=Rt`
862
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof hs&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new us(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}ps.elementDefinitions={},ps.styles=It`
863
863
  :host {
864
864
  display: inline-block;
865
865
  }
@@ -875,25 +875,25 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
875
875
  }
876
876
 
877
877
  .ft-switch slot::slotted(ft-switch-option) {
878
- ${Ie(as.borderRadiusLeft,"0")};
879
- ${Ie(as.borderRadiusRight,"0")};
880
- ${Ie(as.borderWidthLeft,"0")};
878
+ ${Re(as.borderRadiusLeft,"0")};
879
+ ${Re(as.borderRadiusRight,"0")};
880
+ ${Re(as.borderWidthLeft,"0")};
881
881
  }
882
882
 
883
883
  .ft-switch slot::slotted(ft-switch-option:first-child) {
884
- ${Ie(as.borderRadiusLeft,Ca.borderRadius)};
885
- ${Ie(as.borderWidthLeft,"1px")};
884
+ ${Re(as.borderRadiusLeft,Ca.borderRadius)};
885
+ ${Re(as.borderWidthLeft,"1px")};
886
886
  }
887
887
 
888
888
  .ft-switch slot::slotted(ft-switch-option:last-child) {
889
- ${Ie(as.borderRadiusRight,Ca.borderRadius)};
889
+ ${Re(as.borderRadiusRight,Ca.borderRadius)};
890
890
  }
891
891
 
892
892
  .ft-switch--dense slot::slotted(ft-switch-option) {
893
893
  --ft-switch-internal-vertical-padding: 2px;
894
894
  --ft-switch-internal-horizontal-padding: 4px;
895
895
  }
896
- `,ds([k({type:Boolean})],ps.prototype,"dense",void 0),ds([k({type:Boolean})],ps.prototype,"unselectable",void 0),ds([L(".ft-switch slot")],ps.prototype,"slottedContent",void 0),ds([R()],ps.prototype,"selectedOption",void 0),ds([L(".ft-switch")],ps.prototype,"ftSwitchDiv",void 0),W("ft-switch")(ps),W("ft-switch-option")(hs);const ys=Re.external(Te.colorOutline,"Design system"),gs=Re.external(Te.colorOnSurfaceMedium,"Design system"),bs=Rt`
896
+ `,ds([I({type:Boolean})],ps.prototype,"dense",void 0),ds([I({type:Boolean})],ps.prototype,"unselectable",void 0),ds([A(".ft-switch slot")],ps.prototype,"slottedContent",void 0),ds([R()],ps.prototype,"selectedOption",void 0),ds([A(".ft-switch")],ps.prototype,"ftSwitchDiv",void 0),D("ft-switch")(ps),D("ft-switch-option")(hs);const ys=Ie.external(_e.colorOutline,"Design system"),gs=Ie.external(_e.colorOnSurfaceMedium,"Design system"),bs=It`
897
897
  :host {
898
898
  display: block;
899
899
  }
@@ -922,7 +922,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
922
922
  @touchstart=${this.initDragFromTouch}>
923
923
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
924
924
  </div>
925
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ms(i,o))}}xs.elementDefinitions={"ft-icon":ns},xs.styles=[Vi,bs],vs([k({type:Number})],xs.prototype,"initialWidth",void 0),vs([k({type:Number})],xs.prototype,"initialHeight",void 0),vs([k()],xs.prototype,"icon",void 0),vs([k()],xs.prototype,"iconVariant",void 0),vs([k()],xs.prototype,"cursor",void 0),vs([R()],xs.prototype,"dragging",void 0),vs([I({passive:!0})],xs.prototype,"initDragFromMouse",null),vs([I({passive:!0})],xs.prototype,"initDragFromTouch",null),W("ft-resizer")(xs);const ws={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",Te.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",Te.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",Te.colorOnSurfaceDisabled),colorSurface:Re.external(Te.colorSurface,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Os=Rt`
925
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ms(i,o))}}xs.elementDefinitions={"ft-icon":ns},xs.styles=[Vi,bs],vs([I({type:Number})],xs.prototype,"initialWidth",void 0),vs([I({type:Number})],xs.prototype,"initialHeight",void 0),vs([I()],xs.prototype,"icon",void 0),vs([I()],xs.prototype,"iconVariant",void 0),vs([I()],xs.prototype,"cursor",void 0),vs([R()],xs.prototype,"dragging",void 0),vs([U({passive:!0})],xs.prototype,"initDragFromMouse",null),vs([U({passive:!0})],xs.prototype,"initDragFromTouch",null),D("ft-resizer")(xs);const ws={fontSize:Ie.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ie.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ie.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ie.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ie.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ie.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ie.extend("--ft-input-label-border-color","",_e.colorOutline),textColor:Ie.extend("--ft-input-label-text-color","",_e.colorOnSurfaceMedium),disabledTextColor:Ie.extend("--ft-input-label-disabled-text-color","",_e.colorOnSurfaceDisabled),colorSurface:Ie.external(_e.colorSurface,"Design system"),borderRadiusS:Ie.external(_e.borderRadiusS,"Design system"),colorError:Ie.external(_e.colorError,"Design system")},Os=It`
926
926
  .ft-input-label {
927
927
  position: absolute;
928
928
  inset: 0;
@@ -973,8 +973,8 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
973
973
  transition: font-size 250ms, line-height 250ms, color 250ms;
974
974
  max-width: calc(${ws.labelMaxWidth} - 2 * (${ws.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
975
975
  text-overflow: ellipsis;
976
- ${Ie(jn.fontSize,ws.fontSize)};
977
- ${Ie(jn.lineHeight,ws.fontSize)};
976
+ ${Re(zn.fontSize,ws.fontSize)};
977
+ ${Re(zn.lineHeight,ws.fontSize)};
978
978
  }
979
979
 
980
980
  .ft-input-label--in-error .ft-input-label--text {
@@ -1006,8 +1006,8 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1006
1006
  }
1007
1007
 
1008
1008
  .ft-input-label--raised .ft-input-label--text {
1009
- ${Ie(jn.fontSize,ws.raisedFontSize)};
1010
- ${Ie(jn.lineHeight,ws.raisedFontSize)};
1009
+ ${Re(zn.fontSize,ws.raisedFontSize)};
1010
+ ${Re(zn.lineHeight,ws.raisedFontSize)};
1011
1011
  }
1012
1012
 
1013
1013
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1044,8 +1044,8 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1044
1044
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1045
1045
  border-top: none;
1046
1046
  }
1047
- `;var Ss=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $s extends Hi{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return he`
1048
- <div class="${ja(t)}">
1047
+ `;var Ss=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ns extends Hi{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return he`
1048
+ <div class="${za(t)}">
1049
1049
  ${this.text?he`
1050
1050
  <div class="ft-input-label--text ft-typography--caption">
1051
1051
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1053,7 +1053,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1053
1053
  </div>
1054
1054
  `:null}
1055
1055
  </div>
1056
- `}}$s.elementDefinitions={},$s.styles=[sa,Os],Ss([k({type:String})],$s.prototype,"text",void 0),Ss([k({type:Boolean})],$s.prototype,"raised",void 0),Ss([k({type:Boolean})],$s.prototype,"outlined",void 0),Ss([k({type:Boolean})],$s.prototype,"disabled",void 0),Ss([k({type:Boolean})],$s.prototype,"error",void 0),W("ft-input-label")($s);const Ns={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Cs=Rt`
1056
+ `}}Ns.elementDefinitions={},Ns.styles=[sa,Os],Ss([I({type:String})],Ns.prototype,"text",void 0),Ss([I({type:Boolean})],Ns.prototype,"raised",void 0),Ss([I({type:Boolean})],Ns.prototype,"outlined",void 0),Ss([I({type:Boolean})],Ns.prototype,"disabled",void 0),Ss([I({type:Boolean})],Ns.prototype,"error",void 0),D("ft-input-label")(Ns);const $s={fontSize:Ie.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ie.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ie.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ie.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ie.extend("--ft-text-area-helper-color","",_e.colorOnSurfaceMedium),colorPrimary:Ie.external(_e.colorPrimary,"Design system"),colorOnSurface:Ie.external(_e.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ie.external(_e.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ie.external(_e.borderRadiusS,"Design system"),colorError:Ie.external(_e.colorError,"Design system")},Cs=It`
1057
1057
  *:focus {
1058
1058
  outline: none;
1059
1059
  }
@@ -1065,10 +1065,10 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1065
1065
  }
1066
1066
 
1067
1067
  ft-input-label {
1068
- ${Ie(ws.fontSize,Ns.fontSize)};
1069
- ${Ie(ws.raisedFontSize,Ns.labelSize)};
1070
- ${Ie(ws.verticalSpacing,Ns.verticalSpacing)};
1071
- ${Ie(ws.horizontalSpacing,Ns.horizontalSpacing)};
1068
+ ${Re(ws.fontSize,$s.fontSize)};
1069
+ ${Re(ws.raisedFontSize,$s.labelSize)};
1070
+ ${Re(ws.verticalSpacing,$s.verticalSpacing)};
1071
+ ${Re(ws.horizontalSpacing,$s.horizontalSpacing)};
1072
1072
  }
1073
1073
 
1074
1074
  .ft-text-area--main-panel {
@@ -1086,8 +1086,8 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1086
1086
  }
1087
1087
 
1088
1088
  .ft-text-area--input-panel ft-ripple {
1089
- ${Ie(cn.opacityContentOnSurfaceHover,"0.08")};
1090
- ${Ie(cn.opacityContentOnSurfacePressed,"0.04")};
1089
+ ${Re(cn.opacityContentOnSurfaceHover,"0.08")};
1090
+ ${Re(cn.opacityContentOnSurfacePressed,"0.04")};
1091
1091
  }
1092
1092
 
1093
1093
  .ft-text-area--input {
@@ -1099,12 +1099,12 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1099
1099
  align-self: stretch;
1100
1100
  resize: none;
1101
1101
 
1102
- ${Ie(_n.fontSize,Ns.fontSize)};
1103
- ${Ie(_n.lineHeight,Ns.fontSize)};
1104
- color: ${Ns.colorOnSurface};
1102
+ ${Re(Tn.fontSize,$s.fontSize)};
1103
+ ${Re(Tn.lineHeight,$s.fontSize)};
1104
+ color: ${$s.colorOnSurface};
1105
1105
 
1106
- padding: 0 ${Ns.horizontalSpacing};
1107
- margin: calc(${Ns.verticalSpacing} + ${Ns.labelSize} / 2) 0 ${Ns.verticalSpacing} 0;
1106
+ padding: 0 ${$s.horizontalSpacing};
1107
+ margin: calc(${$s.verticalSpacing} + ${$s.labelSize} / 2) 0 ${$s.verticalSpacing} 0;
1108
1108
 
1109
1109
  border: none;
1110
1110
  background: none;
@@ -1113,7 +1113,7 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1113
1113
  }
1114
1114
 
1115
1115
  .ft-text-area--disabled .ft-text-area--input {
1116
- color: ${Ns.colorOnSurfaceDisabled};
1116
+ color: ${$s.colorOnSurfaceDisabled};
1117
1117
  }
1118
1118
 
1119
1119
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1121,32 +1121,32 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1121
1121
  }
1122
1122
 
1123
1123
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1124
- ${Ie(ws.borderColor,Ns.colorPrimary)};
1125
- ${Ie(ws.textColor,Ns.colorPrimary)};
1124
+ ${Re(ws.borderColor,$s.colorPrimary)};
1125
+ ${Re(ws.textColor,$s.colorPrimary)};
1126
1126
  }
1127
1127
 
1128
1128
  .ft-text-area--filled .ft-text-area--input-panel {
1129
- border-radius: ${Ns.borderRadiusS} ${Ns.borderRadiusS} 0 0;
1129
+ border-radius: ${$s.borderRadiusS} ${$s.borderRadiusS} 0 0;
1130
1130
  }
1131
1131
 
1132
1132
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1133
1133
  align-self: stretch;
1134
- margin-bottom: ${Ns.verticalSpacing};
1135
- margin-top: calc(${Ns.labelSize} + 2 * ${Ns.verticalSpacing});
1134
+ margin-bottom: ${$s.verticalSpacing};
1135
+ margin-top: calc(${$s.labelSize} + 2 * ${$s.verticalSpacing});
1136
1136
  }
1137
1137
 
1138
1138
  .ft-text-area--outlined .ft-text-area--input-panel {
1139
- border-radius: ${Ns.borderRadiusS};
1139
+ border-radius: ${$s.borderRadiusS};
1140
1140
  }
1141
1141
 
1142
1142
  .ft-text-area--helper-text {
1143
- padding: 0 12px 0 ${Ns.horizontalSpacing};
1144
- color: ${Ns.helperColor};
1143
+ padding: 0 12px 0 ${$s.horizontalSpacing};
1144
+ color: ${$s.helperColor};
1145
1145
  }
1146
1146
 
1147
1147
  .ft-text-area--in-error .ft-text-area--input,
1148
1148
  .ft-text-area--in-error .ft-text-area--helper-text {
1149
- color: ${Ns.colorError};
1149
+ color: ${$s.colorError};
1150
1150
  }
1151
1151
 
1152
1152
  ft-resizer {
@@ -1156,14 +1156,14 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1156
1156
  `;var Es=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ks extends(Xr(Hi,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return he`
1157
1157
  <style>
1158
1158
  .ft-text-area--main-panel {
1159
- height: calc(4 * ${Ns.verticalSpacing} + ${Ns.labelSize} + ${Ns.fontSize} + ${this.height}px);
1159
+ height: calc(4 * ${$s.verticalSpacing} + ${$s.labelSize} + ${$s.fontSize} + ${this.height}px);
1160
1160
  }
1161
1161
 
1162
1162
  ft-resizer {
1163
1163
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1164
1164
  }
1165
1165
  </style>
1166
- <div class="${ja(t)}">
1166
+ <div class="${za(t)}">
1167
1167
  <div class="ft-text-area--main-panel">
1168
1168
  <ft-input-label text="${this.label}"
1169
1169
  ?disabled=${this.disabled}
@@ -1195,27 +1195,27 @@ class Qa extends Ma{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
1195
1195
  ${this.helper}
1196
1196
  </ft-typography>`:void 0}
1197
1197
  </div>
1198
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ks.elementDefinitions={"ft-input-label":$s,"ft-resizer":xs,"ft-ripple":Ba,"ft-typography":Da},ks.styles=[na,Cs],Es([k({type:String})],ks.prototype,"label",void 0),Es([k({reflect:!0})],ks.prototype,"value",void 0),Es([k({type:String})],ks.prototype,"helper",void 0),Es([k({type:Boolean})],ks.prototype,"outlined",void 0),Es([k({type:Boolean})],ks.prototype,"disabled",void 0),Es([k({type:Boolean})],ks.prototype,"error",void 0),Es([k({type:Number,reflect:!0})],ks.prototype,"height",void 0),Es([L("textarea")],ks.prototype,"textarea",void 0),Es([R()],ks.prototype,"focused",void 0),W("ft-text-area")(ks);
1198
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ks.elementDefinitions={"ft-input-label":Ns,"ft-resizer":xs,"ft-ripple":Ba,"ft-typography":Wa},ks.styles=[na,Cs],Es([I({type:String})],ks.prototype,"label",void 0),Es([I({reflect:!0})],ks.prototype,"value",void 0),Es([I({type:String})],ks.prototype,"helper",void 0),Es([I({type:Boolean})],ks.prototype,"outlined",void 0),Es([I({type:Boolean})],ks.prototype,"disabled",void 0),Es([I({type:Boolean})],ks.prototype,"error",void 0),Es([I({type:Number,reflect:!0})],ks.prototype,"height",void 0),Es([A("textarea")],ks.prototype,"textarea",void 0),Es([R()],ks.prototype,"focused",void 0),D("ft-text-area")(ks);
1199
1199
  /**
1200
1200
  * @license
1201
1201
  * Copyright 2020 Google LLC
1202
1202
  * SPDX-License-Identifier: BSD-3-Clause
1203
1203
  */
1204
- const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Is(),r),n=o.insertBefore(Is(),r);i=new Rs(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ls=(t,e,i=t)=>(t._$AI(e,i),t),As={},_s=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ts=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ds=Pa(class extends Ma{constructor(t){if(super(t),t.type!==Fa)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Ls(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ls(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ls(r[h],n[p]),Us(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ls(r[d],n[u]),Us(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ts(a,u,p),f=Ts(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Us(t,r[h]);Ls(e,n[u]),l[u]=e}else l[u]=Ls(i,n[u]),Us(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Us(t,l[p+1]);Ls(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=As)=>{t._$AH=e})(t,l),at}});
1204
+ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Rs(),r),n=o.insertBefore(Rs(),r);i=new Is(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ls=(t,e,i=t)=>(t._$AI(e,i),t),As={},Ts=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},_s=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ws=Ma(class extends Pa{constructor(t){if(super(t),t.type!==Fa)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Ls(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ls(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ls(r[h],n[p]),Us(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ls(r[d],n[u]),Us(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=_s(a,u,p),f=_s(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Us(t,r[h]);Ls(e,n[u]),l[u]=e}else l[u]=Ls(i,n[u]),Us(t,r[h],i),r[e]=null;u++}else Ts(r[d]),d--;else Ts(r[h]),h++;for(;u<=p;){const e=Us(t,l[p+1]);Ls(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Ts(t)}return this.dt=a,((t,e=As)=>{t._$AH=e})(t,l),at}});
1205
1205
  /**
1206
1206
  * @license
1207
1207
  * Copyright 2017 Google LLC
1208
1208
  * SPDX-License-Identifier: BSD-3-Clause
1209
- */class Ws extends Hi{render(){return he`
1209
+ */class Ds extends Hi{render(){return he`
1210
1210
  <div class="ft-loader">
1211
1211
  <div></div>
1212
1212
  <div></div>
1213
1213
  <div></div>
1214
1214
  <div></div>
1215
1215
  </div>
1216
- `}}Ws.styles=pa,W("ft-loader")(Ws);var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends(Xr(Hi,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(he`
1216
+ `}}Ds.styles=pa,D("ft-loader")(Ds);var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ms extends(Xr(Hi,"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(he`
1217
1217
  <button part="button"
1218
- class="${ja(this.buttonClasses)}"
1218
+ class="${za(this.buttonClasses)}"
1219
1219
  aria-label="${this.getLabel()}"
1220
1220
  ?disabled=${this.isDisabled()}>
1221
1221
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1236,7 +1236,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1236
1236
  </ft-tooltip>
1237
1237
  `:t}resolveIcon(){return this.loading?he`
1238
1238
  <ft-loader part="loader icon"></ft-loader> `:this.icon?he`
1239
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}Ps.elementDefinitions={"ft-ripple":Ba,"ft-tooltip":Ja,"ft-typography":Da,"ft-icon":ns,"ft-loader":Ws},Fs([k({type:String,reflect:!0})],Ps.prototype,"role",void 0),Fs([k()],Ps.prototype,"type",void 0),Fs([k({type:Boolean})],Ps.prototype,"disabled",void 0),Fs([k()],Ps.prototype,"label",void 0),Fs([k()],Ps.prototype,"icon",void 0),Fs([k()],Ps.prototype,"iconVariant",void 0),Fs([k({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Fs([k({type:Boolean})],Ps.prototype,"loading",void 0),Fs([k()],Ps.prototype,"tooltipPosition",void 0),Fs([k({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Fs([k({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Fs([L(".ft-button")],Ps.prototype,"button",void 0),Fs([L(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);var Ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class js extends Ps{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"}}js.styles=[qi,Na],Ms([k({type:Boolean})],js.prototype,"primary",void 0),Ms([k({type:Boolean})],js.prototype,"outlined",void 0),Ms([k({type:Boolean})],js.prototype,"dense",void 0),Ms([k({type:Boolean})],js.prototype,"round",void 0);const zs=[Rt`
1239
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}Ms.elementDefinitions={"ft-ripple":Ba,"ft-tooltip":Ja,"ft-typography":Wa,"ft-icon":ns,"ft-loader":Ds},Fs([I({type:String,reflect:!0})],Ms.prototype,"role",void 0),Fs([I()],Ms.prototype,"type",void 0),Fs([I({type:Boolean})],Ms.prototype,"disabled",void 0),Fs([I()],Ms.prototype,"label",void 0),Fs([I()],Ms.prototype,"icon",void 0),Fs([I()],Ms.prototype,"iconVariant",void 0),Fs([I({type:Boolean})],Ms.prototype,"trailingIcon",void 0),Fs([I({type:Boolean})],Ms.prototype,"loading",void 0),Fs([I()],Ms.prototype,"tooltipPosition",void 0),Fs([I({type:Boolean})],Ms.prototype,"hideTooltip",void 0),Fs([I({type:Boolean})],Ms.prototype,"forceTooltip",void 0),Fs([A(".ft-button")],Ms.prototype,"button",void 0),Fs([A(".ft-button--label slot")],Ms.prototype,"slottedContent",void 0);var Ps=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class zs extends Ms{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"}}zs.styles=[qi,$a],Ps([I({type:Boolean})],zs.prototype,"primary",void 0),Ps([I({type:Boolean})],zs.prototype,"outlined",void 0),Ps([I({type:Boolean})],zs.prototype,"dense",void 0),Ps([I({type:Boolean})],zs.prototype,"round",void 0);const js=[It`
1240
1240
  :host {
1241
1241
  display: inline-block;
1242
1242
  max-width: 100%;
@@ -1286,7 +1286,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1286
1286
  }
1287
1287
 
1288
1288
  .ft-button:focus-visible {
1289
- outline-color: ${_e.focusFocusRingColor};
1289
+ outline-color: ${Te.focusFocusRingColor};
1290
1290
  outline-style: solid;
1291
1291
  }
1292
1292
 
@@ -1315,154 +1315,154 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1315
1315
  /** Primary styles **/
1316
1316
 
1317
1317
  .ft-button--primary {
1318
- ${Ie(ua.color,_e.primaryIconColor)};
1318
+ ${Re(ua.color,Te.primaryIconColor)};
1319
1319
 
1320
- ${Ie(cn.color,_e.primaryStateLayerColor)};
1321
- ${Ie(cn.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
1322
- ${Ie(cn.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
1323
- ${Ie(cn.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
1324
- ${Ie(cn.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
1320
+ ${Re(cn.color,Te.primaryStateLayerColor)};
1321
+ ${Re(cn.opacityContentOnSurfaceHover,Te.primaryStateLayerOpacityHover)};
1322
+ ${Re(cn.opacityContentOnSurfaceFocused,Te.primaryStateLayerOpacityFocus)};
1323
+ ${Re(cn.opacityContentOnSurfaceSelected,Te.primaryStateLayerOpacityActive)};
1324
+ ${Re(cn.opacityContentOnSurfacePressed,Te.primaryStateLayerOpacityActive)};
1325
1325
 
1326
- background-color: ${_e.primaryBackgroundColor};
1327
- color: ${_e.primaryColor};
1326
+ background-color: ${Te.primaryBackgroundColor};
1327
+ color: ${Te.primaryColor};
1328
1328
  border-style: none;
1329
1329
  }
1330
1330
 
1331
1331
  .ft-button--primary[disabled] {
1332
- opacity: ${_e.primaryComponentOpacityDisabled};
1332
+ opacity: ${Te.primaryComponentOpacityDisabled};
1333
1333
  }
1334
1334
 
1335
1335
  .ft-button--primary ft-icon {
1336
- color: ${_e.primaryIconColor};
1336
+ color: ${Te.primaryIconColor};
1337
1337
  }
1338
1338
 
1339
1339
  /** Secondary styles **/
1340
1340
 
1341
1341
  .ft-button--secondary {
1342
- ${Ie(ua.color,_e.secondaryIconColor)};
1342
+ ${Re(ua.color,Te.secondaryIconColor)};
1343
1343
 
1344
- ${Ie(cn.color,_e.secondaryStateLayerColor)};
1345
- ${Ie(cn.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
1346
- ${Ie(cn.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
1347
- ${Ie(cn.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
1348
- ${Ie(cn.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
1344
+ ${Re(cn.color,Te.secondaryStateLayerColor)};
1345
+ ${Re(cn.opacityContentOnSurfaceHover,Te.secondaryStateLayerOpacityHover)};
1346
+ ${Re(cn.opacityContentOnSurfaceFocused,Te.secondaryStateLayerOpacityFocus)};
1347
+ ${Re(cn.opacityContentOnSurfaceSelected,Te.secondaryStateLayerOpacityActive)};
1348
+ ${Re(cn.opacityContentOnSurfacePressed,Te.secondaryStateLayerOpacityActive)};
1349
1349
 
1350
- background-color: ${_e.secondaryBackgroundColor};
1351
- color: ${_e.secondaryColor};
1352
- border-color: ${_e.secondaryBorderColor};
1350
+ background-color: ${Te.secondaryBackgroundColor};
1351
+ color: ${Te.secondaryColor};
1352
+ border-color: ${Te.secondaryBorderColor};
1353
1353
  border-style: solid;
1354
1354
  }
1355
1355
 
1356
1356
  .ft-button--secondary[disabled] {
1357
- opacity: ${_e.secondaryComponentOpacityDisabled};
1357
+ opacity: ${Te.secondaryComponentOpacityDisabled};
1358
1358
  }
1359
1359
 
1360
1360
  .ft-button--secondary ft-icon {
1361
- color: ${_e.secondaryIconColor};
1361
+ color: ${Te.secondaryIconColor};
1362
1362
  }
1363
1363
 
1364
1364
  /** Tertiary styles **/
1365
1365
 
1366
1366
  .ft-button--tertiary {
1367
- ${Ie(ua.color,_e.tertiaryIconColor)};
1367
+ ${Re(ua.color,Te.tertiaryIconColor)};
1368
1368
 
1369
- ${Ie(cn.color,_e.tertiaryStateLayerColor)};
1370
- ${Ie(cn.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
1371
- ${Ie(cn.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
1372
- ${Ie(cn.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
1373
- ${Ie(cn.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
1369
+ ${Re(cn.color,Te.tertiaryStateLayerColor)};
1370
+ ${Re(cn.opacityContentOnSurfaceHover,Te.tertiaryStateLayerOpacityHover)};
1371
+ ${Re(cn.opacityContentOnSurfaceFocused,Te.tertiaryStateLayerOpacityFocus)};
1372
+ ${Re(cn.opacityContentOnSurfaceSelected,Te.tertiaryStateLayerOpacityActive)};
1373
+ ${Re(cn.opacityContentOnSurfacePressed,Te.tertiaryStateLayerOpacityActive)};
1374
1374
 
1375
- background-color: ${_e.tertiaryBackgroundColor};
1376
- color: ${_e.tertiaryColor};
1375
+ background-color: ${Te.tertiaryBackgroundColor};
1376
+ color: ${Te.tertiaryColor};
1377
1377
  border-style: none;
1378
1378
  }
1379
1379
 
1380
1380
  .ft-button--tertiary[disabled] {
1381
- opacity: ${_e.tertiaryComponentOpacityDisabled};
1381
+ opacity: ${Te.tertiaryComponentOpacityDisabled};
1382
1382
  }
1383
1383
 
1384
1384
  .ft-button--tertiary ft-icon {
1385
- color: ${_e.tertiaryIconColor};
1385
+ color: ${Te.tertiaryIconColor};
1386
1386
  }
1387
1387
 
1388
1388
  /** Neutral styles **/
1389
1389
 
1390
1390
  .ft-button--neutral {
1391
- ${Ie(ua.color,_e.neutralIconColor)};
1391
+ ${Re(ua.color,Te.neutralIconColor)};
1392
1392
 
1393
- ${Ie(cn.backgroundColor,_e.neutralStateLayerColor)};
1394
- ${Ie(cn.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
1395
- ${Ie(cn.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
1396
- ${Ie(cn.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
1397
- ${Ie(cn.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
1393
+ ${Re(cn.backgroundColor,Te.neutralStateLayerColor)};
1394
+ ${Re(cn.opacityContentOnSurfaceHover,Te.neutralStateLayerOpacityHover)};
1395
+ ${Re(cn.opacityContentOnSurfaceFocused,Te.neutralStateLayerOpacityFocus)};
1396
+ ${Re(cn.opacityContentOnSurfaceSelected,Te.neutralStateLayerOpacityActive)};
1397
+ ${Re(cn.opacityContentOnSurfacePressed,Te.neutralStateLayerOpacityActive)};
1398
1398
 
1399
- background-color: ${_e.neutralBackgroundColor};
1400
- color: ${_e.neutralColor};
1399
+ background-color: ${Te.neutralBackgroundColor};
1400
+ color: ${Te.neutralColor};
1401
1401
  border-style: none;
1402
1402
  }
1403
1403
 
1404
1404
  .ft-button--neutral[disabled] {
1405
- opacity: ${_e.neutralComponentOpacityDisabled};
1405
+ opacity: ${Te.neutralComponentOpacityDisabled};
1406
1406
  }
1407
1407
 
1408
1408
  .ft-button--neutral ft-icon {
1409
- color: ${_e.neutralIconColor};
1409
+ color: ${Te.neutralIconColor};
1410
1410
  }
1411
1411
 
1412
1412
  /** Large styles **/
1413
1413
 
1414
1414
  .ft-button--large {
1415
- ${Ie(ya.size,_e.largeIconSize)};
1416
- ${Ie(ua.size,_e.largeIconSize)};
1415
+ ${Re(ya.size,Te.largeIconSize)};
1416
+ ${Re(ua.size,Te.largeIconSize)};
1417
1417
 
1418
- height: ${_e.largeHeight};
1419
- padding: 0 ${_e.largeHorizontalPadding};
1420
- gap: ${_e.largeGap};
1421
- border-radius: ${_e.largeBorderRadius};
1422
- border-width: ${_e.largeBorderWidth};
1418
+ height: ${Te.largeHeight};
1419
+ padding: 0 ${Te.largeHorizontalPadding};
1420
+ gap: ${Te.largeGap};
1421
+ border-radius: ${Te.largeBorderRadius};
1422
+ border-width: ${Te.largeBorderWidth};
1423
1423
  }
1424
1424
 
1425
1425
  .ft-button--large:focus-visible {
1426
- outline-width: ${_e.largeFocusOutlineWidth};
1427
- outline-offset: ${_e.largeFocusOutlineOffset};
1426
+ outline-width: ${Te.largeFocusOutlineWidth};
1427
+ outline-offset: ${Te.largeFocusOutlineOffset};
1428
1428
  }
1429
1429
 
1430
1430
  .ft-button--large.ft-button--icon-only {
1431
- width: ${_e.largeIconOnlyWidth};
1431
+ width: ${Te.largeIconOnlyWidth};
1432
1432
  padding: unset;
1433
1433
  }
1434
1434
 
1435
1435
  /** Small styles **/
1436
1436
 
1437
1437
  .ft-button--small {
1438
- ${Ie(ya.size,_e.smallIconSize)};
1439
- ${Ie(ua.size,_e.smallIconSize)};
1438
+ ${Re(ya.size,Te.smallIconSize)};
1439
+ ${Re(ua.size,Te.smallIconSize)};
1440
1440
 
1441
- height: ${_e.smallHeight};
1442
- padding: 0 ${_e.smallHorizontalPadding};
1443
- gap: ${_e.smallGap};
1444
- border-radius: ${_e.smallBorderRadius};
1445
- border-width: ${_e.smallBorderWidth};
1441
+ height: ${Te.smallHeight};
1442
+ padding: 0 ${Te.smallHorizontalPadding};
1443
+ gap: ${Te.smallGap};
1444
+ border-radius: ${Te.smallBorderRadius};
1445
+ border-width: ${Te.smallBorderWidth};
1446
1446
  }
1447
1447
 
1448
1448
  .ft-button--small:focus-visible {
1449
- outline-width: ${_e.smallFocusOutlineWidth};
1450
- outline-offset: ${_e.smallFocusOutlineOffset};
1449
+ outline-width: ${Te.smallFocusOutlineWidth};
1450
+ outline-offset: ${Te.smallFocusOutlineOffset};
1451
1451
  }
1452
1452
 
1453
1453
  .ft-button--small.ft-button--icon-only {
1454
- width: ${_e.smallIconOnlyWidth};
1454
+ width: ${Te.smallIconOnlyWidth};
1455
1455
  padding: unset;
1456
1456
  }
1457
- `,Vi];var Bs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ks extends Ps{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?_a.caption1medium:_a.body2medium}}Ks.styles=[qi,zs],Bs([k({type:Boolean})],Ks.prototype,"primary",void 0),Bs([k({type:Boolean})],Ks.prototype,"secondary",void 0),Bs([k({type:Boolean})],Ks.prototype,"tertiary",void 0),Bs([k({type:Boolean})],Ks.prototype,"neutral",void 0),Bs([k({type:Boolean})],Ks.prototype,"small",void 0),W("ft-button")(js),W("ftds-button")(Ks);const Zs=Rt`
1458
- `,Hs=Rt`
1459
- `,Gs=qr.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}});class Vs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gs.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Vs.build(t):null!==(e=Vs.API)&&void 0!==e?e:Vs.API=Vs.build()}static await(t){return new Promise((e=>{let i=Vs.get(t);if(i)e(i);else{const o=Gs.subscribe((()=>{i=Vs.get(t),i&&(o(),e(i))}))}}))}}var qs;const Ys=Symbol("clearAfterUnitTest");class Xs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Gs.getState().uiLocale,Gs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gs.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 i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Yi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}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 i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.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=>_(0).then((()=>t())).catch((()=>null)))))}}qs=Ys,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xs((async(t,e)=>(await Vs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xs((async(t,e)=>(await Vs.await()).getCustomMessageContext(t,e))));const Js=window.FluidTopicsI18nService,Qs=window.FluidTopicsCustomI18nService;var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends Hi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vs.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return he`
1457
+ `,Vi];var Bs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ks extends Ms{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?Ta.caption1medium:Ta.body2medium}}Ks.styles=[qi,js],Bs([I({type:Boolean})],Ks.prototype,"primary",void 0),Bs([I({type:Boolean})],Ks.prototype,"secondary",void 0),Bs([I({type:Boolean})],Ks.prototype,"tertiary",void 0),Bs([I({type:Boolean})],Ks.prototype,"neutral",void 0),Bs([I({type:Boolean})],Ks.prototype,"small",void 0),D("ft-button")(zs),D("ftds-button")(Ks);const Zs=It`
1458
+ `,Hs=It`
1459
+ `,Gs=qr.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}});class Vs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gs.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Vs.build(t):null!==(e=Vs.API)&&void 0!==e?e:Vs.API=Vs.build()}static await(t){return new Promise((e=>{let i=Vs.get(t);if(i)e(i);else{const o=Gs.subscribe((()=>{i=Vs.get(t),i&&(o(),e(i))}))}}))}}var qs;const Ys=Symbol("clearAfterUnitTest");class Xs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Gs.getState().uiLocale,Gs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gs.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 i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};W(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Yi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}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 i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.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=>_(0).then((()=>t())).catch((()=>null)))))}}qs=Ys,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xs((async(t,e)=>(await Vs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xs((async(t,e)=>(await Vs.await()).getCustomMessageContext(t,e))));const Js=window.FluidTopicsI18nService,Qs=window.FluidTopicsCustomI18nService;var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends Hi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vs.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return he`
1460
1460
  <slot></slot>
1461
- `}update(t){super.update(t),t.has("baseUrl")&&(Gs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Gs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Gs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Gs.actions.noCustom(this.noCustom),t.has("editorMode")&&Gs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Gs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Gs.actions.session(this.session),t.has("availableUiLocales")&&Gs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Js.addContext(t))),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()))}}el.elementDefinitions={},el.styles=Hs,tl([k()],el.prototype,"baseUrl",void 0),tl([k()],el.prototype,"apiIntegrationIdentifier",void 0),tl([k()],el.prototype,"uiLocale",void 0),tl([F(null)],el.prototype,"availableUiLocales",void 0),tl([F(null)],el.prototype,"metadataConfiguration",void 0),tl([k({type:Boolean})],el.prototype,"editorMode",void 0),tl([k({type:Boolean})],el.prototype,"noCustom",void 0),tl([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],el.prototype,"noCustomComponent",void 0),tl([k({type:Boolean})],el.prototype,"withManualResources",void 0),tl([F([])],el.prototype,"messageContexts",void 0),tl([F(void 0)],el.prototype,"session",void 0),tl([k({type:Object})],el.prototype,"apiProvider",void 0);class il{async listMySearches(){var t;return(null===(t=Gs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vs.await()).listMySearches(Gs.getState().session.profile.userId):[]}}const ol=new o;class rl{async listMyBookmarks(){return ol.get("bookmarks",(async()=>(await Vs.await()).listMyBookmarks(Gs.getState().session.profile.userId)))}clearCache(){ol.clear("bookmarks")}}const nl=qr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const al=new class{constructor(){this.currentSession=Gs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rl,Gs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Gs.getState();D(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(){nl.actions.savedSearches(void 0)}clearMyBookmarks(){nl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new il,e=await t.listMySearches();nl.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;nl.actions.bookmarks(e)}}};W("ft-app-context")(el);var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ll=Symbol("i18nProperties"),cl=Symbol("i18nUnsubs");function fl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qs:Js}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ll])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ll])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ll]&&new Set([...this[ll].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cl].has(t)||this[cl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[cl].forEach((t=>t())),this[cl].clear()}}return e=cl,sl([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hl extends(fl(Hi)){}class dl extends(fl(ao)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends dl{constructor(){super(),this.editorMode=!1,this.addStore(Gs)}render(){return this.key&&this.context?he`
1461
+ `}update(t){super.update(t),t.has("baseUrl")&&(Gs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Gs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Gs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Gs.actions.noCustom(this.noCustom),t.has("editorMode")&&Gs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Gs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Gs.actions.session(this.session),t.has("availableUiLocales")&&Gs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Js.addContext(t))),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()))}}el.elementDefinitions={},el.styles=Hs,tl([I()],el.prototype,"baseUrl",void 0),tl([I()],el.prototype,"apiIntegrationIdentifier",void 0),tl([I()],el.prototype,"uiLocale",void 0),tl([F(null)],el.prototype,"availableUiLocales",void 0),tl([F(null)],el.prototype,"metadataConfiguration",void 0),tl([I({type:Boolean})],el.prototype,"editorMode",void 0),tl([I({type:Boolean})],el.prototype,"noCustom",void 0),tl([I({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],el.prototype,"noCustomComponent",void 0),tl([I({type:Boolean})],el.prototype,"withManualResources",void 0),tl([F([])],el.prototype,"messageContexts",void 0),tl([F(void 0)],el.prototype,"session",void 0),tl([I({type:Object})],el.prototype,"apiProvider",void 0);class il{async listMySearches(){var t;return(null===(t=Gs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vs.await()).listMySearches(Gs.getState().session.profile.userId):[]}}const ol=new o;class rl{async listMyBookmarks(){return ol.get("bookmarks",(async()=>(await Vs.await()).listMyBookmarks(Gs.getState().session.profile.userId)))}clearCache(){ol.clear("bookmarks")}}const nl=qr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const al=new class{constructor(){this.currentSession=Gs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rl,Gs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Gs.getState();W(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(){nl.actions.savedSearches(void 0)}clearMyBookmarks(){nl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new il,e=await t.listMySearches();nl.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;nl.actions.bookmarks(e)}}};D("ft-app-context")(el);var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ll=Symbol("i18nProperties"),cl=Symbol("i18nUnsubs");function fl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qs:Js}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ll])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ll])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ll]&&new Set([...this[ll].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cl].has(t)||this[cl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[cl].forEach((t=>t())),this[cl].clear()}}return e=cl,sl([I({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hl extends(fl(Hi)){}class dl extends(fl(ao)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends dl{constructor(){super(),this.editorMode=!1,this.addStore(Gs)}render(){return this.key&&this.context?he`
1462
1462
  <span class="ft-i18n">
1463
1463
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1464
1464
  </span>
1465
- `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}pl.elementDefinitions={},pl.styles=Zs,ul([Xi()],pl.prototype,"editorMode",void 0),ul([k()],pl.prototype,"context",void 0),ul([k()],pl.prototype,"key",void 0),ul([F([])],pl.prototype,"args",void 0),ul([k()],pl.prototype,"defaultMessage",void 0);class yl{static build(t){return new yl(t)}static fromGwt(t){return new yl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Js.resolveMessage(this.name,e,...t)})}}const gl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ll]=null!==(n=i[ll])&&void 0!==n?n:new Map,i[ll].set(o,a)};W("ft-i18n")(pl);const bl=yl.build("integratedFeedbackComponent"),vl={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ml={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",Te.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",Te.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(Te.colorSurface,"Design system"),colorOutline:Re.external(Te.colorOutline,"Design system"),elevation02:Re.external(Te.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},xl=Rt`
1465
+ `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}pl.elementDefinitions={},pl.styles=Zs,ul([Xi()],pl.prototype,"editorMode",void 0),ul([I()],pl.prototype,"context",void 0),ul([I()],pl.prototype,"key",void 0),ul([F([])],pl.prototype,"args",void 0),ul([I()],pl.prototype,"defaultMessage",void 0);class yl{static build(t){return new yl(t)}static fromGwt(t){return new yl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Js.resolveMessage(this.name,e,...t)})}}const gl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ll]=null!==(n=i[ll])&&void 0!==n?n:new Map,i[ll].set(o,a)};D("ft-i18n")(pl);const bl=yl.build("integratedFeedbackComponent"),vl={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ml={fontSize:Ie.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ie.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ie.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ie.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ie.extend("--ft-text-field-helper-color","",_e.colorOnSurfaceMedium),colorPrimary:Ie.external(_e.colorPrimary,"Design system"),colorOnSurface:Ie.external(_e.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ie.external(_e.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ie.external(_e.borderRadiusS,"Design system"),colorError:Ie.external(_e.colorError,"Design system"),prefixColor:Ie.extend("--ft-text-field-prefix-color","",_e.colorOnSurfaceMedium),iconColor:Ie.extend("--ft-text-field-icon-color","",_e.colorOnSurfaceMedium),floatingZIndex:Ie.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ie.external(_e.colorSurface,"Design system"),colorOutline:Ie.external(_e.colorOutline,"Design system"),elevation02:Ie.external(_e.elevation02,"Design system"),suggestSize:Ie.create("--ft-text-field-suggest-size","","SIZE","300px")},xl=It`
1466
1466
  *:focus {
1467
1467
  outline: none;
1468
1468
  }
@@ -1475,10 +1475,10 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1475
1475
  }
1476
1476
 
1477
1477
  ft-input-label {
1478
- ${Ie(ws.fontSize,ml.fontSize)};
1479
- ${Ie(ws.raisedFontSize,ml.labelSize)};
1480
- ${Ie(ws.verticalSpacing,ml.verticalSpacing)};
1481
- ${Ie(ws.horizontalSpacing,ml.horizontalSpacing)};
1478
+ ${Re(ws.fontSize,ml.fontSize)};
1479
+ ${Re(ws.raisedFontSize,ml.labelSize)};
1480
+ ${Re(ws.verticalSpacing,ml.verticalSpacing)};
1481
+ ${Re(ws.horizontalSpacing,ml.horizontalSpacing)};
1482
1482
  }
1483
1483
 
1484
1484
  .ft-text-field--main-panel {
@@ -1495,13 +1495,13 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1495
1495
  overflow: hidden;
1496
1496
  padding: 0 ${ml.horizontalSpacing};
1497
1497
 
1498
- ${Ie(_n.fontSize,ml.fontSize)};
1499
- ${Ie(_n.lineHeight,ml.fontSize)};
1498
+ ${Re(Tn.fontSize,ml.fontSize)};
1499
+ ${Re(Tn.lineHeight,ml.fontSize)};
1500
1500
  }
1501
1501
 
1502
1502
  .ft-text-field--input-panel ft-ripple {
1503
- ${Ie(cn.opacityContentOnSurfaceHover,"0.08")};
1504
- ${Ie(cn.opacityContentOnSurfacePressed,"0.04")};
1503
+ ${Re(cn.opacityContentOnSurfaceHover,"0.08")};
1504
+ ${Re(cn.opacityContentOnSurfacePressed,"0.04")};
1505
1505
  }
1506
1506
 
1507
1507
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1550,8 +1550,8 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1550
1550
  }
1551
1551
 
1552
1552
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1553
- ${Ie(ws.borderColor,ml.colorPrimary)};
1554
- ${Ie(ws.textColor,ml.colorPrimary)};
1553
+ ${Re(ws.borderColor,ml.colorPrimary)};
1554
+ ${Re(ws.textColor,ml.colorPrimary)};
1555
1555
  }
1556
1556
 
1557
1557
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1612,14 +1612,14 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1612
1612
  }
1613
1613
 
1614
1614
  .ft-text-field--with-icon {
1615
- ${Ie(ws.labelMaxWidth,`calc(100% - ${ya.size} - ${ws.horizontalSpacing})`)};
1615
+ ${Re(ws.labelMaxWidth,`calc(100% - ${ya.size} - ${ws.horizontalSpacing})`)};
1616
1616
  }
1617
1617
 
1618
1618
  .ft-text-field--with-password ft-icon:hover {
1619
1619
  cursor: pointer;
1620
1620
  }
1621
1621
  `;var wl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ol extends(Xr(Hi,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=es.EYE_SLASH,this.passwordRevealedIcon=es.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return he`
1622
- <div class="${ja(t)}">
1622
+ <div class="${za(t)}">
1623
1623
  <div class="ft-text-field--main-panel"
1624
1624
  @keydown=${this.handleKeyboardNavigation}
1625
1625
  @focusout=${this.onMainPanelBlur}>
@@ -1670,7 +1670,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1670
1670
  .variant=${this.iconVariant}
1671
1671
  .value=${this.icon}
1672
1672
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1673
- `:ue}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ol.elementDefinitions={"ft-input-label":$s,"ft-ripple":Ba,"ft-typography":Da,"ft-icon":ns},Ol.styles=[na,xl],wl([k()],Ol.prototype,"label",void 0),wl([k({noAccessor:!0})],Ol.prototype,"value",null),wl([R()],Ol.prototype,"dispatchedValue",void 0),wl([k()],Ol.prototype,"helper",void 0),wl([k({type:Boolean})],Ol.prototype,"outlined",void 0),wl([k({type:Boolean})],Ol.prototype,"disabled",void 0),wl([k({type:Boolean})],Ol.prototype,"error",void 0),wl([k()],Ol.prototype,"prefix",void 0),wl([k()],Ol.prototype,"icon",void 0),wl([k()],Ol.prototype,"passwordHiddenIcon",void 0),wl([k()],Ol.prototype,"passwordRevealedIcon",void 0),wl([k()],Ol.prototype,"iconVariant",void 0),wl([k({type:Boolean})],Ol.prototype,"filterSuggestions",void 0),wl([k({type:Number})],Ol.prototype,"maxLength",void 0),wl([k({type:Boolean})],Ol.prototype,"password",void 0),wl([R()],Ol.prototype,"focused",void 0),wl([R()],Ol.prototype,"hidePassword",void 0),wl([R()],Ol.prototype,"suggestionsOnTop",void 0),wl([R()],Ol.prototype,"hideSuggestions",void 0),wl([R()],Ol.prototype,"visibleSuggestions",void 0),wl([L(".ft-text-field--main-panel")],Ol.prototype,"mainPanel",void 0),wl([L(".ft-text-field--input")],Ol.prototype,"input",void 0),wl([L(".ft-text-field--suggestions")],Ol.prototype,"suggestionsContainer",void 0),wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ol.prototype,"suggestions",void 0);const Sl=Rt`
1673
+ `:ue}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ol.elementDefinitions={"ft-input-label":Ns,"ft-ripple":Ba,"ft-typography":Wa,"ft-icon":ns},Ol.styles=[na,xl],wl([I()],Ol.prototype,"label",void 0),wl([I({noAccessor:!0})],Ol.prototype,"value",null),wl([R()],Ol.prototype,"dispatchedValue",void 0),wl([I()],Ol.prototype,"helper",void 0),wl([I({type:Boolean})],Ol.prototype,"outlined",void 0),wl([I({type:Boolean})],Ol.prototype,"disabled",void 0),wl([I({type:Boolean})],Ol.prototype,"error",void 0),wl([I()],Ol.prototype,"prefix",void 0),wl([I()],Ol.prototype,"icon",void 0),wl([I()],Ol.prototype,"passwordHiddenIcon",void 0),wl([I()],Ol.prototype,"passwordRevealedIcon",void 0),wl([I()],Ol.prototype,"iconVariant",void 0),wl([I({type:Boolean})],Ol.prototype,"filterSuggestions",void 0),wl([I({type:Number})],Ol.prototype,"maxLength",void 0),wl([I({type:Boolean})],Ol.prototype,"password",void 0),wl([R()],Ol.prototype,"focused",void 0),wl([R()],Ol.prototype,"hidePassword",void 0),wl([R()],Ol.prototype,"suggestionsOnTop",void 0),wl([R()],Ol.prototype,"hideSuggestions",void 0),wl([R()],Ol.prototype,"visibleSuggestions",void 0),wl([A(".ft-text-field--main-panel")],Ol.prototype,"mainPanel",void 0),wl([A(".ft-text-field--input")],Ol.prototype,"input",void 0),wl([A(".ft-text-field--suggestions")],Ol.prototype,"suggestionsContainer",void 0),wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ol.prototype,"suggestions",void 0);const Sl=It`
1674
1674
  .ft-text-field-suggestion {
1675
1675
  position: relative;
1676
1676
  padding: 8px 16px;
@@ -1695,7 +1695,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1695
1695
  slot {
1696
1696
  pointer-events: none;
1697
1697
  }
1698
- `;var $l=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Nl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Cl extends Hi{render(){return he`
1698
+ `;var Nl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $l extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Cl extends Hi{render(){return he`
1699
1699
  <div class="ft-text-field-suggestion"
1700
1700
  tabindex="-1"
1701
1701
  @keydown=${this.onKeyDown}
@@ -1707,15 +1707,15 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1707
1707
  <slot></slot>
1708
1708
  </ft-typography>
1709
1709
  </div>
1710
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Nl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Cl.elementDefinitions={"ft-ripple":Ba,"ft-typography":Da,"ft-icon":ns},Cl.styles=Sl,$l([k()],Cl.prototype,"value",void 0),$l([L(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),$l([A()],Cl.prototype,"assignedNodes",void 0),W("ft-text-field")(Ol),W("ft-text-field-suggestion")(Cl);class El{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class kl{convertPaginatedToc(t){return new El(t).build()}}var Rl,Il,Ul,Ll,Al,_l,Tl,Dl,Wl,Fl,Pl,Ml,jl,zl,Bl,Kl,Zl,Hl;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Rl||(Rl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Il||(Il={})),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"}(Ul||(Ul={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ll||(Ll={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Al||(Al={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(_l||(_l={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Tl||(Tl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dl||(Dl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Wl||(Wl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Fl||(Fl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pl||(Pl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ml||(Ml={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zl||(zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bl||(Bl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Kl||(Kl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zl||(Zl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Hl||(Hl={}));const Gl={[Zl.PERSONAL_BOOK_SHARE_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.HTML_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.PDF_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.KHUB_ADMIN]:[Zl.CONTENT_PUBLISHER],[Zl.ADMIN]:[Zl.KHUB_ADMIN,Zl.USERS_ADMIN,Zl.PORTAL_ADMIN],[Zl.DEVELOPER]:[Zl.BETA_USER,Zl.DEBUG_USER]};function Vl(t,e){return t===e||(Gl[t]??[]).some((t=>Vl(t,e)))}function ql(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Vl(t,e)))}class Yl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return ql(null!==(e=null===(t=Gs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Gs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case on.FEEDBACK:return ql(null!=e?e:[],Zl.FEEDBACK_USER);case on.RATING:return ql(null!=e?e:[],Zl.RATING_USER)&&null!=i&&i!==Tl.NO_RATING;case on.PRINT:return ql(null!=e?e:[],Zl.PRINT_USER);case on.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case on.COLLECTIONS:return ql(null!=e?e:[],Zl.COLLECTION_USER);case on.PERSONAL_BOOKS:return ql(null!=e?e:[],Zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Xl extends Yl{static async build(t){return new Xl(new kl,await Vs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Jl{static build(t,e){return new Jl((t=>qr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Xl.build)}constructor(t,e){this.store=t,this.loadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return T((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear()}reload(){return this.clear(),this.load()}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Ql=Rt`
1711
- `;class tc extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ec extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class ic extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class oc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class rc extends Event{constructor(){super("ft-reader-map-not-found")}}class nc extends Event{constructor(){super("ft-reader-map-unauthorized")}}var ac=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sc extends ao{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(Gs)}render(){return he`
1710
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new $l(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Cl.elementDefinitions={"ft-ripple":Ba,"ft-typography":Wa,"ft-icon":ns},Cl.styles=Sl,Nl([I()],Cl.prototype,"value",void 0),Nl([A(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),Nl([T()],Cl.prototype,"assignedNodes",void 0),D("ft-text-field")(Ol),D("ft-text-field-suggestion")(Cl);class El{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class kl{convertPaginatedToc(t){return new El(t).build()}}var Il,Rl,Ul,Ll,Al,Tl,_l,Wl,Dl,Fl,Ml,Pl,zl,jl,Bl,Kl,Zl,Hl;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Il||(Il={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Rl||(Rl={})),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"}(Ul||(Ul={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ll||(Ll={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Al||(Al={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Tl||(Tl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(_l||(_l={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Wl||(Wl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Dl||(Dl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Fl||(Fl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ml||(Ml={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Pl||(Pl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(zl||(zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bl||(Bl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Kl||(Kl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zl||(Zl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Hl||(Hl={}));const Gl={[Zl.PERSONAL_BOOK_SHARE_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.HTML_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.PDF_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.KHUB_ADMIN]:[Zl.CONTENT_PUBLISHER],[Zl.ADMIN]:[Zl.KHUB_ADMIN,Zl.USERS_ADMIN,Zl.PORTAL_ADMIN],[Zl.DEVELOPER]:[Zl.BETA_USER,Zl.DEBUG_USER]};function Vl(t,e){return t===e||(Gl[t]??[]).some((t=>Vl(t,e)))}function ql(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Vl(t,e)))}class Yl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return ql(null!==(e=null===(t=Gs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Gs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case on.FEEDBACK:return ql(null!=e?e:[],Zl.FEEDBACK_USER);case on.RATING:return ql(null!=e?e:[],Zl.RATING_USER)&&null!=i&&i!==_l.NO_RATING;case on.PRINT:return ql(null!=e?e:[],Zl.PRINT_USER);case on.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case on.COLLECTIONS:return ql(null!=e?e:[],Zl.COLLECTION_USER);case on.PERSONAL_BOOKS:return ql(null!=e?e:[],Zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Xl extends Yl{static async build(t){return new Xl(new kl,await Vs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Jl extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Ql extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class tc extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class ec extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class ic extends Event{constructor(){super("ft-reader-map-not-found")}}class oc extends Event{constructor(){super("ft-reader-map-unauthorized")}}class rc extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}class nc{static build(t,e){return new nc((t=>qr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Xl.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return async function(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Gs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t,e){var i,o,r;if(t&&e){const n=this.store.getState().configuration.relativeTopicPivotMetadata,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(t,n,e.values);if(await this.setMapId(t),null===(r=null===(o=null===(i=null==s?void 0:s.results)||void 0===i?void 0:i[0])||void 0===o?void 0:o.entries)||void 0===r?void 0:r[0]){const t=s.results[0].entries[0].topic.tocId;await this.navigateToTopic(t)}else this.store.eventBus.dispatchEvent(new rc)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const ac=It`
1711
+ `;var sc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class lc extends ao{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new n(5),this.navigationDebouncer=new n(10),this.addStore(Gs)}render(){return he`
1712
1712
  ${this.importStyleIfNeeded()}
1713
1713
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1714
1714
  `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?ue:he`
1715
1715
  <style>
1716
1716
  @import "${i}"
1717
1717
  </style>
1718
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Jl.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new tc(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new ic(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new ec(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new rc):401===e.status?this.dispatchEvent(new nc):this.dispatchEvent(new oc(t))}reloadBookmarks(){al.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var lc;sc.styles=Ql,ac([Xi({store:Gs.name})],sc.prototype,"baseUrl",void 0),ac([k()],sc.prototype,"mapId",void 0),ac([k()],sc.prototype,"tocId",void 0),ac([k()],sc.prototype,"section",void 0),ac([k()],sc.prototype,"searchInDocumentQuery",void 0),ac([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:lc}})],sc.prototype,"page",void 0),ac([Xi({store:"reader"})],sc.prototype,"map",void 0),ac([Xi({store:"reader"})],sc.prototype,"toc",void 0),ac([Xi({store:"reader"})],sc.prototype,"visibleTopics",void 0),ac([Xi({store:"reader"})],sc.prototype,"currentPage",void 0),ac([Xi({store:"reader"})],sc.prototype,"scrollTarget",void 0),ac([k({attribute:!1})],sc.prototype,"readerServiceProvider",void 0),W("ft-reader-context")(sc);var cc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(bl,vl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.canAccessFeedback||this.canAccessRating?he`
1718
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=nc.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Jl(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new tc(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Ql(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new ic):401===e.status?this.dispatchEvent(new oc):this.dispatchEvent(new ec(t))}reloadBookmarks(){al.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var cc;lc.styles=ac,sc([Xi({store:Gs.name})],lc.prototype,"baseUrl",void 0),sc([I()],lc.prototype,"mapId",void 0),sc([I()],lc.prototype,"tocId",void 0),sc([I()],lc.prototype,"section",void 0),sc([I()],lc.prototype,"searchInDocumentQuery",void 0),sc([I({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:cc}})],lc.prototype,"page",void 0),sc([Xi({store:"reader"})],lc.prototype,"map",void 0),sc([Xi({store:"reader"})],lc.prototype,"toc",void 0),sc([Xi({store:"reader"})],lc.prototype,"visibleTopics",void 0),sc([Xi({store:"reader"})],lc.prototype,"currentPage",void 0),sc([Xi({store:"reader"})],lc.prototype,"scrollTarget",void 0),sc([I({attribute:!1})],lc.prototype,"readerServiceProvider",void 0),D("ft-reader-context")(lc);var fc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class hc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(bl,vl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(on.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.canAccessFeedback||this.canAccessRating?he`
1719
1719
  <div class="ft-reader-feedback">
1720
1720
  ${this.hideTitle?ue:he`
1721
1721
  <ft-typography variant="title" part="main-title">
@@ -1737,7 +1737,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1737
1737
  </div>
1738
1738
  `:ue}renderRatingDate(){const t=this.ratingDate;if(null==t)return bl.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return bl.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?bl.messages.ratedToday():bl.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return he`
1739
1739
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1740
- ${Ds(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return he`
1740
+ ${Ws(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return he`
1741
1741
  <ft-button round part="rating-stars-${o}"
1742
1742
  label="${bl.messages.starsRating(o)}"
1743
1743
  tooltipPosition="top"
@@ -1812,7 +1812,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1812
1812
  ></ft-text-area>
1813
1813
  ${r}
1814
1814
  </form>
1815
- `}return ue}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}fc.elementDefinitions={"ft-button":js,"ft-typography":Da,"ft-switch":ps,"ft-switch-option":hs,"ft-text-area":ks,"ft-text-field":Ol},fc.styles=ka,cc([k({type:Boolean})],fc.prototype,"editorMode",void 0),cc([k({type:Boolean})],fc.prototype,"hideTitle",void 0),cc([k({type:Boolean})],fc.prototype,"ratingAllowed",void 0),cc([k({attribute:!1})],fc.prototype,"i18nProperties",void 0),cc([k({attribute:!1})],fc.prototype,"ratingSummary",void 0),cc([k({attribute:!1})],fc.prototype,"session",void 0),cc([L(".ft-reader-feedback--feedback-input")],fc.prototype,"feedbackInput",void 0),cc([R()],fc.prototype,"from",void 0),cc([R()],fc.prototype,"feedbackMessage",void 0),cc([k()],fc.prototype,"iconVariant",void 0),cc([k()],fc.prototype,"emptyStarIcon",void 0),cc([k()],fc.prototype,"filledStarIcon",void 0),cc([k()],fc.prototype,"emptyLikeIcon",void 0),cc([k()],fc.prototype,"filledLikeIcon",void 0),cc([k()],fc.prototype,"emptyDislikeIcon",void 0),cc([k()],fc.prototype,"filledDislikeIcon",void 0),cc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fc.prototype,"configuration",void 0),cc([k()],fc.prototype,"feedbackMailLinkBuilder",void 0);const hc=yl.fromGwt("server");class dc{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${hc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const uc=yl.build("inDesignerFeedbackComponent"),pc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var yc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class gc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.mapFeedbackMainTitle(),ratingSectionTitle:bl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){return he`
1815
+ `}return ue}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}hc.elementDefinitions={"ft-button":zs,"ft-typography":Wa,"ft-switch":ps,"ft-switch-option":hs,"ft-text-area":ks,"ft-text-field":Ol},hc.styles=ka,fc([I({type:Boolean})],hc.prototype,"editorMode",void 0),fc([I({type:Boolean})],hc.prototype,"hideTitle",void 0),fc([I({type:Boolean})],hc.prototype,"ratingAllowed",void 0),fc([I({attribute:!1})],hc.prototype,"i18nProperties",void 0),fc([I({attribute:!1})],hc.prototype,"ratingSummary",void 0),fc([I({attribute:!1})],hc.prototype,"session",void 0),fc([A(".ft-reader-feedback--feedback-input")],hc.prototype,"feedbackInput",void 0),fc([R()],hc.prototype,"from",void 0),fc([R()],hc.prototype,"feedbackMessage",void 0),fc([I()],hc.prototype,"iconVariant",void 0),fc([I()],hc.prototype,"emptyStarIcon",void 0),fc([I()],hc.prototype,"filledStarIcon",void 0),fc([I()],hc.prototype,"emptyLikeIcon",void 0),fc([I()],hc.prototype,"filledLikeIcon",void 0),fc([I()],hc.prototype,"emptyDislikeIcon",void 0),fc([I()],hc.prototype,"filledDislikeIcon",void 0),fc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],hc.prototype,"configuration",void 0),fc([I()],hc.prototype,"feedbackMailLinkBuilder",void 0);const dc=yl.fromGwt("server");class uc{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${dc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const pc=yl.build("inDesignerFeedbackComponent"),yc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var gc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class bc extends(fl(sn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new uc,this.i18nProperties={feedbackMainTitle:bl.properties.mapFeedbackMainTitle(),ratingSectionTitle:bl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Gs)}render(){return he`
1816
1816
  <ft-reader-feedback
1817
1817
  ratingAllowed
1818
1818
  .i18nProperties=${this.i18nProperties}
@@ -1832,7 +1832,7 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1832
1832
  @send-feedback=${this.sendFeedback}
1833
1833
  @mailer-feedback=${this.onMailerFeedbackSent}
1834
1834
  ></ft-reader-feedback>
1835
- `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}gc.elementDefinitions={"ft-reader-feedback":fc},yc([Xi({store:Gs.name})],gc.prototype,"session",void 0),yc([Xi({store:"reader"})],gc.prototype,"map",void 0),yc([Xi({store:Gs.name})],gc.prototype,"editorMode",void 0),yc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],gc.prototype,"configuration",void 0),yc([R()],gc.prototype,"ratingSummary",void 0),yc([k({type:Boolean})],gc.prototype,"hideTitle",void 0),yc([k()],gc.prototype,"iconVariant",void 0),yc([k()],gc.prototype,"emptyStarIcon",void 0),yc([k()],gc.prototype,"filledStarIcon",void 0),yc([k()],gc.prototype,"emptyLikeIcon",void 0),yc([k()],gc.prototype,"filledLikeIcon",void 0),yc([k()],gc.prototype,"emptyDislikeIcon",void 0),yc([k()],gc.prototype,"filledDislikeIcon",void 0),yc([L("ft-reader-feedback")],gc.prototype,"readerFeedback",void 0),yc([gl(hc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],gc.prototype,"mailSubject",void 0);var bc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const mc=Symbol("registerInterval");class xc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[mc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[mc]):this.dispatchEvent(new vc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=mc,bc([R()],i.prototype,"tocNode",void 0),bc([R()],i.prototype,"disableContextInteractions",void 0),i}(sn)){}var wc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Oc extends(fl(xc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new dc,this.i18nProperties={feedbackMainTitle:bl.properties.topicFeedbackMainTitle(),ratingSectionTitle:bl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){var t;return he`
1835
+ `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(pc,yc),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new We({type:"info",message:pc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new We({type:"info",message:pc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new We({type:"info",message:bl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}bc.elementDefinitions={"ft-reader-feedback":hc},gc([Xi({store:Gs.name})],bc.prototype,"session",void 0),gc([Xi({store:"reader"})],bc.prototype,"map",void 0),gc([Xi({store:Gs.name})],bc.prototype,"editorMode",void 0),gc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],bc.prototype,"configuration",void 0),gc([R()],bc.prototype,"ratingSummary",void 0),gc([I({type:Boolean})],bc.prototype,"hideTitle",void 0),gc([I()],bc.prototype,"iconVariant",void 0),gc([I()],bc.prototype,"emptyStarIcon",void 0),gc([I()],bc.prototype,"filledStarIcon",void 0),gc([I()],bc.prototype,"emptyLikeIcon",void 0),gc([I()],bc.prototype,"filledLikeIcon",void 0),gc([I()],bc.prototype,"emptyDislikeIcon",void 0),gc([I()],bc.prototype,"filledDislikeIcon",void 0),gc([A("ft-reader-feedback")],bc.prototype,"readerFeedback",void 0),gc([gl(dc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],bc.prototype,"mailSubject",void 0);var vc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class mc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const xc=Symbol("registerInterval");class wc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[xc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[xc]):this.dispatchEvent(new mc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=xc,vc([R()],i.prototype,"tocNode",void 0),vc([R()],i.prototype,"disableContextInteractions",void 0),i}(sn)){}var Oc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Sc extends(fl(wc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new uc,this.i18nProperties={feedbackMainTitle:bl.properties.topicFeedbackMainTitle(),ratingSectionTitle:bl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Gs)}render(){var t;return he`
1836
1836
  <ft-reader-feedback
1837
1837
  .i18nProperties=${this.i18nProperties}
1838
1838
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
@@ -1852,4 +1852,4 @@ const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
1852
1852
  @send-feedback=${this.sendFeedback}
1853
1853
  @mailer-feedback=${this.onMailerFeedbackSent}
1854
1854
  ></ft-reader-feedback>
1855
- `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(uc,pc),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:bl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:uc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Oc.elementDefinitions={"ft-reader-feedback":fc},wc([Xi({store:Gs.name})],Oc.prototype,"session",void 0),wc([Xi({store:"reader"})],Oc.prototype,"map",void 0),wc([Xi({store:Gs.name})],Oc.prototype,"editorMode",void 0),wc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Oc.prototype,"configuration",void 0),wc([R()],Oc.prototype,"ratingSummary",void 0),wc([k({type:Boolean})],Oc.prototype,"hideTitle",void 0),wc([k()],Oc.prototype,"iconVariant",void 0),wc([k()],Oc.prototype,"emptyStarIcon",void 0),wc([k()],Oc.prototype,"filledStarIcon",void 0),wc([k()],Oc.prototype,"emptyLikeIcon",void 0),wc([k()],Oc.prototype,"filledLikeIcon",void 0),wc([k()],Oc.prototype,"emptyDislikeIcon",void 0),wc([k()],Oc.prototype,"filledDislikeIcon",void 0),wc([L("ft-reader-feedback")],Oc.prototype,"readerFeedback",void 0),wc([gl(hc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Oc.prototype,"mailSubject",void 0),W("ft-reader-map-feedback")(gc),W("ft-reader-topic-feedback")(Oc),t.FtReaderFeedbackCssVariables=Ea,t.FtReaderMapFeedback=gc,t.FtReaderTopicFeedback=Oc,t.styles=ka}({});
1855
+ `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(pc,yc),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new We({type:"info",message:pc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new We({type:"info",message:bl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We({type:"info",message:pc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Sc.elementDefinitions={"ft-reader-feedback":hc},Oc([Xi({store:Gs.name})],Sc.prototype,"session",void 0),Oc([Xi({store:"reader"})],Sc.prototype,"map",void 0),Oc([Xi({store:Gs.name})],Sc.prototype,"editorMode",void 0),Oc([Xi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Sc.prototype,"configuration",void 0),Oc([R()],Sc.prototype,"ratingSummary",void 0),Oc([I({type:Boolean})],Sc.prototype,"hideTitle",void 0),Oc([I()],Sc.prototype,"iconVariant",void 0),Oc([I()],Sc.prototype,"emptyStarIcon",void 0),Oc([I()],Sc.prototype,"filledStarIcon",void 0),Oc([I()],Sc.prototype,"emptyLikeIcon",void 0),Oc([I()],Sc.prototype,"filledLikeIcon",void 0),Oc([I()],Sc.prototype,"emptyDislikeIcon",void 0),Oc([I()],Sc.prototype,"filledDislikeIcon",void 0),Oc([A("ft-reader-feedback")],Sc.prototype,"readerFeedback",void 0),Oc([gl(dc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Sc.prototype,"mailSubject",void 0),D("ft-reader-map-feedback")(bc),D("ft-reader-topic-feedback")(Sc),t.FtReaderFeedbackCssVariables=Ea,t.FtReaderMapFeedback=bc,t.FtReaderTopicFeedback=Sc,t.styles=ka}({});