@fluid-topics/ft-search-type 1.1.18 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);u(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(s.set(r,c),c.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=s.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ya){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);u(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(s.set(r,c),c.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=s.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,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=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ya){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -22,7 +22,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:u,defineProperty:p,getOwnPropertyDescriptor:d,getOwnPropertyNames:y,getOwnPropertySymbols:b,getPrototypeOf:g}=Object,m=globalThis,v=m.trustedTypes,x=v?v.emptyScript:"",O=m.reactiveElementPolyfillSupport,w=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},N=(t,e)=>!u(t,e),C={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),m.litPropertyMetadata??=new WeakMap;let $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??C}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=[...y(t),...b(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=s.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:S).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:S;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??N)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[w("elementProperties")]=new Map,$[w("finalized")]=new Map,O?.({ReactiveElement:$}),(m.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:u,defineProperty:p,getOwnPropertyDescriptor:d,getOwnPropertyNames:y,getOwnPropertySymbols:g,getPrototypeOf:b}=Object,m=globalThis,v=m.trustedTypes,x=v?v.emptyScript:"",O=m.reactiveElementPolyfillSupport,w=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},N=(t,e)=>!u(t,e),C={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),m.litPropertyMetadata??=new WeakMap;let $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??C}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...y(t),...g(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=s.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:S).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:S;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??N)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[w("elementProperties")]=new Map,$[w("finalized")]=new Map,O?.({ReactiveElement:$}),(m.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
@@ -58,7 +58,7 @@ const E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},k=(t=E,e,
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const M=globalThis,T=M.trustedTypes,K=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,H="?"+_,G=`<${H}>`,V=document,q=()=>V.createComment(""),Y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,X=Array.isArray,J=t=>X(t)||"function"==typeof t?.[Symbol.iterator],Q="[ \t\n\f\r]",tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,ot=/>/g,it=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,at=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),lt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),ft=new WeakMap,ht=V.createTreeWalker(V,129);function ut(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const pt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=tt;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===tt?"!--"===l[1]?s=et:void 0!==l[1]?s=ot:void 0!==l[2]?(st.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=it):void 0!==l[3]&&(s=it):s===it?">"===l[0]?(s=r??tt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?it:'"'===l[3]?nt:rt):s===nt||s===rt?s=it:s===et||s===ot?s=tt:(s=it,r=void 0);const h=s===it&&t[e+1].startsWith("/>")?" ":"";n+=s===tt?o+G:c>=0?(i.push(a),o.slice(0,c)+Z+o.slice(c)+_+h):o+_+(-2===c?e:h)}return[ut(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let dt=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,f]=pt(e,o);if(this.el=t.createElement(c,i),ht.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ht.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Z)){const e=f[s++],o=r.getAttribute(t).split(_),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?vt:"?"===i[1]?xt:"@"===i[1]?Ot:mt}),r.removeAttribute(t)}else t.startsWith(_)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(st.test(r.tagName)){const t=r.textContent.split(_),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],q()),ht.nextNode(),l.push({type:2,index:++n});r.append(t[e],q())}}}else if(8===r.nodeType)if(r.data===H)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(_,t+1));)l.push({type:7,index:n}),t+=_.length-1}n++}}static createElement(t,e){const o=V.createElement("template");return o.innerHTML=t,o}};function yt(t,e,o=t,i){if(e===lt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Y(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,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=yt(t,r._$AS(t,e.values),r,i)),e}let bt=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:o}=this._$AD,i=(t?.creationScope??V).importNode(e,!0);ht.currentNode=i;let r=ht.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new gt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new wt(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ht.nextNode(),n++)}return ht.currentNode=V,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=yt(this,t,e),Y(t)?t===ct||null==t||""===t?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==lt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):J(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!==ct&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(V.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=dt.createElement(ut(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new bt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ft.get(t.strings);return void 0===e&&ft.set(t.strings,e=new dt(t)),e}T(e){X(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(q()),this.k(q()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.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))}},mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=yt(this,t,e,0),n=!Y(t)||t!==this._$AH&&t!==lt,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=yt(this,i[o+s],e,s),a===lt&&(a=this._$AH[s]),n||=!Y(a)||a!==this._$AH[s],a===ct?t=ct:t!==ct&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends mt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},xt=class extends mt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Ot=class extends mt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=yt(this,t,e,0)??ct)===lt)return;const o=this._$AH,i=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ct&&(o===ct||i);i&&this.element.removeEventListener(this.name,this,o),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)}},wt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){yt(this,t)}};const St={j:Z,P:_,A:H,C:1,M:pt,L:bt,R:J,V:yt,D:gt,I:mt,H:xt,N:Ot,U:vt,B:wt},Nt=M.litHtmlPolyfillSupport;Nt?.(dt,gt),(M.litHtmlVersions??=[]).push("3.1.0");
61
+ */const M=globalThis,T=M.trustedTypes,K=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,H="?"+_,G=`<${H}>`,V=document,q=()=>V.createComment(""),Y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,X=Array.isArray,J=t=>X(t)||"function"==typeof t?.[Symbol.iterator],Q="[ \t\n\f\r]",tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,ot=/>/g,it=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,at=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),lt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),ft=new WeakMap,ht=V.createTreeWalker(V,129);function ut(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const pt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=tt;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===tt?"!--"===l[1]?s=et:void 0!==l[1]?s=ot:void 0!==l[2]?(st.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=it):void 0!==l[3]&&(s=it):s===it?">"===l[0]?(s=r??tt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?it:'"'===l[3]?nt:rt):s===nt||s===rt?s=it:s===et||s===ot?s=tt:(s=it,r=void 0);const h=s===it&&t[e+1].startsWith("/>")?" ":"";n+=s===tt?o+G:c>=0?(i.push(a),o.slice(0,c)+Z+o.slice(c)+_+h):o+_+(-2===c?e:h)}return[ut(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let dt=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,f]=pt(e,o);if(this.el=t.createElement(c,i),ht.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ht.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Z)){const e=f[s++],o=r.getAttribute(t).split(_),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?vt:"?"===i[1]?xt:"@"===i[1]?Ot:mt}),r.removeAttribute(t)}else t.startsWith(_)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(st.test(r.tagName)){const t=r.textContent.split(_),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],q()),ht.nextNode(),l.push({type:2,index:++n});r.append(t[e],q())}}}else if(8===r.nodeType)if(r.data===H)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(_,t+1));)l.push({type:7,index:n}),t+=_.length-1}n++}}static createElement(t,e){const o=V.createElement("template");return o.innerHTML=t,o}};function yt(t,e,o=t,i){if(e===lt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Y(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,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=yt(t,r._$AS(t,e.values),r,i)),e}let gt=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:o}=this._$AD,i=(t?.creationScope??V).importNode(e,!0);ht.currentNode=i;let r=ht.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new bt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new wt(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ht.nextNode(),n++)}return ht.currentNode=V,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},bt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=yt(this,t,e),Y(t)?t===ct||null==t||""===t?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==lt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):J(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!==ct&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(V.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=dt.createElement(ut(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new gt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ft.get(t.strings);return void 0===e&&ft.set(t.strings,e=new dt(t)),e}T(e){X(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(q()),this.k(q()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.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))}},mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=yt(this,t,e,0),n=!Y(t)||t!==this._$AH&&t!==lt,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=yt(this,i[o+s],e,s),a===lt&&(a=this._$AH[s]),n||=!Y(a)||a!==this._$AH[s],a===ct?t=ct:t!==ct&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends mt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},xt=class extends mt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Ot=class extends mt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=yt(this,t,e,0)??ct)===lt)return;const o=this._$AH,i=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ct&&(o===ct||i);i&&this.element.removeEventListener(this.name,this,o),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)}},wt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){yt(this,t)}};const St={j:Z,P:_,A:H,C:1,M:pt,L:gt,R:J,V:yt,D:bt,I:mt,H:xt,N:Ot,U:vt,B:wt},Nt=M.litHtmlPolyfillSupport;Nt?.(dt,bt),(M.litHtmlVersions??=[]).push("3.1.0");
62
62
  /**
63
63
  * @license
64
64
  * Copyright 2019 Google LLC
@@ -75,7 +75,7 @@ const Ct=globalThis,$t=Ct.ShadowRoot&&(void 0===Ct.ShadyCSS||Ct.ShadyCSS.nativeS
75
75
  * Copyright 2017 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
77
  */
78
- const Vt=globalThis,qt=Vt.trustedTypes,Yt=qt?qt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xt="$lit$",Jt=`lit$${(Math.random()+"").slice(9)}$`,Qt="?"+Jt,te=`<${Qt}>`,ee=document,oe=()=>ee.createComment(""),ie=t=>null===t||"object"!=typeof t&&"function"!=typeof t,re=Array.isArray,ne="[ \t\n\f\r]",se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,le=/>/g,ce=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),fe=/'/g,he=/"/g,ue=/^(?:script|style|textarea|title)$/i,pe=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),de=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),be=new WeakMap,ge=ee.createTreeWalker(ee,129);function me(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Yt?Yt.createHTML(e):e}class ve{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=se;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===se?"!--"===l[1]?s=ae:void 0!==l[1]?s=le:void 0!==l[2]?(ue.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=ce):void 0!==l[3]&&(s=ce):s===ce?">"===l[0]?(s=r??se,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ce:'"'===l[3]?he:fe):s===he||s===fe?s=ce:s===ae||s===le?s=se:(s=ce,r=void 0);const h=s===ce&&t[e+1].startsWith("/>")?" ":"";n+=s===se?o+te:c>=0?(i.push(a),o.slice(0,c)+Xt+o.slice(c)+Jt+h):o+Jt+(-2===c?e:h)}return[me(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]})(t,e);if(this.el=ve.createElement(l,o),ge.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ge.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Xt)){const e=c[n++],o=i.getAttribute(t).split(Jt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:s[2],strings:o,ctor:"."===s[1]?Se:"?"===s[1]?Ne:"@"===s[1]?Ce:we}),i.removeAttribute(t)}else t.startsWith(Jt)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(ue.test(i.tagName)){const t=i.textContent.split(Jt),e=t.length-1;if(e>0){i.textContent=qt?qt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],oe()),ge.nextNode(),a.push({type:2,index:++r});i.append(t[e],oe())}}}else if(8===i.nodeType)if(i.data===Qt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Jt,t+1));)a.push({type:7,index:r}),t+=Jt.length-1}r++}}static createElement(t,e){const o=ee.createElement("template");return o.innerHTML=t,o}}function xe(t,e,o=t,i){if(e===de)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=ie(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,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=xe(t,r._$AS(t,e.values),r,i)),e}let Oe=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=xe(this,t,e),ie(t)?t===ye||null==t||""===t?(this._$AH!==ye&&this._$AR(),this._$AH=ye):t!==this._$AH&&t!==de&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>re(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!==ye&&ie(this._$AH)?this._$AA.nextSibling.data=t:this.$(ee.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ve.createElement(me(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)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:o}=this._$AD,i=(t?.creationScope??ee).importNode(e,!0);ge.currentNode=i;let r=ge.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new Oe(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new $e(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ge.nextNode(),n++)}return ge.currentNode=ee,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=be.get(t.strings);return void 0===e&&be.set(t.strings,e=new ve(t)),e}T(e){re(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(oe()),this.k(oe()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.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))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ye}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=xe(this,t,e,0),n=!ie(t)||t!==this._$AH&&t!==de,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=xe(this,i[o+s],e,s),a===de&&(a=this._$AH[s]),n||=!ie(a)||a!==this._$AH[s],a===ye?t=ye:t!==ye&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Se=class extends we{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ye?void 0:t}},Ne=class extends we{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ye)}},Ce=class extends we{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=xe(this,t,e,0)??ye)===de)return;const o=this._$AH,i=t===ye&&o!==ye||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ye&&(o===ye||i);i&&this.element.removeEventListener(this.name,this,o),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,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){xe(this,t)}};const Ee=Vt.litHtmlPolyfillSupport;Ee?.(ve,Oe),(Vt.litHtmlVersions??=[]).push("3.1.0");
78
+ const Vt=globalThis,qt=Vt.trustedTypes,Yt=qt?qt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xt="$lit$",Jt=`lit$${(Math.random()+"").slice(9)}$`,Qt="?"+Jt,te=`<${Qt}>`,ee=document,oe=()=>ee.createComment(""),ie=t=>null===t||"object"!=typeof t&&"function"!=typeof t,re=Array.isArray,ne="[ \t\n\f\r]",se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,le=/>/g,ce=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),fe=/'/g,he=/"/g,ue=/^(?:script|style|textarea|title)$/i,pe=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),de=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),ge=new WeakMap,be=ee.createTreeWalker(ee,129);function me(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Yt?Yt.createHTML(e):e}class ve{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=se;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===se?"!--"===l[1]?s=ae:void 0!==l[1]?s=le:void 0!==l[2]?(ue.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=ce):void 0!==l[3]&&(s=ce):s===ce?">"===l[0]?(s=r??se,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ce:'"'===l[3]?he:fe):s===he||s===fe?s=ce:s===ae||s===le?s=se:(s=ce,r=void 0);const h=s===ce&&t[e+1].startsWith("/>")?" ":"";n+=s===se?o+te:c>=0?(i.push(a),o.slice(0,c)+Xt+o.slice(c)+Jt+h):o+Jt+(-2===c?e:h)}return[me(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]})(t,e);if(this.el=ve.createElement(l,o),be.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=be.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Xt)){const e=c[n++],o=i.getAttribute(t).split(Jt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:s[2],strings:o,ctor:"."===s[1]?Se:"?"===s[1]?Ne:"@"===s[1]?Ce:we}),i.removeAttribute(t)}else t.startsWith(Jt)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(ue.test(i.tagName)){const t=i.textContent.split(Jt),e=t.length-1;if(e>0){i.textContent=qt?qt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],oe()),be.nextNode(),a.push({type:2,index:++r});i.append(t[e],oe())}}}else if(8===i.nodeType)if(i.data===Qt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Jt,t+1));)a.push({type:7,index:r}),t+=Jt.length-1}r++}}static createElement(t,e){const o=ee.createElement("template");return o.innerHTML=t,o}}function xe(t,e,o=t,i){if(e===de)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=ie(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,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=xe(t,r._$AS(t,e.values),r,i)),e}let Oe=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.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=xe(this,t,e),ie(t)?t===ye||null==t||""===t?(this._$AH!==ye&&this._$AR(),this._$AH=ye):t!==this._$AH&&t!==de&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>re(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!==ye&&ie(this._$AH)?this._$AA.nextSibling.data=t:this.$(ee.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ve.createElement(me(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)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:o}=this._$AD,i=(t?.creationScope??ee).importNode(e,!0);be.currentNode=i;let r=be.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new Oe(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new $e(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=be.nextNode(),n++)}return be.currentNode=ee,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ge.get(t.strings);return void 0===e&&ge.set(t.strings,e=new ve(t)),e}T(e){re(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(oe()),this.k(oe()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.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))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ye}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=xe(this,t,e,0),n=!ie(t)||t!==this._$AH&&t!==de,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=xe(this,i[o+s],e,s),a===de&&(a=this._$AH[s]),n||=!ie(a)||a!==this._$AH[s],a===ye?t=ye:t!==ye&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Se=class extends we{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ye?void 0:t}},Ne=class extends we{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ye)}},Ce=class extends we{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=xe(this,t,e,0)??ye)===de)return;const o=this._$AH,i=t===ye&&o!==ye||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ye&&(o===ye||i);i&&this.element.removeEventListener(this.name,this,o),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,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){xe(this,t)}};const Ee=Vt.litHtmlPolyfillSupport;Ee?.(ve,Oe),(Vt.litHtmlVersions??=[]).push("3.1.0");
79
79
  /**
80
80
  * @license
81
81
  * Copyright 2017 Google LLC
@@ -122,24 +122,24 @@ let ke=class extends Gt{constructor(){super(...arguments),this.renderOptions={ho
122
122
  display: inline-block;
123
123
  width: 0;
124
124
  }
125
- `;class Ye{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Xe=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!P(t,e),attribute:!1,...e};R(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Je{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 Qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,oo;const io=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class so extends He{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[oo]=[]}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 o;e=null!==(o=null!=e?e:Qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[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 o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[io].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[io].forEach((t=>t())),this[io]=[]}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 ao(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function 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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Yo}(t)||Array.isArray(t)||!!t[Vo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vo])||bo(t)||go(t))}function fo(t,e,o){void 0===o&&(o=!1),0===ho(t)?(o?Object.keys:Xo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ho(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bo(t)?2:go(t)?3:0}function uo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,o){var i=ho(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function bo(t){return Zo&&t instanceof Map}function go(t){return _o&&t instanceof Set}function mo(t){return t.o||t.t}function vo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var o=Xo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),wo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=Oo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function Oo(){ao(2)}function wo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||ao(18,t),e}function No(){return To}function Co(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===To&&(To=t.l)}function ko(t){return To={p:[],l:To,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 o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||So("ES5").S(e,t,i),i?(o[qo].P&&($o(e),ao(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(o[qo].t,t,e.u,e.s)):t=Uo(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,o){if(wo(e))return e;var i=e[qo];if(!i)return fo(e,(function(r,n){return Lo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ao(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=vo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),fo(n,(function(e,n){return Lo(t,i,r,e,n,o,s)})),Ao(t,r,!1),o&&t.u&&So("Patches").N(i,o,t.u,t.s)}return i.o}function Lo(t,e,o,i,r,n,s){if(lo(r)){var a=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,i)?n.concat(i):void 0);if(po(o,i,a),!lo(a))return;t.m=!1}else s&&o.add(r);if(co(r)&&!wo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&xo(e,o)}function Wo(t,e){var o=t[qo];return(o?mo(o):t)[e]}function jo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Fo(t){t.P||(t.P=!0,t.l&&Fo(t.l))}function Do(t){t.o||(t.o=vo(t.t))}function Po(t,e,o){var i=bo(e)?So("MapSet").F(e,o):go(e)?So("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:No(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=ti;o&&(r=[i],n=ei);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):So("ES5").J(e,o);return(o?o.A:No()).p.push(i),i}function zo(t){return lo(t)||ao(22,t),function t(e){if(!co(e))return e;var o,i=e[qo],r=ho(e);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,o=Bo(e,r),i.I=!1}else o=Bo(e,r);return fo(o,(function(e,r){i&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(i.t,e)===r||po(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vo(t)}to=ro,eo=no,oo=io,so.reduxProperties=new Map,so.reduxReactiveProperties=new Set,so.reduxEventListeners=new Map;var Mo,To,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zo="undefined"!=typeof Map,_o="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Ko?Symbol.for("immer-nothing"):((Mo={})["immer-nothing"]=!0,Mo),Vo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Ko?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(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Qo={},ti={get:function(t,e){if(e===qo)return t;var o=mo(t);if(!uo(o,e))return function(t,e,o){var i,r=jo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!co(i)?i:i===Wo(t.t,e)?(Do(t),t.o[e]=Po(t.A.h,i,t)):i},has:function(t,e){return e in mo(t)},ownKeys:function(t){return Reflect.ownKeys(mo(t))},set:function(t,e,o){var i=jo(mo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Wo(mo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(yo(o,r)&&(void 0!==o||uo(t.t,e)))return!0;Do(t),Fo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Wo(t.t,e)||e in t.t?(t.R[e]=!1,Do(t),Fo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=mo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){ao(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ao(12)}},ei={};fo(ti,(function(t,e){ei[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ei.deleteProperty=function(t,e){return ei.set.call(this,t,e,void 0)},ei.set=function(t,e,o){return ti.set.call(this,t[0],e,o,t[0])};var oi=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&ao(6),void 0!==i&&"function"!=typeof i&&ao(7),co(t)){var a=ko(e),l=Po(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?$o(a):Eo(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Co(a,i),Io(t,a)}),(function(t){throw $o(a),t})):(Co(a,i),Io(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Go&&(s=void 0),e.D&&xo(s,!0),i){var f=[],h=[];So("Patches").M(t,s,f,h),i(f,h)}return s}ao(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||ao(8),lo(t)&&(t=zo(t));var e=ko(this),o=Po(this,t,void 0);return o[qo].C=!0,Eo(e),o},e.finishDraft=function(t,e){var o=(t&&t[qo]).A;return Co(o,e),Io(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&ao(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),ii=new oi,ri=ii.produce;function ni(t){return ni="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},ni(t)}function si(t){var e=function(t,e){if("object"!==ni(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ni(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ni(e)?e:String(e)}function ai(t,e,o){return(e=si(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function li(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ci(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?li(Object(o),!0).forEach((function(e){ai(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):li(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function fi(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. "}ii.produceWithPatches.bind(ii),ii.setAutoFreeze.bind(ii),ii.setUseProxies.bind(ii),ii.applyPatches.bind(ii),ii.createDraft.bind(ii),ii.finishDraft.bind(ii);var hi="function"==typeof Symbol&&Symbol.observable||"@@observable",ui=function(){return Math.random().toString(36).substring(7).split("").join(".")},pi={INIT:"@@redux/INIT"+ui(),REPLACE:"@@redux/REPLACE"+ui(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ui()}};function di(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(fi(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(fi(1));return o(di)(t,e)}if("function"!=typeof t)throw new Error(fi(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(fi(3));return n}function h(t){if("function"!=typeof t)throw new Error(fi(4));if(l)throw new Error(fi(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(fi(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function u(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(fi(7));if(void 0===t.type)throw new Error(fi(8));if(l)throw new Error(fi(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:pi.INIT}),(i={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fi(10));r=t,u({type:pi.REPLACE})}})[hi]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fi(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[hi]=function(){return this},t},i}function yi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:pi.INIT}))throw new Error(fi(12));if(void 0===o(void 0,{type:pi.PROBE_UNKNOWN_ACTION()}))throw new Error(fi(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fi(14));r[l]=h,i=i||h!==f}return(i=i||s.length!==Object.keys(t).length)?r:t}}function bi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function gi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(fi(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=bi.apply(void 0,n)(o.dispatch),ci(ci({},o),{},{dispatch:i})}}}function mi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var vi=mi();vi.withExtraArgument=mi;var xi,Oi=vi,wi=(xi=function(t,e){return xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},xi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}xi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Si=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},Ni=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ci=Object.defineProperty,$i=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ui=function(t,e,o){return e in t?Ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Li=function(t,e){for(var o in e||(e={}))Ri.call(e,o)&&Ui(t,o,e[o]);if(ki)for(var i=0,r=ki(e);i<r.length;i++){o=r[i];Ii.call(e,o)&&Ui(t,o,e[o])}return t},Ai=function(t,e){return $i(t,Ei(e))},Wi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?bi:bi.apply(null,arguments)};var ji=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return wi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ni([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ni([void 0],t.concat(this))))},e}(Array),Fi=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return wi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ni([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ni([void 0],t.concat(this))))},e}(Array);function Di(t){return co(t)?ri(t,(function(){})):t}function Pi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new ji;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(Oi.withExtraArgument(o.extraArgument)):i.push(Oi));return i}(t)}}function zi(t){var e,o=Pi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,u=i.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=yi(n)}var d=a;"function"==typeof d&&(d=d(o));var y=gi.apply(void 0,d),b=bi;c&&(b=Wi(Li({trace:!1},"object"==typeof c&&c)));var g=new Fi(y),m=g;return Array.isArray(p)?m=Ni([y],p):"function"==typeof p&&(m=p(g)),di(e,h,b.apply(void 0,m))}function Bi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Li(Li({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Mi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ti(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Di(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Mi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Li(Li({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Mi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Di(t())};else{var c=Di(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=Ni([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(lo(t))return void 0===(i=o(t,e))?t:i;if(co(t))return ri(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Bi(c,i):Bi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ki=["name","message","stack","code"],Zi=function(t,e){this.payload=t,this.meta=e},_i=function(t,e){this.payload=t,this.meta=e},Hi=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ki;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Bi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ai(Li({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Bi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ai(Li({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Bi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Hi)(t||"Rejected"),meta:Ai(Li({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new s;function p(t){f=t,u.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,b,g,m;return Si(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),a(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Zi(t,e)},fulfillWithValue:function(t,e){return new _i(t,e)}})).then((function(e){if(e instanceof Zi)throw e;return e instanceof _i?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Zi?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Gi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Vi="listenerMiddleware";Bi(Vi+"/add"),Bi(Vi+"/removeAll"),Bi(Vi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[qo];return ti.get(e,t)},set:function(e){var o=this[qo];ti.set(o,t,e)}},o}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:i(r)&&Fo(r);break;case 4:o(r)&&Fo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Xo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==qo){var s=e[n];if(void 0===s&&!uo(e,n))return!0;var a=o[n],l=a&&a[qo];if(l?l.t!==s:!yo(a,s))return!0}}var c=!!e[qo];return i.length!==Xo(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Jo(o);delete n[qo];for(var s=Xo(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:No(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,o,r){r?lo(o)&&o[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[qo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?s[e]||t(n[e]):(s[e]=!0,Fo(o)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(s[t]=!1,Fo(o))}));else if(5===a){if(i(o)&&(Fo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Qe(r))return r;if(null==i)return;const n=Ti({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=zi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new qi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Je,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yi=Symbol("elementInternals");var Xi,Ji,Qi;const tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qi=null===(Ji=null===(Xi=window.safari)||void 0===Xi?void 0:Xi.pushNotification)||void 0===Ji?void 0:Ji.toString())&&void 0!==Qi?Qi:""),er=Ut`
125
+ `;class Ye{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Xe=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!P(t,e),attribute:!1,...e};R(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Je{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 Qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,oo;const io=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class so extends He{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[oo]=[]}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 o;e=null!==(o=null!=e?e:Qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[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 o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[io].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[io].forEach((t=>t())),this[io]=[]}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 ao(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function 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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===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,o){void 0===o&&(o=!1),0===ho(t)?(o?Object.keys:Xo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,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,o){var i=ho(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function go(t){return Zo&&t instanceof Map}function bo(t){return _o&&t instanceof Set}function mo(t){return t.o||t.t}function vo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var o=Xo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),wo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=Oo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function Oo(){ao(2)}function wo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||ao(18,t),e}function No(){return To}function Co(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Eo(t),t.p.forEach(Ro),t.p=null}function Eo(t){t===To&&(To=t.l)}function ko(t){return To={p:[],l:To,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 o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||So("ES5").S(e,t,i),i?(o[qo].P&&($o(e),ao(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(o[qo].t,t,e.u,e.s)):t=Uo(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,o){if(wo(e))return e;var i=e[qo];if(!i)return fo(e,(function(r,n){return Lo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ao(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=vo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),fo(n,(function(e,n){return Lo(t,i,r,e,n,o,s)})),Ao(t,r,!1),o&&t.u&&So("Patches").N(i,o,t.u,t.s)}return i.o}function Lo(t,e,o,i,r,n,s){if(lo(r)){var a=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,i)?n.concat(i):void 0);if(po(o,i,a),!lo(a))return;t.m=!1}else s&&o.add(r);if(co(r)&&!wo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&xo(e,o)}function Wo(t,e){var o=t[qo];return(o?mo(o):t)[e]}function jo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Fo(t){t.P||(t.P=!0,t.l&&Fo(t.l))}function Do(t){t.o||(t.o=vo(t.t))}function Po(t,e,o){var i=go(e)?So("MapSet").F(e,o):bo(e)?So("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:No(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=ti;o&&(r=[i],n=ei);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):So("ES5").J(e,o);return(o?o.A:No()).p.push(i),i}function zo(t){return lo(t)||ao(22,t),function t(e){if(!co(e))return e;var o,i=e[qo],r=ho(e);if(i){if(!i.P&&(i.i<4||!So("ES5").K(i)))return i.t;i.I=!0,o=Bo(e,r),i.I=!1}else o=Bo(e,r);return fo(o,(function(e,r){i&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(i.t,e)===r||po(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vo(t)}to=ro,eo=no,oo=io,so.reduxProperties=new Map,so.reduxReactiveProperties=new Set,so.reduxEventListeners=new Map;var Mo,To,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zo="undefined"!=typeof Map,_o="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Ko?Symbol.for("immer-nothing"):((Mo={})["immer-nothing"]=!0,Mo),Vo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Ko?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(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Qo={},ti={get:function(t,e){if(e===qo)return t;var o=mo(t);if(!uo(o,e))return function(t,e,o){var i,r=jo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!co(i)?i:i===Wo(t.t,e)?(Do(t),t.o[e]=Po(t.A.h,i,t)):i},has:function(t,e){return e in mo(t)},ownKeys:function(t){return Reflect.ownKeys(mo(t))},set:function(t,e,o){var i=jo(mo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Wo(mo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(yo(o,r)&&(void 0!==o||uo(t.t,e)))return!0;Do(t),Fo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Wo(t.t,e)||e in t.t?(t.R[e]=!1,Do(t),Fo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=mo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){ao(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ao(12)}},ei={};fo(ti,(function(t,e){ei[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ei.deleteProperty=function(t,e){return ei.set.call(this,t,e,void 0)},ei.set=function(t,e,o){return ti.set.call(this,t[0],e,o,t[0])};var oi=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&ao(6),void 0!==i&&"function"!=typeof i&&ao(7),co(t)){var a=ko(e),l=Po(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?$o(a):Eo(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Co(a,i),Io(t,a)}),(function(t){throw $o(a),t})):(Co(a,i),Io(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Go&&(s=void 0),e.D&&xo(s,!0),i){var f=[],h=[];So("Patches").M(t,s,f,h),i(f,h)}return s}ao(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||ao(8),lo(t)&&(t=zo(t));var e=ko(this),o=Po(this,t,void 0);return o[qo].C=!0,Eo(e),o},e.finishDraft=function(t,e){var o=(t&&t[qo]).A;return Co(o,e),Io(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&ao(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),ii=new oi,ri=ii.produce;function ni(t){return ni="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},ni(t)}function si(t){var e=function(t,e){if("object"!==ni(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ni(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ni(e)?e:String(e)}function ai(t,e,o){return(e=si(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function li(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ci(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?li(Object(o),!0).forEach((function(e){ai(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):li(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function fi(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. "}ii.produceWithPatches.bind(ii),ii.setAutoFreeze.bind(ii),ii.setUseProxies.bind(ii),ii.applyPatches.bind(ii),ii.createDraft.bind(ii),ii.finishDraft.bind(ii);var hi="function"==typeof Symbol&&Symbol.observable||"@@observable",ui=function(){return Math.random().toString(36).substring(7).split("").join(".")},pi={INIT:"@@redux/INIT"+ui(),REPLACE:"@@redux/REPLACE"+ui(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ui()}};function di(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(fi(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(fi(1));return o(di)(t,e)}if("function"!=typeof t)throw new Error(fi(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(fi(3));return n}function h(t){if("function"!=typeof t)throw new Error(fi(4));if(l)throw new Error(fi(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(fi(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function u(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(fi(7));if(void 0===t.type)throw new Error(fi(8));if(l)throw new Error(fi(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:pi.INIT}),(i={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fi(10));r=t,u({type:pi.REPLACE})}})[hi]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fi(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[hi]=function(){return this},t},i}function yi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:pi.INIT}))throw new Error(fi(12));if(void 0===o(void 0,{type:pi.PROBE_UNKNOWN_ACTION()}))throw new Error(fi(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fi(14));r[l]=h,i=i||h!==f}return(i=i||s.length!==Object.keys(t).length)?r:t}}function gi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function bi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(fi(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=gi.apply(void 0,n)(o.dispatch),ci(ci({},o),{},{dispatch:i})}}}function mi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var vi=mi();vi.withExtraArgument=mi;var xi,Oi=vi,wi=(xi=function(t,e){return xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},xi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}xi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Si=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},Ni=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ci=Object.defineProperty,$i=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ui=function(t,e,o){return e in t?Ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Li=function(t,e){for(var o in e||(e={}))Ri.call(e,o)&&Ui(t,o,e[o]);if(ki)for(var i=0,r=ki(e);i<r.length;i++){o=r[i];Ii.call(e,o)&&Ui(t,o,e[o])}return t},Ai=function(t,e){return $i(t,Ei(e))},Wi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?gi:gi.apply(null,arguments)};var ji=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return wi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ni([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ni([void 0],t.concat(this))))},e}(Array),Fi=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return wi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ni([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ni([void 0],t.concat(this))))},e}(Array);function Di(t){return co(t)?ri(t,(function(){})):t}function Pi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new ji;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(Oi.withExtraArgument(o.extraArgument)):i.push(Oi));return i}(t)}}function zi(t){var e,o=Pi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,u=i.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=yi(n)}var d=a;"function"==typeof d&&(d=d(o));var y=bi.apply(void 0,d),g=gi;c&&(g=Wi(Li({trace:!1},"object"==typeof c&&c)));var b=new Fi(y),m=b;return Array.isArray(p)?m=Ni([y],p):"function"==typeof p&&(m=p(b)),di(e,h,g.apply(void 0,m))}function Bi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Li(Li({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Mi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ti(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Di(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Mi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Li(Li({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Mi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Di(t())};else{var c=Di(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=Ni([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(lo(t))return void 0===(i=o(t,e))?t:i;if(co(t))return ri(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Bi(c,i):Bi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ki=["name","message","stack","code"],Zi=function(t,e){this.payload=t,this.meta=e},_i=function(t,e){this.payload=t,this.meta=e},Hi=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ki;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Bi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ai(Li({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Bi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ai(Li({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Bi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Hi)(t||"Rejected"),meta:Ai(Li({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new s;function p(t){f=t,u.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,g,b,m;return Si(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),a(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Zi(t,e)},fulfillWithValue:function(t,e){return new _i(t,e)}})).then((function(e){if(e instanceof Zi)throw e;return e instanceof _i?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Zi?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Gi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Vi="listenerMiddleware";Bi(Vi+"/add"),Bi(Vi+"/removeAll"),Bi(Vi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[qo];return ti.get(e,t)},set:function(e){var o=this[qo];ti.set(o,t,e)}},o}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:i(r)&&Fo(r);break;case 4:o(r)&&Fo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Xo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==qo){var s=e[n];if(void 0===s&&!uo(e,n))return!0;var a=o[n],l=a&&a[qo];if(l?l.t!==s:!yo(a,s))return!0}}var c=!!e[qo];return i.length!==Xo(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Jo(o);delete n[qo];for(var s=Xo(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:No(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,o,r){r?lo(o)&&o[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[qo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?s[e]||t(n[e]):(s[e]=!0,Fo(o)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(s[t]=!1,Fo(o))}));else if(5===a){if(i(o)&&(Fo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Qe(r))return r;if(null==i)return;const n=Ti({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=zi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new qi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Je,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yi=Symbol("elementInternals");var Xi,Ji,Qi;const tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qi=null===(Ji=null===(Xi=window.safari)||void 0===Xi?void 0:Xi.pushNotification)||void 0===Ji?void 0:Ji.toString())&&void 0!==Qi?Qi:""),er=Ut`
126
126
  `
127
127
  /**
128
128
  * @license
129
129
  * Copyright 2020 Google LLC
130
130
  * SPDX-License-Identifier: BSD-3-Clause
131
- */,or=Symbol.for(""),ir=t=>{if(t?.r===or)return t?._$litStatic$},rr=t=>({_$litStatic$:t,r:or}),nr=new Map,sr=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=ir(n));)l+=r+e[++c],f=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),f){const t=s.join("$$lit$$");void 0===(e=nr.get(t))&&(s.raw=s,nr.set(t,e=s)),o=a}return t(e,...o)})(at);var ar;!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"}(ar||(ar={}));const lr=Ue.extend("--ft-typography-font-family","",De.titleFont),cr=Ue.extend("--ft-typography-font-family","",De.contentFont),fr={fontFamily:cr,fontSize:Ue.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ue.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ue.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ue.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ue.create("--ft-typography-text-transform","","UNKNOWN","inherit")},hr=Ue.extend("--ft-typography-title-font-family","",lr),ur=Ue.extend("--ft-typography-title-font-size","",fr.fontSize,"20px"),pr=Ue.extend("--ft-typography-title-font-weight","",fr.fontWeight,"normal"),dr=Ue.extend("--ft-typography-title-letter-spacing","",fr.letterSpacing,"0.15px"),yr=Ue.extend("--ft-typography-title-line-height","",fr.lineHeight,"1.2"),br=Ue.extend("--ft-typography-title-text-transform","",fr.textTransform,"inherit"),gr=Ue.extend("--ft-typography-title-dense-font-family","",lr),mr=Ue.extend("--ft-typography-title-dense-font-size","",fr.fontSize,"14px"),vr=Ue.extend("--ft-typography-title-dense-font-weight","",fr.fontWeight,"normal"),xr=Ue.extend("--ft-typography-title-dense-letter-spacing","",fr.letterSpacing,"0.105px"),Or=Ue.extend("--ft-typography-title-dense-line-height","",fr.lineHeight,"1.7"),wr=Ue.extend("--ft-typography-title-dense-text-transform","",fr.textTransform,"inherit"),Sr=Ue.extend("--ft-typography-subtitle1-font-family","",cr),Nr=Ue.extend("--ft-typography-subtitle1-font-size","",fr.fontSize,"16px"),Cr=Ue.extend("--ft-typography-subtitle1-font-weight","",fr.fontWeight,"600"),$r=Ue.extend("--ft-typography-subtitle1-letter-spacing","",fr.letterSpacing,"0.144px"),Er=Ue.extend("--ft-typography-subtitle1-line-height","",fr.lineHeight,"1.5"),kr=Ue.extend("--ft-typography-subtitle1-text-transform","",fr.textTransform,"inherit"),Rr=Ue.extend("--ft-typography-subtitle2-font-family","",cr),Ir=Ue.extend("--ft-typography-subtitle2-font-size","",fr.fontSize,"14px"),Ur=Ue.extend("--ft-typography-subtitle2-font-weight","",fr.fontWeight,"normal"),Lr=Ue.extend("--ft-typography-subtitle2-letter-spacing","",fr.letterSpacing,"0.098px"),Ar=Ue.extend("--ft-typography-subtitle2-line-height","",fr.lineHeight,"1.7"),Wr=Ue.extend("--ft-typography-subtitle2-text-transform","",fr.textTransform,"inherit"),jr=Ue.extend("--ft-typography-body1-font-family","",cr),Fr=Ue.extend("--ft-typography-body1-font-size","",fr.fontSize,"16px"),Dr=Ue.extend("--ft-typography-body1-font-weight","",fr.fontWeight,"normal"),Pr=Ue.extend("--ft-typography-body1-letter-spacing","",fr.letterSpacing,"0.496px"),zr=Ue.extend("--ft-typography-body1-line-height","",fr.lineHeight,"1.5"),Br=Ue.extend("--ft-typography-body1-text-transform","",fr.textTransform,"inherit"),Mr={fontFamily:Ue.extend("--ft-typography-body2-font-family","",cr),fontSize:Ue.extend("--ft-typography-body2-font-size","",fr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-body2-font-weight","",fr.fontWeight,"normal"),letterSpacing:Ue.extend("--ft-typography-body2-letter-spacing","",fr.letterSpacing,"0.252px"),lineHeight:Ue.extend("--ft-typography-body2-line-height","",fr.lineHeight,"1.4"),textTransform:Ue.extend("--ft-typography-body2-text-transform","",fr.textTransform,"inherit")},Tr=Ue.extend("--ft-typography-caption-font-family","",cr),Kr=Ue.extend("--ft-typography-caption-font-size","",fr.fontSize,"12px"),Zr=Ue.extend("--ft-typography-caption-font-weight","",fr.fontWeight,"normal"),_r=Ue.extend("--ft-typography-caption-letter-spacing","",fr.letterSpacing,"0.396px"),Hr=Ue.extend("--ft-typography-caption-line-height","",fr.lineHeight,"1.33"),Gr=Ue.extend("--ft-typography-caption-text-transform","",fr.textTransform,"inherit"),Vr=Ue.extend("--ft-typography-breadcrumb-font-family","",cr),qr=Ue.extend("--ft-typography-breadcrumb-font-size","",fr.fontSize,"10px"),Yr=Ue.extend("--ft-typography-breadcrumb-font-weight","",fr.fontWeight,"normal"),Xr=Ue.extend("--ft-typography-breadcrumb-letter-spacing","",fr.letterSpacing,"0.33px"),Jr=Ue.extend("--ft-typography-breadcrumb-line-height","",fr.lineHeight,"1.6"),Qr=Ue.extend("--ft-typography-breadcrumb-text-transform","",fr.textTransform,"inherit"),tn=Ue.extend("--ft-typography-overline-font-family","",cr),en=Ue.extend("--ft-typography-overline-font-size","",fr.fontSize,"10px"),on=Ue.extend("--ft-typography-overline-font-weight","",fr.fontWeight,"normal"),rn=Ue.extend("--ft-typography-overline-letter-spacing","",fr.letterSpacing,"1.5px"),nn=Ue.extend("--ft-typography-overline-line-height","",fr.lineHeight,"1.6"),sn=Ue.extend("--ft-typography-overline-text-transform","",fr.textTransform,"uppercase"),an={fontFamily:Ue.extend("--ft-typography-button-font-family","",cr),fontSize:Ue.extend("--ft-typography-button-font-size","",fr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-button-font-weight","",fr.fontWeight,"600"),letterSpacing:Ue.extend("--ft-typography-button-letter-spacing","",fr.letterSpacing,"1.246px"),lineHeight:Ue.extend("--ft-typography-button-line-height","",fr.lineHeight,"1.15"),textTransform:Ue.extend("--ft-typography-button-text-transform","",fr.textTransform,"uppercase")},ln=Ut`
131
+ */,or=Symbol.for(""),ir=t=>{if(t?.r===or)return t?._$litStatic$},rr=t=>({_$litStatic$:t,r:or}),nr=new Map,sr=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=ir(n));)l+=r+e[++c],f=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),f){const t=s.join("$$lit$$");void 0===(e=nr.get(t))&&(s.raw=s,nr.set(t,e=s)),o=a}return t(e,...o)})(at);var ar;!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"}(ar||(ar={}));const lr=Ue.extend("--ft-typography-font-family","",De.titleFont),cr=Ue.extend("--ft-typography-font-family","",De.contentFont),fr={fontFamily:cr,fontSize:Ue.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ue.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ue.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ue.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ue.create("--ft-typography-text-transform","","UNKNOWN","inherit")},hr=Ue.extend("--ft-typography-title-font-family","",lr),ur=Ue.extend("--ft-typography-title-font-size","",fr.fontSize,"20px"),pr=Ue.extend("--ft-typography-title-font-weight","",fr.fontWeight,"normal"),dr=Ue.extend("--ft-typography-title-letter-spacing","",fr.letterSpacing,"0.15px"),yr=Ue.extend("--ft-typography-title-line-height","",fr.lineHeight,"1.2"),gr=Ue.extend("--ft-typography-title-text-transform","",fr.textTransform,"inherit"),br=Ue.extend("--ft-typography-title-dense-font-family","",lr),mr=Ue.extend("--ft-typography-title-dense-font-size","",fr.fontSize,"14px"),vr=Ue.extend("--ft-typography-title-dense-font-weight","",fr.fontWeight,"normal"),xr=Ue.extend("--ft-typography-title-dense-letter-spacing","",fr.letterSpacing,"0.105px"),Or=Ue.extend("--ft-typography-title-dense-line-height","",fr.lineHeight,"1.7"),wr=Ue.extend("--ft-typography-title-dense-text-transform","",fr.textTransform,"inherit"),Sr=Ue.extend("--ft-typography-subtitle1-font-family","",cr),Nr=Ue.extend("--ft-typography-subtitle1-font-size","",fr.fontSize,"16px"),Cr=Ue.extend("--ft-typography-subtitle1-font-weight","",fr.fontWeight,"600"),$r=Ue.extend("--ft-typography-subtitle1-letter-spacing","",fr.letterSpacing,"0.144px"),Er=Ue.extend("--ft-typography-subtitle1-line-height","",fr.lineHeight,"1.5"),kr=Ue.extend("--ft-typography-subtitle1-text-transform","",fr.textTransform,"inherit"),Rr=Ue.extend("--ft-typography-subtitle2-font-family","",cr),Ir=Ue.extend("--ft-typography-subtitle2-font-size","",fr.fontSize,"14px"),Ur=Ue.extend("--ft-typography-subtitle2-font-weight","",fr.fontWeight,"normal"),Lr=Ue.extend("--ft-typography-subtitle2-letter-spacing","",fr.letterSpacing,"0.098px"),Ar=Ue.extend("--ft-typography-subtitle2-line-height","",fr.lineHeight,"1.7"),Wr=Ue.extend("--ft-typography-subtitle2-text-transform","",fr.textTransform,"inherit"),jr=Ue.extend("--ft-typography-body1-font-family","",cr),Fr=Ue.extend("--ft-typography-body1-font-size","",fr.fontSize,"16px"),Dr=Ue.extend("--ft-typography-body1-font-weight","",fr.fontWeight,"normal"),Pr=Ue.extend("--ft-typography-body1-letter-spacing","",fr.letterSpacing,"0.496px"),zr=Ue.extend("--ft-typography-body1-line-height","",fr.lineHeight,"1.5"),Br=Ue.extend("--ft-typography-body1-text-transform","",fr.textTransform,"inherit"),Mr={fontFamily:Ue.extend("--ft-typography-body2-font-family","",cr),fontSize:Ue.extend("--ft-typography-body2-font-size","",fr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-body2-font-weight","",fr.fontWeight,"normal"),letterSpacing:Ue.extend("--ft-typography-body2-letter-spacing","",fr.letterSpacing,"0.252px"),lineHeight:Ue.extend("--ft-typography-body2-line-height","",fr.lineHeight,"1.4"),textTransform:Ue.extend("--ft-typography-body2-text-transform","",fr.textTransform,"inherit")},Tr=Ue.extend("--ft-typography-caption-font-family","",cr),Kr=Ue.extend("--ft-typography-caption-font-size","",fr.fontSize,"12px"),Zr=Ue.extend("--ft-typography-caption-font-weight","",fr.fontWeight,"normal"),_r=Ue.extend("--ft-typography-caption-letter-spacing","",fr.letterSpacing,"0.396px"),Hr=Ue.extend("--ft-typography-caption-line-height","",fr.lineHeight,"1.33"),Gr=Ue.extend("--ft-typography-caption-text-transform","",fr.textTransform,"inherit"),Vr=Ue.extend("--ft-typography-breadcrumb-font-family","",cr),qr=Ue.extend("--ft-typography-breadcrumb-font-size","",fr.fontSize,"10px"),Yr=Ue.extend("--ft-typography-breadcrumb-font-weight","",fr.fontWeight,"normal"),Xr=Ue.extend("--ft-typography-breadcrumb-letter-spacing","",fr.letterSpacing,"0.33px"),Jr=Ue.extend("--ft-typography-breadcrumb-line-height","",fr.lineHeight,"1.6"),Qr=Ue.extend("--ft-typography-breadcrumb-text-transform","",fr.textTransform,"inherit"),tn=Ue.extend("--ft-typography-overline-font-family","",cr),en=Ue.extend("--ft-typography-overline-font-size","",fr.fontSize,"10px"),on=Ue.extend("--ft-typography-overline-font-weight","",fr.fontWeight,"normal"),rn=Ue.extend("--ft-typography-overline-letter-spacing","",fr.letterSpacing,"1.5px"),nn=Ue.extend("--ft-typography-overline-line-height","",fr.lineHeight,"1.6"),sn=Ue.extend("--ft-typography-overline-text-transform","",fr.textTransform,"uppercase"),an={fontFamily:Ue.extend("--ft-typography-button-font-family","",cr),fontSize:Ue.extend("--ft-typography-button-font-size","",fr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-button-font-weight","",fr.fontWeight,"600"),letterSpacing:Ue.extend("--ft-typography-button-letter-spacing","",fr.letterSpacing,"1.246px"),lineHeight:Ue.extend("--ft-typography-button-line-height","",fr.lineHeight,"1.15"),textTransform:Ue.extend("--ft-typography-button-text-transform","",fr.textTransform,"uppercase")},ln=Ut`
132
132
  .ft-typography--title {
133
133
  font-family: ${hr};
134
134
  font-size: ${ur};
135
135
  font-weight: ${pr};
136
136
  letter-spacing: ${dr};
137
137
  line-height: ${yr};
138
- text-transform: ${br};
138
+ text-transform: ${gr};
139
139
  }
140
140
  `,cn=Ut`
141
141
  .ft-typography--title-dense {
142
- font-family: ${gr};
142
+ font-family: ${br};
143
143
  font-size: ${mr};
144
144
  font-weight: ${vr};
145
145
  letter-spacing: ${xr};
@@ -201,7 +201,7 @@ let ke=class extends Gt{constructor(){super(...arguments),this.renderOptions={ho
201
201
  line-height: ${Jr};
202
202
  text-transform: ${Qr};
203
203
  }
204
- `,bn=Ut`
204
+ `,gn=Ut`
205
205
  .ft-typography--overline {
206
206
  font-family: ${tn};
207
207
  font-size: ${en};
@@ -210,7 +210,7 @@ let ke=class extends Gt{constructor(){super(...arguments),this.renderOptions={ho
210
210
  line-height: ${nn};
211
211
  text-transform: ${sn};
212
212
  }
213
- `,gn=Ut`
213
+ `,bn=Ut`
214
214
  .ft-typography--button {
215
215
  font-family: ${an.fontFamily};
216
216
  font-size: ${an.fontSize};
@@ -239,7 +239,7 @@ let ke=class extends Gt{constructor(){super(...arguments),this.renderOptions={ho
239
239
  </${rr(this.element)}>
240
240
  `:sr`
241
241
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
242
- `}}On.styles=[ln,cn,fn,hn,un,pn,dn,yn,bn,gn,mn,...vn],xn([R()],On.prototype,"element",void 0),xn([R()],On.prototype,"variant",void 0),z("ft-typography")(On);
242
+ `}}On.styles=[ln,cn,fn,hn,un,pn,dn,yn,gn,bn,mn,...vn],xn([R()],On.prototype,"element",void 0),xn([R()],On.prototype,"variant",void 0),z("ft-typography")(On);
243
243
  /**
244
244
  * @license
245
245
  * Copyright 2017 Google LLC
@@ -661,7 +661,7 @@ const wn=1,Sn=2,Nn=t=>(...e)=>({_$litDirective$:t,values:e});class Cn{constructo
661
661
  position: relative;
662
662
  word-break: break-word;
663
663
  }
664
- `,us=["start","end"],ps=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+us[0],e+"-"+us[1])),[]),ds=Math.min,ys=Math.max,bs=Math.round,gs=t=>({x:t,y:t}),ms={left:"right",right:"left",bottom:"top",top:"bottom"},vs={start:"end",end:"start"};function xs(t,e,o){return ys(t,ds(e,o))}function Os(t,e){return"function"==typeof t?t(e):t}function ws(t){return t.split("-")[0]}function Ss(t){return t.split("-")[1]}function Ns(t){return"x"===t?"y":"x"}function Cs(t){return"y"===t?"height":"width"}function $s(t){return["top","bottom"].includes(ws(t))?"y":"x"}function Es(t){return Ns($s(t))}function ks(t){return t.replace(/left|right|bottom|top/g,(t=>ms[t]))}function Rs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Is(t,e,o){let{reference:i,floating:r}=t;const n=$s(e),s=Es(e),a=Cs(s),l=ws(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(Ss(e)){case"start":p[s]-=u*(o&&c?-1:1);break;case"end":p[s]+=u*(o&&c?-1:1)}return p}async function Us(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Os(e,t),d=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}}(p),y=a[u?"floating"===h?"reference":"floating":h],b=Rs(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),g="floating"===h?{...s.floating,x:i,y:r}:s.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Rs(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:m,strategy:l}):g);return{top:(b.top-x.top+d.top)/v.y,bottom:(x.bottom-b.bottom+d.bottom)/v.y,left:(b.left-x.left+d.left)/v.x,right:(x.right-b.right+d.right)/v.x}}function Ls(t,e,o){return(t?[...o.filter((e=>Ss(e)===t)),...o.filter((e=>Ss(e)!==t))]:o.filter((t=>ws(t)===t))).filter((o=>!t||(Ss(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>vs[t]))}(o)!==o)))}const As=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ps,autoAlignment:p=!0,...d}=Os(t,e),y=void 0!==h||u===ps?Ls(h||null,p,u):u,b=await Us(e,d),g=(null==(o=s.autoPlacement)?void 0:o.index)||0,m=y[g];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ss(t),r=Es(t),n=Cs(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=ks(s)),[s,ks(s)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==m)return{reset:{placement:y[0]}};const x=[b[ws(m)],b[v[0]],b[v[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=y[g+1];if(w)return{data:{index:g+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=Ss(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,Ss(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||S[0][0];return C!==a?{data:{index:g+1,overflows:O},reset:{placement:C}}:{}}}};function Ws(t){return Ds(t)?(t.nodeName||"").toLowerCase():"#document"}function js(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Fs(t){var e;return null==(e=(Ds(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ds(t){return t instanceof Node||t instanceof js(t).Node}function Ps(t){return t instanceof Element||t instanceof js(t).Element}function zs(t){return t instanceof HTMLElement||t instanceof js(t).HTMLElement}function Bs(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof js(t).ShadowRoot)}function Ms(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Hs(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Ts(t){return["table","td","th"].includes(Ws(t))}function Ks(t){const e=Zs(),o=Hs(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Zs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _s(t){return["html","body","#document"].includes(Ws(t))}function Hs(t){return js(t).getComputedStyle(t)}function Gs(t){return Ps(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vs(t){if("html"===Ws(t))return t;const e=t.assignedSlot||t.parentNode||Bs(t)&&t.host||Fs(t);return Bs(e)?e.host:e}function qs(t){const e=Vs(t);return _s(e)?t.ownerDocument?t.ownerDocument.body:t.body:zs(e)&&Ms(e)?e:qs(e)}function Ys(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=qs(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=js(r);return n?e.concat(s,s.visualViewport||[],Ms(r)?r:[],s.frameElement&&o?Ys(s.frameElement):[]):e.concat(r,Ys(r,[],o))}function Xs(t){const e=Hs(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=zs(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=bs(o)!==n||bs(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Js(t){return Ps(t)?t:t.contextElement}function Qs(t){const e=Js(t);if(!zs(e))return gs(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Xs(e);let s=(n?bs(o.width):o.width)/i,a=(n?bs(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ta=gs(0);function ea(t){const e=js(t);return Zs()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ta}function oa(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Js(t);let s=gs(1);e&&(i?Ps(i)&&(s=Qs(i)):s=Qs(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==js(t))&&e}(n,o,i)?ea(n):gs(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(n){const t=js(n),e=i&&Ps(i)?js(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Qs(o),e=o.getBoundingClientRect(),i=Hs(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=js(o).frameElement}}return Rs({width:f,height:h,x:l,y:c})}function ia(t){return oa(Fs(t)).left+Gs(t).scrollLeft}function ra(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=js(t),i=Fs(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=Zs();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Fs(t),o=Gs(t),i=t.ownerDocument.body,r=ys(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=ys(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+ia(t);const a=-o.scrollTop;return"rtl"===Hs(i).direction&&(s+=ys(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(Fs(t));else if(Ps(e))i=function(t,e){const o=oa(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=zs(t)?Qs(t):gs(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ea(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Rs(i)}function na(t,e){const o=Vs(t);return!(o===e||!Ps(o)||_s(o))&&("fixed"===Hs(o).position||na(o,e))}function sa(t,e,o){const i=zs(e),r=Fs(e),n="fixed"===o,s=oa(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=gs(0);if(i||!i&&!n)if(("body"!==Ws(e)||Ms(r))&&(a=Gs(e)),i){const t=oa(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ia(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function aa(t,e){return zs(t)&&"fixed"!==Hs(t).position?e?e(t):t.offsetParent:null}function la(t,e){const o=js(t);if(!zs(t))return o;let i=aa(t,e);for(;i&&Ts(i)&&"static"===Hs(i).position;)i=aa(i,e);return i&&("html"===Ws(i)||"body"===Ws(i)&&"static"===Hs(i).position&&!Ks(i))?o:i||function(t){let e=Vs(t);for(;zs(e)&&!_s(e);){if(Ks(e))return e;e=Vs(e)}return null}(t)||o}const ca={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=zs(o),n=Fs(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=gs(1);const l=gs(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ws(o)||Ms(n))&&(s=Gs(o)),zs(o))){const t=oa(o);a=Qs(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Fs,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Ys(t,[],!1).filter((t=>Ps(t)&&"body"!==Ws(t))),r=null;const n="fixed"===Hs(t).position;let s=n?Vs(t):t;for(;Ps(s)&&!_s(s);){const e=Hs(s),o=Ks(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ms(s)&&!o&&na(t,s))?i=i.filter((t=>t!==s)):r=e,s=Vs(s)}return e.set(t,i),i}(e,this._c):[].concat(o),s=[...n,i],a=s[0],l=s.reduce(((t,o)=>{const i=ra(e,o,r);return t.top=ys(i.top,t.top),t.right=ds(i.right,t.right),t.bottom=ds(i.bottom,t.bottom),t.left=ys(i.left,t.left),t}),ra(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:la,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||la,n=this.getDimensions;return{reference:sa(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Xs(t)},getScale:Qs,isElement:Ps,isRTL:function(t){return"rtl"===Hs(t).direction}},fa=(t,e,o)=>{const i=new Map,r={platform:ca,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Is(c,i,l),u=i,p={},d=0;for(let o=0;o<a.length;o++){const{name:n,fn:y}=a[o],{x:b,y:g,data:m,reset:v}=await y({x:f,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});f=null!=b?b:f,h=null!=g?g:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:f,y:h}=Is(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};function ha(t){return function(t){for(let e=t;e;e=ua(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=ua(t);e;e=ua(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 ua(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var pa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class da extends He{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 pe`
664
+ `,us=["start","end"],ps=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+us[0],e+"-"+us[1])),[]),ds=Math.min,ys=Math.max,gs=Math.round,bs=t=>({x:t,y:t}),ms={left:"right",right:"left",bottom:"top",top:"bottom"},vs={start:"end",end:"start"};function xs(t,e,o){return ys(t,ds(e,o))}function Os(t,e){return"function"==typeof t?t(e):t}function ws(t){return t.split("-")[0]}function Ss(t){return t.split("-")[1]}function Ns(t){return"x"===t?"y":"x"}function Cs(t){return"y"===t?"height":"width"}function $s(t){return["top","bottom"].includes(ws(t))?"y":"x"}function Es(t){return Ns($s(t))}function ks(t){return t.replace(/left|right|bottom|top/g,(t=>ms[t]))}function Rs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Is(t,e,o){let{reference:i,floating:r}=t;const n=$s(e),s=Es(e),a=Cs(s),l=ws(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(Ss(e)){case"start":p[s]-=u*(o&&c?-1:1);break;case"end":p[s]+=u*(o&&c?-1:1)}return p}async function Us(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Os(e,t),d=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}}(p),y=a[u?"floating"===h?"reference":"floating":h],g=Rs(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...s.floating,x:i,y:r}:s.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Rs(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function Ls(t,e,o){return(t?[...o.filter((e=>Ss(e)===t)),...o.filter((e=>Ss(e)!==t))]:o.filter((t=>ws(t)===t))).filter((o=>!t||(Ss(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>vs[t]))}(o)!==o)))}const As=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ps,autoAlignment:p=!0,...d}=Os(t,e),y=void 0!==h||u===ps?Ls(h||null,p,u):u,g=await Us(e,d),b=(null==(o=s.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ss(t),r=Es(t),n=Cs(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=ks(s)),[s,ks(s)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==m)return{reset:{placement:y[0]}};const x=[g[ws(m)],g[v[0]],g[v[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=Ss(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,Ss(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||S[0][0];return C!==a?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Ws(t){return Ds(t)?(t.nodeName||"").toLowerCase():"#document"}function js(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Fs(t){var e;return null==(e=(Ds(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ds(t){return t instanceof Node||t instanceof js(t).Node}function Ps(t){return t instanceof Element||t instanceof js(t).Element}function zs(t){return t instanceof HTMLElement||t instanceof js(t).HTMLElement}function Bs(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof js(t).ShadowRoot)}function Ms(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Hs(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Ts(t){return["table","td","th"].includes(Ws(t))}function Ks(t){const e=Zs(),o=Hs(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Zs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _s(t){return["html","body","#document"].includes(Ws(t))}function Hs(t){return js(t).getComputedStyle(t)}function Gs(t){return Ps(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vs(t){if("html"===Ws(t))return t;const e=t.assignedSlot||t.parentNode||Bs(t)&&t.host||Fs(t);return Bs(e)?e.host:e}function qs(t){const e=Vs(t);return _s(e)?t.ownerDocument?t.ownerDocument.body:t.body:zs(e)&&Ms(e)?e:qs(e)}function Ys(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=qs(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=js(r);return n?e.concat(s,s.visualViewport||[],Ms(r)?r:[],s.frameElement&&o?Ys(s.frameElement):[]):e.concat(r,Ys(r,[],o))}function Xs(t){const e=Hs(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=zs(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=gs(o)!==n||gs(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Js(t){return Ps(t)?t:t.contextElement}function Qs(t){const e=Js(t);if(!zs(e))return bs(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Xs(e);let s=(n?gs(o.width):o.width)/i,a=(n?gs(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ta=bs(0);function ea(t){const e=js(t);return Zs()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ta}function oa(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Js(t);let s=bs(1);e&&(i?Ps(i)&&(s=Qs(i)):s=Qs(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==js(t))&&e}(n,o,i)?ea(n):bs(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(n){const t=js(n),e=i&&Ps(i)?js(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Qs(o),e=o.getBoundingClientRect(),i=Hs(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=js(o).frameElement}}return Rs({width:f,height:h,x:l,y:c})}function ia(t){return oa(Fs(t)).left+Gs(t).scrollLeft}function ra(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=js(t),i=Fs(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=Zs();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Fs(t),o=Gs(t),i=t.ownerDocument.body,r=ys(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=ys(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+ia(t);const a=-o.scrollTop;return"rtl"===Hs(i).direction&&(s+=ys(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(Fs(t));else if(Ps(e))i=function(t,e){const o=oa(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=zs(t)?Qs(t):bs(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ea(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Rs(i)}function na(t,e){const o=Vs(t);return!(o===e||!Ps(o)||_s(o))&&("fixed"===Hs(o).position||na(o,e))}function sa(t,e,o){const i=zs(e),r=Fs(e),n="fixed"===o,s=oa(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=bs(0);if(i||!i&&!n)if(("body"!==Ws(e)||Ms(r))&&(a=Gs(e)),i){const t=oa(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ia(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function aa(t,e){return zs(t)&&"fixed"!==Hs(t).position?e?e(t):t.offsetParent:null}function la(t,e){const o=js(t);if(!zs(t))return o;let i=aa(t,e);for(;i&&Ts(i)&&"static"===Hs(i).position;)i=aa(i,e);return i&&("html"===Ws(i)||"body"===Ws(i)&&"static"===Hs(i).position&&!Ks(i))?o:i||function(t){let e=Vs(t);for(;zs(e)&&!_s(e);){if(Ks(e))return e;e=Vs(e)}return null}(t)||o}const ca={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=zs(o),n=Fs(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=bs(1);const l=bs(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ws(o)||Ms(n))&&(s=Gs(o)),zs(o))){const t=oa(o);a=Qs(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Fs,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Ys(t,[],!1).filter((t=>Ps(t)&&"body"!==Ws(t))),r=null;const n="fixed"===Hs(t).position;let s=n?Vs(t):t;for(;Ps(s)&&!_s(s);){const e=Hs(s),o=Ks(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ms(s)&&!o&&na(t,s))?i=i.filter((t=>t!==s)):r=e,s=Vs(s)}return e.set(t,i),i}(e,this._c):[].concat(o),s=[...n,i],a=s[0],l=s.reduce(((t,o)=>{const i=ra(e,o,r);return t.top=ys(i.top,t.top),t.right=ds(i.right,t.right),t.bottom=ds(i.bottom,t.bottom),t.left=ys(i.left,t.left),t}),ra(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:la,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||la,n=this.getDimensions;return{reference:sa(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Xs(t)},getScale:Qs,isElement:Ps,isRTL:function(t){return"rtl"===Hs(t).direction}},fa=(t,e,o)=>{const i=new Map,r={platform:ca,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Is(c,i,l),u=i,p={},d=0;for(let o=0;o<a.length;o++){const{name:n,fn:y}=a[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:f,y:h}=Is(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};function ha(t){return function(t){for(let e=t;e;e=ua(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=ua(t);e;e=ua(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 ua(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var pa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class da extends He{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 pe`
665
665
  <div part="container"
666
666
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
667
667
  @mouseenter=${this.onHover}
@@ -691,12 +691,12 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
691
691
  * Copyright 2017 Google LLC
692
692
  * SPDX-License-Identifier: BSD-3-Clause
693
693
  */
694
- class ya extends Cn{constructor(t){if(super(t),this.et=ct,t.type!==Sn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||null==t)return this.vt=void 0,this.et=t;if(t===lt)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:[]}}}ya.directiveName="unsafeHTML",ya.resultType=1;const ba=Nn(ya);var ga,ma,va;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;"}(ga||(ga={})),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;"}(ma||(ma={})),new Map([...["abw"].map((t=>[t,ma.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,ma.AUDIO])),...["avi"].map((t=>[t,ma.AVI])),...["chm","xhs"].map((t=>[t,ma.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,ma.CODE])),...["csv"].map((t=>[t,ma.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ma.DITA])),...["epub"].map((t=>[t,ma.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ma.EXCEL])),...["flac"].map((t=>[t,ma.FLAC])),...["gif"].map((t=>[t,ma.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ma.GZIP])),...["html","htm","xhtml"].map((t=>[t,ma.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ma.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ma.JPEG])),...["json"].map((t=>[t,ma.JSON])),...["m4a","m4p"].map((t=>[t,ma.M4A])),...["mov","qt"].map((t=>[t,ma.MOV])),...["mp3"].map((t=>[t,ma.MP3])),...["mp4","m4v"].map((t=>[t,ma.MP4])),...["ogg","oga"].map((t=>[t,ma.OGG])),...["pdf","ps"].map((t=>[t,ma.PDF])),...["png"].map((t=>[t,ma.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ma.POWERPOINT])),...["rar"].map((t=>[t,ma.RAR])),...["stp"].map((t=>[t,ma.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ma.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,ma.VIDEO])),...["wav"].map((t=>[t,ma.WAV])),...["wma"].map((t=>[t,ma.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ma.WORD])),...["xml","xsl","rdf"].map((t=>[t,ma.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ma.YAML])),...["zip"].map((t=>[t,ma.ZIP]))]),ma.ABW,ma.AUDIO,ma.AVI,ma.CHM,ma.CODE,ma.CSV,ma.DITA,ma.EPUB,ma.EXCEL,ma.FLAC,ma.GIF,ma.GZIP,ma.HTML,ma.IMAGE,ma.JPEG,ma.JSON,ma.M4A,ma.MOV,ma.MP3,ma.MP4,ma.OGG,ma.PDF,ma.PNG,ma.POWERPOINT,ma.RAR,ma.STP,ma.TEXT,ma.UNKNOWN,ma.VIDEO,ma.WAV,ma.WMA,ma.WORD,ma.XML,ma.YAML,ma.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(va||(va={}));var xa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Oa extends He{constructor(){super(...arguments),this.resolvedIcon=ye}render(){const t=this.variant&&Object.values(va).includes(this.variant)?this.variant:va.fluid_topics,e=t!==va.material||!!this.value;return pe`
694
+ class ya extends Cn{constructor(t){if(super(t),this.et=ct,t.type!==Sn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||null==t)return this.vt=void 0,this.et=t;if(t===lt)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:[]}}}ya.directiveName="unsafeHTML",ya.resultType=1;const ga=Nn(ya);var ba,ma,va;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;"}(ba||(ba={})),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;"}(ma||(ma={})),new Map([...["abw"].map((t=>[t,ma.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,ma.AUDIO])),...["avi"].map((t=>[t,ma.AVI])),...["chm","xhs"].map((t=>[t,ma.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,ma.CODE])),...["csv"].map((t=>[t,ma.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ma.DITA])),...["epub"].map((t=>[t,ma.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ma.EXCEL])),...["flac"].map((t=>[t,ma.FLAC])),...["gif"].map((t=>[t,ma.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ma.GZIP])),...["html","htm","xhtml"].map((t=>[t,ma.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ma.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ma.JPEG])),...["json"].map((t=>[t,ma.JSON])),...["m4a","m4p"].map((t=>[t,ma.M4A])),...["mov","qt"].map((t=>[t,ma.MOV])),...["mp3"].map((t=>[t,ma.MP3])),...["mp4","m4v"].map((t=>[t,ma.MP4])),...["ogg","oga"].map((t=>[t,ma.OGG])),...["pdf","ps"].map((t=>[t,ma.PDF])),...["png"].map((t=>[t,ma.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ma.POWERPOINT])),...["rar"].map((t=>[t,ma.RAR])),...["stp"].map((t=>[t,ma.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ma.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,ma.VIDEO])),...["wav"].map((t=>[t,ma.WAV])),...["wma"].map((t=>[t,ma.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ma.WORD])),...["xml","xsl","rdf"].map((t=>[t,ma.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ma.YAML])),...["zip"].map((t=>[t,ma.ZIP]))]),ma.ABW,ma.AUDIO,ma.AVI,ma.CHM,ma.CODE,ma.CSV,ma.DITA,ma.EPUB,ma.EXCEL,ma.FLAC,ma.GIF,ma.GZIP,ma.HTML,ma.IMAGE,ma.JPEG,ma.JSON,ma.M4A,ma.MOV,ma.MP3,ma.MP4,ma.OGG,ma.PDF,ma.PNG,ma.POWERPOINT,ma.RAR,ma.STP,ma.TEXT,ma.UNKNOWN,ma.VIDEO,ma.WAV,ma.WMA,ma.WORD,ma.XML,ma.YAML,ma.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(va||(va={}));var xa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Oa extends He{constructor(){super(...arguments),this.resolvedIcon=ye}render(){const t=this.variant&&Object.values(va).includes(this.variant)?this.variant:va.fluid_topics,e=t!==va.material||!!this.value;return pe`
695
695
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
696
- ${ba(this.resolvedIcon)}
696
+ ${ga(this.resolvedIcon)}
697
697
  <slot ?hidden=${e}></slot>
698
698
  </i>
699
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case va.file_format:this.resolvedIcon=null!==(t=ma[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case va.material:this.resolvedIcon=this.value||ye;break;default:this.resolvedIcon=null!==(e=ga[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Oa.elementDefinitions={},Oa.styles=Hn,xa([R()],Oa.prototype,"variant",void 0),xa([R()],Oa.prototype,"value",void 0),xa([I()],Oa.prototype,"resolvedIcon",void 0),xa([A("slot")],Oa.prototype,"slottedContent",void 0),z("ft-icon")(Oa);class wa extends He{render(){return pe`
699
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case va.file_format:this.resolvedIcon=null!==(t=ma[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case va.material:this.resolvedIcon=this.value||ye;break;default:this.resolvedIcon=null!==(e=ba[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Oa.elementDefinitions={},Oa.styles=Hn,xa([R()],Oa.prototype,"variant",void 0),xa([R()],Oa.prototype,"value",void 0),xa([I()],Oa.prototype,"resolvedIcon",void 0),xa([A("slot")],Oa.prototype,"slottedContent",void 0),z("ft-icon")(Oa);class wa extends He{render(){return pe`
700
700
  <div class="ft-loader">
701
701
  <div></div>
702
702
  <div></div>
@@ -1558,7 +1558,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1558
1558
  slot:not([name]) {
1559
1559
  display: none;
1560
1560
  }
1561
- `];var yl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class bl extends CustomEvent{constructor(t){super("change",{detail:t})}}class gl extends He{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return D(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return D(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return pe`
1561
+ `];var yl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class gl extends CustomEvent{constructor(t){super("change",{detail:t})}}class bl extends He{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return D(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return D(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return pe`
1562
1562
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1563
1563
  part="container">
1564
1564
  ${this.label||t?pe`
@@ -1630,20 +1630,20 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1630
1630
  .exportpartsPrefixes=${["values","available-values"]}
1631
1631
  noValuesLabel="${this.noValuesLabel}"
1632
1632
  ></ft-filter-level>
1633
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;P(this.lastDispatchedValues,t)||(this.dispatchEvent(new bl(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}gl.elementDefinitions={"ft-button":$a,"ft-filter-level":Qa,"ft-snap-scroll":rl,"ft-typography":On},gl.styles=dl,yl([R({type:String})],gl.prototype,"id",void 0),yl([R({type:String})],gl.prototype,"label",void 0),yl([R({type:String})],gl.prototype,"filterPlaceHolder",void 0),yl([R({type:String})],gl.prototype,"clearButtonLabel",void 0),yl([R({type:String})],gl.prototype,"moreValuesButtonLabel",void 0),yl([R({type:String})],gl.prototype,"noValuesLabel",void 0),yl([B([])],gl.prototype,"options",void 0),yl([R({type:Boolean})],gl.prototype,"multivalued",void 0),yl([R({type:Boolean})],gl.prototype,"disabled",void 0),yl([R({type:Boolean})],gl.prototype,"raiseSelectedOptions",void 0),yl([R({type:Number})],gl.prototype,"displayedValuesLimit",void 0),yl([R({type:Boolean})],gl.prototype,"hideClearButton",void 0),yl([A(".ft-filter--slot")],gl.prototype,"slotElement",void 0),yl([A(".ft-filter--container")],gl.prototype,"container",void 0),yl([A(".ft-filter--values")],gl.prototype,"valuesContainer",void 0),yl([A(".ft-filter--levels")],gl.prototype,"levelsContainer",void 0),yl([I()],gl.prototype,"lastLevelHasHiddenvalues",void 0),yl([A(".ft-filter--filter input")],gl.prototype,"filterInput",void 0),yl([function(t){return(e,o)=>L(0,0,{get(){return(this.renderRoot??(W??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],gl.prototype,"levels",void 0),yl([I()],gl.prototype,"withScroll",void 0),yl([I()],gl.prototype,"filter",void 0),yl([I()],gl.prototype,"slideIn",void 0),yl([I()],gl.prototype,"slideOut",void 0);var ml=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class vl extends He{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return pe`
1633
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;P(this.lastDispatchedValues,t)||(this.dispatchEvent(new gl(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}bl.elementDefinitions={"ft-button":$a,"ft-filter-level":Qa,"ft-snap-scroll":rl,"ft-typography":On},bl.styles=dl,yl([R({type:String})],bl.prototype,"id",void 0),yl([R({type:String})],bl.prototype,"label",void 0),yl([R({type:String})],bl.prototype,"filterPlaceHolder",void 0),yl([R({type:String})],bl.prototype,"clearButtonLabel",void 0),yl([R({type:String})],bl.prototype,"moreValuesButtonLabel",void 0),yl([R({type:String})],bl.prototype,"noValuesLabel",void 0),yl([B([])],bl.prototype,"options",void 0),yl([R({type:Boolean})],bl.prototype,"multivalued",void 0),yl([R({type:Boolean})],bl.prototype,"disabled",void 0),yl([R({type:Boolean})],bl.prototype,"raiseSelectedOptions",void 0),yl([R({type:Number})],bl.prototype,"displayedValuesLimit",void 0),yl([R({type:Boolean})],bl.prototype,"hideClearButton",void 0),yl([A(".ft-filter--slot")],bl.prototype,"slotElement",void 0),yl([A(".ft-filter--container")],bl.prototype,"container",void 0),yl([A(".ft-filter--values")],bl.prototype,"valuesContainer",void 0),yl([A(".ft-filter--levels")],bl.prototype,"levelsContainer",void 0),yl([I()],bl.prototype,"lastLevelHasHiddenvalues",void 0),yl([A(".ft-filter--filter input")],bl.prototype,"filterInput",void 0),yl([function(t){return(e,o)=>L(0,0,{get(){return(this.renderRoot??(W??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],bl.prototype,"levels",void 0),yl([I()],bl.prototype,"withScroll",void 0),yl([I()],bl.prototype,"filter",void 0),yl([I()],bl.prototype,"slideIn",void 0),yl([I()],bl.prototype,"slideOut",void 0);var ml=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class vl extends He{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return pe`
1634
1634
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1635
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vl.elementDefinitions={},ml([R({type:String})],vl.prototype,"label",void 0),ml([R({type:Object,converter:t=>t})],vl.prototype,"value",void 0),ml([R({type:Boolean,reflect:!0})],vl.prototype,"selected",void 0),ml([R({type:Object})],vl.prototype,"subOptions",void 0),ml([B({})],vl.prototype,"renderOption",void 0),ml([A(".ft-filter-option--slot")],vl.prototype,"slotElement",void 0),z("ft-filter")(gl),z("ft-filter-option")(vl);const xl=Ut`
1635
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vl.elementDefinitions={},ml([R({type:String})],vl.prototype,"label",void 0),ml([R({type:Object,converter:t=>t})],vl.prototype,"value",void 0),ml([R({type:Boolean,reflect:!0})],vl.prototype,"selected",void 0),ml([R({type:Object})],vl.prototype,"subOptions",void 0),ml([B({})],vl.prototype,"renderOption",void 0),ml([A(".ft-filter-option--slot")],vl.prototype,"slotElement",void 0),z("ft-filter")(bl),z("ft-filter-option")(vl);const xl=Ut`
1636
1636
  `,Ol=Ut`
1637
- `,wl=qi.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setMetadataDescriptors:(t,e)=>{t.metadataDescriptors=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataDescriptors:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Sl{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=wl.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Sl.build(t):null!==(e=Sl.API)&&void 0!==e?e:Sl.API=Sl.build()}static await(t){return new Promise((e=>{let o=Sl.get(t);if(o)e(o);else{const i=wl.subscribe((()=>{o=Sl.get(t),o&&(i(),e(o))}))}}))}}var Nl;const Cl=Symbol("clearAfterUnitTest");class $l{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Nl]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=wl.getState().uiLocale,wl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=wl.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};P(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ye(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>j(0).then((()=>t())).catch((()=>null)))))}}Nl=Cl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new $l((async(t,e)=>(await Sl.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new $l((async(t,e)=>(await Sl.await()).getCustomMessageContext(t,e))));const El=window.FluidTopicsI18nService,kl=window.FluidTopicsCustomI18nService;var Rl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Il extends He{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.metadataDescriptors=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Sl.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return pe`
1637
+ `,wl=qi.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 Sl{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=wl.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Sl.build(t):null!==(e=Sl.API)&&void 0!==e?e:Sl.API=Sl.build()}static await(t){return new Promise((e=>{let o=Sl.get(t);if(o)e(o);else{const i=wl.subscribe((()=>{o=Sl.get(t),o&&(i(),e(o))}))}}))}}var Nl;const Cl=Symbol("clearAfterUnitTest");class $l{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Nl]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=wl.getState().uiLocale,wl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=wl.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};P(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ye(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>j(0).then((()=>t())).catch((()=>null)))))}}Nl=Cl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new $l((async(t,e)=>(await Sl.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new $l((async(t,e)=>(await Sl.await()).getCustomMessageContext(t,e))));const El=window.FluidTopicsI18nService,kl=window.FluidTopicsCustomI18nService;var Rl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Il extends He{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=()=>Sl.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return pe`
1638
1638
  <slot></slot>
1639
- `}update(t){super.update(t),t.has("baseUrl")&&wl.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&wl.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&wl.actions.setUiLocale(this.uiLocale),t.has("metadataDescriptors")&&wl.actions.setMetadataDescriptors(this.metadataDescriptors),t.has("noCustom")&&wl.actions.setNoCustom(this.noCustom),t.has("editorMode")&&wl.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&wl.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&wl.actions.setSession(this.session),t.has("availableUiLocales")&&wl.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>El.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))),null==this.metadataDescriptors&&(this.metadataDescriptors=await this.cache.get("metadataDescriptors",(()=>t.getMetadataDescriptors()))))}}Il.elementDefinitions={},Il.styles=Ol,Rl([R()],Il.prototype,"baseUrl",void 0),Rl([R()],Il.prototype,"apiIntegrationIdentifier",void 0),Rl([R()],Il.prototype,"uiLocale",void 0),Rl([B([])],Il.prototype,"availableUiLocales",void 0),Rl([B([])],Il.prototype,"metadataDescriptors",void 0),Rl([R({type:Boolean})],Il.prototype,"editorMode",void 0),Rl([R({type:Boolean})],Il.prototype,"noCustom",void 0),Rl([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Il.prototype,"noCustomComponent",void 0),Rl([R({type:Boolean})],Il.prototype,"withManualResources",void 0),Rl([B([])],Il.prototype,"messageContexts",void 0),Rl([B(void 0)],Il.prototype,"session",void 0),Rl([R({type:Object})],Il.prototype,"apiProvider",void 0);class Ul{async listMySearches(){var t;return(null===(t=wl.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Sl.await()).listMySearches(wl.getState().session.profile.userId):[]}}const Ll=new r;class Al{async listMyBookmarks(){return Ll.get("bookmarks",(async()=>(await Sl.await()).listMyBookmarks(wl.getState().session.profile.userId)))}clearCache(){Ll.clear("bookmarks")}}const Wl=qi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const jl=new class{constructor(){this.currentSession=wl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Al,wl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=wl.getState();P(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(){Wl.actions.savedSearches(void 0)}clearMyBookmarks(){Wl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ul,e=await t.listMySearches();Wl.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;Wl.actions.bookmarks(e)}}};z("ft-app-context")(Il);var Fl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Dl=Symbol("i18nProperties"),Pl=Symbol("i18nUnsubs");function zl(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?kl:El}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Dl])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Dl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Dl]&&new Set([...this[Dl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Pl].has(t)||this[Pl].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[Pl].forEach((t=>t())),this[Pl].clear()}}return e=Pl,Fl([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Bl extends(zl(He)){}class Ml extends(zl(so)){}var Tl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Kl extends Ml{constructor(){super(),this.editorMode=!1,this.addStore(wl)}render(){return this.key&&this.context?pe`
1639
+ `}update(t){super.update(t),t.has("baseUrl")&&wl.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&wl.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&wl.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&wl.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&wl.actions.noCustom(this.noCustom),t.has("editorMode")&&wl.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&wl.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&wl.actions.session(this.session),t.has("availableUiLocales")&&wl.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>El.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()))}}Il.elementDefinitions={},Il.styles=Ol,Rl([R()],Il.prototype,"baseUrl",void 0),Rl([R()],Il.prototype,"apiIntegrationIdentifier",void 0),Rl([R()],Il.prototype,"uiLocale",void 0),Rl([B(null)],Il.prototype,"availableUiLocales",void 0),Rl([B(null)],Il.prototype,"metadataConfiguration",void 0),Rl([R({type:Boolean})],Il.prototype,"editorMode",void 0),Rl([R({type:Boolean})],Il.prototype,"noCustom",void 0),Rl([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Il.prototype,"noCustomComponent",void 0),Rl([R({type:Boolean})],Il.prototype,"withManualResources",void 0),Rl([B([])],Il.prototype,"messageContexts",void 0),Rl([B(void 0)],Il.prototype,"session",void 0),Rl([R({type:Object})],Il.prototype,"apiProvider",void 0);class Ul{async listMySearches(){var t;return(null===(t=wl.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Sl.await()).listMySearches(wl.getState().session.profile.userId):[]}}const Ll=new r;class Al{async listMyBookmarks(){return Ll.get("bookmarks",(async()=>(await Sl.await()).listMyBookmarks(wl.getState().session.profile.userId)))}clearCache(){Ll.clear("bookmarks")}}const Wl=qi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const jl=new class{constructor(){this.currentSession=wl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Al,wl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=wl.getState();P(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(){Wl.actions.savedSearches(void 0)}clearMyBookmarks(){Wl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ul,e=await t.listMySearches();Wl.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;Wl.actions.bookmarks(e)}}};z("ft-app-context")(Il);var Fl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Dl=Symbol("i18nProperties"),Pl=Symbol("i18nUnsubs");function zl(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?kl:El}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Dl])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Dl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Dl]&&new Set([...this[Dl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Pl].has(t)||this[Pl].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[Pl].forEach((t=>t())),this[Pl].clear()}}return e=Pl,Fl([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Bl extends(zl(He)){}class Ml extends(zl(so)){}var Tl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Kl extends Ml{constructor(){super(),this.editorMode=!1,this.addStore(wl)}render(){return this.key&&this.context?pe`
1640
1640
  <span class="ft-i18n">
1641
1641
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1642
1642
  </span>
1643
- `:this.editorMode?"Select a context and a label key.":ye}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:""})}}Kl.elementDefinitions={},Kl.styles=xl,Tl([Xe()],Kl.prototype,"editorMode",void 0),Tl([R()],Kl.prototype,"context",void 0),Tl([R()],Kl.prototype,"key",void 0),Tl([B([])],Kl.prototype,"args",void 0),Tl([R()],Kl.prototype,"defaultMessage",void 0);class Zl{static build(t){return new Zl(t)}static fromGwt(t){return new Zl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>El.resolveMessage(this.name,e,...t)})}}z("ft-i18n")(Kl);const _l={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var Hl,Gl,Vl,ql,Yl,Xl,Jl,Ql,tc,ec,oc,ic,rc,nc,sc,ac,lc,cc;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(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})},p.call(y.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Hl||(Hl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Gl||(Gl={})),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"}(Vl||(Vl={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(ql||(ql={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Yl||(Yl={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Xl||(Xl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Jl||(Jl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ql||(Ql={})),function(t){t.ASC="ASC",t.DESC="DESC"}(tc||(tc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ec||(ec={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(oc||(oc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ic||(ic={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(rc||(rc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(nc||(nc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(sc||(sc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(ac||(ac={})),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"}(lc||(lc={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(cc||(cc={})),lc.PERSONAL_BOOK_SHARE_USER,lc.PERSONAL_BOOK_USER,lc.HTML_EXPORT_USER,lc.PERSONAL_BOOK_USER,lc.PDF_EXPORT_USER,lc.PERSONAL_BOOK_USER,lc.KHUB_ADMIN,lc.CONTENT_PUBLISHER,lc.ADMIN,lc.KHUB_ADMIN,lc.USERS_ADMIN,lc.PORTAL_ADMIN,lc.DEVELOPER,lc.BETA_USER,lc.DEBUG_USER;class fc{static async build(){return new fc(await Sl.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const hc=t=>t.request.virtualField===oc.TITLE_ONLY&&t.request.scope===ac.DOCUMENTS;class uc extends Event{constructor(){super(uc.eventName)}}uc.eventName="search-context-clear-all-filters";class pc{static build(t){return new pc((t=>qi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:_l}))(t.trim()||"context"),fc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){return F((()=>this.service))}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(oc.TITLE_ONLY),this.store.actions.setRequestScope(ac.DOCUMENTS)):(this.store.actions.setRequestVirtualField(oc.EVERYWHERE),this.store.actions.setRequestScope(ac.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return hc(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new uc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var dc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class yc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const bc=Symbol("registerInterval");class gc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[bc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[bc]):this.dispatchEvent(new yc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bc,dc([I()],o.prototype,"stateManager",void 0),o}(so)){}const mc=Zl.build("designedSearchType"),vc={label:"Search scope",documentTitlesOnly:"Search in document titles only"},xc=Ut`
1643
+ `:this.editorMode?"Select a context and a label key.":ye}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:""})}}Kl.elementDefinitions={},Kl.styles=xl,Tl([Xe()],Kl.prototype,"editorMode",void 0),Tl([R()],Kl.prototype,"context",void 0),Tl([R()],Kl.prototype,"key",void 0),Tl([B([])],Kl.prototype,"args",void 0),Tl([R()],Kl.prototype,"defaultMessage",void 0);class Zl{static build(t){return new Zl(t)}static fromGwt(t){return new Zl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>El.resolveMessage(this.name,e,...t)})}}z("ft-i18n")(Kl);const _l={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var Hl,Gl,Vl,ql,Yl,Xl,Jl,Ql,tc,ec,oc,ic,rc,nc,sc,ac,lc,cc;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new b(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Hl||(Hl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Gl||(Gl={})),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"}(Vl||(Vl={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(ql||(ql={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Yl||(Yl={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Xl||(Xl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Jl||(Jl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ql||(Ql={})),function(t){t.ASC="ASC",t.DESC="DESC"}(tc||(tc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ec||(ec={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(oc||(oc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ic||(ic={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(rc||(rc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(nc||(nc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(sc||(sc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(ac||(ac={})),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"}(lc||(lc={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(cc||(cc={})),lc.PERSONAL_BOOK_SHARE_USER,lc.PERSONAL_BOOK_USER,lc.HTML_EXPORT_USER,lc.PERSONAL_BOOK_USER,lc.PDF_EXPORT_USER,lc.PERSONAL_BOOK_USER,lc.KHUB_ADMIN,lc.CONTENT_PUBLISHER,lc.ADMIN,lc.KHUB_ADMIN,lc.USERS_ADMIN,lc.PORTAL_ADMIN,lc.DEVELOPER,lc.BETA_USER,lc.DEBUG_USER;class fc{static async build(){return new fc(await Sl.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const hc=t=>t.request.virtualField===oc.TITLE_ONLY&&t.request.scope===ac.DOCUMENTS;class uc extends Event{constructor(){super(uc.eventName)}}uc.eventName="search-context-clear-all-filters";class pc{static build(t){return new pc((t=>qi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:_l}))(t.trim()||"context"),fc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){return F((()=>this.service))}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(oc.TITLE_ONLY),this.store.actions.setRequestScope(ac.DOCUMENTS)):(this.store.actions.setRequestVirtualField(oc.EVERYWHERE),this.store.actions.setRequestScope(ac.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return hc(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new uc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var dc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class yc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const gc=Symbol("registerInterval");class bc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[gc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[gc]):this.dispatchEvent(new yc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=gc,dc([I()],o.prototype,"stateManager",void 0),o}(so)){}const mc=Zl.build("designedSearchType"),vc={label:"Search scope",documentTitlesOnly:"Search in document titles only"},xc=Ut`
1644
1644
  `;var Oc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class wc extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Sc extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Nc extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Cc extends so{get stateManager(){return null==this._stateManager&&(this._stateManager=pc.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(wl)}render(){return pe`
1645
1645
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1646
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Sc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Nc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new wc(t))}reloadSavedSearches(){jl.clearMySearches()}clear(){this.stateManager.clear()}}Cc.elementDefinitions={},Cc.styles=xc,Oc([R()],Cc.prototype,"query",void 0),Oc([R()],Cc.prototype,"contentLocale",void 0),Oc([R({type:Number})],Cc.prototype,"pageSize",void 0),Oc([R({type:Boolean})],Cc.prototype,"searchInDocumentTitlesOnly",void 0),Oc([R()],Cc.prototype,"scope",void 0),Oc([R({type:Boolean})],Cc.prototype,"ignoreEmptyQuery",void 0),Oc([B([])],Cc.prototype,"filters",void 0),Oc([B([])],Cc.prototype,"sort",void 0),Oc([Xe({store:"search"})],Cc.prototype,"request",void 0),Oc([Xe({store:"search"})],Cc.prototype,"paging",void 0),Oc([Xe({store:"search",selector:t=>t.spellcheck})],Cc.prototype,"autocorrect",void 0),Oc([Xe({store:wl.name})],Cc.prototype,"session",void 0),z("ft-search-context")(Cc);var $c=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ec extends(zl(gc)){constructor(){super(),this.addI18nContext(mc,vc)}render(){return pe`
1646
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Sc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Nc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new wc(t))}reloadSavedSearches(){jl.clearMySearches()}clear(){this.stateManager.clear()}}Cc.elementDefinitions={},Cc.styles=xc,Oc([R()],Cc.prototype,"query",void 0),Oc([R()],Cc.prototype,"contentLocale",void 0),Oc([R({type:Number})],Cc.prototype,"pageSize",void 0),Oc([R({type:Boolean})],Cc.prototype,"searchInDocumentTitlesOnly",void 0),Oc([R()],Cc.prototype,"scope",void 0),Oc([R({type:Boolean})],Cc.prototype,"ignoreEmptyQuery",void 0),Oc([B([])],Cc.prototype,"filters",void 0),Oc([B([])],Cc.prototype,"sort",void 0),Oc([Xe({store:"search"})],Cc.prototype,"request",void 0),Oc([Xe({store:"search"})],Cc.prototype,"paging",void 0),Oc([Xe({store:"search",selector:t=>t.spellcheck})],Cc.prototype,"autocorrect",void 0),Oc([Xe({store:wl.name})],Cc.prototype,"session",void 0),z("ft-search-context")(Cc);var $c=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ec extends(zl(bc)){constructor(){super(),this.addI18nContext(mc,vc)}render(){return pe`
1647
1647
  <ft-filter
1648
1648
  label=${mc.messages.label()}
1649
1649
  .options=${[{label:mc.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
@@ -1652,4 +1652,4 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1652
1652
  multivalued
1653
1653
  @change=${this.onSelected}
1654
1654
  ></ft-filter>
1655
- `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}Ec.elementDefinitions={"ft-filter":gl},Ec.styles=er,$c([Xe({selector:hc})],Ec.prototype,"searchInDocumentTitlesOnly",void 0),$c([A("ft-filter")],Ec.prototype,"filter",void 0),z("ft-search-type")(Ec),t.FtSearchType=Ec,t.FtSearchTypeCssVariables={},t.searchTypeContext=mc,t.searchTypeDefaultMessages=vc,t.styles=er}({});
1655
+ `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}Ec.elementDefinitions={"ft-filter":bl},Ec.styles=er,$c([Xe({selector:hc})],Ec.prototype,"searchInDocumentTitlesOnly",void 0),$c([A("ft-filter")],Ec.prototype,"filter",void 0),z("ft-search-type")(Ec),t.FtSearchType=Ec,t.FtSearchTypeCssVariables={},t.searchTypeContext=mc,t.searchTypeDefaultMessages=vc,t.styles=er}({});