@fluid-topics/ft-search-selected-facets 1.1.41 → 1.1.43
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.
- package/build/ft-search-selected-facets.js +1 -1
- package/build/ft-search-selected-facets.light.js +307 -307
- package/build/ft-search-selected-facets.min.js +414 -403
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +7 -7
- /package/build/{ft-search-selected-facets.css.d.ts → ft-search-selected-facets.styles.d.ts} +0 -0
- /package/build/{ft-search-selected-facets.css.js → ft-search-selected-facets.styles.js} +0 -0
|
@@ -12,86 +12,135 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?u(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ws){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,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(o)||window.customElements,r=i._getDefinition(e);return r?u(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ul){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)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*/const
|
|
20
|
+
*/const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:f,getPrototypeOf:p}=Object,d=globalThis,u=d.trustedTypes,g=u?u.emptyScript:"",y=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let O=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...h(t),...f(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[b("elementProperties")]=new Map,O[b("finalized")]=new Map,y?.({ReactiveElement:O}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const w=globalThis,S=w.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,$="?"+E,k=`<${$}>`,R=document,I=()=>R.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W=t=>U(t)||"function"==typeof t?.[Symbol.iterator],z="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,F=/>/g,j=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,P=/"/g,_=/^(?:script|style|textarea|title)$/i,M=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),T=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),H=new WeakMap,Z=R.createTreeWalker(R,129);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=A;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===A?"!--"===l[1]?a=B:void 0!==l[1]?a=F:void 0!==l[2]?(_.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=j):void 0!==l[3]&&(a=j):a===j?">"===l[0]?(a=r??A,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?j:'"'===l[3]?P:D):a===P||a===D?a=j:a===B||a===F?a=A:(a=j,r=void 0);const f=a===j&&t[e+1].startsWith("/>")?" ":"";n+=a===A?o+k:c>=0?(i.push(s),o.slice(0,c)+N+o.slice(c)+E+f):o+E+(-2===c?e:f)}return[G(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let q=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,h]=V(e,o);if(this.el=t.createElement(c,i),Z.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Z.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(N)){const e=h[a++],o=r.getAttribute(t).split(E),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q}),r.removeAttribute(t)}else t.startsWith(E)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(_.test(r.tagName)){const t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],I()),Z.nextNode(),l.push({type:2,index:++n});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===$)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)l.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const o=R.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,i){if(e===T)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=L(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=Y(t,r._$AS(t,e.values),r,i)),e}let J=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??R).importNode(e,!0);Z.currentNode=i;let r=Z.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new X(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new it(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=Z.nextNode(),n++)}return Z.currentNode=R,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++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=K,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=Y(this,t,e),L(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(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!==K&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.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=q.createElement(G(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new q(t)),e}T(e){U(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(I()),this.k(I()),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))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=K,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=K}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Y(this,i[o+a],e,a),s===T&&(s=this._$AH[a]),n||=!L(s)||s!==this._$AH[a],s===K?t=K:t!==K&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends Q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===K?void 0:t}},et=class extends Q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},ot=class extends Q{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??K)===T)return;const o=this._$AH,i=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==K&&(o===K||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)}},it=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){Y(this,t)}};const rt={j:N,P:E,A:$,C:1,M:V,L:J,R:W,V:Y,D:X,I:Q,H:et,N:ot,U:tt,B:it},nt=w.litHtmlPolyfillSupport;nt?.(q,X),(w.litHtmlVersions??=[]).push("3.1.0");
|
|
32
|
+
/**
|
|
33
|
+
* @license
|
|
34
|
+
* Copyright 2019 Google LLC
|
|
35
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
+
*/
|
|
37
|
+
const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let ht=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const ft=t=>new ht("string"==typeof t?t:t+"",void 0,lt),pt=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new ht(o,t,lt)},dt=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=at.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}},ut=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ft(e)})(t):t
|
|
32
38
|
/**
|
|
33
39
|
* @license
|
|
34
40
|
* Copyright 2017 Google LLC
|
|
35
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
|
|
42
|
+
*/,{is:gt,defineProperty:yt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:mt,getOwnPropertySymbols:vt,getPrototypeOf:xt}=Object,Ot=globalThis,wt=Ot.trustedTypes,St=wt?wt.emptyScript:"",Ct=Ot.reactiveElementPolyfillSupport,Nt=(t,e)=>t,Et={toAttribute(t,e){switch(e){case Boolean:t=t?St: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}},$t=(t,e)=>!gt(t,e),kt={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:$t};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;let Rt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&yt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=bt(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)??kt}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...mt(t),...vt(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(ut(t))}else void 0!==t&&e.push(ut(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 dt(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:Et).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:Et;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??$t)(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){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[Nt("elementProperties")]=new Map,Rt[Nt("finalized")]=new Map,Ct?.({ReactiveElement:Rt}),(Ot.reactiveElementVersions??=[]).push("2.0.2");
|
|
37
43
|
/**
|
|
38
44
|
* @license
|
|
39
45
|
* Copyright 2017 Google LLC
|
|
40
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/
|
|
47
|
+
*/
|
|
48
|
+
const It=globalThis,Lt=It.trustedTypes,Ut=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wt="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+zt,Bt=`<${At}>`,Ft=document,jt=()=>Ft.createComment(""),Dt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,_t=t=>Pt(t)||"function"==typeof t?.[Symbol.iterator],Mt="[ \t\n\f\r]",Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Ht=/>/g,Zt=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Vt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Xt=Yt(2),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=Ft.createTreeWalker(Ft,129);function ie(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ut?Ut.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Tt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===Tt?"!--"===l[1]?a=Kt:void 0!==l[1]?a=Ht:void 0!==l[2]?(qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Zt):void 0!==l[3]&&(a=Zt):a===Zt?">"===l[0]?(a=r??Tt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Zt:'"'===l[3]?Vt:Gt):a===Vt||a===Gt?a=Zt:a===Kt||a===Ht?a=Tt:(a=Zt,r=void 0);const f=a===Zt&&t[e+1].startsWith("/>")?" ":"";n+=a===Tt?o+Bt:c>=0?(i.push(s),o.slice(0,c)+Wt+o.slice(c)+zt+f):o+zt+(-2===c?e:f)}return[ie(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=re(t,e);if(this.el=ne.createElement(l,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=oe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Wt)){const e=c[n++],o=i.getAttribute(t).split(zt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?he:"?"===a[1]?fe:"@"===a[1]?pe:ce}),i.removeAttribute(t)}else t.startsWith(zt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(qt.test(i.tagName)){const t=i.textContent.split(zt),e=t.length-1;if(e>0){i.textContent=Lt?Lt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],jt()),oe.nextNode(),s.push({type:2,index:++r});i.append(t[e],jt())}}}else if(8===i.nodeType)if(i.data===At)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(zt,t+1));)s.push({type:7,index:r}),t+=zt.length-1}r++}}static createElement(t,e){const o=Ft.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,i){if(e===Qt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Dt(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=ae(t,r._$AS(t,e.values),r,i)),e}let se=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??Ft).importNode(e,!0);oe.currentNode=i;let r=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new de(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=oe.nextNode(),n++)}return oe.currentNode=Ft,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++}},le=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=te,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=ae(this,t,e),Dt(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_t(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!==te&&Dt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.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=ne.createElement(ie(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new se(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ne(t)),e}T(e){Pt(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(jt()),this.k(jt()),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))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=te,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=te}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ae(this,t,e,0),n=!Dt(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ae(this,i[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!Dt(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},he=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},fe=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},pe=class extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Qt)return;const o=this._$AH,i=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==te&&(o===te||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)}},de=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){ae(this,t)}};const ue={j:Wt,P:zt,A:At,C:1,M:re,L:se,R:_t,V:ae,D:le,I:ce,H:fe,N:pe,U:he,B:de},ge=It.litHtmlPolyfillSupport;ge?.(ne,le),(It.litHtmlVersions??=[]).push("3.1.0");const ye=(t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new le(e.insertBefore(jt(),t),t,void 0,o??{})}return r._$AI(t),r
|
|
42
49
|
/**
|
|
43
50
|
* @license
|
|
44
51
|
* Copyright 2017 Google LLC
|
|
45
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/const
|
|
53
|
+
*/};let be=class extends Rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const me=globalThis.litElementPolyfillSupport;me?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var ve=Object.freeze({__proto__:null,CSSResult:ht,LitElement:be,ReactiveElement:Rt,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:ue,adoptStyles:dt,css:pt,defaultConverter:Et,getCompatibleStyle:ut,html:Jt,isServer:!1,noChange:Qt,notEqual:$t,nothing:te,render:ye,supportsAdoptingStyleSheets:st,svg:Xt,unsafeCSS:ft});
|
|
47
54
|
/**
|
|
48
55
|
* @license
|
|
49
56
|
* Copyright 2017 Google LLC
|
|
50
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
|
|
58
|
+
*/const xe={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v},Oe=(t=xe,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};
|
|
52
59
|
/**
|
|
53
60
|
* @license
|
|
54
61
|
* Copyright 2017 Google LLC
|
|
55
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/
|
|
63
|
+
*/function we(t){return(e,o)=>"object"==typeof o?Oe(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
|
|
57
64
|
/**
|
|
58
65
|
* @license
|
|
59
66
|
* Copyright 2017 Google LLC
|
|
60
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/
|
|
68
|
+
*/}function Se(t){return we({...t,state:!0,attribute:!1})}
|
|
62
69
|
/**
|
|
63
70
|
* @license
|
|
64
|
-
* Copyright
|
|
71
|
+
* Copyright 2017 Google LLC
|
|
65
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/
|
|
67
|
-
const St=globalThis,Nt=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),Ct=new WeakMap;let Et=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Nt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=Ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Ct.set(e,t))}return t}toString(){return this.cssText}};const kt=t=>new Et("string"==typeof t?t:t+"",void 0,$t),Rt=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new Et(o,t,$t)},It=Nt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return kt(e)})(t):t
|
|
73
|
+
*/function Ce(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
|
|
68
74
|
/**
|
|
69
75
|
* @license
|
|
70
76
|
* Copyright 2017 Google LLC
|
|
71
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
|
|
78
|
+
*/const Ne=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
73
79
|
/**
|
|
74
80
|
* @license
|
|
75
81
|
* Copyright 2017 Google LLC
|
|
76
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
|
-
|
|
78
|
-
const Ht=globalThis,Gt=Ht.trustedTypes,Vt=Gt?Gt.createPolicy("lit-html",{createHTML:t=>t}):void 0,qt="$lit$",Yt=`lit$${(Math.random()+"").slice(9)}$`,Xt="?"+Yt,Jt=`<${Xt}>`,Qt=document,te=()=>Qt.createComment(""),ee=t=>null===t||"object"!=typeof t&&"function"!=typeof t,oe=Array.isArray,ie="[ \t\n\f\r]",re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ae=/>/g,se=RegExp(`>|${ie}(?:([^\\s"'>=/]+)(${ie}*=${ie}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,ce=/"/g,fe=/^(?:script|style|textarea|title)$/i,he=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),pe=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),ue=new WeakMap,ye=Qt.createTreeWalker(Qt,129);function ge(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Vt?Vt.createHTML(e):e}class be{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=re;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===re?"!--"===l[1]?a=ne:void 0!==l[1]?a=ae:void 0!==l[2]?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=se):void 0!==l[3]&&(a=se):a===se?">"===l[0]?(a=r??re,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?se:'"'===l[3]?ce:le):a===ce||a===le?a=se:a===ne||a===ae?a=re:(a=se,r=void 0);const h=a===se&&t[e+1].startsWith("/>")?" ":"";n+=a===re?o+Jt:c>=0?(i.push(s),o.slice(0,c)+qt+o.slice(c)+Yt+h):o+Yt+(-2===c?e:h)}return[ge(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]})(t,e);if(this.el=be.createElement(l,o),ye.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ye.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(qt)){const e=c[n++],o=i.getAttribute(t).split(Yt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?Oe:"?"===a[1]?we:"@"===a[1]?Se:xe}),i.removeAttribute(t)}else t.startsWith(Yt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(fe.test(i.tagName)){const t=i.textContent.split(Yt),e=t.length-1;if(e>0){i.textContent=Gt?Gt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],te()),ye.nextNode(),s.push({type:2,index:++r});i.append(t[e],te())}}}else if(8===i.nodeType)if(i.data===Xt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Yt,t+1));)s.push({type:7,index:r}),t+=Yt.length-1}r++}}static createElement(t,e){const o=Qt.createElement("template");return o.innerHTML=t,o}}function ve(t,e,o=t,i){if(e===pe)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=ee(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ve(t,r._$AS(t,e.values),r,i)),e}let me=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=de,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=ve(this,t,e),ee(t)?t===de||null==t||""===t?(this._$AH!==de&&this._$AR(),this._$AH=de):t!==this._$AH&&t!==pe&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>oe(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!==de&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.$(Qt.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=be.createElement(ge(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??Qt).importNode(e,!0);ye.currentNode=i;let r=ye.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new me(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Ne(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=ye.nextNode(),n++)}return ye.currentNode=Qt,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=ue.get(t.strings);return void 0===e&&ue.set(t.strings,e=new be(t)),e}T(e){oe(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(te()),this.k(te()),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))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=de,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=de}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ve(this,t,e,0),n=!ee(t)||t!==this._$AH&&t!==pe,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ve(this,i[o+a],e,a),s===pe&&(s=this._$AH[a]),n||=!ee(s)||s!==this._$AH[a],s===de?t=de:t!==de&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===de?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends xe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===de?void 0:t}},we=class extends xe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==de)}},Se=class extends xe{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ve(this,t,e,0)??de)===pe)return;const o=this._$AH,i=t===de&&o!==de||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==de&&(o===de||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)}},Ne=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){ve(this,t)}};const $e=Ht.litHtmlPolyfillSupport;$e?.(be,me),(Ht.litHtmlVersions??=[]).push("3.1.0");
|
|
83
|
+
*/;function Ee(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Ne(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Ne(0,0,{get(){return n(this)}})}}
|
|
79
84
|
/**
|
|
80
85
|
* @license
|
|
81
86
|
* Copyright 2017 Google LLC
|
|
82
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*/let $e;function ke(t){return(e,o)=>Ne(0,0,{get(){return(this.renderRoot??($e??=document.createDocumentFragment())).querySelectorAll(t)}})
|
|
89
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2017 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
+
*/}
|
|
94
|
+
/**
|
|
95
|
+
* @license
|
|
96
|
+
* Copyright 2021 Google LLC
|
|
97
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
98
|
*/
|
|
84
|
-
let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,o??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pe}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Re{static create(t,e,o,i){const r=t=>ke(null!=t?t:i),n=Rt`var(${ke(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=Rt`var(${ke(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),i=Rt`var(${ke(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>Rt`var(${ke(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function Ie(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Re.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:Re.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:Re.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:Re.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:Re.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:Re.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:Re.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:Re.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:Re.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Le={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Re.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Re.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Re.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Ue.colorOrange300),borderWarningSubtle:Re.extend("--ft-border-warning-subtle","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success buttons.",Ue.colorGreen200),borderSuccessSubtle:Re.extend("--ft-border-success-subtle","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for text fields in error states.",Ue.colorRed0),borderErrorSubtle:Re.extend("--ft-border-error-subtle","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for buttons in info color.",Ue.colorCyan200),borderInfoSubtle:Re.extend("--ft-border-info-subtle","Used as border for information components.",Ue.colorCyan30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},We={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Re.extend("--ft-floating-menu-horizontal-padding","",Ue.spacing4),Re.extend("--ft-floating-menu-vertical-padding","",Ue.spacing4),Re.extend("--ft-floating-menu-off-icon-color","",Ae.contentGlobalPrimary),Re.extend("--ft-floating-menu-off-color","",Ae.contentGlobalPrimary),Re.extend("--ft-floating-menu-on-color","",Ae.contentActionPrimary),Re.extend("--ft-floating-menu-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-floating-menu-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-floating-menu-gap","",Ue.spacing3),Re.extend("--ft-floating-menu-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Re.extend("--ft-floating-menu-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-floating-menu-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-floating-menu-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-floating-menu-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-floating-menu-icon-size","",Ue.iconSize3),Re.extend("--ft-floating-menu-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Re.extend("--ft-tabs-label-gap","",Ue.spacing1),Re.extend("--ft-tabs-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-tabs-icon-vertical-padding","",Ue.spacing4),Re.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Re.extend("--ft-tabs-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-tabs-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-tabs-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-tabs-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-tabs-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-tabs-on-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-tabs-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-tabs-on-color","",Ae.contentActionPrimary),Re.extend("--ft-tabs-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-collapsible-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-collapsible-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-collapsible-horizontal-padding","",Ue.spacing4),Re.extend("--ft-collapsible-vertical-padding","",Ue.spacing3),Re.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Re.extend("--ft-collapsible-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-collapsible-color","",Ae.contentGlobalPrimary),Re.extend("--ft-collapsible-state-layer-color","",Ae.contentGlobalPrimary),Re.extend("--ft-collapsible-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-collapsible-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-collapsible-icon-size","",Ue.iconSize3),Re.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-group-gap","",Ue.spacing1),Re.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-on-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-on-color","",Ae.contentActionPrimary),Re.extend("--ft-switch-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Re.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ue.colorCyan50),Re.extend("--ft-chart-4-base","",Ue.colorCyan100),Re.extend("--ft-chart-5-light","",Ue.colorRed40),Re.extend("--ft-chart-5-base","",Ue.colorRed60),Re.extend("--ft-chart-6-light","",Ue.colorGreen40),Re.extend("--ft-chart-6-base","",Ue.colorGreen70),Re.extend("--ft-chart-7-light","",Ue.colorOrange70),Re.extend("--ft-chart-7-base","",Ue.colorOrange100),Re.extend("--ft-chart-8-light","",Ue.colorAvocado70),Re.extend("--ft-chart-8-base","",Ue.colorAvocado200),Re.extend("--ft-chart-9-light","",Ue.colorBrown50),Re.extend("--ft-chart-9-base","",Ue.colorBrown200),Re.extend("--ft-chart-10-light","",Ue.colorGray50),Re.extend("--ft-chart-10-base","",Ue.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Re.extend("--ft-chip-large-gap","",Ue.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Re.extend("--ft-chip-medium-gap","",Ue.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Re.extend("--ft-chip-small-gap","",Ue.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Ae.borderInfoSubtle),Re.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Ae.borderSuccessSubtle),Re.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Ae.borderWarningSubtle),Re.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Ae.borderErrorSubtle),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Re.extend("--ft-notice-vertical-padding","",Ue.spacing1),Re.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Re.extend("--ft-notice-gap","",Ue.spacing2),Re.extend("--ft-notice-icon-size","",Ue.iconSize3),Re.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Ae.borderInfoSubtle),Re.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Ae.borderWarningSubtle),Re.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Ue.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Ue.spacing3),Re.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Ue.spacing3),Re.extend("--ft-notification-icon-size","",Ue.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Re.extend("--ft-notification-vertical-padding","",Ue.spacing4),Re.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Ae.borderInfoSubtle),Re.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Ae.borderSuccessSubtle),Re.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Ae.borderWarningSubtle),Re.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Ae.borderErrorSubtle),Re.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ue.spacing2),Re.extend("--ft-notification-gap-trailing","",Ue.spacing8),Re.extend("--ft-tooltip-horizontal-padding","",Ue.spacing2),Re.extend("--ft-tooltip-vertical-padding","",Ue.spacing2),Re.extend("--ft-tooltip-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tooltip-label","",Ae.contentGlobalOnColor),Re.extend("--ft-tooltip-background","",Ae.contentGlobalPrimary),Re.extend("--ft-tooltip-background-opacity","",Ue.opacity80),Re.extend("--ft-tooltip-shadow","",Ue.shadowElevation03);const De={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Re.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Re.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Re.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Re.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Re.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Re.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Re.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Re.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Re.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")},ze=["start","end"],je=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Fe=Math.min,Be=Math.max,Pe=Math.round,Ke=t=>({x:t,y:t}),Te={left:"right",right:"left",bottom:"top",top:"bottom"},Me={start:"end",end:"start"};function Ze(t,e,o){return Be(t,Fe(e,o))}function _e(t,e){return"function"==typeof t?t(e):t}function He(t){return t.split("-")[0]}function Ge(t){return t.split("-")[1]}function Ve(t){return"x"===t?"y":"x"}function qe(t){return"y"===t?"height":"width"}function Ye(t){return["top","bottom"].includes(He(t))?"y":"x"}function Xe(t){return Ve(Ye(t))}function Je(t){return t.replace(/left|right|bottom|top/g,(t=>Te[t]))}function Qe(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function to(t,e,o){let{reference:i,floating:r}=t;const n=Ye(e),a=Xe(e),s=qe(a),l=He(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:h};break;case"left":d={x:i.x-r.width,y:h};break;default:d={x:i.x,y:i.y}}switch(Ge(e)){case"start":d[a]-=p*(o&&c?-1:1);break;case"end":d[a]+=p*(o&&c?-1:1)}return d}async function eo(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=_e(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[p?"floating"===h?"reference":"floating":h],g=Qe(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=Qe(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+u.top)/m.y,bottom:(x.bottom-g.bottom+u.bottom)/m.y,left:(g.left-x.left+u.left)/m.x,right:(x.right-g.right+u.right)/m.x}}function oo(t,e,o){return(t?[...o.filter((e=>Ge(e)===t)),...o.filter((e=>Ge(e)!==t))]:o.filter((t=>He(t)===t))).filter((o=>!t||(Ge(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Me[t]))}(o)!==o)))}const io=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:p=je,autoAlignment:d=!0,...u}=_e(t,e),y=void 0!==h||p===je?oo(h||null,d,p):p,g=await eo(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,o){void 0===o&&(o=!1);const i=Ge(t),r=Xe(t),n=qe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Je(a)),[a,Je(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[He(v)],g[m[0]],g[m[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:v,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=Ge(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,Ge(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function ro(t){return so(t)?(t.nodeName||"").toLowerCase():"#document"}function no(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ao(t){var e;return null==(e=(so(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function so(t){return t instanceof Node||t instanceof no(t).Node}function lo(t){return t instanceof Element||t instanceof no(t).Element}function co(t){return t instanceof HTMLElement||t instanceof no(t).HTMLElement}function fo(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof no(t).ShadowRoot)}function ho(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=bo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function po(t){return["table","td","th"].includes(ro(t))}function uo(t){const e=yo(),o=bo(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 yo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function go(t){return["html","body","#document"].includes(ro(t))}function bo(t){return no(t).getComputedStyle(t)}function vo(t){return lo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mo(t){if("html"===ro(t))return t;const e=t.assignedSlot||t.parentNode||fo(t)&&t.host||ao(t);return fo(e)?e.host:e}function xo(t){const e=mo(t);return go(e)?t.ownerDocument?t.ownerDocument.body:t.body:co(e)&&ho(e)?e:xo(e)}function Oo(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=xo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=no(r);return n?e.concat(a,a.visualViewport||[],ho(r)?r:[],a.frameElement&&o?Oo(a.frameElement):[]):e.concat(r,Oo(r,[],o))}function wo(t){const e=bo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=co(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Pe(o)!==n||Pe(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function So(t){return lo(t)?t:t.contextElement}function No(t){const e=So(t);if(!co(e))return Ke(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=wo(e);let a=(n?Pe(o.width):o.width)/i,s=(n?Pe(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $o=Ke(0);function Co(t){const e=no(t);return yo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$o}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=So(t);let a=Ke(1);e&&(i?lo(i)&&(a=No(i)):a=No(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==no(t))&&e}(n,o,i)?Co(n):Ke(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=no(n),e=i&&lo(i)?no(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=No(o),e=o.getBoundingClientRect(),i=bo(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=no(o).frameElement}}return Qe({width:f,height:h,x:l,y:c})}function ko(t){return Eo(ao(t)).left+vo(t).scrollLeft}function Ro(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=no(t),i=ao(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=ao(t),o=vo(t),i=t.ownerDocument.body,r=Be(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Be(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+ko(t);const s=-o.scrollTop;return"rtl"===bo(i).direction&&(a+=Be(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(ao(t));else if(lo(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=co(t)?No(t):Ke(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=Co(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Qe(i)}function Io(t,e){const o=mo(t);return!(o===e||!lo(o)||go(o))&&("fixed"===bo(o).position||Io(o,e))}function Uo(t,e,o){const i=co(e),r=ao(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Ke(0);if(i||!i&&!n)if(("body"!==ro(e)||ho(r))&&(s=vo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ko(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Lo(t,e){return co(t)&&"fixed"!==bo(t).position?e?e(t):t.offsetParent:null}function Ao(t,e){const o=no(t);if(!co(t))return o;let i=Lo(t,e);for(;i&&po(i)&&"static"===bo(i).position;)i=Lo(i,e);return i&&("html"===ro(i)||"body"===ro(i)&&"static"===bo(i).position&&!uo(i))?o:i||function(t){let e=mo(t);for(;co(e)&&!go(e);){if(uo(e))return e;e=mo(e)}return null}(t)||o}const Wo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=co(o),n=ao(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Ke(1);const l=Ke(0);if((r||!r&&"fixed"!==i)&&(("body"!==ro(o)||ho(n))&&(a=vo(o)),co(o))){const t=Eo(o);s=No(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:ao,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=Oo(t,[],!1).filter((t=>lo(t)&&"body"!==ro(t))),r=null;const n="fixed"===bo(t).position;let a=n?mo(t):t;for(;lo(a)&&!go(a);){const e=bo(a),o=uo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ho(a)&&!o&&Io(t,a))?i=i.filter((t=>t!==a)):r=e,a=mo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Ro(e,o,r);return t.top=Be(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Be(i.left,t.left),t}),Ro(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ao,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Ao,n=this.getDimensions;return{reference:Uo(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 wo(t)},getScale:No,isElement:lo,isRTL:function(t){return"rtl"===bo(t).direction}},Do=(t,e,o)=>{const i=new Map,r={platform:Wo,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=to(c,i,l),p=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,d={...d,[n]:{...d[n],...v}},m&&u<=50&&(u++,"object"==typeof m&&(m.placement&&(p=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=to(c,p,l))),o=-1)}return{x:f,y:h,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=jo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=jo(t);e;e=jo(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 jo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
|
|
99
|
+
function Re(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
|
|
100
|
+
/**
|
|
101
|
+
* @license
|
|
102
|
+
* Copyright 2017 Google LLC
|
|
103
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
|
+
*/function Ie(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Ne(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}var Le=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:Ce,property:we,query:Ee,queryAll:ke,queryAssignedElements:Re,queryAssignedNodes:Ie,queryAsync:function(t){return(e,o)=>Ne(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:Oe,state:Se});
|
|
105
|
+
/**
|
|
106
|
+
* @license
|
|
107
|
+
* Copyright 2017 Google LLC
|
|
108
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
+
*/const Ue=1,We=2,ze=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
110
|
+
/**
|
|
111
|
+
* @license
|
|
112
|
+
* Copyright 2020 Google LLC
|
|
113
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
+
*/const{D:Be}=rt,Fe=()=>document.createComment(""),je=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Fe(),r),n=i.insertBefore(Fe(),r);o=new Be(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},De=(t,e,o=t)=>(t._$AI(e,o),t),Pe={},_e=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Me=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Te=ze(class extends Ae{constructor(t){if(super(t),t.type!==We)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,f=0,p=r.length-1,d=0,u=n.length-1;for(;f<=p&&d<=u;)if(null===r[f])f++;else if(null===r[p])p--;else if(s[f]===a[d])l[d]=De(r[f],n[d]),f++,d++;else if(s[p]===a[u])l[u]=De(r[p],n[u]),p--,u--;else if(s[f]===a[u])l[u]=De(r[f],n[u]),je(t,l[u+1],r[f]),f++,u--;else if(s[p]===a[d])l[d]=De(r[p],n[d]),je(t,r[f],r[p]),p--,d++;else if(void 0===c&&(c=Me(a,d,u),h=Me(s,f,p)),c.has(s[f]))if(c.has(s[p])){const e=h.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=je(t,r[f]);De(e,n[d]),l[d]=e}else l[d]=De(o,n[d]),je(t,r[f],o),r[e]=null;d++}else _e(r[p]),p--;else _e(r[f]),f++;for(;d<=u;){const e=je(t,l[u+1]);De(e,n[d]),l[d++]=e}for(;f<=p;){const t=r[f++];null!==t&&_e(t)}return this.dt=a,((t,e=Pe)=>{t._$AH=e})(t,l),T}});
|
|
115
|
+
/**
|
|
116
|
+
* @license
|
|
117
|
+
* Copyright 2017 Google LLC
|
|
118
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
+
*/var Ke=Object.freeze({__proto__:null,repeat:Te});
|
|
120
|
+
/**
|
|
121
|
+
* @license
|
|
122
|
+
* Copyright 2018 Google LLC
|
|
123
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
+
*/const He=ze(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return T}});var Ze=Object.freeze({__proto__:null,classMap:He});
|
|
125
|
+
/**
|
|
126
|
+
* @license
|
|
127
|
+
* Copyright 2018 Google LLC
|
|
128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
+
*/const Ge="important",Ve=" !"+Ge,qe=ze(class extends Ae{constructor(t){if(super(t),t.type!==Ue||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(Ve);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?Ge:""):o[t]=i}}return T}});var Ye=Object.freeze({__proto__:null,styleMap:qe});
|
|
130
|
+
/**
|
|
131
|
+
* @license
|
|
132
|
+
* Copyright 2017 Google LLC
|
|
133
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
+
*/let Je=class extends Ae{constructor(t){if(super(t),this.et=K,t.type!==We)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.et=t;if(t===T)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:[]}}};Je.directiveName="unsafeHTML",Je.resultType=1;const Xe=ze(Je);var Qe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Je,unsafeHTML:Xe});class to extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class eo extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new to("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new to("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const oo=t=>new eo(((e,o)=>t.then(e).catch(o)));var io=Object.freeze({__proto__:null,CancelablePromise:eo,CanceledPromiseError:to,cancelable:oo});class ro{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 eo&&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 i=oo(e());return this.content[t]=i,i.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)}}var no=Object.freeze({__proto__:null,CacheRegistry:ro});class ao{constructor(t,e,o,i){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>ao.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=ao.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const i=this.allResults.flatMap((e=>ao.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){let r=this.metadataDescriptors.find((t=>o==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>ao.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let i,r=ao.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,i=t,e===n.length))break}return i}countMatchingMetadata(t,e){return ao.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var so=Object.freeze({__proto__:null,ClusteringHelper:ao});class lo{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}}var co=Object.freeze({__proto__:null,Debouncer:lo});const ho=t=>new Promise((e=>setTimeout(e,t)));async function fo(t,e=10,o=2e4){let i,r,n=await t();for(i=r=performance.now();null==n&&(!o||r-i<o);)await ho(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function po(t,e){return t.flatMap((t=>[t,...po(e(t),e)]))}function uo(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,i)=>e+o+":"+i)),new Date(t)}function go(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!go(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!go(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!go(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var yo=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?uo(o):o}},deepEqual:go,delay:ho,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:po,last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:uo,waitFor:fo,waitUntil:async function(t,e=10,o=2e4){await fo((async()=>await t()||void 0),e,o)}});const bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function mo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return we({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!go(t,e),...null!=e?e:{}})}function vo(t){return!isNaN(parseFloat(t))}var xo=Object.freeze({__proto__:null,customElement:bo,isNumber:vo,jsonProperty:mo,optionalNumberProperty:function(t){return we({type:Object,converter:{fromAttribute:t=>{if(null!=t)return vo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const Oo=t=>"string"==typeof t?ft(t):t;class wo{static create(t,e,o,i){const r=t=>Oo(null!=t?t:i),n=pt`var(${Oo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>pt`var(${Oo(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=pt`var(${Oo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>pt`var(${Oo(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Oo(null!=e?e:t.lastResortDefaultValue()),i=pt`var(${Oo(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>pt`var(${Oo(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function So(t,e){return Oo(`${t.name}: ${e}`)}const Co={colorWhite:wo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:wo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:wo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:wo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:wo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:wo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:wo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:wo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:wo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:wo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:wo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:wo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:wo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:wo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:wo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:wo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:wo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:wo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:wo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:wo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:wo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:wo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:wo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:wo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:wo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:wo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:wo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:wo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:wo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:wo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:wo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:wo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:wo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:wo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:wo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:wo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:wo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:wo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:wo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:wo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:wo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:wo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:wo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:wo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:wo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:wo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:wo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:wo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:wo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:wo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:wo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:wo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:wo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:wo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:wo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:wo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:wo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:wo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:wo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:wo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:wo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:wo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:wo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:wo.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:wo.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:wo.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:wo.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:wo.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:wo.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:wo.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:wo.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:wo.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:wo.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:wo.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:wo.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:wo.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:wo.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:wo.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:wo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:wo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:wo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:wo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:wo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:wo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:wo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:wo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:wo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:wo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:wo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:wo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:wo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:wo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:wo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:wo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:wo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:wo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:wo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:wo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:wo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:wo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:wo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:wo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:wo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:wo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:wo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:wo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:wo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:wo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:wo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:wo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:wo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:wo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:wo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:wo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:wo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:wo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:wo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:wo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:wo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:wo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:wo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:wo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:wo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:wo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:wo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:wo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:wo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:wo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:wo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:wo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:wo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:wo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:wo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:wo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:wo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:wo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:wo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:wo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:wo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:wo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:wo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:wo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:wo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:wo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:wo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:wo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:wo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:wo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:wo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:wo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:wo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:wo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:wo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:wo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:wo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:wo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:wo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:wo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:wo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:wo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:wo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:wo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:wo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:wo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:wo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:wo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:wo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:wo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:wo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:wo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:wo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:wo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:wo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:wo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:wo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:wo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:wo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:wo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:wo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:wo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:wo.create("--ft-opacity-0","","NUMBER","0"),opacity8:wo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:wo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:wo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:wo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:wo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:wo.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:wo.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:wo.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:wo.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:wo.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:wo.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:wo.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:wo.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:wo.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)"),underline:wo.create("--ft-underline","","UNKNOWN","underline")},No={fontFamily:wo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:wo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-display-textCase","","UNKNOWN","none")},Eo={fontFamily:wo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:wo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},$o={fontFamily:wo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:wo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},ko={fontFamily:wo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:wo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:wo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ro={fontFamily:wo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:wo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Io={fontFamily:wo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Lo={fontFamily:wo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Uo={fontFamily:wo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:wo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Wo={fontFamily:wo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},zo={fontFamily:wo.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:wo.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:wo.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Ao={fontFamily:wo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Bo={fontFamily:wo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Fo={fontFamily:wo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},jo={fontFamily:wo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:wo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Po={fontFamily:wo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},_o={fontFamily:wo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Mo={fontFamily:wo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},To={fontFamily:wo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Ko={fontFamily:wo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ho={fontFamily:wo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Zo={fontFamily:wo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Go={fontFamily:wo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:wo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:wo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},qo={fontFamily:wo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:wo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Yo={fontFamily:wo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:wo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Jo={display:No,"title-1":Eo,"title-2":$o,"title-3":ko,"body-1-regular":Ro,"body-1-medium":Io,"body-1-semibold":Lo,"body-2-regular":Uo,"body-2-medium":Wo,"body-2-medium-underline":zo,"body-2-semibold":Ao,"label-1-medium":Bo,"label-1-semibold":Fo,"label-1-bold":jo,"label-2-medium":Do,"label-2-semibold":Po,"label-2-bold":_o,"caption-1-medium":Mo,"caption-1-semibold":To,"caption-1-bold":Ko,"caption-2-medium":Ho,"caption-2-semibold":Zo,"caption-2-bold":Go,"caption-3-medium":Vo,"caption-3-semibold":qo,"caption-3-bold":Yo},Xo={backgroundActionPrimary:wo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Co.colorBrand0),backgroundErrorSubtle:wo.extend("--ft-background-error-subtle","Used as background of subtle error components.",Co.colorRed10),backgroundInfoSubtle:wo.extend("--ft-background-info-subtle","Used as background of subtle information components.",Co.colorCyan10),backgroundWarningSubtle:wo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Co.colorOrange10),backgroundSuccessSubtle:wo.extend("--ft-background-success-subtle","Used as background of subtle success components.",Co.colorGreen10),backgroundGlobalSurface:wo.extend("--ft-background-global-surface","Used as app background.",Co.colorWhite),backgroundGlobalOnSurface:wo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Co.colorGray10),backgroundGlobalOnSurfaceDark:wo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Co.colorGray30),contentActionPrimary:wo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Co.colorBrand0),contentWarningPrimary:wo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Co.colorOrange200),contentWarningIconOnly:wo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Co.colorOrange0),contentErrorPrimary:wo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Co.colorRed0),contentErrorIconOnly:wo.extend("--ft-content-error-icon-only","Used on error status icons alone",Co.colorRed70),contentInfoPrimary:wo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Co.colorCyan200),contentInfoIconOnly:wo.extend("--ft-content-info-icon-only","Used on info status icons alone",Co.colorCyan0),contentSuccessPrimary:wo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Co.colorGreen200),contentSuccessIconOnly:wo.extend("--ft-content-success-icon-only","Used on success status icons alone",Co.colorGreen0),contentGlobalPrimary:wo.extend("--ft-content-global-primary","Used for main content on the page.",Co.colorGray500),contentGlobalSecondary:wo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Co.colorGray200),contentGlobalSubtle:wo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Co.colorGray0),contentGlobalOnColor:wo.extend("--ft-content-global-on-color","Used for content on a dominant color.",Co.colorWhite),borderActionPrimary:wo.extend("--ft-border-action-primary","Used as border for primary action components.",Co.colorBrand0),borderActionFocusRing:wo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Co.colorCyan0),borderWarningPrimary:wo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Co.colorOrange200),borderWarningSubtle:wo.extend("--ft-border-warning-subtle","Used as border for warning components.",Co.colorOrange30),borderSuccessPrimary:wo.extend("--ft-border-success-primary","Used as border for success buttons.",Co.colorGreen200),borderSuccessSubtle:wo.extend("--ft-border-success-subtle","Used as border for success components.",Co.colorGreen30),borderErrorPrimary:wo.extend("--ft-border-error-primary","Used as border for text fields in error states.",Co.colorRed0),borderErrorSubtle:wo.extend("--ft-border-error-subtle","Used as border for error components.",Co.colorRed30),borderInfoPrimary:wo.extend("--ft-border-info-primary","Used as border for buttons in info color.",Co.colorCyan200),borderInfoSubtle:wo.extend("--ft-border-info-subtle","Used as border for information components.",Co.colorCyan30),borderGlobalPrimary:wo.extend("--ft-border-global-primary","Used as border for element like input.",Co.colorGray50),borderGlobalSubtle:wo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Co.colorGray30),borderInputPrimary:wo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Co.colorGray80)},Qo={largeHeight:wo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:wo.extend("--ft-button-large-horizontal-padding","",Co.spacing4),largeGap:wo.extend("--ft-button-large-gap","",Co.spacing2),largeBorderRadius:wo.extend("--ft-button-large-border-radius","",Co.borderRadiusS),largeIconSize:wo.extend("--ft-button-large-icon-size","",Co.iconSize3),largeBorderWidth:wo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:wo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:wo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:wo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:wo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:wo.extend("--ft-button-small-horizontal-padding","",Co.spacing3),smallGap:wo.extend("--ft-button-small-gap","",Co.spacing2),smallBorderRadius:wo.extend("--ft-button-small-border-radius","",Co.borderRadiusS),smallIconSize:wo.extend("--ft-button-small-icon-size","",Co.iconSize2),smallBorderWidth:wo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:wo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:wo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:wo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:wo.extend("--ft-button-primary-background-color","",Xo.backgroundActionPrimary),primaryColor:wo.extend("--ft-button-primary-color","",Xo.contentGlobalOnColor),primaryIconColor:wo.extend("--ft-button-primary-icon-color","",Xo.contentGlobalOnColor),primaryStateLayerColor:wo.extend("--ft-button-primary-state-layer-color","",Xo.contentGlobalOnColor),primaryHoverStateLayerOpacity:wo.extend("--ft-button-primary-hover-state-layer-opacity","",Co.opacity16),primaryFocusStateLayerOpacity:wo.extend("--ft-button-primary-focus-state-layer-opacity","",Co.opacity16),primaryActiveStateLayerOpacity:wo.extend("--ft-button-primary-active-state-layer-opacity","",Co.opacity24),primaryDisabledComponentOpacity:wo.extend("--ft-button-primary-disabled-component-opacity","",Co.opacity40),focusFocusRingColor:wo.extend("--ft-button-focus-focus-ring-color","",Xo.borderActionFocusRing),tertiaryBackgroundColor:wo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:wo.extend("--ft-button-tertiary-color","",Xo.contentActionPrimary),tertiaryIconColor:wo.extend("--ft-button-tertiary-icon-color","",Xo.contentActionPrimary),tertiaryStateLayerColor:wo.extend("--ft-button-tertiary-state-layer-color","",Xo.contentActionPrimary),tertiaryHoverStateLayerOpacity:wo.extend("--ft-button-tertiary-hover-state-layer-opacity","",Co.opacity8),tertiaryFocusStateLayerOpacity:wo.extend("--ft-button-tertiary-focus-state-layer-opacity","",Co.opacity8),tertiaryActiveStateLayerOpacity:wo.extend("--ft-button-tertiary-active-state-layer-opacity","",Co.opacity16),tertiaryDisabledComponentOpacity:wo.extend("--ft-button-tertiary-disabled-component-opacity","",Co.opacity40),secondaryBackgroundColor:wo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:wo.extend("--ft-button-secondary-color","",Xo.contentActionPrimary),secondaryIconColor:wo.extend("--ft-button-secondary-icon-color","",Xo.contentActionPrimary),secondaryStateLayerColor:wo.extend("--ft-button-secondary-state-layer-color","",Xo.contentActionPrimary),secondaryHoverStateLayerOpacity:wo.extend("--ft-button-secondary-hover-state-layer-opacity","",Co.opacity8),secondaryFocusStateLayerOpacity:wo.extend("--ft-button-secondary-focus-state-layer-opacity","",Co.opacity8),secondaryActiveStateLayerOpacity:wo.extend("--ft-button-secondary-active-state-layer-opacity","",Co.opacity16),secondaryDisabledComponentOpacity:wo.extend("--ft-button-secondary-disabled-component-opacity","",Co.opacity40),secondaryBorderColor:wo.extend("--ft-button-secondary-border-color","",Xo.borderActionPrimary),neutralBackgroundColor:wo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:wo.extend("--ft-button-neutral-icon-color","",Xo.contentGlobalSecondary),neutralColor:wo.extend("--ft-button-neutral-color","",Xo.contentGlobalSecondary),neutralStateLayerColor:wo.extend("--ft-button-neutral-state-layer-color","",Xo.contentGlobalSecondary),neutralHoverStateLayerOpacity:wo.extend("--ft-button-neutral-hover-state-layer-opacity","",Co.opacity8),neutralFocusStateLayerOpacity:wo.extend("--ft-button-neutral-focus-state-layer-opacity","",Co.opacity8),neutralActiveStateLayerOpacity:wo.extend("--ft-button-neutral-active-state-layer-opacity","",Co.opacity16),neutralDisabledComponentOpacity:wo.extend("--ft-button-neutral-disabled-component-opacity","",Co.opacity40)},ti={iconSize:wo.extend("--ft-banner-icon-size","",Co.iconSize5),borderWidth:wo.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:wo.extend("--ft-banner-horizontal-padding","",Co.spacing6),verticalPadding:wo.extend("--ft-banner-vertical-padding","",Co.spacing6),horizontalSideGap:wo.extend("--ft-banner-horizontal-side-gap","",Co.spacing6),horizontalMobileGap:wo.extend("--ft-banner-horizontal-mobile-gap","",Co.spacing4),verticalMobileGap:wo.extend("--ft-banner-vertical-mobile-gap","",Co.spacing6),horizontalMiddleGap:wo.extend("--ft-banner-horizontal-middle-gap","",Co.spacing20),infoBackgroundColor:wo.extend("--ft-banner-info-background-color","",Xo.backgroundInfoSubtle),infoColor:wo.extend("--ft-banner-info-color","",Xo.contentInfoPrimary),infoIconColor:wo.extend("--ft-banner-info-icon-color","",Xo.contentInfoIconOnly)},ei={gap:wo.extend("--ft-breadcrumb-gap","",Co.spacing1)},oi={horizontalPadding:wo.extend("--ft-page-header-horizontal-padding","",Co.spacing12),verticalPadding:wo.extend("--ft-page-header-vertical-padding","",Co.spacing6)},ii={smallContainerWidth:wo.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:wo.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:wo.extend("--ft-modal-overlay-background-color","",Co.colorGray700),overlayOpacity:wo.extend("--ft-modal-overlay-opacity","",Co.opacity40),shadow:wo.extend("--ft-modal-shadow","",Co.shadowElevation03),bodyBackgroundColor:wo.extend("--ft-modal-body-background-color","",Co.colorWhite),bodyColor:wo.extend("--ft-modal-body-color","",Xo.contentGlobalPrimary),bodyHorizontalPadding:wo.extend("--ft-modal-body-horizontal-padding","",Co.spacing6),bodyVerticalPadding:wo.extend("--ft-modal-body-vertical-padding","",Co.spacing6),bodyVerticalGap:wo.extend("--ft-modal-body-vertical-gap","",Co.spacing6),containerMargin:wo.extend("--ft-modal-container-margin","",Co.spacing3),headerBackgroundColor:wo.extend("--ft-modal-header-background-color","",Xo.backgroundGlobalOnSurface),headerBorderColor:wo.extend("--ft-modal-header-border-color","",Xo.borderGlobalSubtle),headerColor:wo.extend("--ft-modal-header-color","",Xo.contentGlobalPrimary),headerTrailingIconColor:wo.extend("--ft-modal-header-trailing-icon-color","",Xo.contentGlobalSecondary),headerVerticalPadding:wo.extend("--ft-modal-header-vertical-padding","",Co.spacing1),headerRightPadding:wo.extend("--ft-modal-header-right-padding","",Co.spacing1),headerLeftPadding:wo.extend("--ft-modal-header-left-padding","",Co.spacing6),headerGap:wo.extend("--ft-modal-header-gap","",Co.spacing2),headerBorderBottom:wo.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:wo.extend("--ft-modal-border-radius","",Co.borderRadiusM)},ri={fieldHorizontalPadding:wo.extend("--ft-text-input-field-horizontal-padding","",Co.spacing4),fieldHorizontalGap:wo.extend("--ft-text-input-field-horizontal-gap","",Co.spacing3),fieldVerticalGap:wo.extend("--ft-text-input-field-vertical-gap","",Co.spacing05),fieldIconSize:wo.extend("--ft-text-input-field-icon-size","",Co.iconSize3),fieldHeight:wo.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:wo.extend("--ft-text-input-helper-horizontal-padding","",Co.spacing4),helperHorizontalGap:wo.extend("--ft-text-input-helper-horizontal-gap","",Co.spacing1),helperIconSize:wo.extend("--ft-text-input-helper-icon-size","",Co.iconSize2),borderRadius:wo.extend("--ft-text-input-border-radius","",Co.borderRadiusM),backgroundColor:wo.extend("--ft-text-input-background-color","",Co.colorWhite),contentValueColor:wo.extend("--ft-text-input-content-value-color","",Xo.contentGlobalPrimary),trailingIconColor:wo.extend("--ft-text-input-trailing-icon-color","",Xo.contentGlobalSubtle),labelColor:wo.extend("--ft-text-input-label-color","",Xo.contentGlobalSubtle),defaultBorderColor:wo.extend("--ft-text-input-default-border-color","",Xo.borderInputPrimary),defaultHelperTextColor:wo.extend("--ft-text-input-default-helper-text-color","",Xo.contentGlobalSubtle),defaultBorderWidth:wo.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:wo.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:wo.extend("--ft-text-input-error-border-color","",Xo.borderErrorPrimary),errorHelperTextColor:wo.extend("--ft-text-input-error-helper-text-color","",Xo.contentErrorPrimary),errorHelperIconColor:wo.extend("--ft-text-input-error-helper-icon-color","",Xo.contentErrorIconOnly),warningBorderWidth:wo.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:wo.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:wo.extend("--ft-text-input-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineOffset:wo.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:wo.extend("--ft-text-input-disabled-component-opacity","",Co.opacity40)},ni={backgroundColor:wo.extend("--ft-text-area-background-color","",Co.colorWhite),contentValueColor:wo.extend("--ft-text-area-content-value-color","",Xo.contentGlobalPrimary),labelColor:wo.extend("--ft-text-area-label-color","",Xo.contentGlobalSubtle),defaultBorderColor:wo.extend("--ft-text-area-default-border-color","",Xo.borderInputPrimary),defaultHelperTextColor:wo.extend("--ft-text-area-default-helper-text-color","",Xo.contentGlobalSubtle),defaultBorderWidth:wo.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:wo.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:wo.extend("--ft-text-area-error-border-color","",Xo.borderErrorPrimary),errorHelperTextColor:wo.extend("--ft-text-area-error-helper-text-color","",Xo.contentErrorPrimary),errorHelperIconColor:wo.extend("--ft-text-area-error-helper-icon-color","",Xo.contentErrorIconOnly),focusFocusRingColor:wo.extend("--ft-text-area-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineWidth:wo.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:wo.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:wo.extend("--ft-text-area-disabled-component-opacity","",Co.opacity40),fieldHorizontalLeftPadding:wo.extend("--ft-text-area-field-horizontal-left-padding","",Co.spacing4),fieldHorizontalGap:wo.extend("--ft-text-area-field-horizontal-gap","",Co.spacing3),fieldVerticalGap:wo.extend("--ft-text-area-field-vertical-gap","",Co.spacing05),fieldMinHeight:wo.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:wo.extend("--ft-text-area-helper-horizontal-padding","",Co.spacing4),helperHorizontalGap:wo.extend("--ft-text-area-helper-horizontal-gap","",Co.spacing1),helperIconSize:wo.extend("--ft-text-area-helper-icon-size","",Co.iconSize2),borderRadius:wo.extend("--ft-text-area-border-radius","",Co.borderRadiusM)},ai={height:wo.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:wo.extend("--ft-floating-menu-horizontal-padding","",Co.spacing4),offIconColor:wo.extend("--ft-floating-menu-off-icon-color","",Xo.contentGlobalPrimary),offColor:wo.extend("--ft-floating-menu-off-color","",Xo.contentGlobalPrimary),onColor:wo.extend("--ft-floating-menu-on-color","",Xo.contentActionPrimary),onStateLayerColor:wo.extend("--ft-floating-menu-on-state-layer-color","",Xo.contentActionPrimary),gap:wo.extend("--ft-floating-menu-gap","",Co.spacing3),focusFocusRingColor:wo.extend("--ft-floating-menu-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineWidth:wo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:wo.extend("--ft-floating-menu-focus-state-layer-opacity","",Co.opacity8),hoverStateLayerOpacity:wo.extend("--ft-floating-menu-hover-state-layer-opacity","",Co.opacity8),activeStateLayerOpacity:wo.extend("--ft-floating-menu-active-state-layer-opacity","",Co.opacity16),disabledComponentOpacity:wo.extend("--ft-floating-menu-disabled-component-opacity","",Co.opacity40),iconSize:wo.extend("--ft-floating-menu-icon-size","",Co.iconSize3),backgroundColor:wo.extend("--ft-floating-menu-background-color","",Xo.backgroundGlobalOnSurface)},si={fieldHorizontalPadding:wo.extend("--ft-combobox-single-select-field-horizontal-padding","",Co.spacing4),fieldHorizontalGap:wo.extend("--ft-combobox-single-select-field-horizontal-gap","",Co.spacing3),fieldVerticalGap:wo.extend("--ft-combobox-single-select-field-vertical-gap","",Co.spacing05),fieldIconSize:wo.extend("--ft-combobox-single-select-field-icon-size","",Co.iconSize3),fieldHeight:wo.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:wo.extend("--ft-combobox-single-select-helper-horizontal-padding","",Co.spacing4),helperHorizontalGap:wo.extend("--ft-combobox-single-select-helper-horizontal-gap","",Co.spacing1),helperVerticalGap:wo.extend("--ft-combobox-single-select-helper-vertical-gap","",Co.spacing1),helperIconSize:wo.extend("--ft-combobox-single-select-helper-icon-size","",Co.iconSize2),menuVerticalGap:wo.extend("--ft-combobox-single-select-menu-vertical-gap","",Co.spacing2),borderRadius:wo.extend("--ft-combobox-single-select-border-radius","",Co.borderRadiusM),backgroundColor:wo.extend("--ft-combobox-single-select-background-color","",Co.colorWhite),labelColor:wo.extend("--ft-combobox-single-select-label-color","",Xo.contentGlobalSubtle),contentValueColor:wo.extend("--ft-combobox-single-select-content-value-color","",Xo.contentGlobalPrimary),trailingIconColor:wo.extend("--ft-combobox-single-select-trailing-icon-color","",Xo.contentGlobalSubtle),defaultBorderColor:wo.extend("--ft-combobox-single-select-default-border-color","",Xo.borderInputPrimary),defaultHelperTextColor:wo.extend("--ft-combobox-single-select-default-helper-text-color","",Xo.contentGlobalSubtle),defaultBorderWidth:wo.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:wo.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:wo.extend("--ft-combobox-single-select-error-border-color","",Xo.borderErrorPrimary),errorHelperTextColor:wo.extend("--ft-combobox-single-select-error-helper-text-color","",Xo.contentErrorPrimary),warningBorderWidth:wo.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:wo.extend("--ft-combobox-single-select-warning-border-color","",Xo.borderWarningPrimary),warningHelperTextColor:wo.extend("--ft-combobox-single-select-warning-helper-text-color","",Xo.contentWarningPrimary),warningHelperIconColor:wo.extend("--ft-combobox-single-select-warning-helper-icon-color","",Xo.contentWarningIconOnly),focusOutlineWidth:wo.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:wo.extend("--ft-combobox-single-select-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineOffset:wo.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:wo.extend("--ft-combobox-single-select-disabled-component-opacity","",Co.opacity40)},li={backgroundColor:wo.extend("--ft-combobox-multi-select-background-color","",Co.colorWhite),labelColor:wo.extend("--ft-combobox-multi-select-label-color","",Xo.contentGlobalSubtle),trailingIconColor:wo.extend("--ft-combobox-multi-select-trailing-icon-color","",Xo.contentGlobalSubtle),defaultBorderColor:wo.extend("--ft-combobox-multi-select-default-border-color","",Xo.borderInputPrimary),defaultHelperTextColor:wo.extend("--ft-combobox-multi-select-default-helper-text-color","",Xo.contentGlobalSubtle),defaultBorderWidth:wo.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:wo.extend("--ft-combobox-multi-select-error-border-color","",Xo.borderErrorPrimary),errorHelperTextColor:wo.extend("--ft-combobox-multi-select-error-helper-text-color","",Xo.contentErrorPrimary),errorHelperIcon:wo.extend("--ft-combobox-multi-select-error-helper-icon","",Xo.contentErrorIconOnly),errorBorderWidth:wo.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:wo.extend("--ft-combobox-multi-select-warning-border-color","",Xo.borderWarningPrimary),warningHelperTextColor:wo.extend("--ft-combobox-multi-select-warning-helper-text-color","",Xo.contentWarningPrimary),warningHelperIconColor:wo.extend("--ft-combobox-multi-select-warning-helper-icon-color","",Xo.contentWarningIconOnly),warningBorderWidth:wo.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:wo.extend("--ft-combobox-multi-select-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineWidth:wo.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:wo.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:wo.extend("--ft-combobox-multi-select-disabled-component-opacity","",Co.opacity40),helperHorizontalPadding:wo.extend("--ft-combobox-multi-select-helper-horizontal-padding","",Co.spacing4),helperHorizontalGap:wo.extend("--ft-combobox-multi-select-helper-horizontal-gap","",Co.spacing1),helperVerticalGap:wo.extend("--ft-combobox-multi-select-helper-vertical-gap","",Co.spacing1),helperIconSize:wo.extend("--ft-combobox-multi-select-helper-icon-size","",Co.iconSize2),fieldHorizontalPadding:wo.extend("--ft-combobox-multi-select-field-horizontal-padding","",Co.spacing4),fieldHorizontalGap:wo.extend("--ft-combobox-multi-select-field-horizontal-gap","",Co.spacing3),fieldVerticalGap:wo.extend("--ft-combobox-multi-select-field-vertical-gap","",Co.spacing05),fieldIconSize:wo.extend("--ft-combobox-multi-select-field-icon-size","",Co.iconSize3),fieldMaxHeight:wo.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:wo.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",Co.spacing1),contentValuesVerticalGap:wo.extend("--ft-combobox-multi-select-content-values-vertical-gap","",Co.spacing1),borderRadius:wo.extend("--ft-combobox-multi-select-border-radius","",Co.borderRadiusM)},ci={backgroundColor:wo.extend("--ft-popover-background-color","",Xo.backgroundGlobalOnSurface),horizontalPadding:wo.extend("--ft-popover-horizontal-padding","",Co.spacing6),verticalPadding:wo.extend("--ft-popover-vertical-padding","",Co.spacing6),iconColor:wo.extend("--ft-popover-icon-color","",Xo.contentGlobalSecondary),iconSize:wo.extend("--ft-popover-icon-size","",Co.iconSize2),titleColor:wo.extend("--ft-popover-title-color","",Xo.contentGlobalPrimary),bodyColor:wo.extend("--ft-popover-body-color","",Xo.contentGlobalSecondary),linkColor:wo.extend("--ft-popover-link-color","",Xo.contentActionPrimary),gap:wo.extend("--ft-popover-gap","",Co.spacing3),borderRadius:wo.extend("--ft-popover-border-radius","",Co.borderRadiusM),shadow:wo.extend("--ft-popover-shadow","",Co.shadowElevation02)},hi={topLeftBorderRadius:wo.extend("--ft-tabs-top-left-border-radius","",Co.borderRadiusS),topRightBorderRadius:wo.extend("--ft-tabs-top-right-border-radius","",Co.borderRadiusS),labelHorizontalPadding:wo.extend("--ft-tabs-label-horizontal-padding","",Co.spacing4),labelVerticalPadding:wo.extend("--ft-tabs-label-vertical-padding","",Co.spacing3),labelGap:wo.extend("--ft-tabs-label-gap","",Co.spacing1),offHoverStateLayerOpacity:wo.extend("--ft-tabs-off-hover-state-layer-opacity","",Co.opacity8),offFocusStateLayerOpacity:wo.extend("--ft-tabs-off-focus-state-layer-opacity","",Co.opacity8),offActiveStateLayerOpacity:wo.extend("--ft-tabs-off-active-state-layer-opacity","",Co.opacity16),offDisabledComponentOpacity:wo.extend("--ft-tabs-off-disabled-component-opacity","",Co.opacity40),offColor:wo.extend("--ft-tabs-off-color","",Xo.contentGlobalSubtle),offStateLayerColor:wo.extend("--ft-tabs-off-state-layer-color","",Xo.contentGlobalSubtle),onHoverStateLayerOpacity:wo.extend("--ft-tabs-on-hover-state-layer-opacity","",Co.opacity8),onFocusStateLayerOpacity:wo.extend("--ft-tabs-on-focus-state-layer-opacity","",Co.opacity8),onActiveStateLayerOpacity:wo.extend("--ft-tabs-on-active-state-layer-opacity","",Co.opacity16),onDisabledComponentOpacity:wo.extend("--ft-tabs-on-disabled-component-opacity","",Co.opacity40),onColor:wo.extend("--ft-tabs-on-color","",Xo.contentActionPrimary),onStateLayerColor:wo.extend("--ft-tabs-on-state-layer-color","",Xo.contentActionPrimary),iconHorizontalPadding:wo.extend("--ft-tabs-icon-horizontal-padding","",Co.spacing1),iconVerticalPadding:wo.extend("--ft-tabs-icon-vertical-padding","",Co.spacing4),focusOutlineWidth:wo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:wo.extend("--ft-tabs-focus-focus-ring-color","",Xo.borderActionFocusRing)},fi={hoverStateLayerOpacity:wo.extend("--ft-collapsible-hover-state-layer-opacity","",Co.opacity8),focusStateLayerOpacity:wo.extend("--ft-collapsible-focus-state-layer-opacity","",Co.opacity8),focusOutlineWidth:wo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:wo.extend("--ft-collapsible-focus-focus-ring-color","",Xo.borderActionFocusRing),activeStateLayerOpacity:wo.extend("--ft-collapsible-active-state-layer-opacity","",Co.opacity16),disabledComponentOpacity:wo.extend("--ft-collapsible-disabled-component-opacity","",Co.opacity40),horizontalPadding:wo.extend("--ft-collapsible-horizontal-padding","",Co.spacing4),verticalPadding:wo.extend("--ft-collapsible-vertical-padding","",Co.spacing3),color:wo.extend("--ft-collapsible-color","",Xo.contentGlobalPrimary),stateLayerColor:wo.extend("--ft-collapsible-state-layer-color","",Xo.contentGlobalPrimary),backgroundColor:wo.extend("--ft-collapsible-background-color","",Xo.backgroundGlobalOnSurface),borderColor:wo.extend("--ft-collapsible-border-color","",Xo.borderGlobalSubtle),iconSize:wo.extend("--ft-collapsible-icon-size","",Co.iconSize3)},pi={groupHorizontalPadding:wo.extend("--ft-switch-group-horizontal-padding","",Co.spacing1),groupVerticalPadding:wo.extend("--ft-switch-group-vertical-padding","",Co.spacing1),groupGap:wo.extend("--ft-switch-group-gap","",Co.spacing1),groupBackgroundColor:wo.extend("--ft-switch-group-background-color","",Xo.backgroundGlobalSurface),groupBorderColor:wo.extend("--ft-switch-group-border-color","",Xo.borderGlobalSubtle),groupBorderRadius:wo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:wo.extend("--ft-switch-label-horizontal-padding","",Co.spacing2),labelVerticalPadding:wo.extend("--ft-switch-label-vertical-padding","",Co.spacing1),offHoverStateLayerOpacity:wo.extend("--ft-switch-off-hover-state-layer-opacity","",Co.opacity8),offFocusStateLayerOpacity:wo.extend("--ft-switch-off-focus-state-layer-opacity","",Co.opacity8),offActiveStateLayerOpacity:wo.extend("--ft-switch-off-active-state-layer-opacity","",Co.opacity16),offDisabledComponentOpacity:wo.extend("--ft-switch-off-disabled-component-opacity","",Co.opacity40),offColor:wo.extend("--ft-switch-off-color","",Xo.contentGlobalSubtle),offStateLayerColor:wo.extend("--ft-switch-off-state-layer-color","",Xo.contentGlobalSubtle),onHoverStateLayerOpacity:wo.extend("--ft-switch-on-hover-state-layer-opacity","",Co.opacity8),onFocusStateLayerOpacity:wo.extend("--ft-switch-on-focus-state-layer-opacity","",Co.opacity8),onActiveStateLayerOpacity:wo.extend("--ft-switch-on-active-state-layer-opacity","",Co.opacity16),onDisabledComponentOpacity:wo.extend("--ft-switch-on-disabled-component-opacity","",Co.opacity40),onColor:wo.extend("--ft-switch-on-color","",Xo.contentActionPrimary),onStateLayerColor:wo.extend("--ft-switch-on-state-layer-color","",Xo.contentActionPrimary),iconHorizontalPadding:wo.extend("--ft-switch-icon-horizontal-padding","",Co.spacing1),iconVerticalPadding:wo.extend("--ft-switch-icon-vertical-padding","",Co.spacing1),focusOutlineWidth:wo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:wo.extend("--ft-switch-focus-focus-ring-color","",Xo.borderActionFocusRing),optionBorderRadius:wo.extend("--ft-switch-option-border-radius","",Co.borderRadiusS)},di={color1Light:wo.extend("--ft-chart-1-light","for area color charts",Co.colorBrand40),color1Base:wo.extend("--ft-chart-1-base","for line charts",Co.colorBrand0),color2Light:wo.extend("--ft-chart-2-light","for area color charts",Co.colorYellow60),color2Base:wo.extend("--ft-chart-2-base","for line charts",Co.colorYellow100),color3Light:wo.extend("--ft-chart-3-light","",Co.colorUltramarine40),color3Base:wo.extend("--ft-chart-3-base","",Co.colorUltramarine70),color4Light:wo.extend("--ft-chart-4-light","",Co.colorCyan50),color4Base:wo.extend("--ft-chart-4-base","",Co.colorCyan100),color5Light:wo.extend("--ft-chart-5-light","",Co.colorRed40),color5Base:wo.extend("--ft-chart-5-base","",Co.colorRed60),color6Light:wo.extend("--ft-chart-6-light","",Co.colorGreen40),color6Base:wo.extend("--ft-chart-6-base","",Co.colorGreen70),color7Light:wo.extend("--ft-chart-7-light","",Co.colorOrange70),color7Base:wo.extend("--ft-chart-7-base","",Co.colorOrange100),color8Light:wo.extend("--ft-chart-8-light","",Co.colorAvocado70),color8Base:wo.extend("--ft-chart-8-base","",Co.colorAvocado200),color9Light:wo.extend("--ft-chart-9-light","",Co.colorBrown50),color9Base:wo.extend("--ft-chart-9-base","",Co.colorBrown200),color10Light:wo.extend("--ft-chart-10-light","",Co.colorGray50),color10Base:wo.extend("--ft-chart-10-base","",Co.colorGray80),monochrome10:wo.extend("--ft-chart-monochrome-10","",Co.colorBrand10),monochrome20:wo.extend("--ft-chart-monochrome-20","",Co.colorBrand20),monochrome30:wo.extend("--ft-chart-monochrome-30","",Co.colorBrand40),monochrome40:wo.extend("--ft-chart-monochrome-40","",Co.colorBrand60),monochrome50:wo.extend("--ft-chart-monochrome-50","",Co.colorBrand0),monochrome60:wo.extend("--ft-chart-monochrome-60","",Co.colorBrand200)},ui={largeHorizontalPadding:wo.extend("--ft-chip-large-horizontal-padding","",Co.spacing4),largeVerticalPadding:wo.extend("--ft-chip-large-vertical-padding","",Co.spacing2),largeGap:wo.extend("--ft-chip-large-gap","",Co.spacing1),largeFocusOutlineOffset:wo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:wo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:wo.extend("--ft-chip-large-border-radius","",Co.borderRadiusPill),largeBorderWidth:wo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:wo.extend("--ft-chip-large-icon-size","",Co.iconSize3),mediumHorizontalPadding:wo.extend("--ft-chip-medium-horizontal-padding","",Co.spacing3),mediumVerticalPadding:wo.extend("--ft-chip-medium-vertical-padding","",Co.spacing1),mediumGap:wo.extend("--ft-chip-medium-gap","",Co.spacing1),mediumFocusOutlineOffset:wo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:wo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:wo.extend("--ft-chip-medium-border-radius","",Co.borderRadiusPill),mediumBorderWidth:wo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:wo.extend("--ft-chip-medium-icon-size","",Co.iconSize2),smallHorizontalPadding:wo.extend("--ft-chip-small-horizontal-padding","",Co.spacing2),smallVerticalPadding:wo.extend("--ft-chip-small-vertical-padding","",Co.spacing05),smallGap:wo.extend("--ft-chip-small-gap","",Co.spacing1),smallFocusOutlineOffset:wo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:wo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:wo.extend("--ft-chip-small-border-radius","",Co.borderRadiusPill),smallBorderWidth:wo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:wo.extend("--ft-chip-small-icon-size","",Co.iconSize1),neutralBackgroundColor:wo.extend("--ft-chip-neutral-background-color","",Xo.backgroundGlobalOnSurface),neutralColor:wo.extend("--ft-chip-neutral-color","",Xo.contentGlobalPrimary),neutralIconColor:wo.extend("--ft-chip-neutral-icon-color","",Xo.contentGlobalPrimary),neutralBorderColor:wo.extend("--ft-chip-neutral-border-color","",Xo.borderGlobalSubtle),infoBackgroundColor:wo.extend("--ft-chip-info-background-color","",Xo.backgroundInfoSubtle),infoColor:wo.extend("--ft-chip-info-color","",Xo.contentInfoPrimary),infoIconColor:wo.extend("--ft-chip-info-icon-color","",Xo.contentInfoIconOnly),infoBorderColor:wo.extend("--ft-chip-info-border-color","",Xo.borderInfoSubtle),successBackgroundColor:wo.extend("--ft-chip-success-background-color","",Xo.backgroundSuccessSubtle),successColor:wo.extend("--ft-chip-success-color","",Xo.contentSuccessPrimary),successIconColor:wo.extend("--ft-chip-success-icon-color","",Xo.contentSuccessIconOnly),successBorderColor:wo.extend("--ft-chip-success-border-color","",Xo.borderSuccessSubtle),warningBackgroundColor:wo.extend("--ft-chip-warning-background-color","",Xo.backgroundWarningSubtle),warningColor:wo.extend("--ft-chip-warning-color","",Xo.contentWarningPrimary),warningIconColor:wo.extend("--ft-chip-warning-icon-color","",Xo.contentWarningIconOnly),warningBorderColor:wo.extend("--ft-chip-warning-border-color","",Xo.borderWarningSubtle),errorBackgroundColor:wo.extend("--ft-chip-error-background-color","",Xo.backgroundErrorSubtle),errorColor:wo.extend("--ft-chip-error-color","",Xo.contentErrorPrimary),errorIconColor:wo.extend("--ft-chip-error-icon-color","",Xo.contentErrorIconOnly),errorBorderColor:wo.extend("--ft-chip-error-border-color","",Xo.borderErrorSubtle)},gi={infoBorderColor:wo.extend("--ft-border-info-border-color","",Xo.borderInfoSubtle)},yi={borderWidth:wo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:wo.extend("--ft-notice-horizontal-padding","",Co.spacing2),verticalPadding:wo.extend("--ft-notice-vertical-padding","",Co.spacing1),borderRadius:wo.extend("--ft-notice-border-radius","",Co.borderRadiusS),gap:wo.extend("--ft-notice-gap","",Co.spacing2),iconSize:wo.extend("--ft-notice-icon-size","",Co.iconSize3),infoBackgroundColor:wo.extend("--ft-notice-info-background-color","",Xo.backgroundInfoSubtle),infoBorderColor:wo.extend("--ft-notice-info-border-color","",Xo.borderInfoSubtle),infoColor:wo.extend("--ft-notice-info-color","",Xo.contentInfoPrimary),infoIconColor:wo.extend("--ft-notice-info-icon-color","",Xo.contentInfoIconOnly),warningBackgroundColor:wo.extend("--ft-notice-warning-background-color","",Xo.backgroundWarningSubtle),warningBorderColor:wo.extend("--ft-notice-warning-border-color","",Xo.borderWarningSubtle),warningColor:wo.extend("--ft-notice-warning-color","",Xo.contentWarningPrimary),warningIconColor:wo.extend("--ft-notice-warning-icon-color","",Xo.contentWarningIconOnly)},bi={color:wo.extend("--ft-checkbox-color","",Xo.contentGlobalPrimary),checkedBackgroundColor:wo.extend("--ft-checkbox-checked-background-color","",Xo.contentActionPrimary),checkedStateLayerColor:wo.extend("--ft-checkbox-checked-state-layer-color","",Xo.contentActionPrimary),checkedIconColor:wo.extend("--ft-checkbox-checked-icon-color","",Xo.contentGlobalOnColor),checkedHoverStateLayerOpacity:wo.extend("--ft-checkbox-checked-hover-state-layer-opacity","",Co.opacity16),checkedFocusStateLayerOpacity:wo.extend("--ft-checkbox-checked-focus-state-layer-opacity","",Co.opacity16),checkedActiveStateLayerOpacity:wo.extend("--ft-checkbox-checked-active-state-layer-opacity","",Co.opacity24),checkedDisabledComponentOpacity:wo.extend("--ft-checkbox-checked-disabled-component-opacity","",Co.opacity40),uncheckedBorderColor:wo.extend("--ft-checkbox-unchecked-border-color","",Co.colorGray80),uncheckedStateLayerColor:wo.extend("--ft-checkbox-unchecked-state-layer-color","",Co.colorGray80),uncheckedHoverStateLayerOpacity:wo.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",Co.opacity16),uncheckedFocusStateLayerOpacity:wo.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",Co.opacity16),uncheckedActiveStateLayerOpacity:wo.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",Co.opacity24),uncheckedDisabledComponentOpacity:wo.extend("--ft-checkbox-unchecked-disabled-component-opacity","",Co.opacity40),focusFocusRingColor:wo.extend("--ft-checkbox-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineOffset:wo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:wo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:wo.extend("--ft-checkbox-gap","",Co.spacing3)},mi={offHoverStateLayerOpacity:wo.extend("--ft-toggle-off-hover-state-layer-opacity","",Co.opacity16),offFocusStateLayerOpacity:wo.extend("--ft-toggle-off-focus-state-layer-opacity","",Co.opacity16),offActiveStateLayerOpacity:wo.extend("--ft-toggle-off-active-state-layer-opacity","",Co.opacity24),offDisabledComponentOpacity:wo.extend("--ft-toggle-off-disabled-component-opacity","",Co.opacity40),offBackgroundColor:wo.extend("--ft-toggle-off-background-color","",Xo.contentGlobalSubtle),offIconColor:wo.extend("--ft-toggle-off-icon-color","",Xo.contentGlobalSubtle),offStateLayerColor:wo.extend("--ft-toggle-off-state-layer-color","",Xo.contentGlobalSubtle),onHoverStateLayerOpacity:wo.extend("--ft-toggle-on-hover-state-layer-opacity","",Co.opacity16),onFocusStateLayerOpacity:wo.extend("--ft-toggle-on-focus-state-layer-opacity","",Co.opacity16),onActiveStateLayerOpacity:wo.extend("--ft-toggle-on-active-state-layer-opacity","",Co.opacity24),onDisabledComponentOpacity:wo.extend("--ft-toggle-on-disabled-component-opacity","",Co.opacity40),onBackgroundColor:wo.extend("--ft-toggle-on-background-color","",Xo.contentActionPrimary),onStateLayerColor:wo.extend("--ft-toggle-on-state-layer-color","",Xo.contentActionPrimary),onIconColor:wo.extend("--ft-toggle-on-icon-color","",Xo.contentActionPrimary),color:wo.extend("--ft-toggle-color","",Xo.contentGlobalPrimary),focusFocusRingColor:wo.extend("--ft-toggle-focus-focus-ring-color","",Xo.borderActionFocusRing),gap:wo.extend("--ft-toggle-gap","",Co.spacing3)},vi={color:wo.extend("--ft-radio-color","",Xo.contentGlobalPrimary),selectedRadioColor:wo.extend("--ft-radio-selected-radio-color","",Xo.contentActionPrimary),selectedStateLayerColor:wo.extend("--ft-radio-selected-state-layer-color","",Xo.contentActionPrimary),selectedHoverStateLayerOpacity:wo.extend("--ft-radio-selected-hover-state-layer-opacity","",Co.opacity16),selectedFocusStateLayerOpacity:wo.extend("--ft-radio-selected-focus-state-layer-opacity","",Co.opacity16),selectedActiveStateLayerOpacity:wo.extend("--ft-radio-selected-active-state-layer-opacity","",Co.opacity24),selectedDisabledComponentOpacity:wo.extend("--ft-radio-selected-disabled-component-opacity","",Co.opacity40),unselectedStateLayerColor:wo.extend("--ft-radio-unselected-state-layer-color","",Xo.borderInputPrimary),unselectedBorderColor:wo.extend("--ft-radio-unselected-border-color","",Xo.borderInputPrimary),unselectedHoverStateLayerOpacity:wo.extend("--ft-radio-unselected-hover-state-layer-opacity","",Co.opacity16),unselectedFocusStateLayerOpacity:wo.extend("--ft-radio-unselected-focus-state-layer-opacity","",Co.opacity16),unselectedActiveStateLayerOpacity:wo.extend("--ft-radio-unselected-active-state-layer-opacity","",Co.opacity24),unselectedDisabledComponentOpacity:wo.extend("--ft-radio-unselected-disabled-component-opacity","",Co.opacity40),focusFocusRingColor:wo.extend("--ft-radio-focus-focus-ring-color","",Xo.borderActionFocusRing),focusOutlineOffset:wo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:wo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:wo.extend("--ft-radio-gap","",Co.spacing3)},xi={iconSize:wo.extend("--ft-notification-icon-size","",Co.iconSize4),horizontalPadding:wo.extend("--ft-notification-horizontal-padding","",Co.spacing4),verticalPadding:wo.extend("--ft-notification-vertical-padding","",Co.spacing4),infoBackgroundColor:wo.extend("--ft-notification-info-background-color","",Xo.backgroundInfoSubtle),infoColor:wo.extend("--ft-notification-info-color","",Xo.contentInfoPrimary),infoIconColor:wo.extend("--ft-notification-info-icon-color","",Xo.contentInfoIconOnly),infoBorderColor:wo.extend("--ft-notification-info-border-color","",Xo.borderInfoSubtle),successBackgroundColor:wo.extend("--ft-notification-success-background-color","",Xo.backgroundSuccessSubtle),successColor:wo.extend("--ft-notification-success-color","",Xo.contentSuccessPrimary),successIconColor:wo.extend("--ft-notification-success-icon-color","",Xo.contentSuccessIconOnly),successBorderColor:wo.extend("--ft-notification-success-border-color","",Xo.borderSuccessSubtle),warningBackgroundColor:wo.extend("--ft-notification-warning-background-color","",Xo.backgroundWarningSubtle),warningColor:wo.extend("--ft-notification-warning-color","",Xo.contentWarningPrimary),warningIconColor:wo.extend("--ft-notification-warning-icon-color","",Xo.contentWarningIconOnly),warningBorderColor:wo.extend("--ft-notification-warning-border-color","",Xo.borderWarningSubtle),errorBackgroundColor:wo.extend("--ft-notification-error-background-color","",Xo.backgroundErrorSubtle),errorColor:wo.extend("--ft-notification-error-color","",Xo.contentErrorPrimary),errorIconColor:wo.extend("--ft-notification-error-icon-color","",Xo.contentErrorIconOnly),errorBorderColor:wo.extend("--ft-notification-error-border-color","",Xo.borderErrorSubtle),borderRadius:wo.extend("--ft-notification-border-radius","",Co.borderRadiusPill),borderWidth:wo.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:wo.extend("--ft-notification-leading-gap","",Co.spacing2),trailingGap:wo.extend("--ft-notification-trailing-gap","",Co.spacing8)},Oi={horizontalPadding:wo.extend("--ft-tooltip-horizontal-padding","",Co.spacing2),verticalPadding:wo.extend("--ft-tooltip-vertical-padding","",Co.spacing2),borderRadius:wo.extend("--ft-tooltip-border-radius","",Co.borderRadiusS),color:wo.extend("--ft-tooltip-color","",Xo.contentGlobalOnColor),backgroundColor:wo.extend("--ft-tooltip-background-color","",Xo.contentGlobalPrimary),backgroundOpacity:wo.extend("--ft-tooltip-background-opacity","",Co.opacity80),shadow:wo.extend("--ft-tooltip-shadow","",Co.shadowElevation03),maxWidth:wo.create("--ft-tooltip-max-width","","SIZE","256px"),gap:wo.extend("--ft-tooltip-gap","",Co.spacing05)};var wi=Object.freeze({__proto__:null,FtCssVariableFactory:wo,banner:ti,border:gi,breadcrumb:ei,button:Qo,chart:di,checkbox:bi,chip:ui,collapsible:fi,comboboxMultiSelect:li,comboboxSingleSelect:si,floatingMenu:ai,foundation:Co,modal:ii,notice:yi,notification:xi,pageHeader:oi,popover:ci,radio:vi,semantic:Xo,setVariable:So,switch_:pi,tabs:hi,textArea:ni,textInput:ri,toggle:mi,tooltip:Oi,typographies:Jo,typographyBody1Medium:Io,typographyBody1Regular:Ro,typographyBody1Semibold:Lo,typographyBody2Medium:Wo,typographyBody2MediumUnderline:zo,typographyBody2Regular:Uo,typographyBody2Semibold:Ao,typographyCaption1Bold:Ko,typographyCaption1Medium:Mo,typographyCaption1Semibold:To,typographyCaption2Bold:Go,typographyCaption2Medium:Ho,typographyCaption2Semibold:Zo,typographyCaption3Bold:Yo,typographyCaption3Medium:Vo,typographyCaption3Semibold:qo,typographyDisplay:No,typographyLabel1Bold:jo,typographyLabel1Medium:Bo,typographyLabel1Semibold:Fo,typographyLabel2Bold:_o,typographyLabel2Medium:Do,typographyLabel2Semibold:Po,typographyTitle1:Eo,typographyTitle2:$o,typographyTitle3:ko,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const Si={colorPrimary:wo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:wo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:wo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:wo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:wo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:wo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:wo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:wo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:wo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:wo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:wo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:wo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:wo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:wo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:wo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:wo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:wo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:wo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:wo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:wo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:wo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:wo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:wo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:wo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:wo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:wo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:wo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:wo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:wo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:wo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:wo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:wo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:wo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:wo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:wo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:wo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:wo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:wo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:wo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:wo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:wo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:wo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:wo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:wo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:wo.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:wo.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:wo.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:wo.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:wo.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:wo.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:wo.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:wo.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:wo.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:wo.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:wo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:wo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:wo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:wo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:wo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:wo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:wo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:wo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ci=Object.freeze({__proto__:null,designSystemVariables:Si});class Ni extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ei extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class $i extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var ki=Object.freeze({__proto__:null,FtNotificationEvent:Ni,PostResizeEvent:$i,PreResizeEvent:Ei});const Ri=["start","end"],Ii=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Ri[0],e+"-"+Ri[1])),[]),Li=Math.min,Ui=Math.max,Wi=Math.round,zi=t=>({x:t,y:t}),Ai={left:"right",right:"left",bottom:"top",top:"bottom"},Bi={start:"end",end:"start"};function Fi(t,e,o){return Ui(t,Li(e,o))}function ji(t,e){return"function"==typeof t?t(e):t}function Di(t){return t.split("-")[0]}function Pi(t){return t.split("-")[1]}function _i(t){return"x"===t?"y":"x"}function Mi(t){return"y"===t?"height":"width"}function Ti(t){return["top","bottom"].includes(Di(t))?"y":"x"}function Ki(t){return _i(Ti(t))}function Hi(t){return t.replace(/left|right|bottom|top/g,(t=>Ai[t]))}function Zi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Gi(t,e,o){let{reference:i,floating:r}=t;const n=Ti(e),a=Ki(e),s=Mi(a),l=Di(e),c="y"===n,h=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:h,y:i.y-r.height};break;case"bottom":d={x:h,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch(Pi(e)){case"start":d[a]-=p*(o&&c?-1:1);break;case"end":d[a]+=p*(o&&c?-1:1)}return d}async function Vi(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=ji(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),g=s[p?"floating"===f?"reference":"floating":f],y=Zi(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:h,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.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=Zi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function qi(t,e,o){return(t?[...o.filter((e=>Pi(e)===t)),...o.filter((e=>Pi(e)!==t))]:o.filter((t=>Di(t)===t))).filter((o=>!t||(Pi(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Bi[t]))}(o)!==o)))}const Yi=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:p=Ii,autoAlignment:d=!0,...u}=ji(t,e),g=void 0!==f||p===Ii?qi(f||null,d,p):p,y=await Vi(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Pi(t),r=Ki(t),n=Mi(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Hi(a)),[a,Hi(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Di(m)],y[v[0]],y[v[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=g[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=Pi(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=S.filter((t=>t[2].slice(0,Pi(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=C[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:O},reset:{placement:N}}:{}}}};function Ji(t){return tr(t)?(t.nodeName||"").toLowerCase():"#document"}function Xi(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Qi(t){var e;return null==(e=(tr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function tr(t){return t instanceof Node||t instanceof Xi(t).Node}function er(t){return t instanceof Element||t instanceof Xi(t).Element}function or(t){return t instanceof HTMLElement||t instanceof Xi(t).HTMLElement}function ir(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Xi(t).ShadowRoot)}function rr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=cr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function nr(t){return["table","td","th"].includes(Ji(t))}function ar(t){const e=sr(),o=cr(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 sr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function lr(t){return["html","body","#document"].includes(Ji(t))}function cr(t){return Xi(t).getComputedStyle(t)}function hr(t){return er(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fr(t){if("html"===Ji(t))return t;const e=t.assignedSlot||t.parentNode||ir(t)&&t.host||Qi(t);return ir(e)?e.host:e}function pr(t){const e=fr(t);return lr(e)?t.ownerDocument?t.ownerDocument.body:t.body:or(e)&&rr(e)?e:pr(e)}function dr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=pr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Xi(r);return n?e.concat(a,a.visualViewport||[],rr(r)?r:[],a.frameElement&&o?dr(a.frameElement):[]):e.concat(r,dr(r,[],o))}function ur(t){const e=cr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=or(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Wi(o)!==n||Wi(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function gr(t){return er(t)?t:t.contextElement}function yr(t){const e=gr(t);if(!or(e))return zi(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=ur(e);let a=(n?Wi(o.width):o.width)/i,s=(n?Wi(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const br=zi(0);function mr(t){const e=Xi(t);return sr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:br}function vr(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=gr(t);let a=zi(1);e&&(i?er(i)&&(a=yr(i)):a=yr(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Xi(t))&&e}(n,o,i)?mr(n):zi(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,h=r.width/a.x,f=r.height/a.y;if(n){const t=Xi(n),e=i&&er(i)?Xi(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=yr(o),e=o.getBoundingClientRect(),i=cr(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,h*=t.x,f*=t.y,l+=r,c+=n,o=Xi(o).frameElement}}return Zi({width:h,height:f,x:l,y:c})}function xr(t){return vr(Qi(t)).left+hr(t).scrollLeft}function Or(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Xi(t),i=Qi(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=sr();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Qi(t),o=hr(t),i=t.ownerDocument.body,r=Ui(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ui(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+xr(t);const s=-o.scrollTop;return"rtl"===cr(i).direction&&(a+=Ui(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Qi(t));else if(er(e))i=function(t,e){const o=vr(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=or(t)?yr(t):zi(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=mr(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Zi(i)}function wr(t,e){const o=fr(t);return!(o===e||!er(o)||lr(o))&&("fixed"===cr(o).position||wr(o,e))}function Sr(t,e,o){const i=or(e),r=Qi(e),n="fixed"===o,a=vr(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=zi(0);if(i||!i&&!n)if(("body"!==Ji(e)||rr(r))&&(s=hr(e)),i){const t=vr(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=xr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cr(t,e){return or(t)&&"fixed"!==cr(t).position?e?e(t):t.offsetParent:null}function Nr(t,e){const o=Xi(t);if(!or(t))return o;let i=Cr(t,e);for(;i&&nr(i)&&"static"===cr(i).position;)i=Cr(i,e);return i&&("html"===Ji(i)||"body"===Ji(i)&&"static"===cr(i).position&&!ar(i))?o:i||function(t){let e=fr(t);for(;or(e)&&!lr(e);){if(ar(e))return e;e=fr(e)}return null}(t)||o}const Er={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=or(o),n=Qi(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=zi(1);const l=zi(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ji(o)||rr(n))&&(a=hr(o)),or(o))){const t=vr(o);s=yr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Qi,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=dr(t,[],!1).filter((t=>er(t)&&"body"!==Ji(t))),r=null;const n="fixed"===cr(t).position;let a=n?fr(t):t;for(;er(a)&&!lr(a);){const e=cr(a),o=ar(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||rr(a)&&!o&&wr(t,a))?i=i.filter((t=>t!==a)):r=e,a=fr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Or(e,o,r);return t.top=Ui(i.top,t.top),t.right=Li(i.right,t.right),t.bottom=Li(i.bottom,t.bottom),t.left=Ui(i.left,t.left),t}),Or(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Nr,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Nr,n=this.getDimensions;return{reference:Sr(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 ur(t)},getScale:yr,isElement:er,isRTL:function(t){return"rtl"===cr(t).direction}},$r=(t,e,o)=>{const i=new Map,r={platform:Er,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:f}=Gi(c,i,l),p=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:h,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});h=null!=y?y:h,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:h,y:f}=Gi(c,p,l))),o=-1)}return{x:h,y:f,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};function kr(t){return function(t){for(let e=t;e;e=Rr(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Rr(t);e;e=Rr(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 Rr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Ir(t,e,o){return $r(t,e,{platform:{...Er,getOffsetParent:t=>Er.getOffsetParent(t,kr)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=ji(i,t),c={x:e,y:o},h=await Vi(t,l),f=Ti(Di(r)),p=_i(f);let d=c[p],u=c[f];if(n){const t="y"===p?"bottom":"right";d=Fi(d+h["y"===p?"top":"left"],d,d-h[t])}if(a){const t="y"===f?"bottom":"right";u=Fi(u+h["y"===f?"top":"left"],u,u-h[t])}const g=s.fn({...t,[p]:d,[f]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),Yi({allowedPlacements:[o]})]});var i}var Lr=Object.freeze({__proto__:null,computeOffsetPosition:Ir});
|
|
85
135
|
/**
|
|
86
136
|
* @license
|
|
87
137
|
* Copyright 2019 Google LLC
|
|
88
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/
|
|
90
|
-
const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Po extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Bo?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Fo.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ko,To=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Mo=Symbol("constructorPrototype"),Zo=Symbol("constructorName"),_o=Symbol("exportpartsDebouncer");class Ho extends Po{constructor(){super(),this[Ko]=new n(5),this[Zo]=this.constructor.name,this[Mo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zo]&&Object.setPrototypeOf(this,this[Mo])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[_o].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ko=_o,To([R()],Ho.prototype,"exportpartsPrefix",void 0),To([F([])],Ho.prototype,"exportpartsPrefixes",void 0),To([R()],Ho.prototype,"customStylesheet",void 0);const Go=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
|
|
139
|
+
*/const Ur=window,Wr=Ur.ShadowRoot&&(void 0===Ur.ShadyCSS||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class zr extends be{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Wr?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Ur.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ar,Br=Object.freeze({__proto__:null,ScopedRegistryLitElement:zr}),Fr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const jr=Symbol("constructorPrototype"),Dr=Symbol("constructorName"),Pr=Symbol("exportpartsDebouncer");class _r extends zr{constructor(){super(),this[Ar]=new lo(5),this[Dr]=this.constructor.name,this[jr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Dr]&&Object.setPrototypeOf(this,this[jr])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Pr].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ar=Pr,Fr([we()],_r.prototype,"exportpartsPrefix",void 0),Fr([mo([])],_r.prototype,"exportpartsPrefixes",void 0),Fr([we()],_r.prototype,"customStylesheet",void 0);var Mr=Object.freeze({__proto__:null,FtLitElement:_r}),Tr=Object.freeze({__proto__:null});class Kr{constructor(t,e=!0,o=[],i=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=i}static matches(t,e){const o="string"==typeof e?[e]:e,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let e=!1;return o.every((o=>!i.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let i;try{const e=t.contentWindow;if(i=e.document,!e||!i)throw new Error("iframe inaccessible")}catch(t){o()}i&&e(i)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let i=!1,r=null;const n=()=>{if(!i){i=!0,clearTimeout(r);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),r=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,i=(()=>{})){let r=t.querySelectorAll("iframe"),n=r.length,a=0;r=Array.prototype.slice.call(r);const s=()=>{--n<=0&&i(a)};n||s(),r.forEach((t=>{Kr.matches(t,this.exclude)?s():this.onIframeReady(t,(i=>{e(t)&&(a++,o(i)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Kr(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,i){let r=!1,n=!1;return i.forEach(((t,e)=>{t.val===o&&(r=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==r||n?!1===r||n||(i[r].handled=!0):i.push({val:o,handled:!0}),!0):(!1===r&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,i){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,i)}))}))}iterateThroughNodes(t,e,o,i,r){const n=this.createIterator(e,t,i);let a,s,l=[],c=[],h=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;h();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),i)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,i),r()}forEachNode(t,e,o,i=(()=>{})){const r=this.getContexts();let n=r.length;n||i(),r.forEach((r=>{const a=()=>{this.iterateThroughNodes(t,r,e,o,(()=>{--n<=0&&i()}))};this.iframes?this.waitForIframes(r,a):a()}))}}const Hr=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Kr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in e)if(e.hasOwnProperty(r)){const n=e[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),i+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let i=o.charAt(e+1);return/[(|)\\]/.test(i)||""===i?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let i=[];return t.split("").forEach((r=>{o.every((o=>{if(-1!==o.indexOf(r)){if(i.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),i.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,i="string"==typeof e?[]:e.limiters,r="";switch(i.forEach((t=>{r+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return r="\\s"+(r||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${r}]*${t}[^${r}]*)`;case"exactly":return`(^|\\s${r})(${t})(?=$|\\s${r})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:i,end:r,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=i,t.length=r-i,e.push(t),o=r)})),e}callNoMatchOnInvalidRanges(t,e){let o,i,r=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),i=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-e>0&&i-o>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:i,valid:r}}checkWhitespaceRanges(t,e,o){let i,r=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,i=s+parseInt(t.length,10),i>n&&(i=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||i-s<0||s>n||i>n?(r=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:i,valid:r}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Kr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const i=this.opt.element?this.opt.element:"mark",r=t.splitText(e),n=r.splitText(o-e);let a=document.createElement(i);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),n}wrapRangeInMappedTextNode(t,e,o,i,r){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!i(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),h=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+h,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,r(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let r;for(e=e.node;null!==(r=t.exec(e.textContent))&&""!==r[n];){if(!o(r[n],e))continue;let a=r.index;if(0!==n)for(let t=1;t<n;t++)a+=r[t].length;e=this.wrapRangeInTextNode(e,a,a+r[n].length),i(e.previousSibling),t.lastIndex=0}})),r()}))}wrapMatchesAcrossElements(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let r=a.index;if(0!==n)for(let t=1;t<n;t++)r+=a[t].length;const s=r+a[n].length;this.wrapRangeInMappedTextNode(e,r,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,i(e)}))}r()}))}wrapRangeFromIndex(t,e,o,i){this.getTextNodes((r=>{const n=r.value.length;t.forEach(((t,i)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,r.value);l&&this.wrapRangeInMappedTextNode(r,a,s,(o=>e(o,t,r.value.substring(a,s),i)),(e=>{o(e,t)}))})),i()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,i="wrapMatches";const{keywords:r,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[i](e,1,((e,i)=>this.opt.filter(i,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),r[n-1]===t?this.opt.done(o):s(r[r.indexOf(t)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(r[0])}markRanges(t,e){this.opt=e;let o=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,((t,e,o,i)=>this.opt.filter(t,e,o,i)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Kr.matches(t,e),i=this.matchesExclude(t);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},Zr=wo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Gr=pt`
|
|
91
140
|
.highlight-html-match {
|
|
92
|
-
background: ${
|
|
141
|
+
background: ${Zr};
|
|
93
142
|
}
|
|
94
|
-
|
|
143
|
+
`,Vr={className:"highlight-html-match"};var qr=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let i=t.getAttribute("data-highlight-html-query");if((null!=i?i:"")!==(null!=e?e:"")){const i=new Hr(t);if(i.unmark(Vr),e&&e.trim()){i.mark(e.replace(/"[^"]+"/g,""),{...Vr,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>i.mark(t.replace(/"/g,""),{...Vr,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:Zr,highlightHtmlStyles:Gr});const Yr=pt`
|
|
95
144
|
.ft-no-text-select {
|
|
96
145
|
-webkit-touch-callout: none;
|
|
97
146
|
-webkit-user-select: none;
|
|
@@ -100,7 +149,7 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
100
149
|
-ms-user-select: none;
|
|
101
150
|
user-select: none;
|
|
102
151
|
}
|
|
103
|
-
|
|
152
|
+
`,Jr=pt`
|
|
104
153
|
.ft-word-wrap {
|
|
105
154
|
white-space: normal;
|
|
106
155
|
word-wrap: break-word;
|
|
@@ -112,7 +161,7 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
112
161
|
-webkit-hyphens: auto;
|
|
113
162
|
hyphens: auto
|
|
114
163
|
}
|
|
115
|
-
|
|
164
|
+
`,Xr=pt`
|
|
116
165
|
.ft-safari-ellipsis-fix {
|
|
117
166
|
margin-right: 0;
|
|
118
167
|
|
|
@@ -123,40 +172,20 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
123
172
|
display: inline-block;
|
|
124
173
|
width: 0;
|
|
125
174
|
}
|
|
126
|
-
`;class Yo{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 Xo=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!z(t,e),attribute:!1,...e};R(r)(t,o);const n=t.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 Jo{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 Qo(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var ti,ei,oi;const ii=Symbol("internalReduxEventsUnsubscribers"),ri=Symbol("internalStoresUnsubscribers"),ni=Symbol("internalStores");class ai extends Ho{constructor(){super(...arguments),this[ti]=new Map,this[ei]=new Map,this[oi]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ni].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ni].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ni].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Qo(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[ni].delete(e)}setupStore(t,e){this[ni].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ni].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[ri].has(t.store):this[ri].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ri].set(t,e.subscribe((()=>this.updateFromStores()))),Qo(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[ii].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ri].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ii].forEach((t=>t())),this[ii]=[]}unsubscribeFromStore(t){this[ri].has(t)&&this[ri].get(t)(),this[ri].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function si(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 li(t){return!!t&&!!t[Vi]}function ci(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)===qi}(t)||Array.isArray(t)||!!t[Gi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Gi])||yi(t)||gi(t))}function fi(t,e,o){void 0===o&&(o=!1),0===hi(t)?(o?Object.keys:Yi)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function hi(t){var e=t[Vi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yi(t)?2:gi(t)?3:0}function pi(t,e){return 2===hi(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function di(t,e,o){var i=hi(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function ui(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yi(t){return Mi&&t instanceof Map}function gi(t){return Zi&&t instanceof Set}function bi(t){return t.o||t.t}function vi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xi(t);delete e[Vi];for(var o=Yi(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 mi(t,e){return void 0===e&&(e=!1),Oi(t)||li(t)||!ci(t)||(hi(t)>1&&(t.set=t.add=t.clear=t.delete=xi),Object.freeze(t),e&&fi(t,(function(t,e){return mi(e,!0)}),!0)),t}function xi(){si(2)}function Oi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wi(t){var e=Ji[t];return e||si(18,t),e}function Si(){return Ki}function Ni(t,e){e&&(wi("Patches"),t.u=[],t.s=[],t.v=e)}function $i(t){Ci(t),t.p.forEach(ki),t.p=null}function Ci(t){t===Ki&&(Ki=t.l)}function Ei(t){return Ki={p:[],l:Ki,h:t,m:!0,_:0}}function ki(t){var e=t[Vi];0===e.i||1===e.i?e.j():e.g=!0}function Ri(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||wi("ES5").S(e,t,i),i?(o[Vi].P&&($i(e),si(4)),ci(t)&&(t=Ii(e,t),e.l||Li(e,t)),e.u&&wi("Patches").M(o[Vi].t,t,e.u,e.s)):t=Ii(e,o,[]),$i(e),e.u&&e.v(e.u,e.s),t!==Hi?t:void 0}function Ii(t,e,o){if(Oi(e))return e;var i=e[Vi];if(!i)return fi(e,(function(r,n){return Ui(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Li(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=vi(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),fi(n,(function(e,n){return Ui(t,i,r,e,n,o,a)})),Li(t,r,!1),o&&t.u&&wi("Patches").N(i,o,t.u,t.s)}return i.o}function Ui(t,e,o,i,r,n,a){if(li(r)){var s=Ii(t,r,n&&e&&3!==e.i&&!pi(e.R,i)?n.concat(i):void 0);if(di(o,i,s),!li(s))return;t.m=!1}else a&&o.add(r);if(ci(r)&&!Oi(r)){if(!t.h.D&&t._<1)return;Ii(t,r),e&&e.A.l||Li(t,r)}}function Li(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mi(e,o)}function Ai(t,e){var o=t[Vi];return(o?bi(o):t)[e]}function Wi(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 Di(t){t.P||(t.P=!0,t.l&&Di(t.l))}function zi(t){t.o||(t.o=vi(t.t))}function ji(t,e,o){var i=yi(e)?wi("MapSet").F(e,o):gi(e)?wi("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:Si(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Qi;o&&(r=[i],n=tr);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):wi("ES5").J(e,o);return(o?o.A:Si()).p.push(i),i}function Fi(t){return li(t)||si(22,t),function t(e){if(!ci(e))return e;var o,i=e[Vi],r=hi(e);if(i){if(!i.P&&(i.i<4||!wi("ES5").K(i)))return i.t;i.I=!0,o=Bi(e,r),i.I=!1}else o=Bi(e,r);return fi(o,(function(e,r){i&&function(t,e){return 2===hi(t)?t.get(e):t[e]}(i.t,e)===r||di(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vi(t)}ti=ri,ei=ni,oi=ii,ai.reduxProperties=new Map,ai.reduxReactiveProperties=new Set,ai.reduxEventListeners=new Map;var Pi,Ki,Ti="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Mi="undefined"!=typeof Map,Zi="undefined"!=typeof Set,_i="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Hi=Ti?Symbol.for("immer-nothing"):((Pi={})["immer-nothing"]=!0,Pi),Gi=Ti?Symbol.for("immer-draftable"):"__$immer_draftable",Vi=Ti?Symbol.for("immer-state"):"__$immer_state",qi=""+Object.prototype.constructor,Yi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xi=Object.getOwnPropertyDescriptors||function(t){var e={};return Yi(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Ji={},Qi={get:function(t,e){if(e===Vi)return t;var o=bi(t);if(!pi(o,e))return function(t,e,o){var i,r=Wi(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||!ci(i)?i:i===Ai(t.t,e)?(zi(t),t.o[e]=ji(t.A.h,i,t)):i},has:function(t,e){return e in bi(t)},ownKeys:function(t){return Reflect.ownKeys(bi(t))},set:function(t,e,o){var i=Wi(bi(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ai(bi(t),e),n=null==r?void 0:r[Vi];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ui(o,r)&&(void 0!==o||pi(t.t,e)))return!0;zi(t),Di(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!==Ai(t.t,e)||e in t.t?(t.R[e]=!1,zi(t),Di(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=bi(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(){si(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){si(12)}},tr={};fi(Qi,(function(t,e){tr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),tr.deleteProperty=function(t,e){return tr.set.call(this,t,e,void 0)},tr.set=function(t,e,o){return Qi.set.call(this,t[0],e,o,t[0])};var er=function(){function t(t){var e=this;this.O=_i,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,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&si(6),void 0!==i&&"function"!=typeof i&&si(7),ci(t)){var s=Ei(e),l=ji(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?$i(s):Ci(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ni(s,i),Ri(t,s)}),(function(t){throw $i(s),t})):(Ni(s,i),Ri(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Hi&&(a=void 0),e.D&&mi(a,!0),i){var f=[],h=[];wi("Patches").M(t,a,f,h),i(f,h)}return a}si(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){ci(t)||si(8),li(t)&&(t=Fi(t));var e=Ei(this),o=ji(this,t,void 0);return o[Vi].C=!0,Ci(e),o},e.finishDraft=function(t,e){var o=(t&&t[Vi]).A;return Ni(o,e),Ri(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_i&&si(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=wi("Patches").$;return li(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),or=new er,ir=or.produce;function rr(t){return rr="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},rr(t)}function nr(t){var e=function(t,e){if("object"!==rr(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==rr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rr(e)?e:String(e)}function ar(t,e,o){return(e=nr(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function sr(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 lr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(o),!0).forEach((function(e){ar(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):sr(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function cr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var fr="function"==typeof Symbol&&Symbol.observable||"@@observable",hr=function(){return Math.random().toString(36).substring(7).split("").join(".")},pr={INIT:"@@redux/INIT"+hr(),REPLACE:"@@redux/REPLACE"+hr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hr()}};function dr(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(cr(1));return o(dr)(t,e)}if("function"!=typeof t)throw new Error(cr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(cr(3));return n}function h(t){if("function"!=typeof t)throw new Error(cr(4));if(l)throw new Error(cr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(cr(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(cr(7));if(void 0===t.type)throw new Error(cr(8));if(l)throw new Error(cr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:pr.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(cr(10));r=t,p({type:pr.REPLACE})}})[fr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(cr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[fr]=function(){return this},t},i}function ur(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,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:pr.INIT}))throw new Error(cr(12));if(void 0===o(void 0,{type:pr.PROBE_UNKNOWN_ACTION()}))throw new Error(cr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(cr(14));r[l]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function yr(){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 gr(){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(cr(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=yr.apply(void 0,n)(o.dispatch),lr(lr({},o),{},{dispatch:i})}}}function br(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 vr=br();vr.withExtraArgument=br;var mr,xr=vr,Or=(mr=function(t,e){return mr=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])},mr(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}mr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wr=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Sr=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Nr=Object.defineProperty,$r=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Ir=function(t,e,o){return e in t?Nr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ur=function(t,e){for(var o in e||(e={}))kr.call(e,o)&&Ir(t,o,e[o]);if(Er)for(var i=0,r=Er(e);i<r.length;i++){o=r[i];Rr.call(e,o)&&Ir(t,o,e[o])}return t},Lr=function(t,e){return $r(t,Cr(e))},Ar="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yr:yr.apply(null,arguments)};var Wr=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 Or(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,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array),Dr=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 Or(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,Sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],t.concat(this))))},e}(Array);function zr(t){return ci(t)?ir(t,(function(){})):t}function jr(){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 Wr;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(xr.withExtraArgument(o.extraArgument)):i.push(xr));return i}(t)}}function Fr(t){var e,o=jr(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ur(n)}var u=s;"function"==typeof u&&(u=u(o));var y=gr.apply(void 0,u),g=yr;c&&(g=Ar(Ur({trace:!1},"object"==typeof c&&c)));var b=new Dr(y),v=b;return Array.isArray(d)?v=Sr([y],d):"function"==typeof d&&(v=d(b)),dr(e,h,g.apply(void 0,v))}function Br(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 Ur(Ur({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 Pr(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 Kr(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:zr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Pr(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ur(Ur({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Pr(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return zr(t())};else{var c=zr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=Sr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(li(t))return void 0===(i=o(t,e))?t:i;if(ci(t))return ir(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=a;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,a[t]=o,s[c]=o,l[t]=i?Br(c,i):Br(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Tr=["name","message","stack","code"],Mr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},_r=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Tr;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Hr(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=Br(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Lr(Ur({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Lr(Ur({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||_r)(t||"Rejected"),meta:Lr(Ur({},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)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new a;function d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,v;return wr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Mr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof Mr)throw e;return e instanceof Zr?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Mr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(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(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Hr)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Gr="listenerMiddleware";Br(Gr+"/add"),Br(Gr+"/removeAll"),Br(Gr+"/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[Vi];return Qi.get(e,t)},set:function(e){var o=this[Vi];Qi.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Vi];if(!r.P)switch(r.i){case 5:i(r)&&Di(r);break;case 4:o(r)&&Di(r)}}}function o(t){for(var e=t.t,o=t.k,i=Yi(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Vi){var a=e[n];if(void 0===a&&!pi(e,n))return!0;var s=o[n],l=s&&s[Vi];if(l?l.t!==a:!ui(s,a))return!0}}var c=!!e[Vi];return i.length!==Yi(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){Ji[t]||(Ji[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=Xi(o);delete n[Vi];for(var a=Yi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:Si(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Vi,{value:n,writable:!0}),r},S:function(t,o,r){r?li(o)&&o[Vi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Vi];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)fi(n,(function(e){e!==Vi&&(void 0!==r[e]||pi(r,e)?a[e]||t(n[e]):(a[e]=!0,Di(o)))})),fi(r,(function(t){void 0!==n[t]||pi(n,t)||(a[t]=!1,Di(o))}));else if(5===s){if(i(o)&&(Di(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Vr{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(Qo(r))return r;if(null==i)return;const n=Kr({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Fr({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 Vr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Jo,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 qr=Symbol("elementInternals");var Yr,Xr,Jr;const Qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jr=null===(Xr=null===(Yr=window.safari)||void 0===Yr?void 0:Yr.pushNotification)||void 0===Xr?void 0:Xr.toString())&&void 0!==Jr?Jr:""),tn=1,en=2,on=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
127
|
-
/**
|
|
128
|
-
* @license
|
|
129
|
-
* Copyright 2017 Google LLC
|
|
130
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
131
|
-
*/let rn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
132
|
-
/**
|
|
133
|
-
* @license
|
|
134
|
-
* Copyright 2020 Google LLC
|
|
135
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
136
|
-
*/const{D:nn}=Ot,an=()=>document.createComment(""),sn=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(an(),r),n=i.insertBefore(an(),r);o=new nn(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},ln=(t,e,o=t)=>(t._$AI(e,o),t),cn={},fn=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},hn=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},pn=on(class extends rn{constructor(t){if(super(t),t.type!==en)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,p=r.length-1,d=0,u=n.length-1;for(;h<=p&&d<=u;)if(null===r[h])h++;else if(null===r[p])p--;else if(s[h]===a[d])l[d]=ln(r[h],n[d]),h++,d++;else if(s[p]===a[u])l[u]=ln(r[p],n[u]),p--,u--;else if(s[h]===a[u])l[u]=ln(r[h],n[u]),sn(t,l[u+1],r[h]),h++,u--;else if(s[p]===a[d])l[d]=ln(r[p],n[d]),sn(t,r[h],r[p]),p--,d++;else if(void 0===c&&(c=hn(a,d,u),f=hn(s,h,p)),c.has(s[h]))if(c.has(s[p])){const e=f.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=sn(t,r[h]);ln(e,n[d]),l[d]=e}else l[d]=ln(o,n[d]),sn(t,r[h],o),r[e]=null;d++}else fn(r[p]),p--;else fn(r[h]),h++;for(;d<=u;){const e=sn(t,l[u+1]);ln(e,n[d]),l[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&fn(t)}return this.dt=a,((t,e=cn)=>{t._$AH=e})(t,l),at}}),dn={spacing:Re.create("--ft-search-selected-facets-spacing","","SIZE","8px")},un=Rt`
|
|
175
|
+
`;var Qr=Object.freeze({__proto__:null,noTextSelect:Yr,safariEllipsisFix:Xr,wordWrap:Jr}),tn=Object.freeze({__proto__:null});class en{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()}}}var on=Object.freeze({__proto__:null,ParametrizedLabelResolver:en});const rn=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!go(t,e),attribute:!1,...e};we(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 nn{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 an(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var sn,ln,cn;const hn=Symbol("internalReduxEventsUnsubscribers"),fn=Symbol("internalStoresUnsubscribers"),pn=Symbol("internalStores");class dn extends _r{constructor(){super(...arguments),this[sn]=new Map,this[ln]=new Map,this[cn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[pn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[pn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:an(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[pn].delete(e)}setupStore(t,e){this[pn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pn].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[fn].has(t.store):this[fn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[fn].set(t,e.subscribe((()=>this.updateFromStores()))),an(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[hn].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[fn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[hn].forEach((t=>t())),this[hn]=[]}unsubscribeFromStore(t){this[fn].has(t)&&this[fn].get(t)(),this[fn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function un(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 gn(t){return!!t&&!!t[ea]}function yn(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)===oa}(t)||Array.isArray(t)||!!t[ta]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ta])||wn(t)||Sn(t))}function bn(t,e,o){void 0===o&&(o=!1),0===mn(t)?(o?Object.keys:ia)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function mn(t){var e=t[ea];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:wn(t)?2:Sn(t)?3:0}function vn(t,e){return 2===mn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xn(t,e,o){var i=mn(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function On(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function wn(t){return Yn&&t instanceof Map}function Sn(t){return Jn&&t instanceof Set}function Cn(t){return t.o||t.t}function Nn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ra(t);delete e[ea];for(var o=ia(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 En(t,e){return void 0===e&&(e=!1),kn(t)||gn(t)||!yn(t)||(mn(t)>1&&(t.set=t.add=t.clear=t.delete=$n),Object.freeze(t),e&&bn(t,(function(t,e){return En(e,!0)}),!0)),t}function $n(){un(2)}function kn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Rn(t){var e=na[t];return e||un(18,t),e}function In(){return Vn}function Ln(t,e){e&&(Rn("Patches"),t.u=[],t.s=[],t.v=e)}function Un(t){Wn(t),t.p.forEach(An),t.p=null}function Wn(t){t===Vn&&(Vn=t.l)}function zn(t){return Vn={p:[],l:Vn,h:t,m:!0,_:0}}function An(t){var e=t[ea];0===e.i||1===e.i?e.j():e.g=!0}function Bn(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||Rn("ES5").S(e,t,i),i?(o[ea].P&&(Un(e),un(4)),yn(t)&&(t=Fn(e,t),e.l||Dn(e,t)),e.u&&Rn("Patches").M(o[ea].t,t,e.u,e.s)):t=Fn(e,o,[]),Un(e),e.u&&e.v(e.u,e.s),t!==Qn?t:void 0}function Fn(t,e,o){if(kn(e))return e;var i=e[ea];if(!i)return bn(e,(function(r,n){return jn(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Dn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=Nn(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),bn(n,(function(e,n){return jn(t,i,r,e,n,o,a)})),Dn(t,r,!1),o&&t.u&&Rn("Patches").N(i,o,t.u,t.s)}return i.o}function jn(t,e,o,i,r,n,a){if(gn(r)){var s=Fn(t,r,n&&e&&3!==e.i&&!vn(e.R,i)?n.concat(i):void 0);if(xn(o,i,s),!gn(s))return;t.m=!1}else a&&o.add(r);if(yn(r)&&!kn(r)){if(!t.h.D&&t._<1)return;Fn(t,r),e&&e.A.l||Dn(t,r)}}function Dn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&En(e,o)}function Pn(t,e){var o=t[ea];return(o?Cn(o):t)[e]}function _n(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 Mn(t){t.P||(t.P=!0,t.l&&Mn(t.l))}function Tn(t){t.o||(t.o=Nn(t.t))}function Kn(t,e,o){var i=wn(e)?Rn("MapSet").F(e,o):Sn(e)?Rn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:In(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=aa;o&&(r=[i],n=sa);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):Rn("ES5").J(e,o);return(o?o.A:In()).p.push(i),i}function Hn(t){return gn(t)||un(22,t),function t(e){if(!yn(e))return e;var o,i=e[ea],r=mn(e);if(i){if(!i.P&&(i.i<4||!Rn("ES5").K(i)))return i.t;i.I=!0,o=Zn(e,r),i.I=!1}else o=Zn(e,r);return bn(o,(function(e,r){i&&function(t,e){return 2===mn(t)?t.get(e):t[e]}(i.t,e)===r||xn(o,e,t(r))})),3===r?new Set(o):o}(t)}function Zn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Nn(t)}sn=fn,ln=pn,cn=hn,dn.reduxProperties=new Map,dn.reduxReactiveProperties=new Set,dn.reduxEventListeners=new Map;var Gn,Vn,qn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Yn="undefined"!=typeof Map,Jn="undefined"!=typeof Set,Xn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Qn=qn?Symbol.for("immer-nothing"):((Gn={})["immer-nothing"]=!0,Gn),ta=qn?Symbol.for("immer-draftable"):"__$immer_draftable",ea=qn?Symbol.for("immer-state"):"__$immer_state",oa=""+Object.prototype.constructor,ia="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ra=Object.getOwnPropertyDescriptors||function(t){var e={};return ia(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},na={},aa={get:function(t,e){if(e===ea)return t;var o=Cn(t);if(!vn(o,e))return function(t,e,o){var i,r=_n(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||!yn(i)?i:i===Pn(t.t,e)?(Tn(t),t.o[e]=Kn(t.A.h,i,t)):i},has:function(t,e){return e in Cn(t)},ownKeys:function(t){return Reflect.ownKeys(Cn(t))},set:function(t,e,o){var i=_n(Cn(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Pn(Cn(t),e),n=null==r?void 0:r[ea];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(On(o,r)&&(void 0!==o||vn(t.t,e)))return!0;Tn(t),Mn(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!==Pn(t.t,e)||e in t.t?(t.R[e]=!1,Tn(t),Mn(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Cn(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(){un(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){un(12)}},sa={};bn(aa,(function(t,e){sa[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),sa.deleteProperty=function(t,e){return sa.set.call(this,t,e,void 0)},sa.set=function(t,e,o){return aa.set.call(this,t[0],e,o,t[0])};var la=function(){function t(t){var e=this;this.O=Xn,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,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&un(6),void 0!==i&&"function"!=typeof i&&un(7),yn(t)){var s=zn(e),l=Kn(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Un(s):Wn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ln(s,i),Bn(t,s)}),(function(t){throw Un(s),t})):(Ln(s,i),Bn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Qn&&(a=void 0),e.D&&En(a,!0),i){var h=[],f=[];Rn("Patches").M(t,a,h,f),i(h,f)}return a}un(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){yn(t)||un(8),gn(t)&&(t=Hn(t));var e=zn(this),o=Kn(this,t,void 0);return o[ea].C=!0,Wn(e),o},e.finishDraft=function(t,e){var o=(t&&t[ea]).A;return Ln(o,e),Bn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Xn&&un(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=Rn("Patches").$;return gn(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),ca=new la,ha=ca.produce;function fa(t){return fa="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},fa(t)}function pa(t){var e=function(t,e){if("object"!==fa(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==fa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fa(e)?e:String(e)}function da(t,e,o){return(e=pa(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ua(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 ga(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(o),!0).forEach((function(e){da(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ua(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ya(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. "}ca.produceWithPatches.bind(ca),ca.setAutoFreeze.bind(ca),ca.setUseProxies.bind(ca),ca.applyPatches.bind(ca),ca.createDraft.bind(ca),ca.finishDraft.bind(ca);var ba="function"==typeof Symbol&&Symbol.observable||"@@observable",ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},va={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function xa(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ya(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ya(1));return o(xa)(t,e)}if("function"!=typeof t)throw new Error(ya(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(ya(3));return n}function f(t){if("function"!=typeof t)throw new Error(ya(4));if(l)throw new Error(ya(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ya(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ya(7));if(void 0===t.type)throw new Error(ya(8));if(l)throw new Error(ya(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:va.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ya(10));r=t,p({type:va.REPLACE})}})[ba]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ya(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[ba]=function(){return this},t},i}function Oa(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,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:va.INIT}))throw new Error(ya(12));if(void 0===o(void 0,{type:va.PROBE_UNKNOWN_ACTION()}))throw new Error(ya(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ya(14));r[l]=f,i=i||f!==h}return(i=i||a.length!==Object.keys(t).length)?r:t}}function wa(){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 Sa(){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(ya(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=wa.apply(void 0,n)(o.dispatch),ga(ga({},o),{},{dispatch:i})}}}function Ca(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 Na=Ca();Na.withExtraArgument=Ca;var Ea,$a=Na,ka=(Ea=function(t,e){return Ea=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])},Ea(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}Ea(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ra=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Ia=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},La=Object.defineProperty,Ua=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,Fa=function(t,e,o){return e in t?La(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ja=function(t,e){for(var o in e||(e={}))Aa.call(e,o)&&Fa(t,o,e[o]);if(za)for(var i=0,r=za(e);i<r.length;i++){o=r[i];Ba.call(e,o)&&Fa(t,o,e[o])}return t},Da=function(t,e){return Ua(t,Wa(e))},Pa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?wa:wa.apply(null,arguments)};var _a=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 ka(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ia([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ia([void 0],t.concat(this))))},e}(Array),Ma=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 ka(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ia([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ia([void 0],t.concat(this))))},e}(Array);function Ta(t){return yn(t)?ha(t,(function(){})):t}function Ka(){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 _a;o&&(!function(t){return"boolean"==typeof t}(o)?i.push($a.withExtraArgument(o.extraArgument)):i.push($a));return i}(t)}}function Ha(t){var e,o=Ka(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Oa(n)}var u=s;"function"==typeof u&&(u=u(o));var g=Sa.apply(void 0,u),y=wa;c&&(y=Pa(ja({trace:!1},"object"==typeof c&&c)));var b=new Ma(g),m=b;return Array.isArray(d)?m=Ia([g],d):"function"==typeof d&&(m=d(b)),xa(e,f,y.apply(void 0,m))}function Za(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 ja(ja({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 Ga(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 Va(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:Ta(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ga(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=ja(ja({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ga(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ta(t())};else{var c=Ta(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=Ia([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(gn(t))return void 0===(i=o(t,e))?t:i;if(yn(t))return ha(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=a;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,a[t]=o,s[c]=o,l[t]=i?Za(c,i):Za(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var qa=["name","message","stack","code"],Ya=function(t,e){this.payload=t,this.meta=e},Ja=function(t,e){this.payload=t,this.meta=e},Xa=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=qa;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Qa(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=Za(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Da(ja({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Za(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Da(ja({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Za(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Xa)(t||"Rejected"),meta:Da(ja({},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)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new a;function d(t){h=t,p.abort()}var u=function(){return a=this,u=null,g=function(){var a,u,g,y,b,m;return Ra(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=y)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(f,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:f,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Ya(t,e)},fulfillWithValue:function(t,e){return new Ja(t,e)}})).then((function(e){if(e instanceof Ya)throw e;return e instanceof Ja?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Ya?n(null,f,t,m.payload,m.meta):n(m,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var x}))},new Promise((function(t,e){var o=function(t){try{r(g.next(t))}catch(t){e(t)}},i=function(t){try{r(g.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((g=g.apply(a,u)).next())}));var a,u,g}();return Object.assign(u,{abort:d,requestId:f,arg:t,unwrap:function(){return u.then(Qa)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var ts="listenerMiddleware";Za(ts+"/add"),Za(ts+"/removeAll"),Za(ts+"/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[ea];return aa.get(e,t)},set:function(e){var o=this[ea];aa.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ea];if(!r.P)switch(r.i){case 5:i(r)&&Mn(r);break;case 4:o(r)&&Mn(r)}}}function o(t){for(var e=t.t,o=t.k,i=ia(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==ea){var a=e[n];if(void 0===a&&!vn(e,n))return!0;var s=o[n],l=s&&s[ea];if(l?l.t!==a:!On(s,a))return!0}}var c=!!e[ea];return i.length!==ia(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){na[t]||(na[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=ra(o);delete n[ea];for(var a=ia(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:In(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ea,{value:n,writable:!0}),r},S:function(t,o,r){r?gn(o)&&o[ea].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ea];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)bn(n,(function(e){e!==ea&&(void 0!==r[e]||vn(r,e)?a[e]||t(n[e]):(a[e]=!0,Mn(o)))})),bn(r,(function(t){void 0!==n[t]||vn(n,t)||(a[t]=!1,Mn(o))}));else if(5===s){if(i(o)&&(Mn(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class es{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(an(r))return r;if(null==i)return;const n=Va({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Ha({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 es(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new nn,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()}}var os=Object.freeze({__proto__:null,FtCommandQueue:nn,FtLitElementRedux:dn,FtReduxStore:es,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))an(e)&&e.clear()},isFtReduxStore:an,redux:rn,reduxEventListener:t=>(e,o)=>{const i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),null===(o=i.reduxReactiveProperties)||void 0===o||o.add(e)}});var is=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const i=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");i.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${i.toString()}`).href}});const rs=Symbol("elementInternals");function ns(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[rs].form}constructor(...t){super(t),this[rs]=this.attachInternals(),this[rs].role=e}setFormValue(t){this[rs].setFormValue(t)}}}var as,ss,ls,cs,hs=Object.freeze({__proto__:null,toFtFormComponent:ns});const fs=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ls=null===(ss=null===(as=window.safari)||void 0===as?void 0:as.pushNotification)||void 0===ss?void 0:ss.toString())&&void 0!==ls?ls:""),ps="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(cs=window.ftGlobals)&&void 0!==cs?cs:{lit:ve,litDecorators:Le,litRepeat:Ke,litClassMap:Ze,litStyleMap:Ye,litUnsafeHTML:Qe,wcUtils:{...no,...io,...so,...co,...xo,...Ci,...ki,...Lr,...wi,...Mr,...Tr,...yo,...qr,...Qr,...tn,...on,...os,...Br,...is,...hs,isSafari:fs,isTouchScreen:ps}};const ds={spacing:wo.create("--ft-search-selected-facets-spacing","","SIZE","8px")},us=pt`
|
|
137
176
|
.ft-search-selected-facets--container {
|
|
138
177
|
display: flex;
|
|
139
178
|
flex-wrap: wrap;
|
|
140
|
-
gap: ${
|
|
179
|
+
gap: ${ds.spacing};
|
|
141
180
|
}
|
|
142
181
|
|
|
143
182
|
.ft-search-selected-facets--container > * {
|
|
144
183
|
min-width: 0;
|
|
145
184
|
}
|
|
146
|
-
`,yn={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}};
|
|
147
|
-
|
|
148
|
-
* @license
|
|
149
|
-
* Copyright 2017 Google LLC
|
|
150
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
151
|
-
*/var gn,bn,vn,mn,xn,On,wn,Sn,Nn,$n,Cn,En,kn,Rn,In,Un,Ln,An;!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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(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=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(gn||(gn={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(bn||(bn={})),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"}(vn||(vn={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(mn||(mn={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(xn||(xn={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(On||(On={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(wn||(wn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Sn||(Sn={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Nn||(Nn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}($n||($n={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Cn||(Cn={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(En||(En={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(kn||(kn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Rn||(Rn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(In||(In={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Un||(Un={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ln||(Ln={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(An||(An={})),Ln.PERSONAL_BOOK_SHARE_USER,Ln.PERSONAL_BOOK_USER,Ln.HTML_EXPORT_USER,Ln.PERSONAL_BOOK_USER,Ln.PDF_EXPORT_USER,Ln.PERSONAL_BOOK_USER,Ln.KHUB_ADMIN,Ln.CONTENT_PUBLISHER,Ln.ADMIN,Ln.KHUB_ADMIN,Ln.USERS_ADMIN,Ln.PORTAL_ADMIN,Ln.DEVELOPER,Ln.BETA_USER,Ln.DEBUG_USER;const Wn=Rt`
|
|
152
|
-
`,Dn=Vr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class zn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Dn.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?zn.build(t):null!==(e=zn.API)&&void 0!==e?e:zn.API=zn.build()}static await(t){return new Promise((e=>{let o=zn.get(t);if(o)e(o);else{const i=Dn.subscribe((()=>{o=zn.get(t),o&&(i(),e(o))}))}}))}}class jn{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new r,this.cache=t?i.commonCache:new r}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:zn.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:zn.await()}clearCache(){this.cache.clearAll()}}var Fn;const Bn=Symbol("clearAfterUnitTest");class Pn extends jn{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Fn]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Dn.getState().uiLocale,Dn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Dn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};z(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Yo(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Fn=Bn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Pn{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Pn{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Kn=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService;var Mn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Zn extends Ho{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>zn.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return he`
|
|
185
|
+
`,gs={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 ys,bs,ms,vs,xs,Os,ws,Ss,Cs,Ns,Es,$s,ks,Rs,Is,Ls,Us,Ws;!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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(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)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ys||(ys={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(bs||(bs={})),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"}(ms||(ms={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(vs||(vs={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(xs||(xs={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Os||(Os={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ws||(ws={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ss||(Ss={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Cs||(Cs={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ns||(Ns={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Es||(Es={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}($s||($s={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(ks||(ks={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Rs||(Rs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Is||(Is={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Ls||(Ls={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Us||(Us={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ws||(Ws={})),Us.PERSONAL_BOOK_SHARE_USER,Us.PERSONAL_BOOK_USER,Us.HTML_EXPORT_USER,Us.PERSONAL_BOOK_USER,Us.PDF_EXPORT_USER,Us.PERSONAL_BOOK_USER,Us.KHUB_ADMIN,Us.CONTENT_PUBLISHER,Us.ADMIN,Us.KHUB_ADMIN,Us.USERS_ADMIN,Us.PORTAL_ADMIN,Us.DEVELOPER,Us.BETA_USER,Us.DEBUG_USER;const zs=pt`
|
|
186
|
+
`,As=es.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class Bs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=As.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?Bs.build(t):null!==(e=Bs.API)&&void 0!==e?e:Bs.API=Bs.build()}static await(t){return new Promise((e=>{let o=Bs.get(t);if(o)e(o);else{const i=As.subscribe((()=>{o=Bs.get(t),o&&(i(),e(o))}))}}))}}class Fs{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new ro,this.cache=t?i.commonCache:new ro}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Bs.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Bs.await()}clearCache(){this.cache.clearAll()}}var js;const Ds=Symbol("clearAfterUnitTest");class Ps extends Fs{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[js]=()=>{this.defaultMessages={},this.cache=new ro,this.listeners={}},this.currentUiLocale=As.getState().uiLocale,As.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=As.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};go(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 a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new en(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ho(0).then((()=>t())).catch((()=>null)))))}}js=Ds,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Ps{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Ps{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const _s=window.FluidTopicsI18nService,Ms=window.FluidTopicsCustomI18nService;var Ts=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ks extends _r{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Bs.get(),this.cache=new ro,this.cleanSessionDebouncer=new lo}render(){return Jt`
|
|
153
187
|
<slot></slot>
|
|
154
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(Dn.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Dn.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Dn.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Dn.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Dn.actions.noCustom(this.noCustom),t.has("editorMode")&&Dn.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Dn.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Dn.actions.session(this.session),t.has("availableUiLocales")&&Dn.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Kn.addContext(t))),t.has("openExternalDocumentInNewTab")&&Dn.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Zn.elementDefinitions={},Zn.styles=Wn,Mn([R()],Zn.prototype,"baseUrl",void 0),Mn([R()],Zn.prototype,"apiIntegrationIdentifier",void 0),Mn([R()],Zn.prototype,"uiLocale",void 0),Mn([F(null)],Zn.prototype,"availableUiLocales",void 0),Mn([F(null)],Zn.prototype,"metadataConfiguration",void 0),Mn([R({type:Boolean})],Zn.prototype,"editorMode",void 0),Mn([R({type:Boolean})],Zn.prototype,"noCustom",void 0),Mn([R({type:Boolean})],Zn.prototype,"openExternalDocumentInNewTab",void 0),Mn([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Zn.prototype,"noCustomComponent",void 0),Mn([R({type:Boolean})],Zn.prototype,"withManualResources",void 0),Mn([F([])],Zn.prototype,"messageContexts",void 0),Mn([F(void 0)],Zn.prototype,"session",void 0),Mn([R({type:Object})],Zn.prototype,"apiProvider",void 0);class _n extends jn{async listMySearches(){let t=Dn.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Hn extends jn{async listMyBookmarks(){let t=Dn.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Gn=Vr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Vn=new class{constructor(){this.currentSession=Dn.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hn,this.savedSearchesService=new _n,Dn.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Dn.getState();z(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Gn.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Gn.actions.bookmarks(e)}}};j("ft-app-context")(Zn);class qn extends jn{constructor(){super(),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 Yn=t=>t.request.virtualField===Cn.TITLE_ONLY&&t.request.scope===Un.DOCUMENTS;class Xn extends Event{constructor(){super(Xn.eventName)}}Xn.eventName="search-context-clear-all-filters";class Jn{static build(t,e){return new Jn((t=>Vr.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:yn}))(t.trim()||"context"),e)}constructor(t,e){this.store=t,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300),this.service=null!=e?e:new qn}async initService(){return this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}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(Cn.TITLE_ONLY),this.store.actions.setRequestScope(Un.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Cn.EVERYWHERE),this.store.actions.setRequestScope(Un.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Yn(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Xn)}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()}setOpenExternalDocumentInNewTab(t){this.openExternalDocumentInNewTab=t}launchSearch(){return this.searchDebouncer.run((()=>this.fetchSearchData()))}launchSuggest(){return 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 Qn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ta extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ea=Symbol("registerInterval");class oa 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[ea]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ea]):this.dispatchEvent(new ta)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ea,Qn([I()],o.prototype,"stateManager",void 0),o}(ai)){}
|
|
155
|
-
/**
|
|
156
|
-
* @license
|
|
157
|
-
* Copyright 2018 Google LLC
|
|
158
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
159
|
-
*/const ia=on(class extends rn{constructor(t){if(super(t),t.type!==tn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return at}}),ra=Re.extend("--ft-ripple-color","",De.colorContent),na={color:ra,backgroundColor:Re.extend("--ft-ripple-background-color","",ra),opacityContentOnSurfacePressed:Re.external(De.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(De.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(De.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(De.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},aa=Re.extend("--ft-ripple-color","",De.colorPrimary),sa=aa,la=Re.extend("--ft-ripple-background-color","",aa),ca=Re.extend("--ft-ripple-color","",De.colorSecondary),fa=ca,ha=Re.extend("--ft-ripple-background-color","",ca),pa=Rt`
|
|
188
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(As.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&As.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&As.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&As.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&As.actions.noCustom(this.noCustom),t.has("editorMode")&&As.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&As.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&As.actions.session(this.session),t.has("availableUiLocales")&&As.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>_s.addContext(t))),t.has("openExternalDocumentInNewTab")&&As.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ks.elementDefinitions={},Ks.styles=zs,Ts([we()],Ks.prototype,"baseUrl",void 0),Ts([we()],Ks.prototype,"apiIntegrationIdentifier",void 0),Ts([we()],Ks.prototype,"uiLocale",void 0),Ts([mo(null)],Ks.prototype,"availableUiLocales",void 0),Ts([mo(null)],Ks.prototype,"metadataConfiguration",void 0),Ts([we({type:Boolean})],Ks.prototype,"editorMode",void 0),Ts([we({type:Boolean})],Ks.prototype,"noCustom",void 0),Ts([we({type:Boolean})],Ks.prototype,"openExternalDocumentInNewTab",void 0),Ts([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ks.prototype,"noCustomComponent",void 0),Ts([we({type:Boolean})],Ks.prototype,"withManualResources",void 0),Ts([mo([])],Ks.prototype,"messageContexts",void 0),Ts([mo(void 0)],Ks.prototype,"session",void 0),Ts([we({type:Object})],Ks.prototype,"apiProvider",void 0);class Hs extends Fs{async listMySearches(){let t=As.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Zs extends Fs{async listMyBookmarks(){let t=As.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Gs=es.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Vs=new class{constructor(){this.currentSession=As.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zs,this.savedSearchesService=new Hs,As.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=As.getState();go(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gs.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gs.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Gs.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Gs.actions.bookmarks(e)}}};bo("ft-app-context")(Ks);class qs extends Fs{constructor(){super(),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 Ys=t=>t.request.virtualField===Es.TITLE_ONLY&&t.request.scope===Ls.DOCUMENTS;class Js extends Event{constructor(){super(Js.eventName)}}Js.eventName="search-context-clear-all-filters";class Xs{static build(t,e){return new Xs((t=>es.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:gs}))(t.trim()||"context"),e)}constructor(t,e){this.store=t,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.searchDebouncer=new lo(100),this.suggestDebouncer=new lo(300),this.service=null!=e?e:new qs}async initService(){return this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}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(Es.TITLE_ONLY),this.store.actions.setRequestScope(Ls.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Es.EVERYWHERE),this.store.actions.setRequestScope(Ls.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Ys(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Js)}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()}setOpenExternalDocumentInNewTab(t){this.openExternalDocumentInNewTab=t}launchSearch(){return this.searchDebouncer.run((()=>this.fetchSearchData()))}launchSuggest(){return this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let o=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==o.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=oo(this.service.launchSearch(o));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 o=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(t.results);this.store.actions.setResults(o)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof to||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,i={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=oo(this.service.launchSuggest(i));let r=await this.cancelableSuggest;this.store.actions.setSuggestResults(r.suggestions)}catch(t){t instanceof to||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Qs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tl extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const el=Symbol("registerInterval");class ol 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[el]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[el]):this.dispatchEvent(new tl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=el,Qs([Se()],o.prototype,"stateManager",void 0),o}(dn)){}const il=wo.extend("--ft-ripple-color","",Si.colorContent),rl={color:il,backgroundColor:wo.extend("--ft-ripple-background-color","",il),opacityContentOnSurfacePressed:wo.external(Si.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:wo.external(Si.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:wo.external(Si.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:wo.external(Si.opacityContentOnSurfaceSelected,"Design system"),borderRadius:wo.create("--ft-ripple-border-radius","","SIZE","0px")},nl=wo.extend("--ft-ripple-color","",Si.colorPrimary),al=nl,sl=wo.extend("--ft-ripple-background-color","",nl),ll=wo.extend("--ft-ripple-color","",Si.colorSecondary),cl=ll,hl=wo.extend("--ft-ripple-background-color","",ll),fl=pt`
|
|
160
189
|
:host {
|
|
161
190
|
display: contents;
|
|
162
191
|
}
|
|
@@ -169,7 +198,7 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
169
198
|
|
|
170
199
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
171
200
|
overflow: hidden;
|
|
172
|
-
border-radius: ${
|
|
201
|
+
border-radius: ${rl.borderRadius};
|
|
173
202
|
}
|
|
174
203
|
|
|
175
204
|
.ft-ripple .ft-ripple--background,
|
|
@@ -203,27 +232,27 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
203
232
|
}
|
|
204
233
|
|
|
205
234
|
.ft-ripple .ft-ripple--background {
|
|
206
|
-
background-color: ${
|
|
235
|
+
background-color: ${rl.backgroundColor};
|
|
207
236
|
}
|
|
208
237
|
|
|
209
238
|
.ft-ripple .ft-ripple--effect {
|
|
210
|
-
background-color: ${
|
|
239
|
+
background-color: ${rl.color};
|
|
211
240
|
}
|
|
212
241
|
|
|
213
242
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
214
|
-
background-color: ${
|
|
243
|
+
background-color: ${hl};
|
|
215
244
|
}
|
|
216
245
|
|
|
217
246
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
218
|
-
background-color: ${
|
|
247
|
+
background-color: ${cl};
|
|
219
248
|
}
|
|
220
249
|
|
|
221
250
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
222
|
-
background-color: ${
|
|
251
|
+
background-color: ${sl};
|
|
223
252
|
}
|
|
224
253
|
|
|
225
254
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
226
|
-
background-color: ${
|
|
255
|
+
background-color: ${al};
|
|
227
256
|
}
|
|
228
257
|
|
|
229
258
|
.ft-ripple .ft-ripple--background {
|
|
@@ -253,135 +282,135 @@ const Fo=window,Bo=Fo.ShadowRoot&&(void 0===Fo.ShadyCSS||Fo.ShadyCSS.nativeShado
|
|
|
253
282
|
}
|
|
254
283
|
|
|
255
284
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
256
|
-
opacity: ${
|
|
285
|
+
opacity: ${rl.opacityContentOnSurfaceHover};
|
|
257
286
|
}
|
|
258
287
|
|
|
259
288
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
260
|
-
opacity: ${
|
|
289
|
+
opacity: ${rl.opacityContentOnSurfaceSelected};
|
|
261
290
|
}
|
|
262
291
|
|
|
263
292
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
264
|
-
opacity: ${
|
|
293
|
+
opacity: ${rl.opacityContentOnSurfaceFocused};
|
|
265
294
|
}
|
|
266
295
|
|
|
267
296
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
268
|
-
opacity: ${
|
|
297
|
+
opacity: ${rl.opacityContentOnSurfacePressed};
|
|
269
298
|
transform: translate(-50%, -50%) scale(1);
|
|
270
299
|
}
|
|
271
|
-
`;var
|
|
300
|
+
`;var pl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dl extends _r{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new lo(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new lo(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Jt`
|
|
272
301
|
<style>
|
|
273
302
|
.ft-ripple .ft-ripple--effect {
|
|
274
303
|
left: ${this.originX}px;
|
|
275
304
|
top: ${this.originY}px;
|
|
276
305
|
}
|
|
277
306
|
</style>
|
|
278
|
-
<div class="${
|
|
307
|
+
<div class="${He(t)}">
|
|
279
308
|
<div class="ft-ripple--background"></div>
|
|
280
309
|
<div class="ft-ripple--effect"></div>
|
|
281
310
|
</div>
|
|
282
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
311
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}dl.elementDefinitions={},dl.styles=fl,pl([we({type:Boolean})],dl.prototype,"primary",void 0),pl([we({type:Boolean})],dl.prototype,"secondary",void 0),pl([we({type:Boolean})],dl.prototype,"unbounded",void 0),pl([we({type:Boolean})],dl.prototype,"activated",void 0),pl([we({type:Boolean})],dl.prototype,"selected",void 0),pl([we({type:Boolean})],dl.prototype,"disabled",void 0),pl([Se()],dl.prototype,"hovered",void 0),pl([Se()],dl.prototype,"focused",void 0),pl([Se()],dl.prototype,"pressed",void 0),pl([Se()],dl.prototype,"rippling",void 0),pl([Se()],dl.prototype,"originX",void 0),pl([Se()],dl.prototype,"originY",void 0),pl([Ee(".ft-ripple")],dl.prototype,"ripple",void 0),pl([Ee(".ft-ripple--effect")],dl.prototype,"rippleEffect",void 0),bo("ft-ripple")(dl);
|
|
283
312
|
/**
|
|
284
313
|
* @license
|
|
285
314
|
* Copyright 2020 Google LLC
|
|
286
315
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
316
|
*/
|
|
288
|
-
const
|
|
317
|
+
const ul=Symbol.for(""),gl=t=>{if(t?.r===ul)return t?._$litStatic$},yl=t=>({_$litStatic$:t,r:ul}),bl=new Map,ml=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=gl(n));)l+=r+e[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),h){const t=a.join("$$lit$$");void 0===(e=bl.get(t))&&(a.raw=a,bl.set(t,e=a)),o=s}return t(e,...o)})(M);var vl;!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"}(vl||(vl={}));const xl=wo.extend("--ft-typography-font-family","",Si.titleFont),Ol=wo.extend("--ft-typography-font-family","",Si.contentFont),wl={fontFamily:Ol,fontSize:wo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:wo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:wo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:wo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:wo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Sl=wo.extend("--ft-typography-title-font-family","",xl),Cl=wo.extend("--ft-typography-title-font-size","",wl.fontSize,"20px"),Nl=wo.extend("--ft-typography-title-font-weight","",wl.fontWeight,"normal"),El=wo.extend("--ft-typography-title-letter-spacing","",wl.letterSpacing,"0.15px"),$l=wo.extend("--ft-typography-title-line-height","",wl.lineHeight,"1.2"),kl=wo.extend("--ft-typography-title-text-transform","",wl.textTransform,"inherit"),Rl=wo.extend("--ft-typography-title-dense-font-family","",xl),Il=wo.extend("--ft-typography-title-dense-font-size","",wl.fontSize,"14px"),Ll=wo.extend("--ft-typography-title-dense-font-weight","",wl.fontWeight,"normal"),Ul=wo.extend("--ft-typography-title-dense-letter-spacing","",wl.letterSpacing,"0.105px"),Wl=wo.extend("--ft-typography-title-dense-line-height","",wl.lineHeight,"1.7"),zl=wo.extend("--ft-typography-title-dense-text-transform","",wl.textTransform,"inherit"),Al=wo.extend("--ft-typography-subtitle1-font-family","",Ol),Bl=wo.extend("--ft-typography-subtitle1-font-size","",wl.fontSize,"16px"),Fl=wo.extend("--ft-typography-subtitle1-font-weight","",wl.fontWeight,"600"),jl=wo.extend("--ft-typography-subtitle1-letter-spacing","",wl.letterSpacing,"0.144px"),Dl=wo.extend("--ft-typography-subtitle1-line-height","",wl.lineHeight,"1.5"),Pl=wo.extend("--ft-typography-subtitle1-text-transform","",wl.textTransform,"inherit"),_l=wo.extend("--ft-typography-subtitle2-font-family","",Ol),Ml=wo.extend("--ft-typography-subtitle2-font-size","",wl.fontSize,"14px"),Tl=wo.extend("--ft-typography-subtitle2-font-weight","",wl.fontWeight,"normal"),Kl=wo.extend("--ft-typography-subtitle2-letter-spacing","",wl.letterSpacing,"0.098px"),Hl=wo.extend("--ft-typography-subtitle2-line-height","",wl.lineHeight,"1.7"),Zl=wo.extend("--ft-typography-subtitle2-text-transform","",wl.textTransform,"inherit"),Gl=wo.extend("--ft-typography-body1-font-family","",Ol),Vl=wo.extend("--ft-typography-body1-font-size","",wl.fontSize,"16px"),ql=wo.extend("--ft-typography-body1-font-weight","",wl.fontWeight,"normal"),Yl=wo.extend("--ft-typography-body1-letter-spacing","",wl.letterSpacing,"0.496px"),Jl=wo.extend("--ft-typography-body1-line-height","",wl.lineHeight,"1.5"),Xl=wo.extend("--ft-typography-body1-text-transform","",wl.textTransform,"inherit"),Ql={fontFamily:wo.extend("--ft-typography-body2-font-family","",Ol),fontSize:wo.extend("--ft-typography-body2-font-size","",wl.fontSize,"14px"),fontWeight:wo.extend("--ft-typography-body2-font-weight","",wl.fontWeight,"normal"),letterSpacing:wo.extend("--ft-typography-body2-letter-spacing","",wl.letterSpacing,"0.252px"),lineHeight:wo.extend("--ft-typography-body2-line-height","",wl.lineHeight,"1.4"),textTransform:wo.extend("--ft-typography-body2-text-transform","",wl.textTransform,"inherit")},tc=wo.extend("--ft-typography-caption-font-family","",Ol),ec=wo.extend("--ft-typography-caption-font-size","",wl.fontSize,"12px"),oc=wo.extend("--ft-typography-caption-font-weight","",wl.fontWeight,"normal"),ic=wo.extend("--ft-typography-caption-letter-spacing","",wl.letterSpacing,"0.396px"),rc=wo.extend("--ft-typography-caption-line-height","",wl.lineHeight,"1.33"),nc=wo.extend("--ft-typography-caption-text-transform","",wl.textTransform,"inherit"),ac=wo.extend("--ft-typography-breadcrumb-font-family","",Ol),sc=wo.extend("--ft-typography-breadcrumb-font-size","",wl.fontSize,"10px"),lc=wo.extend("--ft-typography-breadcrumb-font-weight","",wl.fontWeight,"normal"),cc=wo.extend("--ft-typography-breadcrumb-letter-spacing","",wl.letterSpacing,"0.33px"),hc=wo.extend("--ft-typography-breadcrumb-line-height","",wl.lineHeight,"1.6"),fc=wo.extend("--ft-typography-breadcrumb-text-transform","",wl.textTransform,"inherit"),pc=wo.extend("--ft-typography-overline-font-family","",Ol),dc=wo.extend("--ft-typography-overline-font-size","",wl.fontSize,"10px"),uc=wo.extend("--ft-typography-overline-font-weight","",wl.fontWeight,"normal"),gc=wo.extend("--ft-typography-overline-letter-spacing","",wl.letterSpacing,"1.5px"),yc=wo.extend("--ft-typography-overline-line-height","",wl.lineHeight,"1.6"),bc=wo.extend("--ft-typography-overline-text-transform","",wl.textTransform,"uppercase"),mc={fontFamily:wo.extend("--ft-typography-button-font-family","",Ol),fontSize:wo.extend("--ft-typography-button-font-size","",wl.fontSize,"14px"),fontWeight:wo.extend("--ft-typography-button-font-weight","",wl.fontWeight,"600"),letterSpacing:wo.extend("--ft-typography-button-letter-spacing","",wl.letterSpacing,"1.246px"),lineHeight:wo.extend("--ft-typography-button-line-height","",wl.lineHeight,"1.15"),textTransform:wo.extend("--ft-typography-button-text-transform","",wl.textTransform,"uppercase")},vc=pt`
|
|
289
318
|
.ft-typography--title {
|
|
290
|
-
font-family: ${
|
|
291
|
-
font-size: ${
|
|
292
|
-
font-weight: ${
|
|
293
|
-
letter-spacing: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
text-transform: ${
|
|
296
|
-
}
|
|
297
|
-
`,
|
|
319
|
+
font-family: ${Sl};
|
|
320
|
+
font-size: ${Cl};
|
|
321
|
+
font-weight: ${Nl};
|
|
322
|
+
letter-spacing: ${El};
|
|
323
|
+
line-height: ${$l};
|
|
324
|
+
text-transform: ${kl};
|
|
325
|
+
}
|
|
326
|
+
`,xc=pt`
|
|
298
327
|
.ft-typography--title-dense {
|
|
299
|
-
font-family: ${
|
|
300
|
-
font-size: ${
|
|
301
|
-
font-weight: ${
|
|
302
|
-
letter-spacing: ${
|
|
303
|
-
line-height: ${
|
|
304
|
-
text-transform: ${
|
|
305
|
-
}
|
|
306
|
-
`,
|
|
328
|
+
font-family: ${Rl};
|
|
329
|
+
font-size: ${Il};
|
|
330
|
+
font-weight: ${Ll};
|
|
331
|
+
letter-spacing: ${Ul};
|
|
332
|
+
line-height: ${Wl};
|
|
333
|
+
text-transform: ${zl};
|
|
334
|
+
}
|
|
335
|
+
`,Oc=pt`
|
|
307
336
|
.ft-typography--subtitle1 {
|
|
308
|
-
font-family: ${
|
|
309
|
-
font-size: ${
|
|
310
|
-
font-weight: ${
|
|
311
|
-
letter-spacing: ${
|
|
312
|
-
line-height: ${
|
|
313
|
-
text-transform: ${
|
|
314
|
-
}
|
|
315
|
-
`,
|
|
337
|
+
font-family: ${Al};
|
|
338
|
+
font-size: ${Bl};
|
|
339
|
+
font-weight: ${Fl};
|
|
340
|
+
letter-spacing: ${jl};
|
|
341
|
+
line-height: ${Dl};
|
|
342
|
+
text-transform: ${Pl};
|
|
343
|
+
}
|
|
344
|
+
`,wc=pt`
|
|
316
345
|
.ft-typography--subtitle2 {
|
|
317
|
-
font-family: ${
|
|
318
|
-
font-size: ${
|
|
319
|
-
font-weight: ${
|
|
320
|
-
letter-spacing: ${
|
|
321
|
-
line-height: ${
|
|
322
|
-
text-transform: ${
|
|
346
|
+
font-family: ${_l};
|
|
347
|
+
font-size: ${Ml};
|
|
348
|
+
font-weight: ${Tl};
|
|
349
|
+
letter-spacing: ${Kl};
|
|
350
|
+
line-height: ${Hl};
|
|
351
|
+
text-transform: ${Zl};
|
|
323
352
|
}
|
|
324
353
|
|
|
325
|
-
`,
|
|
354
|
+
`,Sc=pt`
|
|
326
355
|
.ft-typography--body1 {
|
|
327
|
-
font-family: ${
|
|
328
|
-
font-size: ${
|
|
329
|
-
font-weight: ${
|
|
330
|
-
letter-spacing: ${
|
|
331
|
-
line-height: ${
|
|
332
|
-
text-transform: ${
|
|
333
|
-
}
|
|
334
|
-
|
|
356
|
+
font-family: ${Gl};
|
|
357
|
+
font-size: ${Vl};
|
|
358
|
+
font-weight: ${ql};
|
|
359
|
+
letter-spacing: ${Yl};
|
|
360
|
+
line-height: ${Jl};
|
|
361
|
+
text-transform: ${Xl};
|
|
362
|
+
}
|
|
363
|
+
`,Cc=pt`
|
|
335
364
|
.ft-typography--body2 {
|
|
336
|
-
font-family: ${
|
|
337
|
-
font-size: ${
|
|
338
|
-
font-weight: ${
|
|
339
|
-
letter-spacing: ${
|
|
340
|
-
line-height: ${
|
|
341
|
-
text-transform: ${
|
|
342
|
-
}
|
|
343
|
-
`,
|
|
365
|
+
font-family: ${Ql.fontFamily};
|
|
366
|
+
font-size: ${Ql.fontSize};
|
|
367
|
+
font-weight: ${Ql.fontWeight};
|
|
368
|
+
letter-spacing: ${Ql.letterSpacing};
|
|
369
|
+
line-height: ${Ql.lineHeight};
|
|
370
|
+
text-transform: ${Ql.textTransform};
|
|
371
|
+
}
|
|
372
|
+
`,Nc=pt`
|
|
344
373
|
.ft-typography--caption {
|
|
345
|
-
font-family: ${
|
|
346
|
-
font-size: ${
|
|
347
|
-
font-weight: ${
|
|
348
|
-
letter-spacing: ${
|
|
349
|
-
line-height: ${
|
|
350
|
-
text-transform: ${
|
|
351
|
-
}
|
|
352
|
-
`,
|
|
374
|
+
font-family: ${tc};
|
|
375
|
+
font-size: ${ec};
|
|
376
|
+
font-weight: ${oc};
|
|
377
|
+
letter-spacing: ${ic};
|
|
378
|
+
line-height: ${rc};
|
|
379
|
+
text-transform: ${nc};
|
|
380
|
+
}
|
|
381
|
+
`,Ec=pt`
|
|
353
382
|
.ft-typography--breadcrumb {
|
|
354
|
-
font-family: ${
|
|
355
|
-
font-size: ${
|
|
356
|
-
font-weight: ${
|
|
357
|
-
letter-spacing: ${
|
|
358
|
-
line-height: ${
|
|
359
|
-
text-transform: ${
|
|
360
|
-
}
|
|
361
|
-
|
|
383
|
+
font-family: ${ac};
|
|
384
|
+
font-size: ${sc};
|
|
385
|
+
font-weight: ${lc};
|
|
386
|
+
letter-spacing: ${cc};
|
|
387
|
+
line-height: ${hc};
|
|
388
|
+
text-transform: ${fc};
|
|
389
|
+
}
|
|
390
|
+
`,$c=pt`
|
|
362
391
|
.ft-typography--overline {
|
|
363
|
-
font-family: ${
|
|
364
|
-
font-size: ${
|
|
365
|
-
font-weight: ${
|
|
366
|
-
letter-spacing: ${
|
|
367
|
-
line-height: ${
|
|
368
|
-
text-transform: ${
|
|
369
|
-
}
|
|
370
|
-
`,
|
|
392
|
+
font-family: ${pc};
|
|
393
|
+
font-size: ${dc};
|
|
394
|
+
font-weight: ${uc};
|
|
395
|
+
letter-spacing: ${gc};
|
|
396
|
+
line-height: ${yc};
|
|
397
|
+
text-transform: ${bc};
|
|
398
|
+
}
|
|
399
|
+
`,kc=pt`
|
|
371
400
|
.ft-typography--button {
|
|
372
|
-
font-family: ${
|
|
373
|
-
font-size: ${
|
|
374
|
-
font-weight: ${
|
|
375
|
-
letter-spacing: ${
|
|
376
|
-
line-height: ${
|
|
377
|
-
text-transform: ${
|
|
378
|
-
}
|
|
379
|
-
`,
|
|
401
|
+
font-family: ${mc.fontFamily};
|
|
402
|
+
font-size: ${mc.fontSize};
|
|
403
|
+
font-weight: ${mc.fontWeight};
|
|
404
|
+
letter-spacing: ${mc.letterSpacing};
|
|
405
|
+
line-height: ${mc.lineHeight};
|
|
406
|
+
text-transform: ${mc.textTransform};
|
|
407
|
+
}
|
|
408
|
+
`,Rc=pt`
|
|
380
409
|
.ft-typography {
|
|
381
410
|
vertical-align: inherit;
|
|
382
411
|
}
|
|
383
|
-
`,
|
|
384
|
-
.ft-typography--${
|
|
412
|
+
`,Ic=[Object.keys(Jo).map((t=>function(t){const e=Jo[t];return pt`
|
|
413
|
+
.ft-typography--${ft(t)} {
|
|
385
414
|
font-family: ${e.fontFamily};
|
|
386
415
|
font-size: ${e.fontSize};
|
|
387
416
|
font-weight: ${e.fontWeight};
|
|
@@ -389,20 +418,14 @@ const ya=Symbol.for(""),ga=t=>{if(t?.r===ya)return t?._$litStatic$},ba=t=>({_$li
|
|
|
389
418
|
line-height: ${e.lineHeight};
|
|
390
419
|
text-transform: ${e.textCase};
|
|
391
420
|
}
|
|
392
|
-
`}(t)))];var
|
|
393
|
-
<${
|
|
421
|
+
`}(t)))];var Lc,Uc,Wc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zc extends _r{constructor(){super(...arguments),this.variant=vl.body1}render(){return this.element?ml`
|
|
422
|
+
<${yl(this.element)}
|
|
394
423
|
class="ft-typography ft-typography--${this.variant}">
|
|
395
424
|
<slot></slot>
|
|
396
|
-
</${
|
|
397
|
-
`:
|
|
425
|
+
</${yl(this.element)}>
|
|
426
|
+
`:ml`
|
|
398
427
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
399
|
-
`}}
|
|
400
|
-
/**
|
|
401
|
-
* @license
|
|
402
|
-
* Copyright 2017 Google LLC
|
|
403
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
404
|
-
*/
|
|
405
|
-
class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ws.directiveName="unsafeHTML",Ws.resultType=1;const Ds=on(Ws);var zs,js;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(zs||(zs={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(js||(js={})),new Map([...["abw"].map((t=>[t,js.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,js.AUDIO])),...["avi"].map((t=>[t,js.AVI])),...["chm","xhs"].map((t=>[t,js.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,js.CODE])),...["csv"].map((t=>[t,js.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,js.DITA])),...["epub"].map((t=>[t,js.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,js.EXCEL])),...["flac"].map((t=>[t,js.FLAC])),...["gif"].map((t=>[t,js.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,js.GZIP])),...["html","htm","xhtml"].map((t=>[t,js.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,js.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,js.JPEG])),...["json"].map((t=>[t,js.JSON])),...["m4a","m4p"].map((t=>[t,js.M4A])),...["mov","qt"].map((t=>[t,js.MOV])),...["mp3"].map((t=>[t,js.MP3])),...["mp4","m4v"].map((t=>[t,js.MP4])),...["ogg","oga"].map((t=>[t,js.OGG])),...["pdf","ps"].map((t=>[t,js.PDF])),...["png"].map((t=>[t,js.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,js.POWERPOINT])),...["rar"].map((t=>[t,js.RAR])),...["stp"].map((t=>[t,js.STP])),...["txt","rtf","md","mdown"].map((t=>[t,js.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,js.VIDEO])),...["wav"].map((t=>[t,js.WAV])),...["wma"].map((t=>[t,js.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,js.WORD])),...["xml","xsl","rdf"].map((t=>[t,js.XML])),...["yaml","yml","x-yaml"].map((t=>[t,js.YAML])),...["zip"].map((t=>[t,js.ZIP]))]),js.ABW,js.AUDIO,js.AVI,js.CHM,js.CODE,js.CSV,js.DITA,js.EPUB,js.EXCEL,js.FLAC,js.GIF,js.GZIP,js.HTML,js.IMAGE,js.JPEG,js.JSON,js.M4A,js.MOV,js.MP3,js.MP4,js.OGG,js.PDF,js.PNG,js.POWERPOINT,js.RAR,js.STP,js.TEXT,js.UNKNOWN,js.VIDEO,js.WAV,js.WMA,js.WORD,js.XML,js.YAML,js.ZIP;const Fs={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bs=Rt`
|
|
428
|
+
`}}zc.styles=[vc,xc,Oc,wc,Sc,Cc,Nc,Ec,$c,kc,Rc,...Ic],Wc([we()],zc.prototype,"element",void 0),Wc([we()],zc.prototype,"variant",void 0),bo("ft-typography")(zc),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(Lc||(Lc={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Uc||(Uc={})),new Map([...["abw"].map((t=>[t,Uc.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,Uc.AUDIO])),...["avi"].map((t=>[t,Uc.AVI])),...["chm","xhs"].map((t=>[t,Uc.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,Uc.CODE])),...["csv"].map((t=>[t,Uc.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Uc.DITA])),...["epub"].map((t=>[t,Uc.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Uc.EXCEL])),...["flac"].map((t=>[t,Uc.FLAC])),...["gif"].map((t=>[t,Uc.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Uc.GZIP])),...["html","htm","xhtml"].map((t=>[t,Uc.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,Uc.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Uc.JPEG])),...["json"].map((t=>[t,Uc.JSON])),...["m4a","m4p"].map((t=>[t,Uc.M4A])),...["mov","qt"].map((t=>[t,Uc.MOV])),...["mp3"].map((t=>[t,Uc.MP3])),...["mp4","m4v"].map((t=>[t,Uc.MP4])),...["ogg","oga"].map((t=>[t,Uc.OGG])),...["pdf","ps"].map((t=>[t,Uc.PDF])),...["png"].map((t=>[t,Uc.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Uc.POWERPOINT])),...["rar"].map((t=>[t,Uc.RAR])),...["stp"].map((t=>[t,Uc.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Uc.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,Uc.VIDEO])),...["wav"].map((t=>[t,Uc.WAV])),...["wma"].map((t=>[t,Uc.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Uc.WORD])),...["xml","xsl","rdf"].map((t=>[t,Uc.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Uc.YAML])),...["zip"].map((t=>[t,Uc.ZIP]))]),Uc.ABW,Uc.AUDIO,Uc.AVI,Uc.CHM,Uc.CODE,Uc.CSV,Uc.DITA,Uc.EPUB,Uc.EXCEL,Uc.FLAC,Uc.GIF,Uc.GZIP,Uc.HTML,Uc.IMAGE,Uc.JPEG,Uc.JSON,Uc.M4A,Uc.MOV,Uc.MP3,Uc.MP4,Uc.OGG,Uc.PDF,Uc.PNG,Uc.POWERPOINT,Uc.RAR,Uc.STP,Uc.TEXT,Uc.UNKNOWN,Uc.VIDEO,Uc.WAV,Uc.WMA,Uc.WORD,Uc.XML,Uc.YAML,Uc.ZIP;const Ac={size:wo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:wo.extend("--ft-icon-fluid-topics-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:wo.extend("--ft-icon-file-format-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:wo.extend("--ft-icon-material-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:wo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bc=pt`
|
|
406
429
|
:host, i.ft-icon {
|
|
407
430
|
display: inline-flex;
|
|
408
431
|
align-items: center;
|
|
@@ -411,14 +434,14 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
411
434
|
}
|
|
412
435
|
|
|
413
436
|
:host {
|
|
414
|
-
width: ${
|
|
415
|
-
height: ${
|
|
437
|
+
width: ${Ac.size};
|
|
438
|
+
height: ${Ac.size};
|
|
416
439
|
}
|
|
417
440
|
|
|
418
441
|
i.ft-icon {
|
|
419
442
|
width: 100%;
|
|
420
443
|
height: 100%;
|
|
421
|
-
font-size: ${
|
|
444
|
+
font-size: ${Ac.size};
|
|
422
445
|
line-height: 1;
|
|
423
446
|
font-weight: normal;
|
|
424
447
|
text-transform: none;
|
|
@@ -429,33 +452,33 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
429
452
|
text-rendering: auto;
|
|
430
453
|
-webkit-font-smoothing: antialiased;
|
|
431
454
|
-moz-osx-font-smoothing: grayscale;
|
|
432
|
-
vertical-align: ${
|
|
455
|
+
vertical-align: ${Ac.verticalAlign};
|
|
433
456
|
}
|
|
434
457
|
|
|
435
458
|
i.ft-icon.ft-icon--fluid-topics {
|
|
436
|
-
font-family: ${
|
|
459
|
+
font-family: ${Ac.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
437
460
|
|
|
438
461
|
/* Ugly fix because font is broken */
|
|
439
|
-
font-size: calc(0.75 * ${
|
|
440
|
-
line-height: ${
|
|
462
|
+
font-size: calc(0.75 * ${Ac.size});
|
|
463
|
+
line-height: ${Ac.size};
|
|
441
464
|
position: relative;
|
|
442
465
|
top: -4%;
|
|
443
466
|
justify-content: center;
|
|
444
467
|
}
|
|
445
468
|
|
|
446
469
|
.ft-icon--file-format {
|
|
447
|
-
font-family: ${
|
|
470
|
+
font-family: ${Ac.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
448
471
|
}
|
|
449
472
|
|
|
450
473
|
.ft-icon--material {
|
|
451
|
-
font-family: ${
|
|
474
|
+
font-family: ${Ac.materialFontFamily}, "Material Icons", sans-serif;
|
|
452
475
|
}
|
|
453
|
-
`;var
|
|
476
|
+
`;var Fc;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fc||(Fc={}));var jc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Dc extends _r{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(Fc).includes(this.variant)?this.variant:Fc.fluid_topics,e=t!==Fc.material||!!this.value;return Jt`
|
|
454
477
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
455
|
-
${
|
|
478
|
+
${Xe(this.resolvedIcon)}
|
|
456
479
|
<slot ?hidden=${e}></slot>
|
|
457
480
|
</i>
|
|
458
|
-
`}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
|
|
481
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Fc.file_format:this.resolvedIcon=null!==(t=Uc[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fc.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=Lc[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Dc.elementDefinitions={},Dc.styles=Bc,jc([we()],Dc.prototype,"variant",void 0),jc([we()],Dc.prototype,"value",void 0),jc([Se()],Dc.prototype,"resolvedIcon",void 0),jc([Ee("slot")],Dc.prototype,"slottedContent",void 0),bo("ft-icon")(Dc);const Pc={color:wo.extend("--ft-loader-color","",Si.colorPrimary),size:wo.create("--ft-loader-size","","SIZE","80px")},_c=pt`
|
|
459
482
|
:host {
|
|
460
483
|
line-height: 0;
|
|
461
484
|
}
|
|
@@ -464,8 +487,8 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
464
487
|
display: inline-block;
|
|
465
488
|
position: relative;
|
|
466
489
|
|
|
467
|
-
width: ${
|
|
468
|
-
height: ${
|
|
490
|
+
width: ${Pc.size};
|
|
491
|
+
height: ${Pc.size};
|
|
469
492
|
}
|
|
470
493
|
|
|
471
494
|
.ft-loader div {
|
|
@@ -474,7 +497,7 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
474
497
|
width: 25%;
|
|
475
498
|
height: 25%;
|
|
476
499
|
border-radius: 50%;
|
|
477
|
-
background: ${
|
|
500
|
+
background: ${Pc.color};
|
|
478
501
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
479
502
|
}
|
|
480
503
|
|
|
@@ -521,10 +544,10 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
521
544
|
transform: translate(0, 0);
|
|
522
545
|
}
|
|
523
546
|
100% {
|
|
524
|
-
transform: translate(calc(0.35 * ${
|
|
547
|
+
transform: translate(calc(0.35 * ${Pc.size}), 0);
|
|
525
548
|
}
|
|
526
549
|
}
|
|
527
|
-
`,
|
|
550
|
+
`,Mc=wo.extend("--ft-button-color","",Si.colorPrimary),Tc={backgroundColor:wo.extend("--ft-button-background-color","",Si.colorSurface),borderRadius:wo.extend("--ft-button-border-radius","",Si.borderRadiusL),color:Mc,fontSize:wo.extend("--ft-button-font-size","",mc.fontSize),iconSize:wo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:wo.extend("--ft-button-ripple-color","",Mc),verticalPadding:wo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:wo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:wo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:wo.external(Si.colorOpacityDisabled,"Design system")},Kc=wo.extend("--ft-button-primary-color","",wo.extend("--ft-button-color","",Si.colorOnPrimary)),Hc={backgroundColor:wo.extend("--ft-button-primary-background-color","",wo.extend("--ft-button-background-color","",Si.colorPrimary)),color:Kc,rippleColor:wo.extend("--ft-button-primary-ripple-color","",Kc)},Zc=wo.extend("--ft-button-dense-border-radius","",wo.extend("--ft-button-border-radius","",Si.borderRadiusM)),Gc=wo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Vc=wo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),qc=wo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Yc=[pt`
|
|
528
551
|
:host {
|
|
529
552
|
display: inline-block;
|
|
530
553
|
max-width: 100%;
|
|
@@ -535,7 +558,7 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
535
558
|
box-shadow: 0px 0px 0px transparent;
|
|
536
559
|
border: 0px solid transparent;
|
|
537
560
|
text-shadow: 0px 0px 0px transparent;
|
|
538
|
-
font-size: ${
|
|
561
|
+
font-size: ${Tc.fontSize};
|
|
539
562
|
}
|
|
540
563
|
|
|
541
564
|
button:hover {
|
|
@@ -564,31 +587,31 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
564
587
|
border: none;
|
|
565
588
|
pointer-events: auto;
|
|
566
589
|
|
|
567
|
-
--ft-button-internal-line-height: max(calc(${
|
|
568
|
-
--ft-button-internal-color: ${
|
|
569
|
-
${
|
|
570
|
-
${
|
|
590
|
+
--ft-button-internal-line-height: max(calc(${Tc.fontSize} + 2px), ${Tc.iconSize});
|
|
591
|
+
--ft-button-internal-color: ${Tc.color};
|
|
592
|
+
${So(Ac.size,Tc.iconSize)};
|
|
593
|
+
${So(rl.color,Tc.rippleColor)};
|
|
571
594
|
|
|
572
|
-
border-radius: ${
|
|
573
|
-
padding: ${
|
|
574
|
-
background-color: ${
|
|
595
|
+
border-radius: ${Tc.borderRadius};
|
|
596
|
+
padding: ${Tc.verticalPadding} ${Tc.horizontalPadding};
|
|
597
|
+
background-color: ${Tc.backgroundColor};
|
|
575
598
|
color: var(--ft-button-internal-color);
|
|
576
599
|
-webkit-mask-image: radial-gradient(white, black);
|
|
577
600
|
}
|
|
578
601
|
|
|
579
602
|
.ft-button.ft-button--outlined {
|
|
580
603
|
border: 1px solid var(--ft-button-internal-color);
|
|
581
|
-
padding: calc(${
|
|
604
|
+
padding: calc(${Tc.verticalPadding} - 1px) calc(${Tc.horizontalPadding} - 1px);
|
|
582
605
|
}
|
|
583
606
|
|
|
584
607
|
.ft-button.ft-button--dense {
|
|
585
|
-
padding: ${
|
|
586
|
-
border-radius: ${
|
|
587
|
-
gap: ${
|
|
608
|
+
padding: ${Gc} ${Vc};
|
|
609
|
+
border-radius: ${Zc};
|
|
610
|
+
gap: ${qc};
|
|
588
611
|
}
|
|
589
612
|
|
|
590
613
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
591
|
-
padding: calc(${
|
|
614
|
+
padding: calc(${Gc} - 1px) calc(${Vc} - 1px);
|
|
592
615
|
}
|
|
593
616
|
|
|
594
617
|
.ft-button:not([disabled]):hover {
|
|
@@ -596,22 +619,22 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
596
619
|
}
|
|
597
620
|
|
|
598
621
|
.ft-button--round {
|
|
599
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
622
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Tc.verticalPadding});
|
|
600
623
|
}
|
|
601
624
|
|
|
602
625
|
.ft-button--round.ft-button--dense {
|
|
603
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
626
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Gc});
|
|
604
627
|
}
|
|
605
628
|
|
|
606
629
|
.ft-button[disabled] {
|
|
607
630
|
filter: grayscale(1);
|
|
608
|
-
opacity: ${
|
|
631
|
+
opacity: ${Tc.opacityDisabled};
|
|
609
632
|
}
|
|
610
633
|
|
|
611
634
|
.ft-button.ft-button--primary {
|
|
612
|
-
background-color: ${
|
|
613
|
-
--ft-button-internal-color: ${
|
|
614
|
-
${
|
|
635
|
+
background-color: ${Hc.backgroundColor};
|
|
636
|
+
--ft-button-internal-color: ${Hc.color};
|
|
637
|
+
${So(rl.color,Hc.rippleColor)};
|
|
615
638
|
}
|
|
616
639
|
|
|
617
640
|
.ft-button:focus {
|
|
@@ -624,13 +647,13 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
624
647
|
white-space: nowrap;
|
|
625
648
|
text-overflow: ellipsis;
|
|
626
649
|
display: block;
|
|
627
|
-
margin: 0 ${
|
|
628
|
-
${
|
|
629
|
-
${
|
|
650
|
+
margin: 0 ${Tc.iconPadding};
|
|
651
|
+
${So(mc.fontSize,"1em")};
|
|
652
|
+
${So(mc.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
630
653
|
}
|
|
631
654
|
|
|
632
655
|
.ft-button--dense .ft-button--label {
|
|
633
|
-
margin: 0 ${
|
|
656
|
+
margin: 0 ${qc};
|
|
634
657
|
}
|
|
635
658
|
|
|
636
659
|
.ft-button--label[hidden] {
|
|
@@ -643,13 +666,13 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
643
666
|
}
|
|
644
667
|
|
|
645
668
|
.ft-button--label[hidden] + ft-icon {
|
|
646
|
-
margin: 0 calc(${
|
|
647
|
-
padding: 0 ${
|
|
669
|
+
margin: 0 calc(${Tc.horizontalPadding} * -1);
|
|
670
|
+
padding: 0 ${Tc.verticalPadding};
|
|
648
671
|
}
|
|
649
672
|
|
|
650
673
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
651
|
-
margin: 0 calc(${
|
|
652
|
-
padding: 0 ${
|
|
674
|
+
margin: 0 calc(${Vc} * -1);
|
|
675
|
+
padding: 0 ${Gc};
|
|
653
676
|
}
|
|
654
677
|
|
|
655
678
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -658,10 +681,10 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
658
681
|
}
|
|
659
682
|
|
|
660
683
|
ft-loader {
|
|
661
|
-
${
|
|
662
|
-
${
|
|
684
|
+
${So(Pc.size,Tc.iconSize)};
|
|
685
|
+
${So(Pc.color,"var(--ft-button-internal-color)")};
|
|
663
686
|
}
|
|
664
|
-
`,
|
|
687
|
+
`,Yr],Jc=wo.create("--ft-tooltip-distance","","SIZE","4px"),Xc=wo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Qc=wo.create("--ft-tooltip-background-color","","COLOR","#666666"),th=wo.create("--ft-tooltip-z-index","","NUMBER","100"),eh=wo.external(Si.borderRadiusS,"Design system"),oh=wo.create("--ft-tooltip-max-width","","SIZE","150px"),ih=pt`
|
|
665
688
|
.ft-tooltip--container {
|
|
666
689
|
display: block;
|
|
667
690
|
}
|
|
@@ -676,21 +699,21 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
676
699
|
box-sizing: border-box;
|
|
677
700
|
overflow: hidden;
|
|
678
701
|
width: max-content;
|
|
679
|
-
max-width: ${
|
|
702
|
+
max-width: ${oh};
|
|
680
703
|
text-align: center;
|
|
681
|
-
padding: ${
|
|
682
|
-
z-index: ${
|
|
704
|
+
padding: ${Jc};
|
|
705
|
+
z-index: ${th};
|
|
683
706
|
}
|
|
684
707
|
|
|
685
708
|
.ft-tooltip--content {
|
|
686
709
|
padding: 4px 8px;
|
|
687
|
-
border-radius: ${
|
|
688
|
-
background-color: ${
|
|
689
|
-
color: ${
|
|
710
|
+
border-radius: ${eh};
|
|
711
|
+
background-color: ${Qc};
|
|
712
|
+
color: ${Xc};
|
|
690
713
|
position: relative;
|
|
691
714
|
word-break: break-word;
|
|
692
715
|
}
|
|
693
|
-
`;var
|
|
716
|
+
`;var rh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nh extends _r{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 lo,this.revealDebouncer=new lo}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
|
|
694
717
|
<div part="container"
|
|
695
718
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
696
719
|
@mouseenter=${this.onHover}
|
|
@@ -708,43 +731,37 @@ class Ws extends rn{constructor(t){if(super(t),this.et=st,t.type!==en)throw Erro
|
|
|
708
731
|
</div>
|
|
709
732
|
</div>
|
|
710
733
|
</div>
|
|
711
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
712
|
-
/**
|
|
713
|
-
* @license
|
|
714
|
-
* Copyright 2017 Google LLC
|
|
715
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
716
|
-
*/
|
|
717
|
-
function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ll.prototype,"slotNodes",void 0),sl([A(".ft-tooltip--container")],ll.prototype,"container",void 0),sl([A(".ft-tooltip")],ll.prototype,"tooltip",void 0),sl([A(".ft-tooltip--content")],ll.prototype,"tooltipContent",void 0),sl([I()],ll.prototype,"visible",void 0),sl([U({passive:!0})],ll.prototype,"onTouch",null),sl([U({passive:!0})],ll.prototype,"onHover",null),sl([U({passive:!0})],ll.prototype,"onOut",null),sl([U({passive:!0})],ll.prototype,"onClick",null),j("ft-tooltip")(ll);class cl extends Ho{render(){return he`
|
|
734
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ir(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}nh.elementDefinitions={"ft-typography":zc},nh.styles=ih,rh([we()],nh.prototype,"text",void 0),rh([we({type:Boolean})],nh.prototype,"manual",void 0),rh([we({type:Boolean})],nh.prototype,"inline",void 0),rh([we({type:Number})],nh.prototype,"delay",void 0),rh([we()],nh.prototype,"position",void 0),rh([Ie()],nh.prototype,"slotNodes",void 0),rh([Ee(".ft-tooltip--container")],nh.prototype,"container",void 0),rh([Ee(".ft-tooltip")],nh.prototype,"tooltip",void 0),rh([Ee(".ft-tooltip--content")],nh.prototype,"tooltipContent",void 0),rh([Se()],nh.prototype,"visible",void 0),rh([Ce({passive:!0})],nh.prototype,"onTouch",null),rh([Ce({passive:!0})],nh.prototype,"onHover",null),rh([Ce({passive:!0})],nh.prototype,"onOut",null),rh([Ce({passive:!0})],nh.prototype,"onClick",null),bo("ft-tooltip")(nh);class ah extends _r{render(){return Jt`
|
|
718
735
|
<div class="ft-loader">
|
|
719
736
|
<div></div>
|
|
720
737
|
<div></div>
|
|
721
738
|
<div></div>
|
|
722
739
|
<div></div>
|
|
723
740
|
</div>
|
|
724
|
-
`}}
|
|
741
|
+
`}}ah.styles=_c,bo("ft-loader")(ah);var sh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class lh extends(ns(_r,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(Jt`
|
|
725
742
|
<button part="button"
|
|
726
|
-
class="${
|
|
743
|
+
class="${He(this.buttonClasses)}"
|
|
727
744
|
aria-label="${this.getLabel()}"
|
|
728
745
|
?disabled=${this.isDisabled()}>
|
|
729
746
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
730
747
|
<ft-typography part="label"
|
|
731
748
|
variant=${this.typographyVariant}
|
|
732
749
|
element="span"
|
|
733
|
-
class="ft-button--label ${
|
|
750
|
+
class="ft-button--label ${fs?"ft-safari-ellipsis-fix":""}"
|
|
734
751
|
?hidden=${!this.hasTextContent()}>
|
|
735
752
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
736
753
|
</ft-typography>
|
|
737
754
|
${this.resolveIcon()}
|
|
738
755
|
</button>
|
|
739
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
756
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Jt`
|
|
740
757
|
<ft-tooltip part="tooltip"
|
|
741
758
|
text="${this.getLabel()}"
|
|
742
759
|
position="${this.tooltipPosition}">
|
|
743
760
|
${t}
|
|
744
761
|
</ft-tooltip>
|
|
745
|
-
`:t}resolveIcon(){return this.loading?
|
|
746
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
747
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
762
|
+
`:t}resolveIcon(){return this.loading?Jt`
|
|
763
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Jt`
|
|
764
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lh.elementDefinitions={"ft-ripple":dl,"ft-tooltip":nh,"ft-typography":zc,"ft-icon":Dc,"ft-loader":ah},sh([we({type:String,reflect:!0})],lh.prototype,"role",void 0),sh([we()],lh.prototype,"type",void 0),sh([we({type:Boolean})],lh.prototype,"disabled",void 0),sh([we()],lh.prototype,"label",void 0),sh([we()],lh.prototype,"icon",void 0),sh([we()],lh.prototype,"iconVariant",void 0),sh([we({type:Boolean})],lh.prototype,"trailingIcon",void 0),sh([we({type:Boolean})],lh.prototype,"loading",void 0),sh([we()],lh.prototype,"tooltipPosition",void 0),sh([we({type:Boolean})],lh.prototype,"hideTooltip",void 0),sh([we({type:Boolean})],lh.prototype,"forceTooltip",void 0),sh([Ee(".ft-button")],lh.prototype,"button",void 0),sh([Ee(".ft-button--label slot")],lh.prototype,"slottedContent",void 0);var ch=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hh extends lh{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}hh.styles=[Xr,Yc],ch([we({type:Boolean})],hh.prototype,"primary",void 0),ch([we({type:Boolean})],hh.prototype,"outlined",void 0),ch([we({type:Boolean})],hh.prototype,"dense",void 0),ch([we({type:Boolean})],hh.prototype,"round",void 0);const fh=[pt`
|
|
748
765
|
:host {
|
|
749
766
|
display: inline-block;
|
|
750
767
|
max-width: 100%;
|
|
@@ -794,7 +811,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
794
811
|
}
|
|
795
812
|
|
|
796
813
|
.ft-button:focus-visible {
|
|
797
|
-
outline-color: ${
|
|
814
|
+
outline-color: ${Qo.focusFocusRingColor};
|
|
798
815
|
outline-style: solid;
|
|
799
816
|
}
|
|
800
817
|
|
|
@@ -823,146 +840,146 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
823
840
|
/** Primary styles **/
|
|
824
841
|
|
|
825
842
|
.ft-button--primary {
|
|
826
|
-
${
|
|
843
|
+
${So(Pc.color,Qo.primaryIconColor)};
|
|
827
844
|
|
|
828
|
-
${
|
|
829
|
-
${
|
|
830
|
-
${
|
|
831
|
-
${
|
|
832
|
-
${
|
|
845
|
+
${So(rl.color,Qo.primaryStateLayerColor)};
|
|
846
|
+
${So(rl.opacityContentOnSurfaceHover,Qo.primaryHoverStateLayerOpacity)};
|
|
847
|
+
${So(rl.opacityContentOnSurfaceFocused,Qo.primaryFocusStateLayerOpacity)};
|
|
848
|
+
${So(rl.opacityContentOnSurfaceSelected,Qo.primaryActiveStateLayerOpacity)};
|
|
849
|
+
${So(rl.opacityContentOnSurfacePressed,Qo.primaryActiveStateLayerOpacity)};
|
|
833
850
|
|
|
834
|
-
background-color: ${
|
|
835
|
-
color: ${
|
|
851
|
+
background-color: ${Qo.primaryBackgroundColor};
|
|
852
|
+
color: ${Qo.primaryColor};
|
|
836
853
|
border-style: none;
|
|
837
854
|
}
|
|
838
855
|
|
|
839
856
|
.ft-button--primary[disabled] {
|
|
840
|
-
opacity: ${
|
|
857
|
+
opacity: ${Qo.primaryDisabledComponentOpacity};
|
|
841
858
|
}
|
|
842
859
|
|
|
843
860
|
.ft-button--primary ft-icon {
|
|
844
|
-
color: ${
|
|
861
|
+
color: ${Qo.primaryIconColor};
|
|
845
862
|
}
|
|
846
863
|
|
|
847
864
|
/** Secondary styles **/
|
|
848
865
|
|
|
849
866
|
.ft-button--secondary {
|
|
850
|
-
${
|
|
867
|
+
${So(Pc.color,Qo.secondaryIconColor)};
|
|
851
868
|
|
|
852
|
-
${
|
|
853
|
-
${
|
|
854
|
-
${
|
|
855
|
-
${
|
|
856
|
-
${
|
|
869
|
+
${So(rl.color,Qo.secondaryStateLayerColor)};
|
|
870
|
+
${So(rl.opacityContentOnSurfaceHover,Qo.secondaryHoverStateLayerOpacity)};
|
|
871
|
+
${So(rl.opacityContentOnSurfaceFocused,Qo.secondaryFocusStateLayerOpacity)};
|
|
872
|
+
${So(rl.opacityContentOnSurfaceSelected,Qo.secondaryActiveStateLayerOpacity)};
|
|
873
|
+
${So(rl.opacityContentOnSurfacePressed,Qo.secondaryActiveStateLayerOpacity)};
|
|
857
874
|
|
|
858
|
-
background-color: ${
|
|
859
|
-
color: ${
|
|
860
|
-
border-color: ${
|
|
875
|
+
background-color: ${Qo.secondaryBackgroundColor};
|
|
876
|
+
color: ${Qo.secondaryColor};
|
|
877
|
+
border-color: ${Qo.secondaryBorderColor};
|
|
861
878
|
border-style: solid;
|
|
862
879
|
}
|
|
863
880
|
|
|
864
881
|
.ft-button--secondary[disabled] {
|
|
865
|
-
opacity: ${
|
|
882
|
+
opacity: ${Qo.secondaryDisabledComponentOpacity};
|
|
866
883
|
}
|
|
867
884
|
|
|
868
885
|
.ft-button--secondary ft-icon {
|
|
869
|
-
color: ${
|
|
886
|
+
color: ${Qo.secondaryIconColor};
|
|
870
887
|
}
|
|
871
888
|
|
|
872
889
|
/** Tertiary styles **/
|
|
873
890
|
|
|
874
891
|
.ft-button--tertiary {
|
|
875
|
-
${
|
|
892
|
+
${So(Pc.color,Qo.tertiaryIconColor)};
|
|
876
893
|
|
|
877
|
-
${
|
|
878
|
-
${
|
|
879
|
-
${
|
|
880
|
-
${
|
|
881
|
-
${
|
|
894
|
+
${So(rl.color,Qo.tertiaryStateLayerColor)};
|
|
895
|
+
${So(rl.opacityContentOnSurfaceHover,Qo.tertiaryHoverStateLayerOpacity)};
|
|
896
|
+
${So(rl.opacityContentOnSurfaceFocused,Qo.tertiaryFocusStateLayerOpacity)};
|
|
897
|
+
${So(rl.opacityContentOnSurfaceSelected,Qo.tertiaryActiveStateLayerOpacity)};
|
|
898
|
+
${So(rl.opacityContentOnSurfacePressed,Qo.tertiaryActiveStateLayerOpacity)};
|
|
882
899
|
|
|
883
|
-
background-color: ${
|
|
884
|
-
color: ${
|
|
900
|
+
background-color: ${Qo.tertiaryBackgroundColor};
|
|
901
|
+
color: ${Qo.tertiaryColor};
|
|
885
902
|
border-style: none;
|
|
886
903
|
}
|
|
887
904
|
|
|
888
905
|
.ft-button--tertiary[disabled] {
|
|
889
|
-
opacity: ${
|
|
906
|
+
opacity: ${Qo.tertiaryDisabledComponentOpacity};
|
|
890
907
|
}
|
|
891
908
|
|
|
892
909
|
.ft-button--tertiary ft-icon {
|
|
893
|
-
color: ${
|
|
910
|
+
color: ${Qo.tertiaryIconColor};
|
|
894
911
|
}
|
|
895
912
|
|
|
896
913
|
/** Neutral styles **/
|
|
897
914
|
|
|
898
915
|
.ft-button--neutral {
|
|
899
|
-
${
|
|
916
|
+
${So(Pc.color,Qo.neutralIconColor)};
|
|
900
917
|
|
|
901
|
-
${
|
|
902
|
-
${
|
|
903
|
-
${
|
|
904
|
-
${
|
|
905
|
-
${
|
|
918
|
+
${So(rl.backgroundColor,Qo.neutralStateLayerColor)};
|
|
919
|
+
${So(rl.opacityContentOnSurfaceHover,Qo.neutralHoverStateLayerOpacity)};
|
|
920
|
+
${So(rl.opacityContentOnSurfaceFocused,Qo.neutralFocusStateLayerOpacity)};
|
|
921
|
+
${So(rl.opacityContentOnSurfaceSelected,Qo.neutralActiveStateLayerOpacity)};
|
|
922
|
+
${So(rl.opacityContentOnSurfacePressed,Qo.neutralActiveStateLayerOpacity)};
|
|
906
923
|
|
|
907
|
-
background-color: ${
|
|
908
|
-
color: ${
|
|
924
|
+
background-color: ${Qo.neutralBackgroundColor};
|
|
925
|
+
color: ${Qo.neutralColor};
|
|
909
926
|
border-style: none;
|
|
910
927
|
}
|
|
911
928
|
|
|
912
929
|
.ft-button--neutral[disabled] {
|
|
913
|
-
opacity: ${
|
|
930
|
+
opacity: ${Qo.neutralDisabledComponentOpacity};
|
|
914
931
|
}
|
|
915
932
|
|
|
916
933
|
.ft-button--neutral ft-icon {
|
|
917
|
-
color: ${
|
|
934
|
+
color: ${Qo.neutralIconColor};
|
|
918
935
|
}
|
|
919
936
|
|
|
920
937
|
/** Large styles **/
|
|
921
938
|
|
|
922
939
|
.ft-button--large {
|
|
923
|
-
${
|
|
924
|
-
${
|
|
940
|
+
${So(Ac.size,Qo.largeIconSize)};
|
|
941
|
+
${So(Pc.size,Qo.largeIconSize)};
|
|
925
942
|
|
|
926
|
-
height: ${
|
|
927
|
-
padding: 0 ${
|
|
928
|
-
gap: ${
|
|
929
|
-
border-radius: ${
|
|
930
|
-
border-width: ${
|
|
943
|
+
height: ${Qo.largeHeight};
|
|
944
|
+
padding: 0 ${Qo.largeHorizontalPadding};
|
|
945
|
+
gap: ${Qo.largeGap};
|
|
946
|
+
border-radius: ${Qo.largeBorderRadius};
|
|
947
|
+
border-width: ${Qo.largeBorderWidth};
|
|
931
948
|
}
|
|
932
949
|
|
|
933
950
|
.ft-button--large:focus-visible {
|
|
934
|
-
outline-width: ${
|
|
935
|
-
outline-offset: ${
|
|
951
|
+
outline-width: ${Qo.largeFocusOutlineWidth};
|
|
952
|
+
outline-offset: ${Qo.largeFocusOutlineOffset};
|
|
936
953
|
}
|
|
937
954
|
|
|
938
955
|
.ft-button--large.ft-button--icon-only {
|
|
939
|
-
width: ${
|
|
956
|
+
width: ${Qo.largeIconOnlyWidth};
|
|
940
957
|
padding: unset;
|
|
941
958
|
}
|
|
942
959
|
|
|
943
960
|
/** Small styles **/
|
|
944
961
|
|
|
945
962
|
.ft-button--small {
|
|
946
|
-
${
|
|
947
|
-
${
|
|
963
|
+
${So(Ac.size,Qo.smallIconSize)};
|
|
964
|
+
${So(Pc.size,Qo.smallIconSize)};
|
|
948
965
|
|
|
949
|
-
height: ${
|
|
950
|
-
padding: 0 ${
|
|
951
|
-
gap: ${
|
|
952
|
-
border-radius: ${
|
|
953
|
-
border-width: ${
|
|
966
|
+
height: ${Qo.smallHeight};
|
|
967
|
+
padding: 0 ${Qo.smallHorizontalPadding};
|
|
968
|
+
gap: ${Qo.smallGap};
|
|
969
|
+
border-radius: ${Qo.smallBorderRadius};
|
|
970
|
+
border-width: ${Qo.smallBorderWidth};
|
|
954
971
|
}
|
|
955
972
|
|
|
956
973
|
.ft-button--small:focus-visible {
|
|
957
|
-
outline-width: ${
|
|
958
|
-
outline-offset: ${
|
|
974
|
+
outline-width: ${Qo.smallFocusOutlineWidth};
|
|
975
|
+
outline-offset: ${Qo.smallFocusOutlineOffset};
|
|
959
976
|
}
|
|
960
977
|
|
|
961
978
|
.ft-button--small.ft-button--icon-only {
|
|
962
|
-
width: ${
|
|
979
|
+
width: ${Qo.smallIconOnlyWidth};
|
|
963
980
|
padding: unset;
|
|
964
981
|
}
|
|
965
|
-
`,
|
|
982
|
+
`,Yr];var ph=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dh extends lh{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?vl.caption1medium:vl.body2medium}}dh.styles=[Xr,fh],ph([we({type:Boolean})],dh.prototype,"primary",void 0),ph([we({type:Boolean})],dh.prototype,"secondary",void 0),ph([we({type:Boolean})],dh.prototype,"tertiary",void 0),ph([we({type:Boolean})],dh.prototype,"neutral",void 0),ph([we({type:Boolean})],dh.prototype,"small",void 0),bo("ft-button")(hh),bo("ftds-button")(dh);const uh=wo.extend("--ft-chip-color","",Si.colorOnSurface),gh={backgroundColor:wo.extend("--ft-chip-background-color","",Si.colorSurface),color:uh,fontSize:wo.extend("--ft-chip-font-size","",Ql.fontSize),iconSize:wo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:wo.extend("--ft-chip-ripple-color","",uh),horizontalPadding:wo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:wo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:wo.external(Si.colorOutline,"Design system"),opacityDisabled:wo.external(Si.colorOpacityDisabled,"Design system")},yh=wo.extend("--ft-chip-highlighted-color","",wo.extend("--ft-chip-color","",Si.colorOnPrimary)),bh={backgroundColor:wo.extend("--ft-chip-highlighted-background-color","",wo.extend("--ft-chip-background-color","",Si.colorPrimary)),color:yh,rippleColor:wo.extend("--ft-chip-highlighted-ripple-color","",yh)},mh=wo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),vh=wo.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),xh=[Yr,pt`
|
|
966
983
|
:host {
|
|
967
984
|
display: inline-block;
|
|
968
985
|
max-width: 100%;
|
|
@@ -978,20 +995,20 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
978
995
|
box-sizing: border-box;
|
|
979
996
|
pointer-events: auto;
|
|
980
997
|
|
|
981
|
-
--ft-chip-internal-font-size: ${
|
|
998
|
+
--ft-chip-internal-font-size: ${gh.fontSize};
|
|
982
999
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
983
|
-
${
|
|
984
|
-
--ft-chip-internal-vertical-padding: ${
|
|
985
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1000
|
+
${So(Ac.size,gh.iconSize)};
|
|
1001
|
+
--ft-chip-internal-vertical-padding: ${gh.verticalPadding};
|
|
1002
|
+
--ft-chip-internal-horizontal-padding: ${gh.horizontalPadding};
|
|
986
1003
|
--ft-chip-internal-icon-padding: 3px;
|
|
987
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
1004
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${gh.iconSize});
|
|
988
1005
|
|
|
989
|
-
border: 1px solid ${
|
|
990
|
-
color: ${
|
|
991
|
-
${
|
|
1006
|
+
border: 1px solid ${gh.colorOutline};
|
|
1007
|
+
color: ${gh.color};
|
|
1008
|
+
${So(rl.color,gh.rippleColor)};
|
|
992
1009
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
993
1010
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
994
|
-
background-color: ${
|
|
1011
|
+
background-color: ${gh.backgroundColor};
|
|
995
1012
|
line-height: var(--ft-chip-internal-content-height);
|
|
996
1013
|
}
|
|
997
1014
|
|
|
@@ -1001,8 +1018,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1001
1018
|
|
|
1002
1019
|
.ft-chip--dense {
|
|
1003
1020
|
--ft-chip-internal-icon-padding: 3px;
|
|
1004
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1005
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1021
|
+
--ft-chip-internal-vertical-padding: ${vh};
|
|
1022
|
+
--ft-chip-internal-horizontal-padding: ${mh};
|
|
1006
1023
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1007
1024
|
}
|
|
1008
1025
|
|
|
@@ -1014,15 +1031,15 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1014
1031
|
cursor: default;
|
|
1015
1032
|
pointer-events: none;
|
|
1016
1033
|
filter: grayscale(1);
|
|
1017
|
-
opacity: ${
|
|
1034
|
+
opacity: ${gh.opacityDisabled};
|
|
1018
1035
|
}
|
|
1019
1036
|
|
|
1020
1037
|
.ft-chip--highlighted {
|
|
1021
1038
|
border: none;
|
|
1022
1039
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
1023
|
-
background-color: ${
|
|
1024
|
-
${
|
|
1025
|
-
color: ${
|
|
1040
|
+
background-color: ${bh.backgroundColor};
|
|
1041
|
+
${So(rl.color,bh.rippleColor)};
|
|
1042
|
+
color: ${bh.color};
|
|
1026
1043
|
}
|
|
1027
1044
|
|
|
1028
1045
|
.ft-chip--clickable {
|
|
@@ -1052,9 +1069,9 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1052
1069
|
}
|
|
1053
1070
|
|
|
1054
1071
|
.ft-chip--icon-button {
|
|
1055
|
-
${
|
|
1056
|
-
${
|
|
1057
|
-
${
|
|
1072
|
+
${So(Tc.iconSize,gh.iconSize)};
|
|
1073
|
+
${So(Tc.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1074
|
+
${So(Tc.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1058
1075
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
1059
1076
|
}
|
|
1060
1077
|
|
|
@@ -1062,8 +1079,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1062
1079
|
vertical-align: bottom;
|
|
1063
1080
|
display: block;
|
|
1064
1081
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
1065
|
-
${
|
|
1066
|
-
${
|
|
1082
|
+
${So(Ql.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1083
|
+
${So(Ql.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
1067
1084
|
}
|
|
1068
1085
|
|
|
1069
1086
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1099,8 +1116,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1099
1116
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1100
1117
|
order: -1;
|
|
1101
1118
|
}
|
|
1102
|
-
`];var
|
|
1103
|
-
<div class="${
|
|
1119
|
+
`];var Oh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wh extends CustomEvent{constructor(){super("icon-click")}}class Sh extends _r{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fs};return Jt`
|
|
1120
|
+
<div class="${He(t)}"
|
|
1104
1121
|
aria-label="${this.getLabel()}"
|
|
1105
1122
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1106
1123
|
@keyup=${this.onKeyUp}>
|
|
@@ -1110,7 +1127,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1110
1127
|
</ft-typography>
|
|
1111
1128
|
${this.internalIcon?this.renderIcon():null}
|
|
1112
1129
|
</div>
|
|
1113
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1130
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Jt`
|
|
1114
1131
|
<ft-button round
|
|
1115
1132
|
class="ft-chip--icon-button"
|
|
1116
1133
|
@click=${this.onIconClick}
|
|
@@ -1118,28 +1135,28 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1118
1135
|
icon="${this.internalIcon}"
|
|
1119
1136
|
label="${this.iconLabel}"
|
|
1120
1137
|
></ft-button>
|
|
1121
|
-
`:
|
|
1138
|
+
`:Jt`
|
|
1122
1139
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
1123
1140
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
1124
1141
|
</div>
|
|
1125
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
1126
|
-
`;var
|
|
1142
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new wh))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new wh))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Sh.elementDefinitions={"ft-ripple":dl,"ft-typography":zc,"ft-icon":Dc,"ft-button":hh},Sh.styles=xh,Oh([we({type:Boolean})],Sh.prototype,"highlighted",void 0),Oh([we({type:Boolean})],Sh.prototype,"removable",void 0),Oh([we({type:Boolean})],Sh.prototype,"disabled",void 0),Oh([we({type:Boolean})],Sh.prototype,"clickable",void 0),Oh([we({type:Boolean})],Sh.prototype,"iconClickable",void 0),Oh([we({type:Boolean})],Sh.prototype,"dense",void 0),Oh([we({type:Boolean})],Sh.prototype,"multiLine",void 0),Oh([we()],Sh.prototype,"label",void 0),Oh([we()],Sh.prototype,"iconLabel",void 0),Oh([we()],Sh.prototype,"icon",void 0),Oh([we()],Sh.prototype,"iconVariant",void 0),Oh([we({type:Boolean})],Sh.prototype,"trailingIcon",void 0),Oh([Ee("ft-typography slot")],Sh.prototype,"slottedContent",void 0),bo("ft-chip")(Sh);const Ch=pt`
|
|
1143
|
+
`;var Nh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Eh=Symbol("i18nAttributes"),$h=Symbol("i18nProperties"),kh=Symbol("i18nUnsubs");function Rh(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ms:_s}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,o;null===(e=this[Eh])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[$h])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Eh])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[$h])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[$h])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Eh])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[kh].has(t)||this[kh].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[kh].forEach((t=>t())),this[kh].clear()}}return e=kh,Nh([we({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ih extends(Rh(_r)){}class Lh extends(Rh(dn)){}var Uh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wh extends Lh{constructor(){super(),this.editorMode=!1,this.addStore(As)}render(){return this.key&&this.context?Jt`
|
|
1127
1144
|
<span class="ft-i18n">
|
|
1128
1145
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1129
1146
|
</span>
|
|
1130
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1131
|
-
`;var
|
|
1147
|
+
`:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Wh.elementDefinitions={},Wh.styles=Ch,Uh([rn()],Wh.prototype,"editorMode",void 0),Uh([we()],Wh.prototype,"context",void 0),Uh([we()],Wh.prototype,"key",void 0),Uh([mo([])],Wh.prototype,"args",void 0),Uh([we()],Wh.prototype,"defaultMessage",void 0);class zh{static build(t){return new zh(t)}static fromGwt(t){return new zh(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)=>_s.resolveMessage(this.name,e,...t)})}}bo("ft-i18n")(Wh);const Ah=pt`
|
|
1148
|
+
`;var Bh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fh extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class jh extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Dh extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Ph extends dn{get stateManager(){if(null==this._stateManager){const t=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Xs.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),t),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(As)}render(){return Jt`
|
|
1132
1149
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1133
|
-
`}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),t.has("openExternalDocumentInNewTab")&&void 0!==this.openExternalDocumentInNewTab&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab)}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
|
|
1134
|
-
`,
|
|
1150
|
+
`}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),t.has("openExternalDocumentInNewTab")&&void 0!==this.openExternalDocumentInNewTab&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab)}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 jh(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Dh(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 Fh(t))}reloadSavedSearches(){Vs.clearMySearches()}clear(){this.stateManager.clear()}}Ph.elementDefinitions={},Ph.styles=Ah,Bh([we()],Ph.prototype,"query",void 0),Bh([we()],Ph.prototype,"contentLocale",void 0),Bh([we({type:Number})],Ph.prototype,"pageSize",void 0),Bh([we({type:Boolean})],Ph.prototype,"searchInDocumentTitlesOnly",void 0),Bh([we()],Ph.prototype,"scope",void 0),Bh([we({type:Boolean})],Ph.prototype,"ignoreEmptyQuery",void 0),Bh([rn({store:As.name})],Ph.prototype,"openExternalDocumentInNewTab",void 0),Bh([mo([])],Ph.prototype,"filters",void 0),Bh([mo([])],Ph.prototype,"sort",void 0),Bh([rn({store:"search"})],Ph.prototype,"request",void 0),Bh([rn({store:"search"})],Ph.prototype,"paging",void 0),Bh([rn({store:"search",selector:t=>t.spellcheck})],Ph.prototype,"autocorrect",void 0),Bh([rn({store:As.name})],Ph.prototype,"session",void 0),Bh([we({attribute:!1})],Ph.prototype,"searchServiceProvider",void 0),bo("ft-search-context")(Ph);const _h=pt`
|
|
1151
|
+
`,Mh=wo.extend("--ft-checkbox-text-color","",Si.colorOnSurfaceHigh),Th=wo.extend("--ft-checkbox-font-size","",wl.fontSize),Kh=wo.external(Si.colorPrimary,"Design system"),Hh=wo.external(Si.colorOnPrimary,"Design system"),Zh=wo.extend("--ft-checkbox-border-color","",Si.colorOnSurfaceMedium),Gh=wo.external(Si.colorOnSurfaceDisabled,"Design system"),Vh=pt`
|
|
1135
1152
|
* {
|
|
1136
1153
|
box-sizing: border-box;
|
|
1137
1154
|
}
|
|
1138
1155
|
|
|
1139
1156
|
.ft-checkbox {
|
|
1140
1157
|
box-sizing: border-box;
|
|
1141
|
-
color: ${
|
|
1142
|
-
font-size: ${
|
|
1158
|
+
color: ${Mh};
|
|
1159
|
+
font-size: ${Th};
|
|
1143
1160
|
|
|
1144
1161
|
display: inline-flex;
|
|
1145
1162
|
align-items: center;
|
|
@@ -1147,7 +1164,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1147
1164
|
}
|
|
1148
1165
|
|
|
1149
1166
|
.ft-checkbox--disabled {
|
|
1150
|
-
color: ${
|
|
1167
|
+
color: ${Gh};
|
|
1151
1168
|
}
|
|
1152
1169
|
|
|
1153
1170
|
input {
|
|
@@ -1171,26 +1188,26 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1171
1188
|
|
|
1172
1189
|
.ft-checkbox--box {
|
|
1173
1190
|
display: flex;
|
|
1174
|
-
border: 2px solid ${
|
|
1191
|
+
border: 2px solid ${Zh};
|
|
1175
1192
|
border-radius: 2px;
|
|
1176
1193
|
|
|
1177
1194
|
width: 18px;
|
|
1178
1195
|
height: 18px;
|
|
1179
1196
|
|
|
1180
|
-
color: ${
|
|
1197
|
+
color: ${Hh};
|
|
1181
1198
|
}
|
|
1182
1199
|
|
|
1183
1200
|
|
|
1184
1201
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1185
1202
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1186
|
-
border-color: ${
|
|
1187
|
-
background-color: ${
|
|
1203
|
+
border-color: ${Kh};
|
|
1204
|
+
background-color: ${Kh};
|
|
1188
1205
|
}
|
|
1189
1206
|
|
|
1190
1207
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1191
|
-
border-color: ${
|
|
1208
|
+
border-color: ${Gh};
|
|
1192
1209
|
background-color: transparent;
|
|
1193
|
-
color: ${
|
|
1210
|
+
color: ${Gh};
|
|
1194
1211
|
}
|
|
1195
1212
|
|
|
1196
1213
|
.ft-checkbox--checkmark {
|
|
@@ -1209,8 +1226,8 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1209
1226
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1210
1227
|
opacity: 1;
|
|
1211
1228
|
}
|
|
1212
|
-
`;var
|
|
1213
|
-
<label class="${
|
|
1229
|
+
`;var qh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yh extends _r{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return Jt`
|
|
1230
|
+
<label class="${He(t)}" for="checkbox-input">
|
|
1214
1231
|
<div class="ft-checkbox--box-container">
|
|
1215
1232
|
<ft-ripple
|
|
1216
1233
|
?disabled=${this.disabled}
|
|
@@ -1235,14 +1252,14 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1235
1252
|
<slot></slot>
|
|
1236
1253
|
</ft-typography>
|
|
1237
1254
|
</label>
|
|
1238
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
1255
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Yh.elementDefinitions={"ft-ripple":dl,"ft-typography":zc},Yh.styles=Vh,qh([we()],Yh.prototype,"name",void 0),qh([we({type:Boolean,reflect:!0})],Yh.prototype,"checked",void 0),qh([we({type:Boolean})],Yh.prototype,"indeterminate",void 0),qh([we({type:Boolean})],Yh.prototype,"disabled",void 0),qh([Ee(".ft-checkbox")],Yh.prototype,"container",void 0),qh([Ee("ft-ripple")],Yh.prototype,"ripple",void 0),bo("ft-checkbox")(Yh);const Jh=wo.extend("--ft-radio-text-color","",Si.colorOnSurfaceHigh),Xh=wo.external(Si.colorPrimary,"Design system"),Qh=(wo.external(Si.colorOnPrimary,"Design system"),wo.extend("--ft-radio-border-color","",Si.colorOnSurfaceMedium)),tf=wo.external(Si.colorOnSurfaceDisabled,"Design system"),ef=pt`
|
|
1239
1256
|
* {
|
|
1240
1257
|
box-sizing: border-box;
|
|
1241
1258
|
}
|
|
1242
1259
|
|
|
1243
1260
|
.ft-radio {
|
|
1244
1261
|
box-sizing: border-box;
|
|
1245
|
-
color: ${
|
|
1262
|
+
color: ${Jh};
|
|
1246
1263
|
|
|
1247
1264
|
display: inline-flex;
|
|
1248
1265
|
align-items: center;
|
|
@@ -1250,7 +1267,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1250
1267
|
}
|
|
1251
1268
|
|
|
1252
1269
|
.ft-radio--disabled {
|
|
1253
|
-
color: ${
|
|
1270
|
+
color: ${tf};
|
|
1254
1271
|
}
|
|
1255
1272
|
|
|
1256
1273
|
input {
|
|
@@ -1273,7 +1290,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1273
1290
|
}
|
|
1274
1291
|
|
|
1275
1292
|
.ft-radio--box {
|
|
1276
|
-
border: 2px solid ${
|
|
1293
|
+
border: 2px solid ${Qh};
|
|
1277
1294
|
border-radius: 50%;
|
|
1278
1295
|
|
|
1279
1296
|
display: flex;
|
|
@@ -1286,7 +1303,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1286
1303
|
|
|
1287
1304
|
.ft-radio--box:after {
|
|
1288
1305
|
content: " ";
|
|
1289
|
-
background-color: ${
|
|
1306
|
+
background-color: ${Xh};
|
|
1290
1307
|
|
|
1291
1308
|
border-radius: 50%;
|
|
1292
1309
|
|
|
@@ -1298,7 +1315,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1298
1315
|
}
|
|
1299
1316
|
|
|
1300
1317
|
.ft-radio--checked .ft-radio--box {
|
|
1301
|
-
border-color: ${
|
|
1318
|
+
border-color: ${Xh};
|
|
1302
1319
|
}
|
|
1303
1320
|
|
|
1304
1321
|
|
|
@@ -1307,15 +1324,15 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1307
1324
|
}
|
|
1308
1325
|
|
|
1309
1326
|
.ft-radio--disabled .ft-radio--box {
|
|
1310
|
-
border-color: ${
|
|
1327
|
+
border-color: ${tf};
|
|
1311
1328
|
background-color: transparent;
|
|
1312
1329
|
}
|
|
1313
1330
|
|
|
1314
1331
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1315
|
-
background-color: ${
|
|
1332
|
+
background-color: ${tf};
|
|
1316
1333
|
}
|
|
1317
|
-
`;var
|
|
1318
|
-
<div class="${
|
|
1334
|
+
`;var of=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rf extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class nf extends _r{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Jt`
|
|
1335
|
+
<div class="${He(t)}">
|
|
1319
1336
|
<div class="ft-radio--box-container">
|
|
1320
1337
|
<ft-ripple
|
|
1321
1338
|
?disabled=${this.disabled}
|
|
@@ -1339,22 +1356,16 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1339
1356
|
</ft-typography>
|
|
1340
1357
|
</label>
|
|
1341
1358
|
</div>
|
|
1342
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
1359
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new rf(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new rf(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}nf.elementDefinitions={"ft-ripple":dl,"ft-typography":zc},nf.styles=ef,of([we()],nf.prototype,"value",void 0),of([we()],nf.prototype,"name",void 0),of([we({type:Boolean,reflect:!0})],nf.prototype,"checked",void 0),of([we({type:Boolean})],nf.prototype,"disabled",void 0),of([Ee(".ft-radio")],nf.prototype,"container",void 0),of([Ee("ft-ripple")],nf.prototype,"ripple",void 0),of([Ee("input")],nf.prototype,"input",void 0);const af=pt`
|
|
1343
1360
|
:host {
|
|
1344
1361
|
display: contents;
|
|
1345
1362
|
}
|
|
1346
|
-
`;var
|
|
1363
|
+
`;var sf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class lf extends _r{constructor(){super(...arguments),this.name=""}render(){return Jt`
|
|
1347
1364
|
<slot @slotchange=${this.onSlotChange}
|
|
1348
1365
|
@change=${this.onChange}
|
|
1349
1366
|
@keydown=${this.onKeyDown}
|
|
1350
1367
|
></slot>
|
|
1351
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
1352
|
-
/**
|
|
1353
|
-
* @license
|
|
1354
|
-
* Copyright 2021 Google LLC
|
|
1355
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1356
|
-
*/
|
|
1357
|
-
function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],fc.prototype,"radioButtons",void 0),j("ft-radio")(sc),j("ft-radio-group")(fc);const hc={borderRadiusM:Re.external(De.borderRadiusM,"Design system"),colorOutline:Re.external(De.colorOutline,"Design system"),colorOnSurface:Re.external(De.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(De.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Re.external(De.colorOnSurfaceDisabled,"Design system"),colorPrimary:Re.external(De.colorPrimary,"Design system"),colorOnPrimary:Re.external(De.colorOnPrimary,"Design system"),fontFamily:Re.external(ts.fontFamily,"Body2 typography"),fontSize:Re.external(ts.fontSize,"Body2 typography"),fontWeight:Re.external(ts.fontWeight,"Body2 typography"),letterSpacing:Re.external(ts.letterSpacing,"Body2 typography"),lineHeight:Re.external(ts.lineHeight,"Body2 typography"),textTransform:Re.external(ts.textTransform,"Body2 typography")},pc=Rt`
|
|
1368
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}lf.elementDefinitions={},lf.styles=af,sf([we()],lf.prototype,"name",void 0),sf([Re()],lf.prototype,"radioButtons",void 0),bo("ft-radio")(nf),bo("ft-radio-group")(lf);const cf={borderRadiusM:wo.external(Si.borderRadiusM,"Design system"),colorOutline:wo.external(Si.colorOutline,"Design system"),colorOnSurface:wo.external(Si.colorOnSurface,"Design system"),colorOnSurfaceMedium:wo.external(Si.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:wo.external(Si.colorOnSurfaceDisabled,"Design system"),colorPrimary:wo.external(Si.colorPrimary,"Design system"),colorOnPrimary:wo.external(Si.colorOnPrimary,"Design system"),fontFamily:wo.external(Ql.fontFamily,"Body2 typography"),fontSize:wo.external(Ql.fontSize,"Body2 typography"),fontWeight:wo.external(Ql.fontWeight,"Body2 typography"),letterSpacing:wo.external(Ql.letterSpacing,"Body2 typography"),lineHeight:wo.external(Ql.lineHeight,"Body2 typography"),textTransform:wo.external(Ql.textTransform,"Body2 typography")},hf=pt`
|
|
1358
1369
|
.ft-filter-level--container {
|
|
1359
1370
|
display: flex;
|
|
1360
1371
|
flex-direction: column;
|
|
@@ -1368,14 +1379,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1368
1379
|
flex-shrink: 0;
|
|
1369
1380
|
text-decoration: none;
|
|
1370
1381
|
position: relative;
|
|
1371
|
-
border-radius: ${
|
|
1382
|
+
border-radius: ${cf.borderRadiusM};
|
|
1372
1383
|
overflow: hidden;
|
|
1373
1384
|
display: flex;
|
|
1374
1385
|
align-items: center;
|
|
1375
1386
|
padding: 4px 4px;
|
|
1376
1387
|
gap: 4px;
|
|
1377
1388
|
cursor: pointer;
|
|
1378
|
-
color: ${
|
|
1389
|
+
color: ${cf.colorOnSurface};
|
|
1379
1390
|
}
|
|
1380
1391
|
|
|
1381
1392
|
.ft-filter-level--go-back:focus {
|
|
@@ -1404,7 +1415,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1404
1415
|
}
|
|
1405
1416
|
|
|
1406
1417
|
ft-button {
|
|
1407
|
-
${
|
|
1418
|
+
${So(Tc.color,cf.colorOnSurface)};
|
|
1408
1419
|
}
|
|
1409
1420
|
|
|
1410
1421
|
ft-radio, ft-checkbox {
|
|
@@ -1418,11 +1429,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1418
1429
|
|
|
1419
1430
|
.ft-filter-level--no-values {
|
|
1420
1431
|
margin: 10px 0;
|
|
1421
|
-
color: ${
|
|
1432
|
+
color: ${cf.colorOnSurfaceMedium};
|
|
1422
1433
|
}
|
|
1423
|
-
`;var
|
|
1434
|
+
`;var ff=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pf extends _r{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return Jt`
|
|
1424
1435
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1425
|
-
${null==this.parent?null:
|
|
1436
|
+
${null==this.parent?null:Jt`
|
|
1426
1437
|
<div tabindex="0"
|
|
1427
1438
|
part="controls go-back"
|
|
1428
1439
|
class="ft-filter-level--go-back"
|
|
@@ -1434,15 +1445,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1434
1445
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1435
1446
|
</div>
|
|
1436
1447
|
`}
|
|
1437
|
-
${0===this.options.length&&this.noValuesLabel?
|
|
1448
|
+
${0===this.options.length&&this.noValuesLabel?Jt`
|
|
1438
1449
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1439
1450
|
${this.noValuesLabel}
|
|
1440
1451
|
</ft-typography>
|
|
1441
|
-
`:
|
|
1442
|
-
${
|
|
1452
|
+
`:te}
|
|
1453
|
+
${Te(e,(t=>t.value),(t=>{var e;return Jt`
|
|
1443
1454
|
<div class="ft-filter-level--option" part="options">
|
|
1444
1455
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1445
|
-
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?
|
|
1456
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?te:Jt`
|
|
1446
1457
|
<ft-button icon="thin_arrow_right"
|
|
1447
1458
|
part="controls navigate-hierarchy"
|
|
1448
1459
|
label="${t.label}"
|
|
@@ -1452,7 +1463,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1452
1463
|
`}
|
|
1453
1464
|
</div>
|
|
1454
1465
|
`}))}
|
|
1455
|
-
${e.length<t.length?
|
|
1466
|
+
${e.length<t.length?Jt`
|
|
1456
1467
|
<ft-button
|
|
1457
1468
|
class="ft-filter-level--display-more"
|
|
1458
1469
|
icon="thin_arrow"
|
|
@@ -1461,19 +1472,19 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1461
1472
|
@click=${this.displayMore}>
|
|
1462
1473
|
${this.moreValuesButtonLabel}
|
|
1463
1474
|
</ft-button>
|
|
1464
|
-
`:
|
|
1475
|
+
`:te}
|
|
1465
1476
|
</div>
|
|
1466
|
-
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return
|
|
1477
|
+
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return Jt`
|
|
1467
1478
|
<ft-checkbox name="${this.filterId}"
|
|
1468
1479
|
part="multivalued-option"
|
|
1469
1480
|
data-value="${t.value}"
|
|
1470
1481
|
.checked=${t.selected}
|
|
1471
1482
|
.disabled=${this.disabled}
|
|
1472
|
-
.indeterminate=${
|
|
1483
|
+
.indeterminate=${po(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
1473
1484
|
@change=${e=>this.optionsChanged(e,t)}>
|
|
1474
1485
|
${t.renderOption?t.renderOption:t.label}
|
|
1475
1486
|
</ft-checkbox>
|
|
1476
|
-
`}buildMonoValuedOption(t){return
|
|
1487
|
+
`}buildMonoValuedOption(t){return Jt`
|
|
1477
1488
|
<ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
|
|
1478
1489
|
part="monovalued-option"
|
|
1479
1490
|
data-value="${t.value}"
|
|
@@ -1484,7 +1495,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1484
1495
|
@change=${t=>t.stopPropagation()}>
|
|
1485
1496
|
${t.renderOption?t.renderOption:t.label}
|
|
1486
1497
|
</ft-radio>
|
|
1487
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
1498
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}pf.elementDefinitions={"ft-button":hh,"ft-ripple":dl,"ft-typography":zc,"ft-checkbox":Yh,"ft-icon":Dc,"ft-radio":nf},pf.styles=hf,ff([we({type:String})],pf.prototype,"filterId",void 0),ff([we({type:Object})],pf.prototype,"parent",void 0),ff([we({type:Array})],pf.prototype,"options",void 0),ff([we({type:Boolean})],pf.prototype,"multivalued",void 0),ff([we({type:Boolean})],pf.prototype,"disabled",void 0),ff([we({type:Boolean})],pf.prototype,"hideSelectedOptions",void 0),ff([we({type:Boolean})],pf.prototype,"preventNavigation",void 0),ff([we({type:String})],pf.prototype,"filter",void 0),ff([we({type:String})],pf.prototype,"moreValuesButtonLabel",void 0),ff([we({type:String})],pf.prototype,"noValuesLabel",void 0),ff([we({type:Number})],pf.prototype,"displayedValuesLimit",void 0),ff([Ee(".ft-filter-level--container")],pf.prototype,"container",void 0),ff([Se()],pf.prototype,"displayedPages",void 0);const df={buttonsColor:wo.extend("--ft-snap-scroll-buttons-color","",Si.colorPrimary),buttonsZIndex:wo.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:wo.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:wo.external(Si.colorSurface,"Design system")},uf=pt`
|
|
1488
1499
|
.ft-snap-scroll {
|
|
1489
1500
|
box-sizing: border-box;
|
|
1490
1501
|
position: relative;
|
|
@@ -1519,7 +1530,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1519
1530
|
flex-wrap: nowrap;
|
|
1520
1531
|
align-items: flex-start;
|
|
1521
1532
|
justify-content: flex-start;
|
|
1522
|
-
gap: ${
|
|
1533
|
+
gap: ${df.gap};
|
|
1523
1534
|
}
|
|
1524
1535
|
|
|
1525
1536
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1562,11 +1573,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1562
1573
|
.ft-snap-scroll--next {
|
|
1563
1574
|
position: absolute;
|
|
1564
1575
|
display: flex;
|
|
1565
|
-
z-index: ${
|
|
1576
|
+
z-index: ${df.buttonsZIndex};
|
|
1566
1577
|
opacity: 1;
|
|
1567
1578
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1568
|
-
${
|
|
1569
|
-
${
|
|
1579
|
+
${So(Tc.backgroundColor,"transparent")};
|
|
1580
|
+
${So(Tc.color,df.buttonsColor)};
|
|
1570
1581
|
}
|
|
1571
1582
|
|
|
1572
1583
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1579,37 +1590,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1579
1590
|
top: 0;
|
|
1580
1591
|
left: -1px;
|
|
1581
1592
|
bottom: 0;
|
|
1582
|
-
background: linear-gradient(to right, ${
|
|
1593
|
+
background: linear-gradient(to right, ${df.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1583
1594
|
}
|
|
1584
1595
|
|
|
1585
1596
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1586
1597
|
top: -1px;
|
|
1587
1598
|
left: 0;
|
|
1588
1599
|
right: 0;
|
|
1589
|
-
background: linear-gradient(to bottom, ${
|
|
1600
|
+
background: linear-gradient(to bottom, ${df.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1590
1601
|
}
|
|
1591
1602
|
|
|
1592
1603
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1593
1604
|
top: 0;
|
|
1594
1605
|
right: -1px;
|
|
1595
1606
|
bottom: 0;
|
|
1596
|
-
background: linear-gradient(to left, ${
|
|
1607
|
+
background: linear-gradient(to left, ${df.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1597
1608
|
}
|
|
1598
1609
|
|
|
1599
1610
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1600
1611
|
left: 0;
|
|
1601
1612
|
right: 0;
|
|
1602
1613
|
bottom: -1px;
|
|
1603
|
-
background: linear-gradient(to top, ${
|
|
1614
|
+
background: linear-gradient(to top, ${df.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1604
1615
|
}
|
|
1605
1616
|
|
|
1606
1617
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1607
1618
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1608
1619
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1609
1620
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1610
|
-
background-color: ${
|
|
1621
|
+
background-color: ${df.colorSurface};
|
|
1611
1622
|
}
|
|
1612
|
-
`;var
|
|
1623
|
+
`;var gf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class yf extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class bf extends _r{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new lo(200),this.updateScrollDebouncer=new lo(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=He({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":fs}),e=this.controls&&this.withScroll;return Jt`
|
|
1613
1624
|
<div part="container" class="${t}">
|
|
1614
1625
|
<ft-button
|
|
1615
1626
|
class="ft-snap-scroll--previous"
|
|
@@ -1633,7 +1644,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1633
1644
|
@click=${this.next}
|
|
1634
1645
|
></ft-button>
|
|
1635
1646
|
</div>
|
|
1636
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1647
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new yf(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}bf.elementDefinitions={"ft-button":hh},bf.styles=uf,gf([we({type:Boolean})],bf.prototype,"horizontal",void 0),gf([we({type:Boolean})],bf.prototype,"hideScrollbar",void 0),gf([we({type:Boolean})],bf.prototype,"controls",void 0),gf([we({type:Boolean})],bf.prototype,"limitSize",void 0),gf([Se()],bf.prototype,"elements",void 0),gf([Se()],bf.prototype,"currentElement",void 0),gf([Se()],bf.prototype,"withScroll",void 0),gf([Se()],bf.prototype,"startReached",void 0),gf([Se()],bf.prototype,"endReached",void 0),gf([Ee(".ft-snap-scroll--content")],bf.prototype,"contentSlot",void 0),bo("ft-snap-scroll")(bf);const mf=wo.external(Si.colorOutline,"Design system"),vf=wo.external(Si.colorOnSurface,"Design system"),xf=wo.external(Si.colorOnSurfaceMedium,"Design system"),Of=wo.external(Si.colorPrimary,"Design system"),wf=wo.external(Si.colorSurface,"Design system"),Sf=wo.external(Si.transitionDuration,"Design system"),Cf=wo.external(Si.transitionTimingFunction,"Design system"),Nf=wo.extend("--ft-filter-label-color","",Si.colorOnSurface),Ef=wo.extend("--ft-filter-label-font-size","",wl.fontSize,"16px"),$f=[Nc,pt`
|
|
1637
1648
|
:host {
|
|
1638
1649
|
display: flex;
|
|
1639
1650
|
max-height: 100%;
|
|
@@ -1660,7 +1671,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1660
1671
|
.ft-filter--header ft-button {
|
|
1661
1672
|
flex-shrink: 0;
|
|
1662
1673
|
margin-left: auto;
|
|
1663
|
-
${
|
|
1674
|
+
${So(Tc.iconSize,"18px")};
|
|
1664
1675
|
}
|
|
1665
1676
|
|
|
1666
1677
|
.ft-filter--label {
|
|
@@ -1668,10 +1679,10 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1668
1679
|
flex-shrink: 1;
|
|
1669
1680
|
flex-grow: 1;
|
|
1670
1681
|
word-break: break-word;
|
|
1671
|
-
color: ${
|
|
1672
|
-
font-size: ${
|
|
1673
|
-
${
|
|
1674
|
-
${
|
|
1682
|
+
color: ${Nf};
|
|
1683
|
+
font-size: ${Ef};
|
|
1684
|
+
${So(wl.lineHeight,"22px")};
|
|
1685
|
+
${So(wl.fontWeight,"bold")};
|
|
1675
1686
|
}
|
|
1676
1687
|
|
|
1677
1688
|
.ft-filter--filter {
|
|
@@ -1682,8 +1693,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1682
1693
|
padding: 0 10px;
|
|
1683
1694
|
overflow: hidden;
|
|
1684
1695
|
height: 32px;
|
|
1685
|
-
transition: height ${
|
|
1686
|
-
margin ${
|
|
1696
|
+
transition: height ${Sf} ${Cf},
|
|
1697
|
+
margin ${Sf} ${Cf};
|
|
1687
1698
|
transition-delay: 500ms;
|
|
1688
1699
|
}
|
|
1689
1700
|
|
|
@@ -1696,15 +1707,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1696
1707
|
display: block;
|
|
1697
1708
|
width: 100%;
|
|
1698
1709
|
border-radius: 4px;
|
|
1699
|
-
border: 1px solid ${
|
|
1710
|
+
border: 1px solid ${mf};
|
|
1700
1711
|
padding: 4px;
|
|
1701
|
-
background-color: ${
|
|
1702
|
-
color: ${
|
|
1703
|
-
outline-color: ${
|
|
1712
|
+
background-color: ${wf};
|
|
1713
|
+
color: ${vf};
|
|
1714
|
+
outline-color: ${Of};
|
|
1704
1715
|
}
|
|
1705
1716
|
|
|
1706
1717
|
input::placeholder {
|
|
1707
|
-
color: ${
|
|
1718
|
+
color: ${xf};
|
|
1708
1719
|
}
|
|
1709
1720
|
|
|
1710
1721
|
input:placeholder-shown {
|
|
@@ -1720,7 +1731,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1720
1731
|
}
|
|
1721
1732
|
|
|
1722
1733
|
.ft-filter--separator {
|
|
1723
|
-
border-top: 1px solid ${
|
|
1734
|
+
border-top: 1px solid ${mf};
|
|
1724
1735
|
margin: 4px 10px;
|
|
1725
1736
|
}
|
|
1726
1737
|
|
|
@@ -1745,16 +1756,16 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1745
1756
|
slot:not([name]) {
|
|
1746
1757
|
display: none;
|
|
1747
1758
|
}
|
|
1748
|
-
`];var
|
|
1759
|
+
`];var kf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rf extends CustomEvent{constructor(t){super("change",{detail:t})}}class If extends _r{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 lo(300),this.changeDebouncer=new lo(10),this.lastDispatchedValues=[]}get flatOptions(){return po(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return po(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 Jt`
|
|
1749
1760
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1750
1761
|
part="container">
|
|
1751
|
-
${this.label||t?
|
|
1762
|
+
${this.label||t?Jt`
|
|
1752
1763
|
<div class="ft-filter--header" part="header">
|
|
1753
1764
|
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
1754
1765
|
${this.label}
|
|
1755
1766
|
</ft-typography>
|
|
1756
1767
|
<slot name="label"></slot>
|
|
1757
|
-
${t&&!this.hideClearButton?
|
|
1768
|
+
${t&&!this.hideClearButton?Jt`
|
|
1758
1769
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1759
1770
|
${this.clearButtonLabel}
|
|
1760
1771
|
</ft-button>
|
|
@@ -1778,8 +1789,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1778
1789
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1779
1790
|
@option-change=${this.optionsChanged}></slot>
|
|
1780
1791
|
</div>
|
|
1781
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,o,i,r,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(o=this.levelsContainer)||void 0===o||o.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=o<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1782
|
-
${this.raiseSelectedOptions&&e.length>0?
|
|
1792
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,o,i,r,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(o=this.levelsContainer)||void 0===o||o.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=o<0?"ft-filter--level-center":"ft-filter--level-left";return Jt`
|
|
1793
|
+
${this.raiseSelectedOptions&&e.length>0?Jt`
|
|
1783
1794
|
<ft-filter-level
|
|
1784
1795
|
filterId="${this.id}"
|
|
1785
1796
|
?multivalued=${this.multivalued}
|
|
@@ -1798,7 +1809,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1798
1809
|
${this.renderLevel(i,this.options)}
|
|
1799
1810
|
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const r=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(r,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
|
|
1800
1811
|
</ft-snap-scroll>
|
|
1801
|
-
`}renderLevel(t,e,o){return
|
|
1812
|
+
`}renderLevel(t,e,o){return Jt`
|
|
1802
1813
|
<ft-filter-level
|
|
1803
1814
|
class="${t}"
|
|
1804
1815
|
filterId="${this.id}"
|
|
@@ -1817,23 +1828,23 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1817
1828
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1818
1829
|
noValuesLabel="${this.noValuesLabel}"
|
|
1819
1830
|
></ft-filter-level>
|
|
1820
|
-
`}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;
|
|
1831
|
+
`}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;go(this.lastDispatchedValues,t)||(this.dispatchEvent(new Rf(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)}}If.elementDefinitions={"ft-button":hh,"ft-filter-level":pf,"ft-snap-scroll":bf,"ft-typography":zc},If.styles=$f,kf([we({type:String})],If.prototype,"id",void 0),kf([we({type:String})],If.prototype,"label",void 0),kf([we({type:String})],If.prototype,"filterPlaceHolder",void 0),kf([we({type:String})],If.prototype,"clearButtonLabel",void 0),kf([we({type:String})],If.prototype,"moreValuesButtonLabel",void 0),kf([we({type:String})],If.prototype,"noValuesLabel",void 0),kf([mo([])],If.prototype,"options",void 0),kf([we({type:Boolean})],If.prototype,"multivalued",void 0),kf([we({type:Boolean})],If.prototype,"disabled",void 0),kf([we({type:Boolean})],If.prototype,"raiseSelectedOptions",void 0),kf([we({type:Number})],If.prototype,"displayedValuesLimit",void 0),kf([we({type:Boolean})],If.prototype,"hideClearButton",void 0),kf([Ee(".ft-filter--slot")],If.prototype,"slotElement",void 0),kf([Ee(".ft-filter--container")],If.prototype,"container",void 0),kf([Ee(".ft-filter--values")],If.prototype,"valuesContainer",void 0),kf([Ee(".ft-filter--levels")],If.prototype,"levelsContainer",void 0),kf([Se()],If.prototype,"lastLevelHasHiddenvalues",void 0),kf([Ee(".ft-filter--filter input")],If.prototype,"filterInput",void 0),kf([ke(".ft-filter--levels ft-filter-level")],If.prototype,"levels",void 0),kf([Se()],If.prototype,"withScroll",void 0),kf([Se()],If.prototype,"filter",void 0),kf([Se()],If.prototype,"slideIn",void 0),kf([Se()],If.prototype,"slideOut",void 0);var Lf=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Uf extends _r{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Jt`
|
|
1821
1832
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1822
|
-
`}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}))}}
|
|
1833
|
+
`}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}))}}Uf.elementDefinitions={},Lf([we({type:String})],Uf.prototype,"label",void 0),Lf([we({type:Object,converter:t=>t})],Uf.prototype,"value",void 0),Lf([we({type:Boolean,reflect:!0})],Uf.prototype,"selected",void 0),Lf([we({type:Object})],Uf.prototype,"subOptions",void 0),Lf([mo({})],Uf.prototype,"renderOption",void 0),Lf([Ee(".ft-filter-option--slot")],Uf.prototype,"slotElement",void 0),bo("ft-filter")(If),bo("ft-filter-option")(Uf);const Wf=zh.build("designedSearchType"),zf={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Af=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bf extends(Rh(ol)){constructor(){super(),this.addI18nContext(Wf,zf)}render(){return Jt`
|
|
1823
1834
|
<ft-filter
|
|
1824
|
-
label=${
|
|
1825
|
-
.options=${[{label:
|
|
1835
|
+
label=${Wf.messages.label()}
|
|
1836
|
+
.options=${[{label:Wf.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
|
|
1826
1837
|
part="filter"
|
|
1827
1838
|
.exportpartsPrefixes=${["filter"]}
|
|
1828
1839
|
multivalued
|
|
1829
1840
|
@change=${this.onSelected}
|
|
1830
1841
|
></ft-filter>
|
|
1831
|
-
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}
|
|
1842
|
+
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}Bf.elementDefinitions={"ft-filter":If},Bf.styles=_h,Af([rn({selector:Ys})],Bf.prototype,"searchInDocumentTitlesOnly",void 0),Af([Ee("ft-filter")],Bf.prototype,"filter",void 0),bo("ft-search-type")(Bf);var Ff=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jf extends(Rh(ol)){get hasSomethingToDisplay(){var t;return this.searchInDocumentTitlesOnly||(null===(t=this.facets)||void 0===t?void 0:t.some((t=>this.getSelectedValues(t).length>0)))}constructor(){super(),this.addI18nContext(Wf,zf)}render(){return this.hasSomethingToDisplay?Jt`
|
|
1832
1843
|
<div class="ft-search-selected-facets--container">
|
|
1833
|
-
${
|
|
1844
|
+
${Te(this.facets||[],(t=>t.key),(t=>{const e=this.getSelectedValues(t);return Te(e,(e=>t.key+"-"+e),(o=>this.renderFacet(t.key,t.label,e,o)))}))}
|
|
1834
1845
|
${this.renderSearchInDocumentTitlesOnly()}
|
|
1835
1846
|
</div>
|
|
1836
|
-
`:
|
|
1847
|
+
`:te}renderFacet(t,e,o,i){let r=e+": "+this.getBreadcrumbFromValue(i);const n=t.replace(":","-");return Jt`
|
|
1837
1848
|
<ft-tooltip inline text="${r}"
|
|
1838
1849
|
part="tooltips tooltip-${n}">
|
|
1839
1850
|
<ft-chip
|
|
@@ -1846,14 +1857,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1846
1857
|
${this.getLabelFromValue(i)}
|
|
1847
1858
|
</ft-chip>
|
|
1848
1859
|
</ft-tooltip>
|
|
1849
|
-
`}getSelectedValues(t){return
|
|
1850
|
-
<ft-tooltip inline text="${
|
|
1860
|
+
`}getSelectedValues(t){return po(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}renderSearchInDocumentTitlesOnly(){return this.searchInDocumentTitlesOnly?Jt`
|
|
1861
|
+
<ft-tooltip inline text="${Wf.messages.documentTitlesOnly()}"
|
|
1851
1862
|
part="tooltips tooltip-search-in-document-titles-only">
|
|
1852
1863
|
<ft-chip
|
|
1853
1864
|
part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
|
|
1854
1865
|
removable
|
|
1855
1866
|
@icon-click=${()=>{var t;return null===(t=this.stateManager)||void 0===t?void 0:t.setSearchInDocumentTitlesOnly(!1)}}>
|
|
1856
|
-
${
|
|
1867
|
+
${Wf.messages.documentTitlesOnly()}
|
|
1857
1868
|
</ft-chip>
|
|
1858
1869
|
</ft-tooltip>
|
|
1859
|
-
`:
|
|
1870
|
+
`:te}}jf.elementDefinitions={"ft-chip":Sh,"ft-tooltip":nh},jf.styles=us,Ff([rn({store:"search"})],jf.prototype,"facets",void 0),Ff([rn({store:"search",selector:Ys})],jf.prototype,"searchInDocumentTitlesOnly",void 0),bo("ft-search-selected-facets")(jf),t.FtSearchSelectedFacets=jf,t.FtSearchSelectedFacetsCssVariables=ds,t.styles=us}({});
|