@fluid-topics/ft-reader-search-in-document 1.3.29 → 1.3.30

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.
@@ -1,11 +1,11 @@
1
- "use strict";(()=>{var vx=Object.create;var Is=Object.defineProperty;var Sx=Object.getOwnPropertyDescriptor;var Cx=Object.getOwnPropertyNames;var Ox=Object.getPrototypeOf,wx=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var Ex=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)Is(r,t,{get:e[t],enumerable:!0})},Rx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cx(e))!wx.call(r,n)&&n!==t&&Is(r,n,{get:()=>e[n],enumerable:!(i=Sx(e,n))||i.enumerable});return r};var Ax=(r,e,t)=>(t=r!=null?vx(Ox(r)):{},Rx(e||!r||!r.__esModule?Is(t,"default",{value:r,enumerable:!0}):t,r));var $u=p(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(k,E){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let _=E.prototype.attributeChangedCallback,G=new Set(E.observedAttributes||[]);b(E,G,_);let J={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:_,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:G};this._definitionsByTag.set(k,J),this._definitionsByClass.set(E,J);let he=t.call(i,k);he||(he=m(k),e.call(i,k,he)),this===window.customElements&&(s.set(E,J),J.standInClass=he);let ce=this._awaitingUpgrade.get(k);if(ce){this._awaitingUpgrade.delete(k);for(let x of ce)a.delete(x),C(x,J,!0)}let K=this._whenDefinedPromises.get(k);return K!==void 0&&(K.resolve(E),this._whenDefinedPromises.delete(k)),E}upgrade(){D.push(this),i.upgrade.apply(i,arguments),D.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let E=this._getDefinition(k);if(E!==void 0)return Promise.resolve(E.elementClass);let _=this._whenDefinedPromises.get(k);return _===void 0&&(_={},_.promise=new Promise(G=>_.resolve=G),this._whenDefinedPromises.set(k,_)),_.promise}_upgradeWhenDefined(k,E,_){let G=this._awaitingUpgrade.get(E);G||this._awaitingUpgrade.set(E,G=new Set),_?G.add(k):G.delete(k)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let _=s.get(this.constructor);if(!_)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(r,[],_.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),n.set(E,_),E},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let E=k.getRootNode();if(!f(E)){let _=D[D.length-1];if(_ instanceof CustomElementRegistry)return _;E=_.getRootNode(),f(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let _=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(_,HTMLElement.prototype);let G=g(_)||window.customElements,J=G._getDefinition(k);return J?C(_,J):a.set(_,G),_}connectedCallback(){let _=n.get(this);_?_.connectedCallback&&_.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let _=n.get(this);_?_.disconnectedCallback&&_.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let _=n.get(this);_&&_.formAssociated&&_?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let _=n.get(this);_?.formAssociated&&_?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let _=n.get(this);_?.formAssociated&&_?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let _=n.get(this);_?.formAssociated&&_?.formStateRestoreCallback?.apply(this,arguments)}},b=(k,E,_)=>{if(E.size===0||_===void 0)return;let G=k.prototype.setAttribute;G&&(k.prototype.setAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);G.call(this,x,K),_.call(this,x,R,K)}else G.call(this,x,K)});let J=k.prototype.removeAttribute;J&&(k.prototype.removeAttribute=function(ce){let K=ce.toLowerCase();if(E.has(K)){let x=this.getAttribute(K);J.call(this,K),_.call(this,K,x,null)}else J.call(this,K)});let he=k.prototype.toggleAttribute;he&&(k.prototype.toggleAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);he.call(this,x,K);let j=this.getAttribute(x);_.call(this,x,R,j)}else he.call(this,x,K)})},O=k=>{let E=Object.getPrototypeOf(k);if(E!==window.HTMLElement)return E===r?Object.setPrototypeOf(k,window.HTMLElement):O(E)},C=(k,E,_=!1)=>{Object.setPrototypeOf(k,E.elementClass.prototype),n.set(k,E),d=k;try{new E.elementClass}catch{O(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(G=>{k.hasAttribute(G)&&E.attributeChangedCallback.call(k,G,null,k.getAttribute(G))}),_&&E.connectedCallback&&k.isConnected&&E.connectedCallback.call(k)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let E=I.apply(this,arguments);return k.customElements&&(E.customElements=k.customElements),E};let D=[document],B=(k,E,_=void 0)=>{let G=(_?Object.getPrototypeOf(_):k.prototype)[E];k.prototype[E]=function(){D.push(this);let J=G.apply(_||this,arguments);return J!==void 0&&l.set(J,this),D.pop(),J}};B(ShadowRoot,"createElement",document),B(ShadowRoot,"importNode",document),B(Element,"insertAdjacentHTML");let z=(k,E)=>{let _=Object.getOwnPropertyDescriptor(k.prototype,E);Object.defineProperty(k.prototype,E,{..._,set(G){D.push(this),_.set.call(this,G),D.pop()}})};if(z(Element,"innerHTML"),z(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,E=HTMLElement.prototype.attachInternals,_=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let K=E.call(this,...ce);return k.set(K,this),K},_.forEach(ce=>{let K=window.ElementInternals.prototype,x=K[ce];K[ce]=function(...R){let j=k.get(this);if(n.get(j).formAssociated===!0)return x?.call(this,...R);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class G extends Array{constructor(K){super(...K),this._elements=K}get value(){return this._elements.find(K=>K.checked===!0)?.value||""}}class J{constructor(K){let x=new Map;K.forEach((R,j)=>{let me=R.getAttribute("name"),we=x.get(me)||[];this[+j]=R,we.push(R),x.set(me,we)}),this.length=K.length,x.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new G(R))})}namedItem(K){return this[K]}}let he=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=he.get.call(this,[]),K=[];for(let x of ce){let R=n.get(x);(!R||R.formAssociated===!0)&&K.push(x)}return new J(K)}})}}});var Tu=p(()=>{"use strict";$u();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,i,n)=>{if(i!==null)try{e.bind(window.customElements)(t,i,n)}catch(a){console.info(t,i,n,a)}}}});var Hn,Ki,ks,Pu,Xo,or,A,qi,Wn,Vn=p(()=>{Hn=globalThis,Ki=Hn.ShadowRoot&&(Hn.ShadyCSS===void 0||Hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Pu=new WeakMap,Xo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ki&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Pu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pu.set(t,e))}return e}toString(){return this.cssText}},or=r=>new Xo(typeof r=="string"?r:r+"",void 0,ks),A=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Xo(t,r,ks)},qi=(r,e)=>{if(Ki)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Hn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Wn=Ki?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return or(t)})(r):r});var Lx,Ix,kx,_x,$x,Tx,jn,Nu,Px,Nx,Zi,Jo,Yi,Fu,ir,Qi=p(()=>{Vn();Vn();({is:Lx,defineProperty:Ix,getOwnPropertyDescriptor:kx,getOwnPropertyNames:_x,getOwnPropertySymbols:$x,getPrototypeOf:Tx}=Object),jn=globalThis,Nu=jn.trustedTypes,Px=Nu?Nu.emptyScript:"",Nx=jn.reactiveElementPolyfillSupport,Zi=(r,e)=>r,Jo={toAttribute(r,e){switch(e){case Boolean:r=r?Px:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Yi=(r,e)=>!Lx(r,e),Fu={attribute:!0,type:String,converter:Jo,reflect:!1,useDefault:!1,hasChanged:Yi};Symbol.metadata??=Symbol("metadata"),jn.litPropertyMetadata??=new WeakMap;ir=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Fu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Ix(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=kx(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fu}static _$Ei(){if(this.hasOwnProperty(Zi("elementProperties")))return;let e=Tx(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zi("properties"))){let t=this.properties,i=[..._x(t),...$x(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(Wn(n))}else e!==void 0&&t.push(Wn(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Jo).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Jo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??Yi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};ir.elementStyles=[],ir.shadowRootOptions={mode:"open"},ir[Zi("elementProperties")]=new Map,ir[Zi("finalized")]=new Map,Nx?.({ReactiveElement:ir}),(jn.reactiveElementVersions??=[]).push("2.1.0")});function ju(r,e){if(!Ns(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bu!==void 0?Bu.createHTML(e):e}function vo(r,e,t=r,i){if(e===nt)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=en(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=vo(r,n._$AS(r,e.values),n,i)),e}var $s,Gn,Bu,Ts,wr,Ps,Fx,xo,Ji,en,Ns,Wu,_s,Xi,Du,Mu,yo,Uu,zu,Vu,Fs,S,Bs,Ds,nt,T,Hu,bo,Gu,tn,Kn,ei,So,qn,Zn,Yn,Qn,Ms,Bx,Us,Gt=p(()=>{$s=globalThis,Gn=$s.trustedTypes,Bu=Gn?Gn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ts="$lit$",wr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ps="?"+wr,Fx=`<${Ps}>`,xo=document,Ji=()=>xo.createComment(""),en=r=>r===null||typeof r!="object"&&typeof r!="function",Ns=Array.isArray,Wu=r=>Ns(r)||typeof r?.[Symbol.iterator]=="function",_s=`[
2
- \f\r]`,Xi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Du=/-->/g,Mu=/>/g,yo=RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Uu=/'/g,zu=/"/g,Vu=/^(?:script|style|textarea|title)$/i,Fs=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Fs(1),Bs=Fs(2),Ds=Fs(3),nt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Hu=new WeakMap,bo=xo.createTreeWalker(xo,129);Gu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Xi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,g=s.exec(d),g!==null);)b=s.lastIndex,s===Xi?g[1]==="!--"?s=Du:g[1]!==void 0?s=Mu:g[2]!==void 0?(Vu.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=yo):g[3]!==void 0&&(s=yo):s===yo?g[0]===">"?(s=n??Xi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?yo:g[3]==='"'?zu:Uu):s===zu||s===Uu?s=yo:s===Du||s===Mu?s=Xi:(s=yo,n=void 0);let O=s===yo&&r[l+1].startsWith("/>")?" ":"";a+=s===Xi?d+Fx:m>=0?(i.push(f),d.slice(0,m)+Ts+d.slice(m)+wr+O):d+wr+(m===-2?l:O)}return[ju(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},tn=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Gu(e,t);if(this.el=r.createElement(f,i),bo.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=bo.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ts)){let b=g[s++],O=n.getAttribute(m).split(wr),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:C[2],strings:O,ctor:C[1]==="."?qn:C[1]==="?"?Zn:C[1]==="@"?Yn:So}),n.removeAttribute(m)}else m.startsWith(wr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Vu.test(n.tagName)){let m=n.textContent.split(wr),b=m.length-1;if(b>0){n.textContent=Gn?Gn.emptyScript:"";for(let O=0;O<b;O++)n.append(m[O],Ji()),bo.nextNode(),d.push({type:2,index:++a});n.append(m[b],Ji())}}}else if(n.nodeType===8)if(n.data===Ps)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(wr,m+1))!==-1;)d.push({type:7,index:a}),m+=wr.length-1}a++}}static createElement(e,t){let i=xo.createElement("template");return i.innerHTML=e,i}};Kn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??xo).importNode(t,!0);bo.currentNode=n;let a=bo.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new ei(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Qn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=bo.nextNode(),s++)}return bo.currentNode=xo,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},ei=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=vo(this,e,t),en(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&en(this._$AH)?this._$AA.nextSibling.data=e:this.T(xo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=tn.createElement(ju(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Kn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Hu.get(e.strings);return t===void 0&&Hu.set(e.strings,t=new tn(e)),t}k(e){Ns(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.O(Ji()),this.O(Ji()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},So=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=vo(this,e,t,0),s=!en(e)||e!==this._$AH&&e!==nt,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=vo(this,l[i+d],t,d),f===nt&&(f=this._$AH[d]),s||=!en(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qn=class extends So{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Zn=class extends So{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Yn=class extends So{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=vo(this,e,t,0)??T)===nt)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Qn=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){vo(this,e)}},Ms={M:Ts,P:wr,A:Ps,C:1,L:Gu,R:Kn,D:Wu,V:vo,I:ei,H:So,N:Zn,U:Yn,B:qn,F:Qn},Bx=$s.litHtmlPolyfillSupport;Bx?.(tn,ei),($s.litHtmlVersions??=[]).push("3.3.0");Us=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new ei(e.insertBefore(Ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var zs,Er,Dx,Mx,Ku=p(()=>{Qi();Qi();Gt();Gt();zs=globalThis,Er=class extends ir{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Us(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return nt}};Er._$litElement$=!0,Er.finalized=!0,zs.litElementHydrateSupport?.({LitElement:Er});Dx=zs.litElementPolyfillSupport;Dx?.({LitElement:Er});Mx={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(zs.litElementVersions??=[]).push("4.2.0")});var PS,qu=p(()=>{PS=!1});var Hs={};ne(Hs,{CSSResult:()=>Xo,LitElement:()=>Er,ReactiveElement:()=>ir,_$LE:()=>Mx,_$LH:()=>Ms,adoptStyles:()=>qi,css:()=>A,defaultConverter:()=>Jo,getCompatibleStyle:()=>Wn,html:()=>S,isServer:()=>PS,mathml:()=>Ds,noChange:()=>nt,notEqual:()=>Yi,nothing:()=>T,render:()=>Us,supportsAdoptingStyleSheets:()=>Ki,svg:()=>Bs,unsafeCSS:()=>or});var P=p(()=>{Qi();Gt();Ku();qu()});var Ux,Zu=p(()=>{Ux=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Yu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var zx,Yu,Ws=p(()=>{Qi();zx={attribute:!0,type:String,converter:Jo,reflect:!1,hasChanged:Yi},Yu=(r=zx,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),i==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(i==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)}});function N(r){return h({...r,state:!0,attribute:!1})}var Qu=p(()=>{Ws();});function ti(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var Xu=p(()=>{});var Kt,ri=p(()=>{Kt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function H(r,e){return(t,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof i=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return Kt(t,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Kt(t,i,{get(){return a(this)}})}}var Ju=p(()=>{ri();});function Vs(r){return(e,t)=>Kt(e,t,{get(){return(this.renderRoot??(Hx??=document.createDocumentFragment())).querySelectorAll(r)}})}var Hx,ef=p(()=>{ri();});function Wx(r){return(e,t)=>Kt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var tf=p(()=>{ri();});function js(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Kt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var rf=p(()=>{ri();});function Gs(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Kt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var of=p(()=>{ri();});var Ks={};ne(Ks,{customElement:()=>Ux,eventOptions:()=>ti,property:()=>h,query:()=>H,queryAll:()=>Vs,queryAssignedElements:()=>js,queryAssignedNodes:()=>Gs,queryAsync:()=>Wx,standardProperty:()=>Yu,state:()=>N});var Y=p(()=>{Zu();Ws();Qu();Xu();Ju();ef();tf();rf();of()});var nr,qt,Ft,Co=p(()=>{nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},qt=r=>(...e)=>({_$litDirective$:r,values:e}),Ft=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Vx,af,nf,oi,Wr,jx,sf,lf,Xn,qs=p(()=>{Gt();({I:Vx}=Ms),af=r=>r.strings===void 0,nf=()=>document.createComment(""),oi=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(nf(),n),s=i.insertBefore(nf(),n);t=new Vx(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Wr=(r,e,t=r)=>(r._$AI(e,t),r),jx={},sf=(r,e=jx)=>r._$AH=e,lf=r=>r._$AH,Xn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let i=e.nextSibling;e.remove(),e=i}}});var cf,Re,df=p(()=>{Gt();Co();qs();cf=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Re=qt(class extends Ft{constructor(r){if(super(r),r.type!==nr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,i]){let n=lf(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,b=n.length-1,O=0,C=a.length-1;for(;m<=b&&O<=C;)if(n[m]===null)m++;else if(n[b]===null)b--;else if(l[m]===s[O])d[O]=Wr(n[m],a[O]),m++,O++;else if(l[b]===s[C])d[C]=Wr(n[b],a[C]),b--,C--;else if(l[m]===s[C])d[C]=Wr(n[m],a[C]),oi(r,d[C+1],n[m]),m++,C--;else if(l[b]===s[O])d[O]=Wr(n[b],a[O]),oi(r,n[m],n[b]),b--,O++;else if(f===void 0&&(f=cf(s,O,C),g=cf(l,m,b)),f.has(l[m]))if(f.has(l[b])){let I=g.get(s[O]),D=I!==void 0?n[I]:null;if(D===null){let B=oi(r,n[m]);Wr(B,a[O]),d[O]=B}else d[O]=Wr(D,a[O]),oi(r,n[m],D),n[I]=null;O++}else Xn(n[b]),b--;else Xn(n[m]),m++;for(;O<=C;){let I=oi(r,d[C+1]);Wr(I,a[O]),d[O++]=I}for(;m<=b;){let I=n[m++];I!==null&&Xn(I)}return this.ut=s,sf(r,d),nt}})});var Zs={};ne(Zs,{repeat:()=>Re});var Zt=p(()=>{df()});var be,pf=p(()=>{Gt();Co();be=qt(class extends Ft{constructor(r){if(super(r),r.type!==nr.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return nt}})});var Ys={};ne(Ys,{classMap:()=>be});var ut=p(()=>{pf()});var uf,Gx,Kx,ff=p(()=>{Gt();Co();uf="important",Gx=" !"+uf,Kx=qt(class extends Ft{constructor(r){if(super(r),r.type!==nr.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce((e,t)=>{let i=r[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Gx);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?uf:""):t[i]=n}}return nt}})});var Qs={};ne(Qs,{styleMap:()=>Kx});var hf=p(()=>{ff()});var ii,Oo,mf=p(()=>{Gt();Co();ii=class extends Ft{constructor(e){if(super(e),this.it=T,e.type!==nr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===nt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ii.directiveName="unsafeHTML",ii.resultType=1;Oo=qt(ii)});var Xs={};ne(Xs,{UnsafeHTMLDirective:()=>ii,unsafeHTML:()=>Oo});var rn=p(()=>{mf()});var Js={};ne(Js,{CancelablePromise:()=>Jn,CanceledPromiseError:()=>ar,cancelable:()=>ni});var ar,Jn,ni,ea=p(()=>{"use strict";ar=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Jn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new ar("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new ar("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ni=r=>new Jn((e,t)=>r.then(e).catch(t))});var rl={};ne(rl,{applyMixinOnce:()=>Ne,dateReviver:()=>qx,deepCopy:()=>nn,deepEqual:()=>Ke,delay:()=>ta,eventPathContainsMatchingElement:()=>Yx,flatDeep:()=>Et,getComposedPathTo:()=>el,hasChanged:()=>Rr,last:()=>Qx,minmax:()=>wo,parseDate:()=>gf,randomId:()=>tl,unslotText:()=>ai,waitFor:()=>Vr,waitUntil:()=>on});async function on(r,e=10,t=2e4){await Vr(async()=>await r()||void 0,e,t)}async function Vr(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await ta(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Et(r,e){return r.flatMap(t=>[t,...Et(e(t),e)])}function qx(...r){return(e,t)=>r.includes(e)?gf(t):t}function gf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,i,n)=>t+i+":"+n),new Date(r)}function Zx(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ke(r[i],e[i]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;for(i of r.entries())if(!Ke(i[1],e.get(i[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),t=n.length,t!==a(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=t;i--!==0;){let s=n[i];if(!Ke(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ke(r,e){try{return Zx(r,e)}catch{return!1}}function Rr(r,e){return!Ke(r,e)}function Yx(r,e,t=window.document.body){if(e.length>0){let i=r.composedPath();for(let n of i){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function wo(r,e,t){return Math.min(Math.max(r,e),t)}function Qx(r){return r[r.length-1]}function ai(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ai(e)).join(""):r?.textContent||""}function el(r){let e=[],t=i=>{i.stopPropagation(),e=i.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function nn(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function tl(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ne(r,e){let t=i=>i[r]===!0;return i=>{if(t(i))return i;let n=e(i);return n[r]=!0,n}}var ta,yt=p(()=>{"use strict";ta=r=>new Promise(e=>setTimeout(e,r))});var nl={};ne(nl,{FtNotificationEvent:()=>an,PostResizeEvent:()=>il,PreResizeEvent:()=>ol,WithEventBus:()=>Ar,withEventBus:()=>ra});var an,ol,il,ra,Ar,si=p(()=>{"use strict";yt();an=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ol=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},il=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ra=Ne(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,i,n){this.eventBus.addEventListener(t,i,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,i,n){this.eventBus.removeEventListener(t,i,n)}}}),Ar=class extends ra(Object){}});var al={};ne(al,{CacheRegistry:()=>sr,ClearCacheEvent:()=>sn});var sn,sr,sl=p(()=>{"use strict";ea();si();sn=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},sr=class extends Ar{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new sn(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new sn([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=ni(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var dl={};ne(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,pl=p(()=>{"use strict";cl=class r{constructor(e,t,i,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var t,i,n,a,s;let l=((a=(i=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&i!==void 0?i:(n=e.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,i){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ll(l)),s.push(ll(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,i="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,b,O)=>O.findIndex(C=>C.value===m.value)===b).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,b)=>this.compareMetadata(m.metadata.value,b.metadata.value,e,t))}compareMetadata(e,t,i,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let i=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(i=>t.some(n=>n.key===i.key&&n.value===i.value)).length}}});var ul={};ne(ul,{Debouncer:()=>pe});var pe,oa=p(()=>{"use strict";pe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,i)=>{this.resolvePromise=t,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var fl={};ne(fl,{customElement:()=>M,dateProperty:()=>Jx,isNumber:()=>yf,jsonProperty:()=>Ee,numberProperty:()=>jr,optionalNumberProperty:()=>Xx});function Ee(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Rr,...e??{}})}function Xx(r){return jr(r)}function jr(r){return h({type:Object,converter:{fromAttribute:e=>{if(e!=null)return yf(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function yf(r){return!isNaN(parseFloat(r))}function Jx(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var M,ia=p(()=>{"use strict";Y();yt();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Gr(`${r.name}: ${e}`)}var Gr,o,se=p(()=>{P();Gr=r=>typeof r=="string"?or(r):r,o=class{static create(e,t,i,n){let a=l=>Gr(l??n),s=A`var(${Gr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Gr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=A`var(${Gr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Gr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=A`var(${Gr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>A`var(${Gr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,hl,ml,gl,yl,bl,xl,vl,Sl,Eo,bf,Cl,Ol,wl,El,Rl,Al,Ll,Il,kl,_l,Kr,$l,Tl,Pl,Nl,Fl,ln,ev,le=p(()=>{se();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},hl={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Eo={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},bf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Cl={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ol={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},wl={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},El={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Rl={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Al={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Ll={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Il={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},kl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},_l={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Kr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},$l={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Tl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Pl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Fl={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},ln={display:hl,"title-1":ml,"title-2":gl,"title-3":yl,"body-1-regular":bl,"body-1-medium":xl,"body-1-semibold":vl,"body-2-regular":Sl,"body-2-medium":Eo,"body-2-medium-underline":bf,"body-2-semibold":Cl,"label-1-medium":Ol,"label-1-semibold":wl,"label-1-bold":El,"label-2-medium":Rl,"label-2-semibold":Al,"label-2-bold":Ll,"caption-1-medium":Il,"caption-1-semibold":kl,"caption-1-bold":_l,"caption-2-medium":Kr,"caption-2-semibold":$l,"caption-2-bold":Tl,"caption-3-medium":Pl,"caption-3-semibold":Nl,"caption-3-bold":Fl},ev=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{se();le();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var v,xf=p(()=>{se();le();ge();v={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var tv,vf=p(()=>{se();le();ge();tv={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ft-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ft-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ft-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ft-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ft-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ft-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ft-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ft-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)}});var rv,Sf=p(()=>{se();le();ge();rv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var ue,Cf=p(()=>{se();le();ge();ue={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var ov,Of=p(()=>{se();le();ge();ov={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var iv,wf=p(()=>{se();le();ge();iv={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Z,Ef=p(()=>{se();le();ge();Z={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var nv,Rf=p(()=>{se();le();ge();nv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var av,Af=p(()=>{se();le();ge();av={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var sv,Lf=p(()=>{se();le();ge();sv={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var lv,If=p(()=>{se();le();ge();lv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var cv,kf=p(()=>{se();le();ge();cv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var dv,_f=p(()=>{se();le();ge();dv={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var pv,$f=p(()=>{se();le();pv={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var uv,Tf=p(()=>{se();le();ge();uv={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var fv,Pf=p(()=>{se();le();ge();fv={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var hv,Nf=p(()=>{se();le();ge();hv={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var mv,Ff=p(()=>{se();le();ge();mv={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var gv,Bf=p(()=>{se();le();ge();gv={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var yv,Df=p(()=>{se();le();ge();yv={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var bv,Mf=p(()=>{se();le();ge();bv={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var xv,Uf=p(()=>{se();le();ge();xv={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var vv,zf=p(()=>{se();le();ge();vv={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var Sv,Hf=p(()=>{se();le();ge();Sv={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var Cv,Wf=p(()=>{se();le();ge();Cv={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var Ov,Vf=p(()=>{se();le();Ov={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var wv,jf=p(()=>{se();le();wv={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var Ev,Gf=p(()=>{se();le();ge();Ev={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var Rv,Kf=p(()=>{se();le();ge();Rv={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var Av,qf=p(()=>{se();le();ge();Av={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var Lv,Zf=p(()=>{se();le();ge();Lv={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var Iv,Yf=p(()=>{se();le();ge();Iv={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var kv,Qf=p(()=>{se();le();kv={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Xf=p(()=>{le();ge();xf();vf();Sf();Cf();Of();wf();Ef();Rf();Af();Lf();If();kf();_f();$f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf();zf();Hf();Wf();Vf();jf();Gf();Kf();qf();Zf();Yf();Qf()});function Bl(r){return`ftds--family-${r}`}function Dl(r){return`ftds--size-${r}`}var Rt,qe,Jf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Rt||(Rt={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(qe||(qe={}))});var ee=p(()=>{se();Xf();Jf()});var Ml={};ne(Ml,{DesignSystemFamily:()=>Rt,DesignSystemSize:()=>qe,FtCssVariableFactory:()=>o,badge:()=>sv,banner:()=>av,button:()=>v,chart:()=>Ov,checkbox:()=>rv,chip:()=>Z,chipChoice:()=>iv,collapsible:()=>Sv,comboboxMultiSelect:()=>xv,comboboxSingleSelect:()=>bv,dateRangePicker:()=>kv,drawer:()=>fv,floatingMenu:()=>yv,foundation:()=>c,link:()=>nv,modal:()=>uv,notice:()=>Ev,notification:()=>Av,pageDesigner:()=>wv,pageFooter:()=>dv,pageHeader:()=>cv,pageLayout:()=>pv,popover:()=>vv,radio:()=>ue,reorderableList:()=>Iv,resolveFamilyClass:()=>Bl,resolveSizeClass:()=>Dl,semantic:()=>u,setVariable:()=>y,switch_:()=>Cv,table:()=>ov,tabs:()=>hv,textArea:()=>gv,textInput:()=>mv,titleBreadcrumb:()=>lv,toggle:()=>Rv,tooltip:()=>Lv,treeList:()=>tv,typographies:()=>ln,typographyBody1Medium:()=>xl,typographyBody1Regular:()=>bl,typographyBody1Semibold:()=>vl,typographyBody2Medium:()=>Eo,typographyBody2MediumUnderline:()=>bf,typographyBody2Regular:()=>Sl,typographyBody2Semibold:()=>Cl,typographyCaption1Bold:()=>_l,typographyCaption1Medium:()=>Il,typographyCaption1Semibold:()=>kl,typographyCaption2Bold:()=>Tl,typographyCaption2Medium:()=>Kr,typographyCaption2Semibold:()=>$l,typographyCaption3Bold:()=>Fl,typographyCaption3Medium:()=>Pl,typographyCaption3Semibold:()=>Nl,typographyDisplay:()=>hl,typographyLabel1Bold:()=>El,typographyLabel1Medium:()=>Ol,typographyLabel1Semibold:()=>wl,typographyLabel2Bold:()=>Ll,typographyLabel2Medium:()=>Rl,typographyLabel2Semibold:()=>Al,typographyTitle1:()=>ml,typographyTitle2:()=>gl,typographyTitle3:()=>yl,typographyVariants:()=>ev});var na=p(()=>{"use strict";ee()});var Ul={};ne(Ul,{designSystemVariables:()=>w});var w,zl=p(()=>{"use strict";na();w={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var Hl={};ne(Hl,{DynamicImporter:()=>aa,dynamicImporter:()=>_v});var aa,_v,Wl=p(()=>{"use strict";aa=class{async import(e){return import(e)}},_v=new aa});function Gl(r,e,t){return qr(r,sa(e,t))}function li(r,e){return typeof r=="function"?r(e):r}function Zr(r){return r.split("-")[0]}function lr(r){return r.split("-")[1]}function Kl(r){return r==="x"?"y":"x"}function ql(r){return r==="y"?"height":"width"}function ci(r){return["top","bottom"].includes(Zr(r))?"y":"x"}function Zl(r){return Kl(ci(r))}function rh(r,e,t){t===void 0&&(t=!1);let i=lr(r),n=Zl(r),a=ql(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Vl(s)),[s,Vl(s)]}function oh(r){return r.replace(/start|end/g,e=>Tv[e])}function Vl(r){return r.replace(/left|right|bottom|top/g,e=>$v[e])}function Pv(r){return{top:0,right:0,bottom:0,left:0,...r}}function ih(r){return typeof r!="number"?Pv(r):{top:r,right:r,bottom:r,left:r}}function Ro(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var th,eh,jl,sa,qr,$v,Tv,Yl=p(()=>{th=["top","right","bottom","left"],eh=["start","end"],jl=th.reduce((r,e)=>r.concat(e,e+"-"+eh[0],e+"-"+eh[1]),[]),sa=Math.min,qr=Math.max,$v={left:"right",right:"left",bottom:"top",top:"bottom"},Tv={start:"end",end:"start"}});function nh(r,e,t){let{reference:i,floating:n}=r,a=ci(e),s=Zl(e),l=ql(s),d=Zr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,O;switch(d){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y:m};break;case"left":O={x:i.x-n.width,y:m};break;default:O={x:i.x,y:i.y}}switch(lr(e)){case"start":O[s]-=b*(t&&f?-1:1);break;case"end":O[s]+=b*(t&&f?-1:1);break}return O}async function la(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:O=0}=li(e,r),C=ih(O),D=l[b?m==="floating"?"reference":"floating":m],B=Ro(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(D)))==null||t?D:D.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),z=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},_=Ro(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:k,strategy:d}):z);return{top:(B.top-_.top+C.top)/E.y,bottom:(_.bottom-B.bottom+C.bottom)/E.y,left:(B.left-_.left+C.left)/E.x,right:(_.right-B.right+C.right)/E.x}}function Nv(r,e,t){return(r?[...t.filter(n=>lr(n)===r),...t.filter(n=>lr(n)!==r)]:t.filter(n=>Zr(n)===n)).filter(n=>r?lr(n)===r||(e?oh(n)!==n:!1):!0)}async function Fv(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Zr(t),l=lr(t),d=ci(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=li(e,r),{mainAxis:b,crossAxis:O,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof C=="number"&&(O=l==="end"?C*-1:C),d?{x:O*g,y:b*f}:{x:b*f,y:O*g}}var ah,ca,Ql,Xl,Jl,ec=p(()=>{Yl();Yl();ah=async(r,e,t)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=nh(f,i,d),b=i,O={},C=0;for(let I=0;I<l.length;I++){let{name:D,fn:B}=l[I],{x:z,y:k,data:E,reset:_}=await B({x:g,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:f,platform:s,elements:{reference:r,floating:e}});g=z??g,m=k??m,O={...O,[D]:{...O[D],...E}},_&&C<=50&&(C++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(f=_.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):_.rects),{x:g,y:m}=nh(f,b,d)),I=-1)}return{x:g,y:m,placement:b,strategy:n,middlewareData:O}};ca=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:b=jl,autoAlignment:O=!0,...C}=li(r,e),I=m!==void 0||b===jl?Nv(m||null,O,b):b,D=await la(e,C),B=((t=s.autoPlacement)==null?void 0:t.index)||0,z=I[B];if(z==null)return{};let k=rh(z,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==z)return{reset:{placement:I[0]}};let E=[D[Zr(z)],D[k[0]],D[k[1]]],_=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:z,overflows:E}],G=I[B+1];if(G)return{data:{index:B+1,overflows:_},reset:{placement:G}};let J=_.map(K=>{let x=lr(K.placement);return[K.placement,x&&g?K.overflows.slice(0,2).reduce((R,j)=>R+j,0):K.overflows[0],K.overflows]}).sort((K,x)=>K[1]-x[1]),ce=((n=J.filter(K=>K[2].slice(0,lr(K[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||J[0][0];return ce!==l?{data:{index:B+1,overflows:_},reset:{placement:ce}}:{}}}};Ql=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Fv(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Xl=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:D=>{let{x:B,y:z}=D;return{x:B,y:z}}},...d}=li(r,e),f={x:t,y:i},g=await la(e,d),m=ci(Zr(n)),b=Kl(m),O=f[b],C=f[m];if(a){let D=b==="y"?"top":"left",B=b==="y"?"bottom":"right",z=O+g[D],k=O-g[B];O=Gl(z,O,k)}if(s){let D=m==="y"?"top":"left",B=m==="y"?"bottom":"right",z=C+g[D],k=C-g[B];C=Gl(z,C,k)}let I=l.fn({...e,[b]:O,[m]:C});return{...I,data:{x:I.x-t,y:I.y-i,enabled:{[b]:a,[m]:s}}}}}},Jl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=li(r,e),g=await la(e,f),m=Zr(n),b=lr(n),O=ci(n)==="y",{width:C,height:I}=a.floating,D,B;m==="top"||m==="bottom"?(D=m,B=b===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(B=m,D=b==="end"?"top":"bottom");let z=I-g.top-g.bottom,k=C-g.left-g.right,E=sa(I-g[D],z),_=sa(C-g[B],k),G=!e.middlewareData.shift,J=E,he=_;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(he=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=z),G&&!b){let K=qr(g.left,0),x=qr(g.right,0),R=qr(g.top,0),j=qr(g.bottom,0);O?he=C-2*(K!==0||x!==0?K+x:qr(g.left,g.right)):J=I-2*(R!==0||j!==0?R+j:qr(g.top,g.bottom))}await d({...e,availableWidth:he,availableHeight:J});let ce=await s.getDimensions(l.floating);return C!==ce.width||I!==ce.height?{reset:{rects:!0}}:{}}}}});var tc,di,cn,Lr,sh=p(()=>{tc=Math.min,di=Math.max,cn=Math.round,Lr=r=>({x:r,y:r})});function Ir(r){return ch(r)?(r.nodeName||"").toLowerCase():"#document"}function bt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function kr(r){var e;return(e=(ch(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ch(r){return r instanceof Node||r instanceof bt(r).Node}function cr(r){return r instanceof Element||r instanceof bt(r).Element}function Yt(r){return r instanceof HTMLElement||r instanceof bt(r).HTMLElement}function lh(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof bt(r).ShadowRoot}function pi(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=At(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function dh(r){return["table","td","th"].includes(Ir(r))}function pa(r){let e=ua(),t=At(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function ph(r){let e=Ao(r);for(;Yt(e)&&!dn(e);){if(pa(e))return e;e=Ao(e)}return null}function ua(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dn(r){return["html","body","#document"].includes(Ir(r))}function At(r){return bt(r).getComputedStyle(r)}function pn(r){return cr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Ao(r){if(Ir(r)==="html")return r;let e=r.assignedSlot||r.parentNode||lh(r)&&r.host||kr(r);return lh(e)?e.host:e}function uh(r){let e=Ao(r);return dn(e)?r.ownerDocument?r.ownerDocument.body:r.body:Yt(e)&&pi(e)?e:uh(e)}function da(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=uh(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=bt(n);return a?e.concat(s,s.visualViewport||[],pi(n)?n:[],s.frameElement&&t?da(s.frameElement):[]):e.concat(n,da(n,[],t))}var fh=p(()=>{});function gh(r){let e=At(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Yt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=cn(t)!==a||cn(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function yh(r){return cr(r)?r:r.contextElement}function ui(r){let e=yh(r);if(!Yt(e))return Lr(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=gh(e),s=(a?cn(t.width):t.width)/i,l=(a?cn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function bh(r){let e=bt(r);return!ua()||!e.visualViewport?Bv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Dv(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==bt(r)?!1:e}function un(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=yh(r),s=Lr(1);e&&(i?cr(i)&&(s=ui(i)):s=ui(r));let l=Dv(a,t,i)?bh(a):Lr(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let b=bt(a),O=i&&cr(i)?bt(i):i,C=b.frameElement;for(;C&&i&&O!==b;){let I=ui(C),D=C.getBoundingClientRect(),B=At(C),z=D.left+(C.clientLeft+parseFloat(B.paddingLeft))*I.x,k=D.top+(C.clientTop+parseFloat(B.paddingTop))*I.y;d*=I.x,f*=I.y,g*=I.x,m*=I.y,d+=z,f+=k,C=bt(C).frameElement}}return Ro({width:g,height:m,x:d,y:f})}function Mv(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Yt(t),a=kr(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Lr(1),d=Lr(0);if((n||!n&&i!=="fixed")&&((Ir(t)!=="body"||pi(a))&&(s=pn(t)),Yt(t))){let f=un(t);l=ui(t),d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Uv(r){return Array.from(r.getClientRects())}function xh(r){return un(kr(r)).left+pn(r).scrollLeft}function zv(r){let e=kr(r),t=pn(r),i=r.ownerDocument.body,n=di(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=di(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+xh(r),l=-t.scrollTop;return At(i).direction==="rtl"&&(s+=di(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Hv(r,e){let t=bt(r),i=kr(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ua();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Wv(r,e){let t=un(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Yt(r)?ui(r):Lr(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function hh(r,e,t){let i;if(e==="viewport")i=Hv(r,t);else if(e==="document")i=zv(kr(r));else if(cr(e))i=Wv(e,t);else{let n=bh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return Ro(i)}function vh(r,e){let t=Ao(r);return t===e||!cr(t)||dn(t)?!1:At(t).position==="fixed"||vh(t,e)}function Vv(r,e){let t=e.get(r);if(t)return t;let i=da(r,[],!1).filter(l=>cr(l)&&Ir(l)!=="body"),n=null,a=At(r).position==="fixed",s=a?Ao(r):r;for(;cr(s)&&!dn(s);){let l=At(s),d=pa(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||pi(s)&&!d&&vh(r,s))?i=i.filter(g=>g!==s):n=l,s=Ao(s)}return e.set(r,i),i}function jv(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Vv(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=hh(e,g,n);return f.top=di(m.top,f.top),f.right=tc(m.right,f.right),f.bottom=tc(m.bottom,f.bottom),f.left=di(m.left,f.left),f},hh(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Gv(r){return gh(r)}function Kv(r,e,t){let i=Yt(e),n=kr(e),a=t==="fixed",s=un(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Lr(0);if(i||!i&&!a)if((Ir(e)!=="body"||pi(n))&&(l=pn(e)),i){let f=un(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=xh(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function mh(r,e){return!Yt(r)||At(r).position==="fixed"?null:e?e(r):r.offsetParent}function Sh(r,e){let t=bt(r);if(!Yt(r))return t;let i=mh(r,e);for(;i&&dh(i)&&At(i).position==="static";)i=mh(i,e);return i&&(Ir(i)==="html"||Ir(i)==="body"&&At(i).position==="static"&&!pa(i))?t:i||ph(r)||t}function Zv(r){return At(r).direction==="rtl"}var Bv,qv,fi,rc,Ch=p(()=>{ec();ec();sh();fh();Bv=Lr(0);qv=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||Sh,a=this.getDimensions;return{reference:Kv(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};fi={convertOffsetParentRelativeRectToViewportRelativeRect:Mv,getDocumentElement:kr,getClippingRect:jv,getOffsetParent:Sh,getElementRects:qv,getClientRects:Uv,getDimensions:Gv,getScale:ui,isElement:cr,isRTL:Zv},rc=(r,e,t)=>{let i=new Map,n={platform:fi,...t},a={...n.platform,_c:i};return ah(r,e,{...n,platform:a})}});function ic(r){return Yv(r)}function oc(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Yv(r){for(let e=r;e;e=oc(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oc(r);e;e=oc(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}var Oh=p(()=>{});var sc={};ne(sc,{computeOffsetAutoPosition:()=>ac,computeOffsetPosition:()=>nc});async function nc(r,e,t){return rc(r,e,{platform:{...fi,getOffsetParent:i=>fi.getOffsetParent(i,ic)},middleware:[Xl({crossAxis:!0}),ca({allowedPlacements:[t]})]})}async function ac(r,e,t,i,n,a,s=4){return rc(r,e,{placement:t,strategy:n,platform:{...fi,getOffsetParent:l=>fi.getOffsetParent(l,ic)},middleware:[Ql(s),ca({allowedPlacements:i}),Jl({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var fa=p(()=>{"use strict";Ch();Oh()});var lc={};ne(lc,{ScopedRegistryLitElement:()=>fn});var fn,ha=p(()=>{"use strict";P();Vn();fn=class extends Er{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(t);return qi(i,e.elementStyles),i}}});var dc={};ne(dc,{shadowQuerySelector:()=>cc,shadowQuerySelectorAll:()=>Qv});function cc(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Qv(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var ma=p(()=>{"use strict"});var pc={};ne(pc,{FtLitElement:()=>W});var hn,Ah,wh,Eh,Lh,Rh,W,mn=p(()=>{"use strict";Y();ia();oa();ha();ma();hn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wh=Symbol("constructorPrototype"),Eh=Symbol("constructorName"),Lh=Symbol("exportpartsDebouncer"),Rh=Symbol("dynamicDependenciesLoaded"),W=class extends fn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ah]=new pe(5),this[Eh]=this.constructor.name,this[wh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eh]&&Object.setPrototypeOf(this,this[wh])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[Rh]||(e[Rh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=cc(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,i,n;if(((i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&i!==void 0&&i)&&this[Lh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,i,n,a,s,l;let d=b=>b!=null&&b.trim().length>0,f=e.filter(d).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let b of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...C).filter(d).map(I=>I.trim()).forEach(I=>g.add(I))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(b=>f.map(O=>`${b}:${O}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ah=Lh;hn([h()],W.prototype,"exportpartsPrefix",void 0);hn([Ee([])],W.prototype,"exportpartsPrefixes",void 0);hn([h()],W.prototype,"customStylesheet",void 0);hn([h()],W.prototype,"elementToFocus",void 0);hn([N()],W.prototype,"useAdoptedStyleSheets",void 0)});var uc={};ne(uc,{FtdsBase:()=>gn,toFtdsBase:()=>dr});var Ih,dr,gn,fc=p(()=>{"use strict";mn();Y();ee();yt();Ih=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dr=Ne(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=qe.medium,this.family=Rt.neutral}getDesignSystemBaseClasses(){return{[Bl(this.family)]:!0,[Dl(this.size)]:!0}}}return Ih([h()],e.prototype,"size",void 0),Ih([h()],e.prototype,"family",void 0),e}),gn=class extends dr(W){}});var kh={};var hc=p(()=>{"use strict"});var Lo,_h=p(()=>{Lo=class r{constructor(e,t=!0,i=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=i,this.iframesTimeout=n}static matches(e,t){let i=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=t.filter(a=>a.contains(i)).length>0;t.indexOf(i)===-1&&!n&&t.push(i)}),t}getIframeContents(e,t,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&t(n)}isIframeBlank(e){let t="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&i!==t&&i}observeIframeLoad(e,t,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,i):this.getIframeContents(e,t,i):this.observeIframeLoad(e,t,i)}catch{i()}}waitForIframes(e,t){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||t()})},n=>{n||t()})}forEachIframe(e,t,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),d()},d)})}createIterator(e,t,i){return document.createNodeIterator(e,t,i,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),i;return t===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:t,node:i}}checkIframeFilter(e,t,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,t,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,i,n)})})}iterateThroughNodes(e,t,i,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,b=>this.checkIframeFilter(f,g,b,l),b=>{this.createInstanceOnIframe(b).forEachNode(e,O=>d.push(O),n)}),d.push(f);d.forEach(b=>{i(b)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,t,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var yn,$h=p(()=>{_h();yn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new Lo(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[t]=="function"&&i[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&t.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):i.trim()&&t.indexOf(i)===-1&&t.push(i)}),{keywords:t.sort((i,n)=>n.length-i.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,t.push(n),i=s)}),t}callNoMatchOnInvalidRanges(e,t){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,t,i){let n,a=!0,s=i.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:i})})}matchesExclude(e){return Lo.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(i-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),b=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+b,e.nodes.forEach((O,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=g),e.nodes[C].end-=g)}),i-=g,a(s.node.previousSibling,s.start),i>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,b)=>{e.lastIndex=b,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,b=>t(b,l,a.value.substring(f,g),d),b=>{i(b,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));t.replaceChild(i,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,t){this.opt=t;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(b,O)=>this.opt.filter(O,f,i,m),b=>{m++,i++,this.opt.each(b)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,t){this.opt=t;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Lo.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function mc(r){let e=new yn(r);return this.mark=(t,i)=>(e.mark(t,i),this),this.markRegExp=(t,i)=>(e.markRegExp(t,i),this),this.markRanges=(t,i)=>(e.markRanges(t,i),this),this.unmark=t=>(e.unmark(t),this),this}var Th=p(()=>{$h()});var yc={};ne(yc,{highlightHtml:()=>gc,highlightHtmlColorCssVariable:()=>Ph,highlightHtmlStyles:()=>Jv});function gc(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Xv(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Xv,Ph,Jv,bc=p(()=>{"use strict";P();ee();Th();Xv=mc,Ph=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Jv=A`
1
+ "use strict";(()=>{var vx=Object.create;var Is=Object.defineProperty;var Sx=Object.getOwnPropertyDescriptor;var Cx=Object.getOwnPropertyNames;var Ox=Object.getPrototypeOf,wx=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var Ex=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)Is(r,t,{get:e[t],enumerable:!0})},Rx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cx(e))!wx.call(r,n)&&n!==t&&Is(r,n,{get:()=>e[n],enumerable:!(i=Sx(e,n))||i.enumerable});return r};var Ax=(r,e,t)=>(t=r!=null?vx(Ox(r)):{},Rx(e||!r||!r.__esModule?Is(t,"default",{value:r,enumerable:!0}):t,r));var $u=p(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(k,E){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let _=E.prototype.attributeChangedCallback,G=new Set(E.observedAttributes||[]);b(E,G,_);let J={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:_,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:G};this._definitionsByTag.set(k,J),this._definitionsByClass.set(E,J);let he=t.call(i,k);he||(he=m(k),e.call(i,k,he)),this===window.customElements&&(s.set(E,J),J.standInClass=he);let ce=this._awaitingUpgrade.get(k);if(ce){this._awaitingUpgrade.delete(k);for(let x of ce)a.delete(x),C(x,J,!0)}let K=this._whenDefinedPromises.get(k);return K!==void 0&&(K.resolve(E),this._whenDefinedPromises.delete(k)),E}upgrade(){D.push(this),i.upgrade.apply(i,arguments),D.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let E=this._getDefinition(k);if(E!==void 0)return Promise.resolve(E.elementClass);let _=this._whenDefinedPromises.get(k);return _===void 0&&(_={},_.promise=new Promise(G=>_.resolve=G),this._whenDefinedPromises.set(k,_)),_.promise}_upgradeWhenDefined(k,E,_){let G=this._awaitingUpgrade.get(E);G||this._awaitingUpgrade.set(E,G=new Set),_?G.add(k):G.delete(k)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let _=s.get(this.constructor);if(!_)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(r,[],_.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),n.set(E,_),E},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let E=k.getRootNode();if(!f(E)){let _=D[D.length-1];if(_ instanceof CustomElementRegistry)return _;E=_.getRootNode(),f(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let _=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(_,HTMLElement.prototype);let G=g(_)||window.customElements,J=G._getDefinition(k);return J?C(_,J):a.set(_,G),_}connectedCallback(){let _=n.get(this);_?_.connectedCallback&&_.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let _=n.get(this);_?_.disconnectedCallback&&_.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let _=n.get(this);_&&_.formAssociated&&_?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let _=n.get(this);_?.formAssociated&&_?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let _=n.get(this);_?.formAssociated&&_?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let _=n.get(this);_?.formAssociated&&_?.formStateRestoreCallback?.apply(this,arguments)}},b=(k,E,_)=>{if(E.size===0||_===void 0)return;let G=k.prototype.setAttribute;G&&(k.prototype.setAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);G.call(this,x,K),_.call(this,x,R,K)}else G.call(this,x,K)});let J=k.prototype.removeAttribute;J&&(k.prototype.removeAttribute=function(ce){let K=ce.toLowerCase();if(E.has(K)){let x=this.getAttribute(K);J.call(this,K),_.call(this,K,x,null)}else J.call(this,K)});let he=k.prototype.toggleAttribute;he&&(k.prototype.toggleAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);he.call(this,x,K);let j=this.getAttribute(x);_.call(this,x,R,j)}else he.call(this,x,K)})},O=k=>{let E=Object.getPrototypeOf(k);if(E!==window.HTMLElement)return E===r?Object.setPrototypeOf(k,window.HTMLElement):O(E)},C=(k,E,_=!1)=>{Object.setPrototypeOf(k,E.elementClass.prototype),n.set(k,E),d=k;try{new E.elementClass}catch{O(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(G=>{k.hasAttribute(G)&&E.attributeChangedCallback.call(k,G,null,k.getAttribute(G))}),_&&E.connectedCallback&&k.isConnected&&E.connectedCallback.call(k)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let E=I.apply(this,arguments);return k.customElements&&(E.customElements=k.customElements),E};let D=[document],B=(k,E,_=void 0)=>{let G=(_?Object.getPrototypeOf(_):k.prototype)[E];k.prototype[E]=function(){D.push(this);let J=G.apply(_||this,arguments);return J!==void 0&&l.set(J,this),D.pop(),J}};B(ShadowRoot,"createElement",document),B(ShadowRoot,"importNode",document),B(Element,"insertAdjacentHTML");let z=(k,E)=>{let _=Object.getOwnPropertyDescriptor(k.prototype,E);Object.defineProperty(k.prototype,E,{..._,set(G){D.push(this),_.set.call(this,G),D.pop()}})};if(z(Element,"innerHTML"),z(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,E=HTMLElement.prototype.attachInternals,_=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let K=E.call(this,...ce);return k.set(K,this),K},_.forEach(ce=>{let K=window.ElementInternals.prototype,x=K[ce];K[ce]=function(...R){let j=k.get(this);if(n.get(j).formAssociated===!0)return x?.call(this,...R);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class G extends Array{constructor(K){super(...K),this._elements=K}get value(){return this._elements.find(K=>K.checked===!0)?.value||""}}class J{constructor(K){let x=new Map;K.forEach((R,j)=>{let me=R.getAttribute("name"),we=x.get(me)||[];this[+j]=R,we.push(R),x.set(me,we)}),this.length=K.length,x.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new G(R))})}namedItem(K){return this[K]}}let he=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=he.get.call(this,[]),K=[];for(let x of ce){let R=n.get(x);(!R||R.formAssociated===!0)&&K.push(x)}return new J(K)}})}}});var Tu=p(()=>{"use strict";$u();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,i,n)=>{if(i!==null)try{e.bind(window.customElements)(t,i,n)}catch(a){console.info(t,i,n,a)}}}});var Hn,Ki,ks,Pu,Xo,ir,A,qi,Wn,Vn=p(()=>{Hn=globalThis,Ki=Hn.ShadowRoot&&(Hn.ShadyCSS===void 0||Hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Pu=new WeakMap,Xo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ki&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Pu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pu.set(t,e))}return e}toString(){return this.cssText}},ir=r=>new Xo(typeof r=="string"?r:r+"",void 0,ks),A=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Xo(t,r,ks)},qi=(r,e)=>{if(Ki)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Hn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Wn=Ki?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return ir(t)})(r):r});var Lx,Ix,kx,_x,$x,Tx,jn,Nu,Px,Nx,Zi,Jo,Yi,Fu,nr,Qi=p(()=>{Vn();Vn();({is:Lx,defineProperty:Ix,getOwnPropertyDescriptor:kx,getOwnPropertyNames:_x,getOwnPropertySymbols:$x,getPrototypeOf:Tx}=Object),jn=globalThis,Nu=jn.trustedTypes,Px=Nu?Nu.emptyScript:"",Nx=jn.reactiveElementPolyfillSupport,Zi=(r,e)=>r,Jo={toAttribute(r,e){switch(e){case Boolean:r=r?Px:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Yi=(r,e)=>!Lx(r,e),Fu={attribute:!0,type:String,converter:Jo,reflect:!1,useDefault:!1,hasChanged:Yi};Symbol.metadata??=Symbol("metadata"),jn.litPropertyMetadata??=new WeakMap;nr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Fu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Ix(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=kx(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fu}static _$Ei(){if(this.hasOwnProperty(Zi("elementProperties")))return;let e=Tx(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zi("properties"))){let t=this.properties,i=[..._x(t),...$x(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(Wn(n))}else e!==void 0&&t.push(Wn(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Jo).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Jo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??Yi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};nr.elementStyles=[],nr.shadowRootOptions={mode:"open"},nr[Zi("elementProperties")]=new Map,nr[Zi("finalized")]=new Map,Nx?.({ReactiveElement:nr}),(jn.reactiveElementVersions??=[]).push("2.1.0")});function ju(r,e){if(!Ns(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bu!==void 0?Bu.createHTML(e):e}function So(r,e,t=r,i){if(e===nt)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=en(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=So(r,n._$AS(r,e.values),n,i)),e}var $s,Gn,Bu,Ts,Er,Ps,Fx,vo,Ji,en,Ns,Wu,_s,Xi,Du,Mu,bo,Uu,zu,Vu,Fs,S,Bs,Ds,nt,T,Hu,xo,Gu,tn,Kn,ei,Co,qn,Zn,Yn,Qn,Ms,Bx,Us,Kt=p(()=>{$s=globalThis,Gn=$s.trustedTypes,Bu=Gn?Gn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ts="$lit$",Er=`lit$${Math.random().toFixed(9).slice(2)}$`,Ps="?"+Er,Fx=`<${Ps}>`,vo=document,Ji=()=>vo.createComment(""),en=r=>r===null||typeof r!="object"&&typeof r!="function",Ns=Array.isArray,Wu=r=>Ns(r)||typeof r?.[Symbol.iterator]=="function",_s=`[
2
+ \f\r]`,Xi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Du=/-->/g,Mu=/>/g,bo=RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Uu=/'/g,zu=/"/g,Vu=/^(?:script|style|textarea|title)$/i,Fs=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Fs(1),Bs=Fs(2),Ds=Fs(3),nt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Hu=new WeakMap,xo=vo.createTreeWalker(vo,129);Gu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Xi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,g=s.exec(d),g!==null);)b=s.lastIndex,s===Xi?g[1]==="!--"?s=Du:g[1]!==void 0?s=Mu:g[2]!==void 0?(Vu.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=bo):g[3]!==void 0&&(s=bo):s===bo?g[0]===">"?(s=n??Xi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?bo:g[3]==='"'?zu:Uu):s===zu||s===Uu?s=bo:s===Du||s===Mu?s=Xi:(s=bo,n=void 0);let O=s===bo&&r[l+1].startsWith("/>")?" ":"";a+=s===Xi?d+Fx:m>=0?(i.push(f),d.slice(0,m)+Ts+d.slice(m)+Er+O):d+Er+(m===-2?l:O)}return[ju(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},tn=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Gu(e,t);if(this.el=r.createElement(f,i),xo.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=xo.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ts)){let b=g[s++],O=n.getAttribute(m).split(Er),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:C[2],strings:O,ctor:C[1]==="."?qn:C[1]==="?"?Zn:C[1]==="@"?Yn:Co}),n.removeAttribute(m)}else m.startsWith(Er)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Vu.test(n.tagName)){let m=n.textContent.split(Er),b=m.length-1;if(b>0){n.textContent=Gn?Gn.emptyScript:"";for(let O=0;O<b;O++)n.append(m[O],Ji()),xo.nextNode(),d.push({type:2,index:++a});n.append(m[b],Ji())}}}else if(n.nodeType===8)if(n.data===Ps)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Er,m+1))!==-1;)d.push({type:7,index:a}),m+=Er.length-1}a++}}static createElement(e,t){let i=vo.createElement("template");return i.innerHTML=e,i}};Kn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??vo).importNode(t,!0);xo.currentNode=n;let a=xo.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new ei(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Qn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=xo.nextNode(),s++)}return xo.currentNode=vo,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},ei=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=So(this,e,t),en(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&en(this._$AH)?this._$AA.nextSibling.data=e:this.T(vo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=tn.createElement(ju(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Kn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Hu.get(e.strings);return t===void 0&&Hu.set(e.strings,t=new tn(e)),t}k(e){Ns(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.O(Ji()),this.O(Ji()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Co=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=So(this,e,t,0),s=!en(e)||e!==this._$AH&&e!==nt,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=So(this,l[i+d],t,d),f===nt&&(f=this._$AH[d]),s||=!en(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qn=class extends Co{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Zn=class extends Co{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Yn=class extends Co{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=So(this,e,t,0)??T)===nt)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Qn=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){So(this,e)}},Ms={M:Ts,P:Er,A:Ps,C:1,L:Gu,R:Kn,D:Wu,V:So,I:ei,H:Co,N:Zn,U:Yn,B:qn,F:Qn},Bx=$s.litHtmlPolyfillSupport;Bx?.(tn,ei),($s.litHtmlVersions??=[]).push("3.3.0");Us=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new ei(e.insertBefore(Ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var zs,Rr,Dx,Mx,Ku=p(()=>{Qi();Qi();Kt();Kt();zs=globalThis,Rr=class extends nr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Us(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return nt}};Rr._$litElement$=!0,Rr.finalized=!0,zs.litElementHydrateSupport?.({LitElement:Rr});Dx=zs.litElementPolyfillSupport;Dx?.({LitElement:Rr});Mx={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(zs.litElementVersions??=[]).push("4.2.0")});var PS,qu=p(()=>{PS=!1});var Hs={};ne(Hs,{CSSResult:()=>Xo,LitElement:()=>Rr,ReactiveElement:()=>nr,_$LE:()=>Mx,_$LH:()=>Ms,adoptStyles:()=>qi,css:()=>A,defaultConverter:()=>Jo,getCompatibleStyle:()=>Wn,html:()=>S,isServer:()=>PS,mathml:()=>Ds,noChange:()=>nt,notEqual:()=>Yi,nothing:()=>T,render:()=>Us,supportsAdoptingStyleSheets:()=>Ki,svg:()=>Bs,unsafeCSS:()=>ir});var P=p(()=>{Qi();Kt();Ku();qu()});var Ux,Zu=p(()=>{Ux=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Yu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var zx,Yu,Ws=p(()=>{Qi();zx={attribute:!0,type:String,converter:Jo,reflect:!1,hasChanged:Yi},Yu=(r=zx,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),i==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(i==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)}});function N(r){return h({...r,state:!0,attribute:!1})}var Qu=p(()=>{Ws();});function ti(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var Xu=p(()=>{});var qt,ri=p(()=>{qt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function H(r,e){return(t,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof i=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return qt(t,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return qt(t,i,{get(){return a(this)}})}}var Ju=p(()=>{ri();});function Vs(r){return(e,t)=>qt(e,t,{get(){return(this.renderRoot??(Hx??=document.createDocumentFragment())).querySelectorAll(r)}})}var Hx,ef=p(()=>{ri();});function Wx(r){return(e,t)=>qt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var tf=p(()=>{ri();});function js(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return qt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var rf=p(()=>{ri();});function Gs(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return qt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var of=p(()=>{ri();});var Ks={};ne(Ks,{customElement:()=>Ux,eventOptions:()=>ti,property:()=>h,query:()=>H,queryAll:()=>Vs,queryAssignedElements:()=>js,queryAssignedNodes:()=>Gs,queryAsync:()=>Wx,standardProperty:()=>Yu,state:()=>N});var Y=p(()=>{Zu();Ws();Qu();Xu();Ju();ef();tf();rf();of()});var ar,Zt,Bt,Oo=p(()=>{ar={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zt=r=>(...e)=>({_$litDirective$:r,values:e}),Bt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Vx,af,nf,oi,Vr,jx,sf,lf,Xn,qs=p(()=>{Kt();({I:Vx}=Ms),af=r=>r.strings===void 0,nf=()=>document.createComment(""),oi=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(nf(),n),s=i.insertBefore(nf(),n);t=new Vx(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Vr=(r,e,t=r)=>(r._$AI(e,t),r),jx={},sf=(r,e=jx)=>r._$AH=e,lf=r=>r._$AH,Xn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let i=e.nextSibling;e.remove(),e=i}}});var cf,Re,df=p(()=>{Kt();Oo();qs();cf=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Re=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,i]){let n=lf(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,b=n.length-1,O=0,C=a.length-1;for(;m<=b&&O<=C;)if(n[m]===null)m++;else if(n[b]===null)b--;else if(l[m]===s[O])d[O]=Vr(n[m],a[O]),m++,O++;else if(l[b]===s[C])d[C]=Vr(n[b],a[C]),b--,C--;else if(l[m]===s[C])d[C]=Vr(n[m],a[C]),oi(r,d[C+1],n[m]),m++,C--;else if(l[b]===s[O])d[O]=Vr(n[b],a[O]),oi(r,n[m],n[b]),b--,O++;else if(f===void 0&&(f=cf(s,O,C),g=cf(l,m,b)),f.has(l[m]))if(f.has(l[b])){let I=g.get(s[O]),D=I!==void 0?n[I]:null;if(D===null){let B=oi(r,n[m]);Vr(B,a[O]),d[O]=B}else d[O]=Vr(D,a[O]),oi(r,n[m],D),n[I]=null;O++}else Xn(n[b]),b--;else Xn(n[m]),m++;for(;O<=C;){let I=oi(r,d[C+1]);Vr(I,a[O]),d[O++]=I}for(;m<=b;){let I=n[m++];I!==null&&Xn(I)}return this.ut=s,sf(r,d),nt}})});var Zs={};ne(Zs,{repeat:()=>Re});var Yt=p(()=>{df()});var be,pf=p(()=>{Kt();Oo();be=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return nt}})});var Ys={};ne(Ys,{classMap:()=>be});var ut=p(()=>{pf()});var uf,Gx,Kx,ff=p(()=>{Kt();Oo();uf="important",Gx=" !"+uf,Kx=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce((e,t)=>{let i=r[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Gx);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?uf:""):t[i]=n}}return nt}})});var Qs={};ne(Qs,{styleMap:()=>Kx});var hf=p(()=>{ff()});var ii,wo,mf=p(()=>{Kt();Oo();ii=class extends Bt{constructor(e){if(super(e),this.it=T,e.type!==ar.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===nt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ii.directiveName="unsafeHTML",ii.resultType=1;wo=Zt(ii)});var Xs={};ne(Xs,{UnsafeHTMLDirective:()=>ii,unsafeHTML:()=>wo});var rn=p(()=>{mf()});var Js={};ne(Js,{CancelablePromise:()=>Jn,CanceledPromiseError:()=>sr,cancelable:()=>ni});var sr,Jn,ni,ea=p(()=>{"use strict";sr=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Jn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new sr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new sr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ni=r=>new Jn((e,t)=>r.then(e).catch(t))});var rl={};ne(rl,{applyMixinOnce:()=>Ne,dateReviver:()=>qx,deepCopy:()=>nn,deepEqual:()=>Ke,delay:()=>ta,eventPathContainsMatchingElement:()=>Yx,flatDeep:()=>Et,getComposedPathTo:()=>el,hasChanged:()=>Ar,last:()=>Qx,minmax:()=>Eo,parseDate:()=>gf,randomId:()=>tl,unslotText:()=>ai,waitFor:()=>jr,waitUntil:()=>on});async function on(r,e=10,t=2e4){await jr(async()=>await r()||void 0,e,t)}async function jr(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await ta(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Et(r,e){return r.flatMap(t=>[t,...Et(e(t),e)])}function qx(...r){return(e,t)=>r.includes(e)?gf(t):t}function gf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,i,n)=>t+i+":"+n),new Date(r)}function Zx(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ke(r[i],e[i]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;for(i of r.entries())if(!Ke(i[1],e.get(i[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),t=n.length,t!==a(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=t;i--!==0;){let s=n[i];if(!Ke(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ke(r,e){try{return Zx(r,e)}catch{return!1}}function Ar(r,e){return!Ke(r,e)}function Yx(r,e,t=window.document.body){if(e.length>0){let i=r.composedPath();for(let n of i){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Eo(r,e,t){return Math.min(Math.max(r,e),t)}function Qx(r){return r[r.length-1]}function ai(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ai(e)).join(""):r?.textContent||""}function el(r){let e=[],t=i=>{i.stopPropagation(),e=i.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function nn(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function tl(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ne(r,e){let t=i=>i[r]===!0;return i=>{if(t(i))return i;let n=e(i);return n[r]=!0,n}}var ta,yt=p(()=>{"use strict";ta=r=>new Promise(e=>setTimeout(e,r))});var nl={};ne(nl,{FtNotificationEvent:()=>an,PostResizeEvent:()=>il,PreResizeEvent:()=>ol,WithEventBus:()=>Lr,withEventBus:()=>ra});var an,ol,il,ra,Lr,si=p(()=>{"use strict";yt();an=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ol=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},il=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ra=Ne(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,i,n){this.eventBus.addEventListener(t,i,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,i,n){this.eventBus.removeEventListener(t,i,n)}}}),Lr=class extends ra(Object){}});var al={};ne(al,{CacheRegistry:()=>lr,ClearCacheEvent:()=>sn});var sn,lr,sl=p(()=>{"use strict";ea();si();sn=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},lr=class extends Lr{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new sn(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new sn([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=ni(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var dl={};ne(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,pl=p(()=>{"use strict";cl=class r{constructor(e,t,i,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var t,i,n,a,s;let l=((a=(i=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&i!==void 0?i:(n=e.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,i){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ll(l)),s.push(ll(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,i="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,b,O)=>O.findIndex(C=>C.value===m.value)===b).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,b)=>this.compareMetadata(m.metadata.value,b.metadata.value,e,t))}compareMetadata(e,t,i,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let i=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(i=>t.some(n=>n.key===i.key&&n.value===i.value)).length}}});var ul={};ne(ul,{Debouncer:()=>pe});var pe,oa=p(()=>{"use strict";pe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,i)=>{this.resolvePromise=t,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var fl={};ne(fl,{customElement:()=>M,dateProperty:()=>Jx,isNumber:()=>yf,jsonProperty:()=>Ee,numberProperty:()=>Gr,optionalNumberProperty:()=>Xx});function Ee(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ar,...e??{}})}function Xx(r){return Gr(r)}function Gr(r){return h({type:Object,converter:{fromAttribute:e=>{if(e!=null)return yf(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function yf(r){return!isNaN(parseFloat(r))}function Jx(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var M,ia=p(()=>{"use strict";Y();yt();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Kr(`${r.name}: ${e}`)}var Kr,o,se=p(()=>{P();Kr=r=>typeof r=="string"?ir(r):r,o=class{static create(e,t,i,n){let a=l=>Kr(l??n),s=A`var(${Kr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Kr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=A`var(${Kr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Kr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=A`var(${Kr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>A`var(${Kr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,hl,ml,gl,yl,bl,xl,vl,Sl,Ro,bf,Cl,Ol,wl,El,Rl,Al,Ll,Il,kl,_l,qr,$l,Tl,Pl,Nl,Fl,ln,ev,le=p(()=>{se();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},hl={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Ro={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},bf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Cl={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ol={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},wl={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},El={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Rl={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Al={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Ll={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Il={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},kl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},_l={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},qr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},$l={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Tl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Pl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Fl={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},ln={display:hl,"title-1":ml,"title-2":gl,"title-3":yl,"body-1-regular":bl,"body-1-medium":xl,"body-1-semibold":vl,"body-2-regular":Sl,"body-2-medium":Ro,"body-2-medium-underline":bf,"body-2-semibold":Cl,"label-1-medium":Ol,"label-1-semibold":wl,"label-1-bold":El,"label-2-medium":Rl,"label-2-semibold":Al,"label-2-bold":Ll,"caption-1-medium":Il,"caption-1-semibold":kl,"caption-1-bold":_l,"caption-2-medium":qr,"caption-2-semibold":$l,"caption-2-bold":Tl,"caption-3-medium":Pl,"caption-3-semibold":Nl,"caption-3-bold":Fl},ev=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{se();le();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var v,xf=p(()=>{se();le();ge();v={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var tv,vf=p(()=>{se();le();ge();tv={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ft-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ft-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ft-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ft-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ft-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ft-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ft-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ft-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)}});var rv,Sf=p(()=>{se();le();ge();rv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var ue,Cf=p(()=>{se();le();ge();ue={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var ov,Of=p(()=>{se();le();ge();ov={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var iv,wf=p(()=>{se();le();ge();iv={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Z,Ef=p(()=>{se();le();ge();Z={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var nv,Rf=p(()=>{se();le();ge();nv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var av,Af=p(()=>{se();le();ge();av={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var sv,Lf=p(()=>{se();le();ge();sv={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var lv,If=p(()=>{se();le();ge();lv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var cv,kf=p(()=>{se();le();ge();cv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var dv,_f=p(()=>{se();le();ge();dv={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var pv,$f=p(()=>{se();le();pv={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var uv,Tf=p(()=>{se();le();ge();uv={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var fv,Pf=p(()=>{se();le();ge();fv={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var hv,Nf=p(()=>{se();le();ge();hv={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var mv,Ff=p(()=>{se();le();ge();mv={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var gv,Bf=p(()=>{se();le();ge();gv={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var yv,Df=p(()=>{se();le();ge();yv={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var bv,Mf=p(()=>{se();le();ge();bv={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var xv,Uf=p(()=>{se();le();ge();xv={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var vv,zf=p(()=>{se();le();ge();vv={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var Sv,Hf=p(()=>{se();le();ge();Sv={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var Cv,Wf=p(()=>{se();le();ge();Cv={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var Ov,Vf=p(()=>{se();le();Ov={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var wv,jf=p(()=>{se();le();wv={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var Ev,Gf=p(()=>{se();le();ge();Ev={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var Rv,Kf=p(()=>{se();le();ge();Rv={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var Av,qf=p(()=>{se();le();ge();Av={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var Lv,Zf=p(()=>{se();le();ge();Lv={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var Iv,Yf=p(()=>{se();le();ge();Iv={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var kv,Qf=p(()=>{se();le();kv={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Xf=p(()=>{le();ge();xf();vf();Sf();Cf();Of();wf();Ef();Rf();Af();Lf();If();kf();_f();$f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf();zf();Hf();Wf();Vf();jf();Gf();Kf();qf();Zf();Yf();Qf()});function Bl(r){return`ftds--family-${r}`}function Dl(r){return`ftds--size-${r}`}var Rt,qe,Jf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Rt||(Rt={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(qe||(qe={}))});var ee=p(()=>{se();Xf();Jf()});var Ml={};ne(Ml,{DesignSystemFamily:()=>Rt,DesignSystemSize:()=>qe,FtCssVariableFactory:()=>o,badge:()=>sv,banner:()=>av,button:()=>v,chart:()=>Ov,checkbox:()=>rv,chip:()=>Z,chipChoice:()=>iv,collapsible:()=>Sv,comboboxMultiSelect:()=>xv,comboboxSingleSelect:()=>bv,dateRangePicker:()=>kv,drawer:()=>fv,floatingMenu:()=>yv,foundation:()=>c,link:()=>nv,modal:()=>uv,notice:()=>Ev,notification:()=>Av,pageDesigner:()=>wv,pageFooter:()=>dv,pageHeader:()=>cv,pageLayout:()=>pv,popover:()=>vv,radio:()=>ue,reorderableList:()=>Iv,resolveFamilyClass:()=>Bl,resolveSizeClass:()=>Dl,semantic:()=>u,setVariable:()=>y,switch_:()=>Cv,table:()=>ov,tabs:()=>hv,textArea:()=>gv,textInput:()=>mv,titleBreadcrumb:()=>lv,toggle:()=>Rv,tooltip:()=>Lv,treeList:()=>tv,typographies:()=>ln,typographyBody1Medium:()=>xl,typographyBody1Regular:()=>bl,typographyBody1Semibold:()=>vl,typographyBody2Medium:()=>Ro,typographyBody2MediumUnderline:()=>bf,typographyBody2Regular:()=>Sl,typographyBody2Semibold:()=>Cl,typographyCaption1Bold:()=>_l,typographyCaption1Medium:()=>Il,typographyCaption1Semibold:()=>kl,typographyCaption2Bold:()=>Tl,typographyCaption2Medium:()=>qr,typographyCaption2Semibold:()=>$l,typographyCaption3Bold:()=>Fl,typographyCaption3Medium:()=>Pl,typographyCaption3Semibold:()=>Nl,typographyDisplay:()=>hl,typographyLabel1Bold:()=>El,typographyLabel1Medium:()=>Ol,typographyLabel1Semibold:()=>wl,typographyLabel2Bold:()=>Ll,typographyLabel2Medium:()=>Rl,typographyLabel2Semibold:()=>Al,typographyTitle1:()=>ml,typographyTitle2:()=>gl,typographyTitle3:()=>yl,typographyVariants:()=>ev});var na=p(()=>{"use strict";ee()});var Ul={};ne(Ul,{designSystemVariables:()=>w});var w,zl=p(()=>{"use strict";na();w={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var Hl={};ne(Hl,{DynamicImporter:()=>aa,dynamicImporter:()=>_v});var aa,_v,Wl=p(()=>{"use strict";aa=class{async import(e){return import(e)}},_v=new aa});function Gl(r,e,t){return Zr(r,sa(e,t))}function li(r,e){return typeof r=="function"?r(e):r}function Yr(r){return r.split("-")[0]}function cr(r){return r.split("-")[1]}function Kl(r){return r==="x"?"y":"x"}function ql(r){return r==="y"?"height":"width"}function ci(r){return["top","bottom"].includes(Yr(r))?"y":"x"}function Zl(r){return Kl(ci(r))}function rh(r,e,t){t===void 0&&(t=!1);let i=cr(r),n=Zl(r),a=ql(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Vl(s)),[s,Vl(s)]}function oh(r){return r.replace(/start|end/g,e=>Tv[e])}function Vl(r){return r.replace(/left|right|bottom|top/g,e=>$v[e])}function Pv(r){return{top:0,right:0,bottom:0,left:0,...r}}function ih(r){return typeof r!="number"?Pv(r):{top:r,right:r,bottom:r,left:r}}function Ao(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var th,eh,jl,sa,Zr,$v,Tv,Yl=p(()=>{th=["top","right","bottom","left"],eh=["start","end"],jl=th.reduce((r,e)=>r.concat(e,e+"-"+eh[0],e+"-"+eh[1]),[]),sa=Math.min,Zr=Math.max,$v={left:"right",right:"left",bottom:"top",top:"bottom"},Tv={start:"end",end:"start"}});function nh(r,e,t){let{reference:i,floating:n}=r,a=ci(e),s=Zl(e),l=ql(s),d=Yr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,O;switch(d){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y:m};break;case"left":O={x:i.x-n.width,y:m};break;default:O={x:i.x,y:i.y}}switch(cr(e)){case"start":O[s]-=b*(t&&f?-1:1);break;case"end":O[s]+=b*(t&&f?-1:1);break}return O}async function la(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:O=0}=li(e,r),C=ih(O),D=l[b?m==="floating"?"reference":"floating":m],B=Ao(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(D)))==null||t?D:D.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),z=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},_=Ao(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:k,strategy:d}):z);return{top:(B.top-_.top+C.top)/E.y,bottom:(_.bottom-B.bottom+C.bottom)/E.y,left:(B.left-_.left+C.left)/E.x,right:(_.right-B.right+C.right)/E.x}}function Nv(r,e,t){return(r?[...t.filter(n=>cr(n)===r),...t.filter(n=>cr(n)!==r)]:t.filter(n=>Yr(n)===n)).filter(n=>r?cr(n)===r||(e?oh(n)!==n:!1):!0)}async function Fv(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Yr(t),l=cr(t),d=ci(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=li(e,r),{mainAxis:b,crossAxis:O,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof C=="number"&&(O=l==="end"?C*-1:C),d?{x:O*g,y:b*f}:{x:b*f,y:O*g}}var ah,ca,Ql,Xl,Jl,ec=p(()=>{Yl();Yl();ah=async(r,e,t)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=nh(f,i,d),b=i,O={},C=0;for(let I=0;I<l.length;I++){let{name:D,fn:B}=l[I],{x:z,y:k,data:E,reset:_}=await B({x:g,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:f,platform:s,elements:{reference:r,floating:e}});g=z??g,m=k??m,O={...O,[D]:{...O[D],...E}},_&&C<=50&&(C++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(f=_.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):_.rects),{x:g,y:m}=nh(f,b,d)),I=-1)}return{x:g,y:m,placement:b,strategy:n,middlewareData:O}};ca=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:b=jl,autoAlignment:O=!0,...C}=li(r,e),I=m!==void 0||b===jl?Nv(m||null,O,b):b,D=await la(e,C),B=((t=s.autoPlacement)==null?void 0:t.index)||0,z=I[B];if(z==null)return{};let k=rh(z,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==z)return{reset:{placement:I[0]}};let E=[D[Yr(z)],D[k[0]],D[k[1]]],_=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:z,overflows:E}],G=I[B+1];if(G)return{data:{index:B+1,overflows:_},reset:{placement:G}};let J=_.map(K=>{let x=cr(K.placement);return[K.placement,x&&g?K.overflows.slice(0,2).reduce((R,j)=>R+j,0):K.overflows[0],K.overflows]}).sort((K,x)=>K[1]-x[1]),ce=((n=J.filter(K=>K[2].slice(0,cr(K[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||J[0][0];return ce!==l?{data:{index:B+1,overflows:_},reset:{placement:ce}}:{}}}};Ql=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Fv(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Xl=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:D=>{let{x:B,y:z}=D;return{x:B,y:z}}},...d}=li(r,e),f={x:t,y:i},g=await la(e,d),m=ci(Yr(n)),b=Kl(m),O=f[b],C=f[m];if(a){let D=b==="y"?"top":"left",B=b==="y"?"bottom":"right",z=O+g[D],k=O-g[B];O=Gl(z,O,k)}if(s){let D=m==="y"?"top":"left",B=m==="y"?"bottom":"right",z=C+g[D],k=C-g[B];C=Gl(z,C,k)}let I=l.fn({...e,[b]:O,[m]:C});return{...I,data:{x:I.x-t,y:I.y-i,enabled:{[b]:a,[m]:s}}}}}},Jl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=li(r,e),g=await la(e,f),m=Yr(n),b=cr(n),O=ci(n)==="y",{width:C,height:I}=a.floating,D,B;m==="top"||m==="bottom"?(D=m,B=b===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(B=m,D=b==="end"?"top":"bottom");let z=I-g.top-g.bottom,k=C-g.left-g.right,E=sa(I-g[D],z),_=sa(C-g[B],k),G=!e.middlewareData.shift,J=E,he=_;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(he=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=z),G&&!b){let K=Zr(g.left,0),x=Zr(g.right,0),R=Zr(g.top,0),j=Zr(g.bottom,0);O?he=C-2*(K!==0||x!==0?K+x:Zr(g.left,g.right)):J=I-2*(R!==0||j!==0?R+j:Zr(g.top,g.bottom))}await d({...e,availableWidth:he,availableHeight:J});let ce=await s.getDimensions(l.floating);return C!==ce.width||I!==ce.height?{reset:{rects:!0}}:{}}}}});var tc,di,cn,Ir,sh=p(()=>{tc=Math.min,di=Math.max,cn=Math.round,Ir=r=>({x:r,y:r})});function kr(r){return ch(r)?(r.nodeName||"").toLowerCase():"#document"}function bt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function _r(r){var e;return(e=(ch(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ch(r){return r instanceof Node||r instanceof bt(r).Node}function dr(r){return r instanceof Element||r instanceof bt(r).Element}function Qt(r){return r instanceof HTMLElement||r instanceof bt(r).HTMLElement}function lh(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof bt(r).ShadowRoot}function pi(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=At(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function dh(r){return["table","td","th"].includes(kr(r))}function pa(r){let e=ua(),t=At(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function ph(r){let e=Lo(r);for(;Qt(e)&&!dn(e);){if(pa(e))return e;e=Lo(e)}return null}function ua(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dn(r){return["html","body","#document"].includes(kr(r))}function At(r){return bt(r).getComputedStyle(r)}function pn(r){return dr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Lo(r){if(kr(r)==="html")return r;let e=r.assignedSlot||r.parentNode||lh(r)&&r.host||_r(r);return lh(e)?e.host:e}function uh(r){let e=Lo(r);return dn(e)?r.ownerDocument?r.ownerDocument.body:r.body:Qt(e)&&pi(e)?e:uh(e)}function da(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=uh(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=bt(n);return a?e.concat(s,s.visualViewport||[],pi(n)?n:[],s.frameElement&&t?da(s.frameElement):[]):e.concat(n,da(n,[],t))}var fh=p(()=>{});function gh(r){let e=At(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Qt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=cn(t)!==a||cn(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function yh(r){return dr(r)?r:r.contextElement}function ui(r){let e=yh(r);if(!Qt(e))return Ir(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=gh(e),s=(a?cn(t.width):t.width)/i,l=(a?cn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function bh(r){let e=bt(r);return!ua()||!e.visualViewport?Bv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Dv(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==bt(r)?!1:e}function un(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=yh(r),s=Ir(1);e&&(i?dr(i)&&(s=ui(i)):s=ui(r));let l=Dv(a,t,i)?bh(a):Ir(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let b=bt(a),O=i&&dr(i)?bt(i):i,C=b.frameElement;for(;C&&i&&O!==b;){let I=ui(C),D=C.getBoundingClientRect(),B=At(C),z=D.left+(C.clientLeft+parseFloat(B.paddingLeft))*I.x,k=D.top+(C.clientTop+parseFloat(B.paddingTop))*I.y;d*=I.x,f*=I.y,g*=I.x,m*=I.y,d+=z,f+=k,C=bt(C).frameElement}}return Ao({width:g,height:m,x:d,y:f})}function Mv(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Qt(t),a=_r(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Ir(1),d=Ir(0);if((n||!n&&i!=="fixed")&&((kr(t)!=="body"||pi(a))&&(s=pn(t)),Qt(t))){let f=un(t);l=ui(t),d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Uv(r){return Array.from(r.getClientRects())}function xh(r){return un(_r(r)).left+pn(r).scrollLeft}function zv(r){let e=_r(r),t=pn(r),i=r.ownerDocument.body,n=di(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=di(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+xh(r),l=-t.scrollTop;return At(i).direction==="rtl"&&(s+=di(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Hv(r,e){let t=bt(r),i=_r(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ua();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Wv(r,e){let t=un(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Qt(r)?ui(r):Ir(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function hh(r,e,t){let i;if(e==="viewport")i=Hv(r,t);else if(e==="document")i=zv(_r(r));else if(dr(e))i=Wv(e,t);else{let n=bh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return Ao(i)}function vh(r,e){let t=Lo(r);return t===e||!dr(t)||dn(t)?!1:At(t).position==="fixed"||vh(t,e)}function Vv(r,e){let t=e.get(r);if(t)return t;let i=da(r,[],!1).filter(l=>dr(l)&&kr(l)!=="body"),n=null,a=At(r).position==="fixed",s=a?Lo(r):r;for(;dr(s)&&!dn(s);){let l=At(s),d=pa(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||pi(s)&&!d&&vh(r,s))?i=i.filter(g=>g!==s):n=l,s=Lo(s)}return e.set(r,i),i}function jv(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Vv(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=hh(e,g,n);return f.top=di(m.top,f.top),f.right=tc(m.right,f.right),f.bottom=tc(m.bottom,f.bottom),f.left=di(m.left,f.left),f},hh(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Gv(r){return gh(r)}function Kv(r,e,t){let i=Qt(e),n=_r(e),a=t==="fixed",s=un(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Ir(0);if(i||!i&&!a)if((kr(e)!=="body"||pi(n))&&(l=pn(e)),i){let f=un(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=xh(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function mh(r,e){return!Qt(r)||At(r).position==="fixed"?null:e?e(r):r.offsetParent}function Sh(r,e){let t=bt(r);if(!Qt(r))return t;let i=mh(r,e);for(;i&&dh(i)&&At(i).position==="static";)i=mh(i,e);return i&&(kr(i)==="html"||kr(i)==="body"&&At(i).position==="static"&&!pa(i))?t:i||ph(r)||t}function Zv(r){return At(r).direction==="rtl"}var Bv,qv,fi,rc,Ch=p(()=>{ec();ec();sh();fh();Bv=Ir(0);qv=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||Sh,a=this.getDimensions;return{reference:Kv(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};fi={convertOffsetParentRelativeRectToViewportRelativeRect:Mv,getDocumentElement:_r,getClippingRect:jv,getOffsetParent:Sh,getElementRects:qv,getClientRects:Uv,getDimensions:Gv,getScale:ui,isElement:dr,isRTL:Zv},rc=(r,e,t)=>{let i=new Map,n={platform:fi,...t},a={...n.platform,_c:i};return ah(r,e,{...n,platform:a})}});function ic(r){return Yv(r)}function oc(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Yv(r){for(let e=r;e;e=oc(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oc(r);e;e=oc(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}var Oh=p(()=>{});var sc={};ne(sc,{computeOffsetAutoPosition:()=>ac,computeOffsetPosition:()=>nc});async function nc(r,e,t){return rc(r,e,{platform:{...fi,getOffsetParent:i=>fi.getOffsetParent(i,ic)},middleware:[Xl({crossAxis:!0}),ca({allowedPlacements:[t]})]})}async function ac(r,e,t,i,n,a,s=4){return rc(r,e,{placement:t,strategy:n,platform:{...fi,getOffsetParent:l=>fi.getOffsetParent(l,ic)},middleware:[Ql(s),ca({allowedPlacements:i}),Jl({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var fa=p(()=>{"use strict";Ch();Oh()});var lc={};ne(lc,{ScopedRegistryLitElement:()=>fn});var fn,ha=p(()=>{"use strict";P();Vn();fn=class extends Rr{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(t);return qi(i,e.elementStyles),i}}});var dc={};ne(dc,{shadowQuerySelector:()=>cc,shadowQuerySelectorAll:()=>Qv});function cc(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Qv(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var ma=p(()=>{"use strict"});var pc={};ne(pc,{FtLitElement:()=>W});var hn,Ah,wh,Eh,Lh,Rh,W,mn=p(()=>{"use strict";Y();ia();oa();ha();ma();hn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wh=Symbol("constructorPrototype"),Eh=Symbol("constructorName"),Lh=Symbol("exportpartsDebouncer"),Rh=Symbol("dynamicDependenciesLoaded"),W=class extends fn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ah]=new pe(5),this[Eh]=this.constructor.name,this[wh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eh]&&Object.setPrototypeOf(this,this[wh])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[Rh]||(e[Rh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=cc(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,i,n;if(((i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&i!==void 0&&i)&&this[Lh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,i,n,a,s,l;let d=b=>b!=null&&b.trim().length>0,f=e.filter(d).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let b of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...C).filter(d).map(I=>I.trim()).forEach(I=>g.add(I))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(b=>f.map(O=>`${b}:${O}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ah=Lh;hn([h()],W.prototype,"exportpartsPrefix",void 0);hn([Ee([])],W.prototype,"exportpartsPrefixes",void 0);hn([h()],W.prototype,"customStylesheet",void 0);hn([h()],W.prototype,"elementToFocus",void 0);hn([N()],W.prototype,"useAdoptedStyleSheets",void 0)});var uc={};ne(uc,{FtdsBase:()=>gn,toFtdsBase:()=>pr});var Ih,pr,gn,fc=p(()=>{"use strict";mn();Y();ee();yt();Ih=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},pr=Ne(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=qe.medium,this.family=Rt.neutral}getDesignSystemBaseClasses(){return{[Bl(this.family)]:!0,[Dl(this.size)]:!0}}}return Ih([h()],e.prototype,"size",void 0),Ih([h()],e.prototype,"family",void 0),e}),gn=class extends pr(W){}});var kh={};var hc=p(()=>{"use strict"});var Io,_h=p(()=>{Io=class r{constructor(e,t=!0,i=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=i,this.iframesTimeout=n}static matches(e,t){let i=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=t.filter(a=>a.contains(i)).length>0;t.indexOf(i)===-1&&!n&&t.push(i)}),t}getIframeContents(e,t,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&t(n)}isIframeBlank(e){let t="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&i!==t&&i}observeIframeLoad(e,t,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,i):this.getIframeContents(e,t,i):this.observeIframeLoad(e,t,i)}catch{i()}}waitForIframes(e,t){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||t()})},n=>{n||t()})}forEachIframe(e,t,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),d()},d)})}createIterator(e,t,i){return document.createNodeIterator(e,t,i,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),i;return t===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:t,node:i}}checkIframeFilter(e,t,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,t,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,i,n)})})}iterateThroughNodes(e,t,i,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,b=>this.checkIframeFilter(f,g,b,l),b=>{this.createInstanceOnIframe(b).forEachNode(e,O=>d.push(O),n)}),d.push(f);d.forEach(b=>{i(b)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,t,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var yn,$h=p(()=>{_h();yn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new Io(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[t]=="function"&&i[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&t.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):i.trim()&&t.indexOf(i)===-1&&t.push(i)}),{keywords:t.sort((i,n)=>n.length-i.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,t.push(n),i=s)}),t}callNoMatchOnInvalidRanges(e,t){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,t,i){let n,a=!0,s=i.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:i})})}matchesExclude(e){return Io.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(i-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),b=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+b,e.nodes.forEach((O,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=g),e.nodes[C].end-=g)}),i-=g,a(s.node.previousSibling,s.start),i>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,b)=>{e.lastIndex=b,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,b=>t(b,l,a.value.substring(f,g),d),b=>{i(b,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));t.replaceChild(i,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,t){this.opt=t;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(b,O)=>this.opt.filter(O,f,i,m),b=>{m++,i++,this.opt.each(b)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,t){this.opt=t;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Io.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function mc(r){let e=new yn(r);return this.mark=(t,i)=>(e.mark(t,i),this),this.markRegExp=(t,i)=>(e.markRegExp(t,i),this),this.markRanges=(t,i)=>(e.markRanges(t,i),this),this.unmark=t=>(e.unmark(t),this),this}var Th=p(()=>{$h()});var yc={};ne(yc,{highlightHtml:()=>gc,highlightHtmlColorCssVariable:()=>Ph,highlightHtmlStyles:()=>Jv});function gc(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Xv(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Xv,Ph,Jv,bc=p(()=>{"use strict";P();ee();Th();Xv=mc,Ph=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Jv=A`
5
5
  .highlight-html-match {
6
6
  background: ${Ph};
7
7
  }
8
- `});var xc={};ne(xc,{noTextInputDefaultClearButton:()=>Io,noTextSelect:()=>_r,safariEllipsisFix:()=>$r,wordWrap:()=>bn});var _r,bn,$r,Io,vc=p(()=>{"use strict";P();_r=A`
8
+ `});var xc={};ne(xc,{noTextInputDefaultClearButton:()=>ko,noTextSelect:()=>$r,safariEllipsisFix:()=>Tr,wordWrap:()=>bn});var $r,bn,Tr,ko,vc=p(()=>{"use strict";P();$r=A`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,$r=A`
29
+ `,Tr=A`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,15 +37,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,Io=A`
40
+ `,ko=A`
41
41
  input::-webkit-search-cancel-button,
42
42
  input::-webkit-search-decoration,
43
43
  input::-webkit-search-results-button,
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `});var Nh={};var Sc=p(()=>{"use strict"});var Cc={};ne(Cc,{ParametrizedLabelResolver:()=>Yr});var Yr,Oc=p(()=>{"use strict";Yr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}}});var e0,ve,t0,Fh=p(()=>{"use strict";yt();Y();e0=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},ve=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Rr,attribute:!1,...e};h(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},t0=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var xn,wc=p(()=>{"use strict";xn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function hi(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ga=p(()=>{"use strict"});var vn,Qr,ko,Bh,Qt,Dh=p(()=>{"use strict";mn();ga();yt();vn=Symbol("internalReduxEventsUnsubscribers"),Qr=Symbol("internalStoresUnsubscribers"),ko=Symbol("internalStores"),Bh=Ne(Symbol("withRedux"),function(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ko].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ko].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ko].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[ko].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[ko].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ko].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Qr].has(s.store):this[Qr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Qr].set(s,l.subscribe(()=>this.updateFromStores())),this[vn].set(s,[]),hi(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=b=>this[g](b);l.addEventListener(f.eventName,m),this[vn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Qr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Qr].has(s)&&this[Qr].get(s)(),this[Qr].delete(s),(l=this[vn].get(s))===null||l===void 0||l.forEach(d=>d()),this[vn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Qr,t=ko,i=vn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Qt=class extends Bh(W){}});function Bt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Tr(r){return!!r&&!!r[ke]}function Xt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===c0}(r)||Array.isArray(r)||!!r[jh]||!!(!((e=r.constructor)===null||e===void 0)&&e[jh])||Tc(r)||Pc(r))}function _o(r,e,t){t===void 0&&(t=!1),yi(r)===0?(t?Object.keys:gi)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function yi(r){var e=r[ke];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Tc(r)?2:Pc(r)?3:0}function mi(r,e){return yi(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function r0(r,e){return yi(r)===2?r.get(e):r[e]}function Gh(r,e,t){var i=yi(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Kh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Tc(r){return s0&&r instanceof Map}function Pc(r){return l0&&r instanceof Set}function Xr(r){return r.o||r.t}function Nc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Yh(r);delete e[ke];for(var t=gi(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Fc(r,e){return e===void 0&&(e=!1),Bc(r)||Tr(r)||!Xt(r)||(yi(r)>1&&(r.set=r.add=r.clear=r.delete=o0),Object.freeze(r),e&&_o(r,function(t,i){return Fc(i,!0)},!0)),r}function o0(){Bt(2)}function Bc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function pr(r){var e=$c[r];return e||Bt(18,r),e}function i0(r,e){$c[r]||($c[r]=e)}function Ic(){return Cn}function Ec(r,e){e&&(pr("Patches"),r.u=[],r.s=[],r.v=e)}function ya(r){kc(r),r.p.forEach(n0),r.p=null}function kc(r){r===Cn&&(Cn=r.l)}function Mh(r){return Cn={p:[],l:Cn,h:r,m:!0,_:0}}function n0(r){var e=r[ke];e.i===0||e.i===1?e.j():e.g=!0}function Rc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||pr("ES5").S(e,r,i),i?(t[ke].P&&(ya(e),Bt(4)),Xt(r)&&(r=ba(e,r),e.l||xa(e,r)),e.u&&pr("Patches").M(t[ke].t,r,e.u,e.s)):r=ba(e,t,[]),ya(e),e.u&&e.v(e.u,e.s),r!==Zh?r:void 0}function ba(r,e,t){if(Bc(e))return e;var i=e[ke];if(!i)return _o(e,function(l,d){return Uh(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return xa(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Nc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),_o(a,function(l,d){return Uh(r,i,n,l,d,t,s)}),xa(r,n,!1),t&&r.u&&pr("Patches").N(i,t,r.u,r.s)}return i.o}function Uh(r,e,t,i,n,a,s){if(Tr(n)){var l=ba(r,n,a&&e&&e.i!==3&&!mi(e.R,i)?a.concat(i):void 0);if(Gh(t,i,l),!Tr(l))return;r.m=!1}else s&&t.add(n);if(Xt(n)&&!Bc(n)){if(!r.h.D&&r._<1)return;ba(r,n),e&&e.A.l||xa(r,n)}}function xa(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Fc(e,t)}function Ac(r,e){var t=r[ke];return(t?Xr(t):r)[e]}function zh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Jr(r){r.P||(r.P=!0,r.l&&Jr(r.l))}function Lc(r){r.o||(r.o=Nc(r.t))}function _c(r,e,t){var i=Tc(e)?pr("MapSet").F(e,t):Pc(e)?pr("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ic(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=On;s&&(d=[l],f=Sn);var g=Proxy.revocable(d,f),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(e,t):pr("ES5").J(e,t);return(t?t.A:Ic()).p.push(i),i}function a0(r){return Tr(r)||Bt(22,r),function e(t){if(!Xt(t))return t;var i,n=t[ke],a=yi(t);if(n){if(!n.P&&(n.i<4||!pr("ES5").K(n)))return n.t;n.I=!0,i=Hh(t,a),n.I=!1}else i=Hh(t,a);return _o(i,function(s,l){n&&r0(n.t,s)===l||Gh(i,s,e(l))}),a===3?new Set(i):i}(r)}function Hh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Nc(r)}function qh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[ke];return On.get(f,s)},set:function(f){var g=this[ke];On.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ke];if(!d.P)switch(d.i){case 5:i(d)&&Jr(d);break;case 4:t(d)&&Jr(d)}}}function t(s){for(var l=s.t,d=s.k,f=gi(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==ke){var b=l[m];if(b===void 0&&!mi(l,m))return!0;var O=d[m],C=O&&O[ke];if(C?C.t!==b:!Kh(O,b))return!0}}var I=!!l[ke];return f.length!==gi(l).length+(I?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&Bt(3,JSON.stringify(Xr(s)))}var a={};i0("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,b){if(m){for(var O=Array(b.length),C=0;C<b.length;C++)Object.defineProperty(O,""+C,r(C,!0));return O}var I=Yh(b);delete I[ke];for(var D=gi(I),B=0;B<D.length;B++){var z=D[B];I[z]=r(z,m||!!I[z].enumerable)}return Object.create(Object.getPrototypeOf(b),I)}(d,s),g={i:d?5:4,A:l?l.A:Ic(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ke,{value:g,writable:!0}),f},S:function(s,l,d){d?Tr(l)&&l[ke].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[ke];if(m){var b=m.t,O=m.k,C=m.R,I=m.i;if(I===4)_o(O,function(E){E!==ke&&(b[E]!==void 0||mi(b,E)?C[E]||f(O[E]):(C[E]=!0,Jr(m)))}),_o(b,function(E){O[E]!==void 0||mi(O,E)||(C[E]=!1,Jr(m))});else if(I===5){if(i(m)&&(Jr(m),C.length=!0),O.length<b.length)for(var D=O.length;D<b.length;D++)C[D]=!1;else for(var B=b.length;B<O.length;B++)C[B]=!0;for(var z=Math.min(O.length,b.length),k=0;k<z;k++)O.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&f(O[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var Wh,Cn,Dc,s0,l0,Vh,Zh,jh,ke,c0,gi,Yh,$c,On,Sn,d0,Lt,p0,eA,tA,rA,oA,iA,nA,va,Sa=p(()=>{Dc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",s0=typeof Map<"u",l0=typeof Set<"u",Vh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zh=Dc?Symbol.for("immer-nothing"):((Wh={})["immer-nothing"]=!0,Wh),jh=Dc?Symbol.for("immer-draftable"):"__$immer_draftable",ke=Dc?Symbol.for("immer-state"):"__$immer_state",c0=""+Object.prototype.constructor,gi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Yh=Object.getOwnPropertyDescriptors||function(r){var e={};return gi(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},$c={},On={get:function(r,e){if(e===ke)return r;var t=Xr(r);if(!mi(t,e))return function(n,a,s){var l,d=zh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!Xt(i)?i:i===Ac(r.t,e)?(Lc(r),r.o[e]=_c(r.A.h,i,r)):i},has:function(r,e){return e in Xr(r)},ownKeys:function(r){return Reflect.ownKeys(Xr(r))},set:function(r,e,t){var i=zh(Xr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ac(Xr(r),e),a=n?.[ke];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Kh(t,n)&&(t!==void 0||mi(r.t,e)))return!0;Lc(r),Jr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Lc(r),Jr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Xr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){Bt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Bt(12)}},Sn={};_o(On,function(r,e){Sn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Sn.deleteProperty=function(r,e){return Sn.set.call(this,r,e,void 0)},Sn.set=function(r,e,t){return On.set.call(this,r[0],e,t,r[0])};d0=function(){function r(t){var i=this;this.O=Vh,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(I){var D=this;I===void 0&&(I=l);for(var B=arguments.length,z=Array(B>1?B-1:0),k=1;k<B;k++)z[k-1]=arguments[k];return d.produce(I,function(E){var _;return(_=a).call.apply(_,[D,E].concat(z))})}}var f;if(typeof a!="function"&&Bt(6),s!==void 0&&typeof s!="function"&&Bt(7),Xt(n)){var g=Mh(i),m=_c(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ya(g):kc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(I){return Ec(g,s),Rc(I,g)},function(I){throw ya(g),I}):(Ec(g,s),Rc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Zh&&(f=void 0),i.D&&Fc(f,!0),s){var O=[],C=[];pr("Patches").M(n,f,O,C),s(O,C)}return f}Bt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(O){return n.apply(void 0,[O].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Xt(t)||Bt(8),Tr(t)&&(t=a0(t));var i=Mh(this),n=_c(this,t,void 0);return n[ke].C=!0,kc(i),n},e.finishDraft=function(t,i){var n=t&&t[ke],a=n.A;return Ec(a,i),Rc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vh&&Bt(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=pr("Patches").$;return Tr(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Lt=new d0,p0=Lt.produce,eA=Lt.produceWithPatches.bind(Lt),tA=Lt.setAutoFreeze.bind(Lt),rA=Lt.setUseProxies.bind(Lt),oA=Lt.applyPatches.bind(Lt),iA=Lt.createDraft.bind(Lt),nA=Lt.finishDraft.bind(Lt),va=p0});function $o(r){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(r)}var Mc=p(()=>{});function Qh(r,e){if($o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if($o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Xh=p(()=>{Mc()});function Jh(r){var e=Qh(r,"string");return $o(e)=="symbol"?e:e+""}var em=p(()=>{Mc();Xh()});function tm(r,e,t){return(e=Jh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rm=p(()=>{em()});function om(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Uc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?om(Object(t),!0).forEach(function(i){tm(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):om(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var im=p(()=>{rm()});function at(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function u0(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Hc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(at(1));return t(Hc)(r,e)}if(typeof r!="function")throw new Error(at(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(at(3));return a}function m(I){if(typeof I!="function")throw new Error(at(4));if(d)throw new Error(at(5));var D=!0;return f(),l.push(I),function(){if(D){if(d)throw new Error(at(6));D=!1,f();var z=l.indexOf(I);l.splice(z,1),s=null}}}function b(I){if(!u0(I))throw new Error(at(7));if(typeof I.type>"u")throw new Error(at(8));if(d)throw new Error(at(9));try{d=!0,a=n(a,I)}finally{d=!1}for(var D=s=l,B=0;B<D.length;B++){var z=D[B];z()}return I}function O(I){if(typeof I!="function")throw new Error(at(10));n=I,b({type:Ca.REPLACE})}function C(){var I,D=m;return I={subscribe:function(z){if(typeof z!="object"||z===null)throw new Error(at(11));function k(){z.next&&z.next(g())}k();var E=D(k);return{unsubscribe:E}}},I[nm]=function(){return this},I}return b({type:Ca.INIT}),i={dispatch:b,subscribe:m,getState:g,replaceReducer:O},i[nm]=C,i}function f0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Ca.INIT});if(typeof i>"u")throw new Error(at(12));if(typeof t(void 0,{type:Ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(at(13))})}function am(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{f0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,O={},C=0;C<a.length;C++){var I=a[C],D=t[I],B=f[I],z=D(B,g);if(typeof z>"u"){var k=g&&g.type;throw new Error(at(14))}O[I]=z,b=b||z!==B}return b=b||a.length!==Object.keys(f).length,b?O:f}}function bi(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function sm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(at(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=bi.apply(void 0,l)(n.dispatch),Uc(Uc({},n),{},{dispatch:a})}}}var nm,zc,Ca,Oa=p(()=>{im();nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ca={INIT:"@@redux/INIT"+zc(),REPLACE:"@@redux/REPLACE"+zc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zc()}}});function lm(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var cm,Wc,dm=p(()=>{cm=lm();cm.withExtraArgument=lm;Wc=cm});function C0(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Kc(r){return Xt(r)?va(r,function(){}):r}function E0(r){return typeof r=="boolean"}function R0(){return function(e){return A0(e)}}function A0(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new O0;if(t&&(E0(t)?l.push(Wc):l.push(Wc.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function gm(r){var e=R0(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,b=m===void 0?void 0:m,O;if(typeof n=="function")O=n;else if(C0(n))O=am(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(e),!jc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!jc&&C.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var I=sm.apply(void 0,C),D=bi;d&&(D=S0(eo({trace:!jc},typeof d=="object"&&d)));var B=new w0(I),z=B;Array.isArray(b)?z=xi([I],b):typeof b=="function"&&(z=b(B));var k=D.apply(void 0,z);return Hc(O,g,k)}function to(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return eo(eo({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function ym(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function L0(r){return typeof r=="function"}function I0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?ym(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(L0(r))d=function(){return Kc(r())};else{var f=Kc(r);d=function(){return f}}function g(m,b){m===void 0&&(m=d());var O=xi([a[b.type]],s.filter(function(C){var I=C.matcher;return I(b)}).map(function(C){var I=C.reducer;return I}));return O.filter(function(C){return!!C}).length===0&&(O=[l]),O.reduce(function(C,I){if(I)if(Tr(C)){var D=C,B=I(D,b);return B===void 0?C:B}else{if(Xt(C))return va(C,function(z){return I(z,b)});var B=I(C,b);if(B===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return C},m)}return g.getInitialState=d,g}function k0(r,e){return r+"/"+e}function bm(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Kc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],b=k0(e,g),O,C;"reducer"in m?(O=m.reducer,C=m.prepare):O=m,a[g]=O,s[b]=O,l[g]=C?to(b,C):to(b)});function d(){var g=typeof r.extraReducers=="function"?ym(r.extraReducers):[r.extraReducers],m=g[0],b=m===void 0?{}:m,O=g[1],C=O===void 0?[]:O,I=g[2],D=I===void 0?void 0:I,B=eo(eo({},b),s);return I0(t,function(z){for(var k in B)z.addCase(k,B[k]);for(var E=0,_=C;E<_.length;E++){var G=_[E];z.addMatcher(G.matcher,G.reducer)}D&&z.addDefaultCase(D)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function N0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function F0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var mm,h0,xi,m0,g0,y0,pm,b0,x0,um,eo,Vc,v0,S0,OA,O0,w0,jc,_0,$0,T0,Gc,fm,P0,AA,xm,vm,Sm,LA,IA,kA,_A,qc,$A,TA,PA,hm,NA,B0,FA,Cm=p(()=>{Sa();Oa();Oa();Oa();dm();Sa();Sa();mm=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),h0=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},m0=Object.defineProperty,g0=Object.defineProperties,y0=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,um=function(r,e,t){return e in r?m0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},eo=function(r,e){for(var t in e||(e={}))b0.call(e,t)&&um(r,t,e[t]);if(pm)for(var i=0,n=pm(e);i<n.length;i++){var t=n[i];x0.call(e,t)&&um(r,t,e[t])}return r},Vc=function(r,e){return g0(r,y0(e))},v0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},S0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bi:bi.apply(null,arguments)},OA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};O0=function(r){mm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),w0=function(r){mm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);jc=!0;_0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=_0[Math.random()*64|0];return e},T0=["name","message","stack","code"],Gc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),fm=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),P0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=T0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},AA=function(){function r(e,t,i){var n=to(e+"/fulfilled",function(g,m,b,O){return{payload:g,meta:Vc(eo({},O||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=to(e+"/pending",function(g,m,b){return{payload:void 0,meta:Vc(eo({},b||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=to(e+"/rejected",function(g,m,b,O,C){return{payload:O,error:(i&&i.serializeError||P0)(g||"Rejected"),meta:Vc(eo({},C||{}),{arg:b,requestId:m,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,b,O){var C=i?.idGenerator?i.idGenerator(g):$0(),I=new d,D,B=!1;function z(E){D=E,I.abort()}var k=function(){return v0(this,null,function(){var E,_,G,J,he,ce,K;return h0(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),J=(E=i?.condition)==null?void 0:E.call(i,g,{getState:b,extra:O}),F0(J)?[4,J]:[3,2];case 1:J=x.sent(),x.label=2;case 2:if(J===!1||I.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return B=!0,he=new Promise(function(R,j){return I.signal.addEventListener("abort",function(){return j({name:"AbortError",message:D||"Aborted"})})}),m(a(C,g,(_=i?.getPendingMeta)==null?void 0:_.call(i,{requestId:C,arg:g},{getState:b,extra:O}))),[4,Promise.race([he,Promise.resolve(t(g,{dispatch:m,getState:b,extra:O,requestId:C,signal:I.signal,abort:z,rejectWithValue:function(R,j){return new Gc(R,j)},fulfillWithValue:function(R,j){return new fm(R,j)}})).then(function(R){if(R instanceof Gc)throw R;return R instanceof fm?n(R.payload,C,g,R.meta):n(R,C,g)})])];case 3:return G=x.sent(),[3,5];case 4:return ce=x.sent(),G=ce instanceof Gc?s(null,C,g,ce.payload,ce.meta):s(ce,C,g),[3,5];case 5:return K=i&&!i.dispatchConditionRejection&&s.match(G)&&G.meta.condition,K||m(G),[2,G]}})})}();return Object.assign(k,{abort:z,requestId:C,arg:g,unwrap:function(){return k.then(N0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();xm="listener",vm="completed",Sm="cancelled",LA="task-"+Sm,IA="task-"+vm,kA=xm+"-"+Sm,_A=xm+"-"+vm,qc="listenerMiddleware",$A=to(qc+"/add"),TA=to(qc+"/removeAll"),PA=to(qc+"/remove"),NA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(hm||(hm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},B0=function(r){return function(e){setTimeout(e,r)}},FA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:B0(10);qh()});function D0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))hi(e)&&e.clear()}var Pr,Om=p(()=>{"use strict";Cm();ga();wc();si();window.ftReduxStores||(window.ftReduxStores={});Pr=class r extends Ar{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(hi(a))return a;if(n==null)return;let s=bm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=gm({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new xn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function vi(r,e,t){return new wa(r,e,t).watch()}var wa,wm=p(()=>{"use strict";yt();wa=class{constructor(e,t,i){this.store=e,this.valueSelector=t,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Rr(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Zc={};ne(Zc,{FtCommandQueue:()=>xn,FtLitElementRedux:()=>Qt,FtReduxStore:()=>Pr,ReduxWatcher:()=>wa,clearAllStores:()=>D0,isFtReduxStore:()=>hi,redux:()=>ve,reduxEventListener:()=>t0,reduxReactive:()=>e0,watch:()=>vi,withRedux:()=>Bh});var Ea=p(()=>{"use strict";Fh();wc();Dh();Om();ga();wm()});var Jc={};ne(Jc,{scrollHelper:()=>Xc});var Yc,Ra,Qc,Xc,ed=p(()=>{"use strict";yt();Ra=new Map,Qc=class{lock(e,t){if(t){let i=Ra.get(t);if(i==null||i===e)return Ra.set(t,e),t}}release(e,t){t&&Ra.get(t)===e&&Ra.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of el(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(t=i??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var i,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(i=t.offsetTop)!==null&&i!==void 0?i:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=wo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Yc=window.FluidTopicsScrollHelper)!==null&&Yc!==void 0?Yc:new Qc;Xc=window.FluidTopicsScrollHelper});var Rm=Ex((ro,Em)=>{var Aa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,La=function(){function r(){this.fetch=!1,this.DOMException=Aa.DOMException}return r.prototype=Aa,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(x){return x&&DataView.prototype.isPrototypeOf(x)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(x){return x&&s.indexOf(Object.prototype.toString.call(x))>-1};function d(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(x)||x==="")throw new TypeError('Invalid character in header field name: "'+x+'"');return x.toLowerCase()}function f(x){return typeof x!="string"&&(x=String(x)),x}function g(x){var R={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return n.iterable&&(R[Symbol.iterator]=function(){return R}),R}function m(x){this.map={},x instanceof m?x.forEach(function(R,j){this.append(j,R)},this):Array.isArray(x)?x.forEach(function(R){if(R.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+R.length);this.append(R[0],R[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(R){this.append(R,x[R])},this)}m.prototype.append=function(x,R){x=d(x),R=f(R);var j=this.map[x];this.map[x]=j?j+", "+R:R},m.prototype.delete=function(x){delete this.map[d(x)]},m.prototype.get=function(x){return x=d(x),this.has(x)?this.map[x]:null},m.prototype.has=function(x){return this.map.hasOwnProperty(d(x))},m.prototype.set=function(x,R){this.map[d(x)]=f(R)},m.prototype.forEach=function(x,R){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(R,this.map[j],j,this)},m.prototype.keys=function(){var x=[];return this.forEach(function(R,j){x.push(j)}),g(x)},m.prototype.values=function(){var x=[];return this.forEach(function(R){x.push(R)}),g(x)},m.prototype.entries=function(){var x=[];return this.forEach(function(R,j){x.push([j,R])}),g(x)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(x){if(!x._noBody){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}}function O(x){return new Promise(function(R,j){x.onload=function(){R(x.result)},x.onerror=function(){j(x.error)}})}function C(x){var R=new FileReader,j=O(R);return R.readAsArrayBuffer(x),j}function I(x){var R=new FileReader,j=O(R),me=/charset=([A-Za-z0-9_-]+)/.exec(x.type),we=me?me[1]:"utf-8";return R.readAsText(x,we),j}function D(x){for(var R=new Uint8Array(x),j=new Array(R.length),me=0;me<R.length;me++)j[me]=String.fromCharCode(R[me]);return j.join("")}function B(x){if(x.slice)return x.slice(0);var R=new Uint8Array(x.byteLength);return R.set(new Uint8Array(x)),R.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(x){this.bodyUsed=this.bodyUsed,this._bodyInit=x,x?typeof x=="string"?this._bodyText=x:n.blob&&Blob.prototype.isPrototypeOf(x)?this._bodyBlob=x:n.formData&&FormData.prototype.isPrototypeOf(x)?this._bodyFormData=x:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)?this._bodyText=x.toString():n.arrayBuffer&&n.blob&&a(x)?(this._bodyArrayBuffer=B(x.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(x)||l(x))?this._bodyArrayBuffer=B(x):this._bodyText=x=Object.prototype.toString.call(x):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof x=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var x=b(this);if(x)return x;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(){if(this._bodyArrayBuffer){var x=b(this);return x||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var x=b(this);if(x)return x;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(x){var R=x.toUpperCase();return k.indexOf(R)>-1?R:x}function _(x,R){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var j=R.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,R.headers||(this.headers=new m(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new m(R.headers)),this.method=E(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var me=/([?&])_=[^&]*/;if(me.test(this.url))this.url=this.url.replace(me,"$1_="+new Date().getTime());else{var we=/\?/;this.url+=(we.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function G(x){var R=new FormData;return x.trim().split("&").forEach(function(j){if(j){var me=j.split("="),we=me.shift().replace(/\+/g," "),de=me.join("=").replace(/\+/g," ");R.append(decodeURIComponent(we),decodeURIComponent(de))}}),R}function J(x){var R=new m,j=x.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(me){return me.indexOf(`
48
- `)===0?me.substr(1,me.length):me}).forEach(function(me){var we=me.split(":"),de=we.shift().trim();if(de){var zn=we.join(":").trim();try{R.append(de,zn)}catch(Ls){console.warn("Response "+Ls.message)}}}),R}z.call(_.prototype);function he(x,R){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new m(R.headers),this.url=R.url||"",this._initBody(x)}z.call(he.prototype),he.prototype.clone=function(){return new he(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},he.error=function(){var x=new he(null,{status:200,statusText:""});return x.ok=!1,x.status=0,x.type="error",x};var ce=[301,302,303,307,308];he.redirect=function(x,R){if(ce.indexOf(R)===-1)throw new RangeError("Invalid status code");return new he(null,{status:R,headers:{location:x}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(R,j){this.message=R,this.name=j;var me=Error(R);this.stack=me.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function K(x,R){return new Promise(function(j,me){var we=new _(x,R);if(we.signal&&we.signal.aborted)return me(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function zn(){de.abort()}de.onload=function(){var Xe={statusText:de.statusText,headers:J(de.getAllResponseHeaders()||"")};we.url.indexOf("file://")===0&&(de.status<200||de.status>599)?Xe.status=200:Xe.status=de.status,Xe.url="responseURL"in de?de.responseURL:Xe.headers.get("X-Request-URL");var go="response"in de?de.response:de.responseText;setTimeout(function(){j(new he(go,Xe))},0)},de.onerror=function(){setTimeout(function(){me(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){me(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){me(new t.DOMException("Aborted","AbortError"))},0)};function Ls(Xe){try{return Xe===""&&i.location.href?i.location.href:Xe}catch{return Xe}}if(de.open(we.method,Ls(we.url),!0),we.credentials==="include"?de.withCredentials=!0:we.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof m||i.Headers&&R.headers instanceof i.Headers)){var _u=[];Object.getOwnPropertyNames(R.headers).forEach(function(Xe){_u.push(d(Xe)),de.setRequestHeader(Xe,f(R.headers[Xe]))}),we.headers.forEach(function(Xe,go){_u.indexOf(go)===-1&&de.setRequestHeader(go,Xe)})}else we.headers.forEach(function(Xe,go){de.setRequestHeader(go,Xe)});we.signal&&(we.signal.addEventListener("abort",zn),de.onreadystatechange=function(){de.readyState===4&&we.signal.removeEventListener("abort",zn)}),de.send(typeof we._bodyInit>"u"?null:we._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=m,i.Request=_,i.Response=he),t.Headers=m,t.Request=_,t.Response=he,t.fetch=K,t}({})})(La);La.fetch.ponyfill=!0;delete La.fetch.polyfill;var Si=Aa.fetch?Aa:La;ro=Si.fetch;ro.default=Si.fetch;ro.fetch=Si.fetch;ro.Headers=Si.Headers;ro.Request=Si.Request;ro.Response=Si.Response;Em.exports=ro});var td=p(()=>{});var Am,Lm,Im,Ci,km,_m,To,$m,Tm,Pm,Nm,Fm,Bm,Dm,Mm,Um,Po,Vm,zm,Ia,Hm,Oi,jm,Dt,wi,Wm,Ve,No,rd=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Am||(Am={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Lm||(Lm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Im||(Im={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ci||(Ci={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(km||(km={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(_m||(_m={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(To||(To={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})($m||($m={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Tm||(Tm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Pm||(Pm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Nm||(Nm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Fm||(Fm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Bm||(Bm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Dm||(Dm={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Mm||(Mm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Um||(Um={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Po||(Po={}));Vm=r=>Object.keys(Po).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(zm||(zm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ia||(Ia={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Hm||(Hm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Oi||(Oi={}));jm=r=>Object.keys(Oi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Dt||(Dt={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wi||(wi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wm||(Wm={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ve||(Ve={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(No||(No={}))});var Gm,Km,qm,Zm,Ym=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Gm||(Gm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Km||(Km={}));(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(qm||(qm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Zm||(Zm={}))});function Qm(r,e){return r===e||(M0[r]??[]).some(t=>Qm(t,e))}function Xm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Qm(i,e))}var M0,Jm=p(()=>{rd();M0={[Ve.PERSONAL_BOOK_SHARE_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.HTML_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.PDF_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.KHUB_ADMIN]:[Ve.CONTENT_PUBLISHER],[Ve.ADMIN]:[Ve.KHUB_ADMIN,Ve.USERS_ADMIN,Ve.PORTAL_ADMIN],[Ve.GENERATIVE_AI_EXPORT_USER]:[Ve.GENERATIVE_AI_USER]}});var eg=p(()=>{});var U0,oo=p(()=>{U0=Ax(Rm(),1);td();rd();Ym();Jm();eg();td()});var od={};ne(od,{SearchPlaceConverter:()=>io,SearchPlaceQueryParams:()=>Se,isSearchPlaceQueryParams:()=>rg,serializeRequest:()=>H0});function z0(r){return`"${r}"`}function tg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function H0(r,e){return new io(r).serialize(e)}function rg(r){return W0.has(r)}var Se,W0,io,id=p(()=>{"use strict";oo();yt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(Se||(Se={}));W0=new Set(Object.values(Se));io=class{constructor(e,t=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,b,O;let C=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&C.append(Se.LOCALE,e.contentLocale):C.append(Se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&C.append(Se.QUERY,e.query);let I=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(E=>E.valueFilter&&!E.valueFilter.negative))!==null&&a!==void 0?a:[];if(I.length>0){let E=I.map(_=>{var G,J;let he=((J=(G=_.valueFilter)===null||G===void 0?void 0:G.values)!==null&&J!==void 0?J:[]).map(ce=>this.escapeFilters(ce)).map(ce=>z0(tg(ce))).join("_");return`${_.key}~${he}`}).join("*");C.append(Se.VALUE_FILTERS,E)}let D=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(D.length>0){let E=D.map(_=>{var G;return`${_.key}~${(G=_.dateFilter)===null||G===void 0?void 0:G.type.toLowerCase()}`}).join("*");C.append(Se.DATE_FILTERS,E)}let B=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&f!==void 0?f:[];if(B.length>0){let E=B.map(_=>{var G,J;return`${_.key}~${(G=_.rangeFilter)===null||G===void 0?void 0:G.from}_${(J=_.rangeFilter)===null||J===void 0?void 0:J.to}`}).join("*");C.append(Se.RANGE_FILTERS,E)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(Se.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Se.PER_PAGE,String(e.paging.perPage));let z=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let E in z)C.append(E,z[E]);let k=new Array;return C.forEach((E,_)=>{k.push(this.encodeQueryString(_)+"="+this.encodeQueryString(E))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(Se.LOCALE)==="all"?void 0:d.get(Se.LOCALE),g=((t=d.get(Se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(i=d.get(Se.SORT))===null||i===void 0?void 0:i.toLowerCase(),b=(n=d.get(Se.SCOPE))!==null&&n!==void 0?n:"default",O=+((a=d.get(Se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let I of d.keys())rg(I)||(C[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Se.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Vm(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:wo(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(Se.FILTERS)&&(d=this.parseValueFilters((t=e.get(Se.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(Se.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(Se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(tg).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Oi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(jm(e))return[{key:"ft:lastEdition",dateFilter:{type:Oi[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var sd={};ne(sd,{toFtFormComponent:()=>ad});var nd,ad,ld=p(()=>{"use strict";yt();nd=Symbol("elementInternals"),ad=Ne(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[nd].form}constructor(...i){super(i),this[nd]=this.attachInternals()}setFormValue(i){this[nd].setFormValue(i)}}return e})});var cd={};ne(cd,{DateFormatter:()=>Fo});var Fo,ka=p(()=>{"use strict";Fo=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,t,i,n)}static getMomentDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(t,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var pd={};ne(pd,{ALL_KEYS_VALUE:()=>dd,SameWindowStorageEvent:()=>Ei});var dd,Ei,ud=p(()=>{"use strict";dd="__all__",Ei=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dd}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new Ei(dd))}})});var hd={};ne(hd,{FocusMainContentEvent:()=>fd});var fd,md=p(()=>{"use strict";fd=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var og={};function V0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function j0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var gd=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",V0);document.addEventListener("click",j0)});var Ri,yd=p(()=>{"use strict";P();Ri=A`
47
+ `});var Nh={};var Sc=p(()=>{"use strict"});var Cc={};ne(Cc,{ParametrizedLabelResolver:()=>Qr});var Qr,Oc=p(()=>{"use strict";Qr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}}});var e0,ve,t0,Fh=p(()=>{"use strict";yt();Y();e0=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},ve=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Ar,attribute:!1,...e};h(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},t0=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var xn,wc=p(()=>{"use strict";xn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function hi(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ga=p(()=>{"use strict"});var vn,Xr,_o,Bh,Xt,Dh=p(()=>{"use strict";mn();ga();yt();vn=Symbol("internalReduxEventsUnsubscribers"),Xr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),Bh=Ne(Symbol("withRedux"),function(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Xr].has(s.store):this[Xr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Xr].set(s,l.subscribe(()=>this.updateFromStores())),this[vn].set(s,[]),hi(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=b=>this[g](b);l.addEventListener(f.eventName,m),this[vn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Xr].has(s)&&this[Xr].get(s)(),this[Xr].delete(s),(l=this[vn].get(s))===null||l===void 0||l.forEach(d=>d()),this[vn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xr,t=_o,i=vn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Xt=class extends Bh(W){}});function Dt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pr(r){return!!r&&!!r[ke]}function Jt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===c0}(r)||Array.isArray(r)||!!r[jh]||!!(!((e=r.constructor)===null||e===void 0)&&e[jh])||Tc(r)||Pc(r))}function $o(r,e,t){t===void 0&&(t=!1),yi(r)===0?(t?Object.keys:gi)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function yi(r){var e=r[ke];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Tc(r)?2:Pc(r)?3:0}function mi(r,e){return yi(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function r0(r,e){return yi(r)===2?r.get(e):r[e]}function Gh(r,e,t){var i=yi(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Kh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Tc(r){return s0&&r instanceof Map}function Pc(r){return l0&&r instanceof Set}function Jr(r){return r.o||r.t}function Nc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Yh(r);delete e[ke];for(var t=gi(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Fc(r,e){return e===void 0&&(e=!1),Bc(r)||Pr(r)||!Jt(r)||(yi(r)>1&&(r.set=r.add=r.clear=r.delete=o0),Object.freeze(r),e&&$o(r,function(t,i){return Fc(i,!0)},!0)),r}function o0(){Dt(2)}function Bc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ur(r){var e=$c[r];return e||Dt(18,r),e}function i0(r,e){$c[r]||($c[r]=e)}function Ic(){return Cn}function Ec(r,e){e&&(ur("Patches"),r.u=[],r.s=[],r.v=e)}function ya(r){kc(r),r.p.forEach(n0),r.p=null}function kc(r){r===Cn&&(Cn=r.l)}function Mh(r){return Cn={p:[],l:Cn,h:r,m:!0,_:0}}function n0(r){var e=r[ke];e.i===0||e.i===1?e.j():e.g=!0}function Rc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||ur("ES5").S(e,r,i),i?(t[ke].P&&(ya(e),Dt(4)),Jt(r)&&(r=ba(e,r),e.l||xa(e,r)),e.u&&ur("Patches").M(t[ke].t,r,e.u,e.s)):r=ba(e,t,[]),ya(e),e.u&&e.v(e.u,e.s),r!==Zh?r:void 0}function ba(r,e,t){if(Bc(e))return e;var i=e[ke];if(!i)return $o(e,function(l,d){return Uh(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return xa(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Nc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),$o(a,function(l,d){return Uh(r,i,n,l,d,t,s)}),xa(r,n,!1),t&&r.u&&ur("Patches").N(i,t,r.u,r.s)}return i.o}function Uh(r,e,t,i,n,a,s){if(Pr(n)){var l=ba(r,n,a&&e&&e.i!==3&&!mi(e.R,i)?a.concat(i):void 0);if(Gh(t,i,l),!Pr(l))return;r.m=!1}else s&&t.add(n);if(Jt(n)&&!Bc(n)){if(!r.h.D&&r._<1)return;ba(r,n),e&&e.A.l||xa(r,n)}}function xa(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Fc(e,t)}function Ac(r,e){var t=r[ke];return(t?Jr(t):r)[e]}function zh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function eo(r){r.P||(r.P=!0,r.l&&eo(r.l))}function Lc(r){r.o||(r.o=Nc(r.t))}function _c(r,e,t){var i=Tc(e)?ur("MapSet").F(e,t):Pc(e)?ur("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ic(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=On;s&&(d=[l],f=Sn);var g=Proxy.revocable(d,f),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(e,t):ur("ES5").J(e,t);return(t?t.A:Ic()).p.push(i),i}function a0(r){return Pr(r)||Dt(22,r),function e(t){if(!Jt(t))return t;var i,n=t[ke],a=yi(t);if(n){if(!n.P&&(n.i<4||!ur("ES5").K(n)))return n.t;n.I=!0,i=Hh(t,a),n.I=!1}else i=Hh(t,a);return $o(i,function(s,l){n&&r0(n.t,s)===l||Gh(i,s,e(l))}),a===3?new Set(i):i}(r)}function Hh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Nc(r)}function qh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[ke];return On.get(f,s)},set:function(f){var g=this[ke];On.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ke];if(!d.P)switch(d.i){case 5:i(d)&&eo(d);break;case 4:t(d)&&eo(d)}}}function t(s){for(var l=s.t,d=s.k,f=gi(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==ke){var b=l[m];if(b===void 0&&!mi(l,m))return!0;var O=d[m],C=O&&O[ke];if(C?C.t!==b:!Kh(O,b))return!0}}var I=!!l[ke];return f.length!==gi(l).length+(I?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&Dt(3,JSON.stringify(Jr(s)))}var a={};i0("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,b){if(m){for(var O=Array(b.length),C=0;C<b.length;C++)Object.defineProperty(O,""+C,r(C,!0));return O}var I=Yh(b);delete I[ke];for(var D=gi(I),B=0;B<D.length;B++){var z=D[B];I[z]=r(z,m||!!I[z].enumerable)}return Object.create(Object.getPrototypeOf(b),I)}(d,s),g={i:d?5:4,A:l?l.A:Ic(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ke,{value:g,writable:!0}),f},S:function(s,l,d){d?Pr(l)&&l[ke].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[ke];if(m){var b=m.t,O=m.k,C=m.R,I=m.i;if(I===4)$o(O,function(E){E!==ke&&(b[E]!==void 0||mi(b,E)?C[E]||f(O[E]):(C[E]=!0,eo(m)))}),$o(b,function(E){O[E]!==void 0||mi(O,E)||(C[E]=!1,eo(m))});else if(I===5){if(i(m)&&(eo(m),C.length=!0),O.length<b.length)for(var D=O.length;D<b.length;D++)C[D]=!1;else for(var B=b.length;B<O.length;B++)C[B]=!0;for(var z=Math.min(O.length,b.length),k=0;k<z;k++)O.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&f(O[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var Wh,Cn,Dc,s0,l0,Vh,Zh,jh,ke,c0,gi,Yh,$c,On,Sn,d0,Lt,p0,eA,tA,rA,oA,iA,nA,va,Sa=p(()=>{Dc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",s0=typeof Map<"u",l0=typeof Set<"u",Vh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zh=Dc?Symbol.for("immer-nothing"):((Wh={})["immer-nothing"]=!0,Wh),jh=Dc?Symbol.for("immer-draftable"):"__$immer_draftable",ke=Dc?Symbol.for("immer-state"):"__$immer_state",c0=""+Object.prototype.constructor,gi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Yh=Object.getOwnPropertyDescriptors||function(r){var e={};return gi(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},$c={},On={get:function(r,e){if(e===ke)return r;var t=Jr(r);if(!mi(t,e))return function(n,a,s){var l,d=zh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!Jt(i)?i:i===Ac(r.t,e)?(Lc(r),r.o[e]=_c(r.A.h,i,r)):i},has:function(r,e){return e in Jr(r)},ownKeys:function(r){return Reflect.ownKeys(Jr(r))},set:function(r,e,t){var i=zh(Jr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ac(Jr(r),e),a=n?.[ke];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Kh(t,n)&&(t!==void 0||mi(r.t,e)))return!0;Lc(r),eo(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Lc(r),eo(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Jr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){Dt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Dt(12)}},Sn={};$o(On,function(r,e){Sn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Sn.deleteProperty=function(r,e){return Sn.set.call(this,r,e,void 0)},Sn.set=function(r,e,t){return On.set.call(this,r[0],e,t,r[0])};d0=function(){function r(t){var i=this;this.O=Vh,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(I){var D=this;I===void 0&&(I=l);for(var B=arguments.length,z=Array(B>1?B-1:0),k=1;k<B;k++)z[k-1]=arguments[k];return d.produce(I,function(E){var _;return(_=a).call.apply(_,[D,E].concat(z))})}}var f;if(typeof a!="function"&&Dt(6),s!==void 0&&typeof s!="function"&&Dt(7),Jt(n)){var g=Mh(i),m=_c(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ya(g):kc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(I){return Ec(g,s),Rc(I,g)},function(I){throw ya(g),I}):(Ec(g,s),Rc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Zh&&(f=void 0),i.D&&Fc(f,!0),s){var O=[],C=[];ur("Patches").M(n,f,O,C),s(O,C)}return f}Dt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(O){return n.apply(void 0,[O].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Jt(t)||Dt(8),Pr(t)&&(t=a0(t));var i=Mh(this),n=_c(this,t,void 0);return n[ke].C=!0,kc(i),n},e.finishDraft=function(t,i){var n=t&&t[ke],a=n.A;return Ec(a,i),Rc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vh&&Dt(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=ur("Patches").$;return Pr(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Lt=new d0,p0=Lt.produce,eA=Lt.produceWithPatches.bind(Lt),tA=Lt.setAutoFreeze.bind(Lt),rA=Lt.setUseProxies.bind(Lt),oA=Lt.applyPatches.bind(Lt),iA=Lt.createDraft.bind(Lt),nA=Lt.finishDraft.bind(Lt),va=p0});function To(r){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},To(r)}var Mc=p(()=>{});function Qh(r,e){if(To(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(To(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Xh=p(()=>{Mc()});function Jh(r){var e=Qh(r,"string");return To(e)=="symbol"?e:e+""}var em=p(()=>{Mc();Xh()});function tm(r,e,t){return(e=Jh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rm=p(()=>{em()});function om(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Uc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?om(Object(t),!0).forEach(function(i){tm(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):om(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var im=p(()=>{rm()});function at(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function u0(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Hc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(at(1));return t(Hc)(r,e)}if(typeof r!="function")throw new Error(at(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(at(3));return a}function m(I){if(typeof I!="function")throw new Error(at(4));if(d)throw new Error(at(5));var D=!0;return f(),l.push(I),function(){if(D){if(d)throw new Error(at(6));D=!1,f();var z=l.indexOf(I);l.splice(z,1),s=null}}}function b(I){if(!u0(I))throw new Error(at(7));if(typeof I.type>"u")throw new Error(at(8));if(d)throw new Error(at(9));try{d=!0,a=n(a,I)}finally{d=!1}for(var D=s=l,B=0;B<D.length;B++){var z=D[B];z()}return I}function O(I){if(typeof I!="function")throw new Error(at(10));n=I,b({type:Ca.REPLACE})}function C(){var I,D=m;return I={subscribe:function(z){if(typeof z!="object"||z===null)throw new Error(at(11));function k(){z.next&&z.next(g())}k();var E=D(k);return{unsubscribe:E}}},I[nm]=function(){return this},I}return b({type:Ca.INIT}),i={dispatch:b,subscribe:m,getState:g,replaceReducer:O},i[nm]=C,i}function f0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Ca.INIT});if(typeof i>"u")throw new Error(at(12));if(typeof t(void 0,{type:Ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(at(13))})}function am(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{f0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,O={},C=0;C<a.length;C++){var I=a[C],D=t[I],B=f[I],z=D(B,g);if(typeof z>"u"){var k=g&&g.type;throw new Error(at(14))}O[I]=z,b=b||z!==B}return b=b||a.length!==Object.keys(f).length,b?O:f}}function bi(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function sm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(at(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=bi.apply(void 0,l)(n.dispatch),Uc(Uc({},n),{},{dispatch:a})}}}var nm,zc,Ca,Oa=p(()=>{im();nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ca={INIT:"@@redux/INIT"+zc(),REPLACE:"@@redux/REPLACE"+zc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zc()}}});function lm(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var cm,Wc,dm=p(()=>{cm=lm();cm.withExtraArgument=lm;Wc=cm});function C0(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Kc(r){return Jt(r)?va(r,function(){}):r}function E0(r){return typeof r=="boolean"}function R0(){return function(e){return A0(e)}}function A0(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new O0;if(t&&(E0(t)?l.push(Wc):l.push(Wc.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function gm(r){var e=R0(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,b=m===void 0?void 0:m,O;if(typeof n=="function")O=n;else if(C0(n))O=am(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(e),!jc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!jc&&C.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var I=sm.apply(void 0,C),D=bi;d&&(D=S0(to({trace:!jc},typeof d=="object"&&d)));var B=new w0(I),z=B;Array.isArray(b)?z=xi([I],b):typeof b=="function"&&(z=b(B));var k=D.apply(void 0,z);return Hc(O,g,k)}function ro(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return to(to({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function ym(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function L0(r){return typeof r=="function"}function I0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?ym(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(L0(r))d=function(){return Kc(r())};else{var f=Kc(r);d=function(){return f}}function g(m,b){m===void 0&&(m=d());var O=xi([a[b.type]],s.filter(function(C){var I=C.matcher;return I(b)}).map(function(C){var I=C.reducer;return I}));return O.filter(function(C){return!!C}).length===0&&(O=[l]),O.reduce(function(C,I){if(I)if(Pr(C)){var D=C,B=I(D,b);return B===void 0?C:B}else{if(Jt(C))return va(C,function(z){return I(z,b)});var B=I(C,b);if(B===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return C},m)}return g.getInitialState=d,g}function k0(r,e){return r+"/"+e}function bm(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Kc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],b=k0(e,g),O,C;"reducer"in m?(O=m.reducer,C=m.prepare):O=m,a[g]=O,s[b]=O,l[g]=C?ro(b,C):ro(b)});function d(){var g=typeof r.extraReducers=="function"?ym(r.extraReducers):[r.extraReducers],m=g[0],b=m===void 0?{}:m,O=g[1],C=O===void 0?[]:O,I=g[2],D=I===void 0?void 0:I,B=to(to({},b),s);return I0(t,function(z){for(var k in B)z.addCase(k,B[k]);for(var E=0,_=C;E<_.length;E++){var G=_[E];z.addMatcher(G.matcher,G.reducer)}D&&z.addDefaultCase(D)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function N0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function F0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var mm,h0,xi,m0,g0,y0,pm,b0,x0,um,to,Vc,v0,S0,OA,O0,w0,jc,_0,$0,T0,Gc,fm,P0,AA,xm,vm,Sm,LA,IA,kA,_A,qc,$A,TA,PA,hm,NA,B0,FA,Cm=p(()=>{Sa();Oa();Oa();Oa();dm();Sa();Sa();mm=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),h0=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},m0=Object.defineProperty,g0=Object.defineProperties,y0=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,um=function(r,e,t){return e in r?m0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},to=function(r,e){for(var t in e||(e={}))b0.call(e,t)&&um(r,t,e[t]);if(pm)for(var i=0,n=pm(e);i<n.length;i++){var t=n[i];x0.call(e,t)&&um(r,t,e[t])}return r},Vc=function(r,e){return g0(r,y0(e))},v0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},S0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bi:bi.apply(null,arguments)},OA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};O0=function(r){mm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),w0=function(r){mm(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);jc=!0;_0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=_0[Math.random()*64|0];return e},T0=["name","message","stack","code"],Gc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),fm=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),P0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=T0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},AA=function(){function r(e,t,i){var n=ro(e+"/fulfilled",function(g,m,b,O){return{payload:g,meta:Vc(to({},O||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=ro(e+"/pending",function(g,m,b){return{payload:void 0,meta:Vc(to({},b||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=ro(e+"/rejected",function(g,m,b,O,C){return{payload:O,error:(i&&i.serializeError||P0)(g||"Rejected"),meta:Vc(to({},C||{}),{arg:b,requestId:m,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,b,O){var C=i?.idGenerator?i.idGenerator(g):$0(),I=new d,D,B=!1;function z(E){D=E,I.abort()}var k=function(){return v0(this,null,function(){var E,_,G,J,he,ce,K;return h0(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),J=(E=i?.condition)==null?void 0:E.call(i,g,{getState:b,extra:O}),F0(J)?[4,J]:[3,2];case 1:J=x.sent(),x.label=2;case 2:if(J===!1||I.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return B=!0,he=new Promise(function(R,j){return I.signal.addEventListener("abort",function(){return j({name:"AbortError",message:D||"Aborted"})})}),m(a(C,g,(_=i?.getPendingMeta)==null?void 0:_.call(i,{requestId:C,arg:g},{getState:b,extra:O}))),[4,Promise.race([he,Promise.resolve(t(g,{dispatch:m,getState:b,extra:O,requestId:C,signal:I.signal,abort:z,rejectWithValue:function(R,j){return new Gc(R,j)},fulfillWithValue:function(R,j){return new fm(R,j)}})).then(function(R){if(R instanceof Gc)throw R;return R instanceof fm?n(R.payload,C,g,R.meta):n(R,C,g)})])];case 3:return G=x.sent(),[3,5];case 4:return ce=x.sent(),G=ce instanceof Gc?s(null,C,g,ce.payload,ce.meta):s(ce,C,g),[3,5];case 5:return K=i&&!i.dispatchConditionRejection&&s.match(G)&&G.meta.condition,K||m(G),[2,G]}})})}();return Object.assign(k,{abort:z,requestId:C,arg:g,unwrap:function(){return k.then(N0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();xm="listener",vm="completed",Sm="cancelled",LA="task-"+Sm,IA="task-"+vm,kA=xm+"-"+Sm,_A=xm+"-"+vm,qc="listenerMiddleware",$A=ro(qc+"/add"),TA=ro(qc+"/removeAll"),PA=ro(qc+"/remove"),NA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(hm||(hm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},B0=function(r){return function(e){setTimeout(e,r)}},FA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:B0(10);qh()});function D0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))hi(e)&&e.clear()}var Nr,Om=p(()=>{"use strict";Cm();ga();wc();si();window.ftReduxStores||(window.ftReduxStores={});Nr=class r extends Lr{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(hi(a))return a;if(n==null)return;let s=bm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=gm({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new xn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function vi(r,e,t){return new wa(r,e,t).watch()}var wa,wm=p(()=>{"use strict";yt();wa=class{constructor(e,t,i){this.store=e,this.valueSelector=t,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ar(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Zc={};ne(Zc,{FtCommandQueue:()=>xn,FtLitElementRedux:()=>Xt,FtReduxStore:()=>Nr,ReduxWatcher:()=>wa,clearAllStores:()=>D0,isFtReduxStore:()=>hi,redux:()=>ve,reduxEventListener:()=>t0,reduxReactive:()=>e0,watch:()=>vi,withRedux:()=>Bh});var Ea=p(()=>{"use strict";Fh();wc();Dh();Om();ga();wm()});var Jc={};ne(Jc,{scrollHelper:()=>Xc});var Yc,Ra,Qc,Xc,ed=p(()=>{"use strict";yt();Ra=new Map,Qc=class{lock(e,t){if(t){let i=Ra.get(t);if(i==null||i===e)return Ra.set(t,e),t}}release(e,t){t&&Ra.get(t)===e&&Ra.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of el(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(t=i??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var i,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(i=t.offsetTop)!==null&&i!==void 0?i:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=Eo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Yc=window.FluidTopicsScrollHelper)!==null&&Yc!==void 0?Yc:new Qc;Xc=window.FluidTopicsScrollHelper});var Rm=Ex((oo,Em)=>{var Aa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,La=function(){function r(){this.fetch=!1,this.DOMException=Aa.DOMException}return r.prototype=Aa,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(x){return x&&DataView.prototype.isPrototypeOf(x)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(x){return x&&s.indexOf(Object.prototype.toString.call(x))>-1};function d(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(x)||x==="")throw new TypeError('Invalid character in header field name: "'+x+'"');return x.toLowerCase()}function f(x){return typeof x!="string"&&(x=String(x)),x}function g(x){var R={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return n.iterable&&(R[Symbol.iterator]=function(){return R}),R}function m(x){this.map={},x instanceof m?x.forEach(function(R,j){this.append(j,R)},this):Array.isArray(x)?x.forEach(function(R){if(R.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+R.length);this.append(R[0],R[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(R){this.append(R,x[R])},this)}m.prototype.append=function(x,R){x=d(x),R=f(R);var j=this.map[x];this.map[x]=j?j+", "+R:R},m.prototype.delete=function(x){delete this.map[d(x)]},m.prototype.get=function(x){return x=d(x),this.has(x)?this.map[x]:null},m.prototype.has=function(x){return this.map.hasOwnProperty(d(x))},m.prototype.set=function(x,R){this.map[d(x)]=f(R)},m.prototype.forEach=function(x,R){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(R,this.map[j],j,this)},m.prototype.keys=function(){var x=[];return this.forEach(function(R,j){x.push(j)}),g(x)},m.prototype.values=function(){var x=[];return this.forEach(function(R){x.push(R)}),g(x)},m.prototype.entries=function(){var x=[];return this.forEach(function(R,j){x.push([j,R])}),g(x)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(x){if(!x._noBody){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}}function O(x){return new Promise(function(R,j){x.onload=function(){R(x.result)},x.onerror=function(){j(x.error)}})}function C(x){var R=new FileReader,j=O(R);return R.readAsArrayBuffer(x),j}function I(x){var R=new FileReader,j=O(R),me=/charset=([A-Za-z0-9_-]+)/.exec(x.type),we=me?me[1]:"utf-8";return R.readAsText(x,we),j}function D(x){for(var R=new Uint8Array(x),j=new Array(R.length),me=0;me<R.length;me++)j[me]=String.fromCharCode(R[me]);return j.join("")}function B(x){if(x.slice)return x.slice(0);var R=new Uint8Array(x.byteLength);return R.set(new Uint8Array(x)),R.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(x){this.bodyUsed=this.bodyUsed,this._bodyInit=x,x?typeof x=="string"?this._bodyText=x:n.blob&&Blob.prototype.isPrototypeOf(x)?this._bodyBlob=x:n.formData&&FormData.prototype.isPrototypeOf(x)?this._bodyFormData=x:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)?this._bodyText=x.toString():n.arrayBuffer&&n.blob&&a(x)?(this._bodyArrayBuffer=B(x.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(x)||l(x))?this._bodyArrayBuffer=B(x):this._bodyText=x=Object.prototype.toString.call(x):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof x=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var x=b(this);if(x)return x;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(){if(this._bodyArrayBuffer){var x=b(this);return x||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var x=b(this);if(x)return x;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(x){var R=x.toUpperCase();return k.indexOf(R)>-1?R:x}function _(x,R){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var j=R.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,R.headers||(this.headers=new m(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new m(R.headers)),this.method=E(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var me=/([?&])_=[^&]*/;if(me.test(this.url))this.url=this.url.replace(me,"$1_="+new Date().getTime());else{var we=/\?/;this.url+=(we.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function G(x){var R=new FormData;return x.trim().split("&").forEach(function(j){if(j){var me=j.split("="),we=me.shift().replace(/\+/g," "),de=me.join("=").replace(/\+/g," ");R.append(decodeURIComponent(we),decodeURIComponent(de))}}),R}function J(x){var R=new m,j=x.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(me){return me.indexOf(`
48
+ `)===0?me.substr(1,me.length):me}).forEach(function(me){var we=me.split(":"),de=we.shift().trim();if(de){var zn=we.join(":").trim();try{R.append(de,zn)}catch(Ls){console.warn("Response "+Ls.message)}}}),R}z.call(_.prototype);function he(x,R){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new m(R.headers),this.url=R.url||"",this._initBody(x)}z.call(he.prototype),he.prototype.clone=function(){return new he(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},he.error=function(){var x=new he(null,{status:200,statusText:""});return x.ok=!1,x.status=0,x.type="error",x};var ce=[301,302,303,307,308];he.redirect=function(x,R){if(ce.indexOf(R)===-1)throw new RangeError("Invalid status code");return new he(null,{status:R,headers:{location:x}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(R,j){this.message=R,this.name=j;var me=Error(R);this.stack=me.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function K(x,R){return new Promise(function(j,me){var we=new _(x,R);if(we.signal&&we.signal.aborted)return me(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function zn(){de.abort()}de.onload=function(){var Xe={statusText:de.statusText,headers:J(de.getAllResponseHeaders()||"")};we.url.indexOf("file://")===0&&(de.status<200||de.status>599)?Xe.status=200:Xe.status=de.status,Xe.url="responseURL"in de?de.responseURL:Xe.headers.get("X-Request-URL");var yo="response"in de?de.response:de.responseText;setTimeout(function(){j(new he(yo,Xe))},0)},de.onerror=function(){setTimeout(function(){me(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){me(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){me(new t.DOMException("Aborted","AbortError"))},0)};function Ls(Xe){try{return Xe===""&&i.location.href?i.location.href:Xe}catch{return Xe}}if(de.open(we.method,Ls(we.url),!0),we.credentials==="include"?de.withCredentials=!0:we.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof m||i.Headers&&R.headers instanceof i.Headers)){var _u=[];Object.getOwnPropertyNames(R.headers).forEach(function(Xe){_u.push(d(Xe)),de.setRequestHeader(Xe,f(R.headers[Xe]))}),we.headers.forEach(function(Xe,yo){_u.indexOf(yo)===-1&&de.setRequestHeader(yo,Xe)})}else we.headers.forEach(function(Xe,yo){de.setRequestHeader(yo,Xe)});we.signal&&(we.signal.addEventListener("abort",zn),de.onreadystatechange=function(){de.readyState===4&&we.signal.removeEventListener("abort",zn)}),de.send(typeof we._bodyInit>"u"?null:we._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=m,i.Request=_,i.Response=he),t.Headers=m,t.Request=_,t.Response=he,t.fetch=K,t}({})})(La);La.fetch.ponyfill=!0;delete La.fetch.polyfill;var Si=Aa.fetch?Aa:La;oo=Si.fetch;oo.default=Si.fetch;oo.fetch=Si.fetch;oo.Headers=Si.Headers;oo.Request=Si.Request;oo.Response=Si.Response;Em.exports=oo});var td=p(()=>{});var Am,Lm,Im,Ci,km,_m,Po,$m,Tm,Pm,Nm,Fm,Bm,Dm,Mm,Um,No,Vm,zm,Ia,Hm,Oi,jm,Mt,wi,Wm,Ve,It,rd=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Am||(Am={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Lm||(Lm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Im||(Im={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ci||(Ci={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(km||(km={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(_m||(_m={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Po||(Po={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})($m||($m={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Tm||(Tm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Pm||(Pm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Nm||(Nm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Fm||(Fm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Bm||(Bm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Dm||(Dm={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Mm||(Mm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Um||(Um={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(No||(No={}));Vm=r=>Object.keys(No).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(zm||(zm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ia||(Ia={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Hm||(Hm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Oi||(Oi={}));jm=r=>Object.keys(Oi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Mt||(Mt={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wi||(wi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wm||(Wm={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ve||(Ve={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(It||(It={}))});var Gm,Km,qm,Zm,Ym=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Gm||(Gm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Km||(Km={}));(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(qm||(qm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Zm||(Zm={}))});function Qm(r,e){return r===e||(M0[r]??[]).some(t=>Qm(t,e))}function Xm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Qm(i,e))}var M0,Jm=p(()=>{rd();M0={[Ve.PERSONAL_BOOK_SHARE_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.HTML_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.PDF_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.KHUB_ADMIN]:[Ve.CONTENT_PUBLISHER],[Ve.ADMIN]:[Ve.KHUB_ADMIN,Ve.USERS_ADMIN,Ve.PORTAL_ADMIN],[Ve.GENERATIVE_AI_EXPORT_USER]:[Ve.GENERATIVE_AI_USER]}});var eg=p(()=>{});var U0,io=p(()=>{U0=Ax(Rm(),1);td();rd();Ym();Jm();eg();td()});var od={};ne(od,{SearchPlaceConverter:()=>no,SearchPlaceQueryParams:()=>Se,isSearchPlaceQueryParams:()=>rg,serializeRequest:()=>H0});function z0(r){return`"${r}"`}function tg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function H0(r,e){return new no(r).serialize(e)}function rg(r){return W0.has(r)}var Se,W0,no,id=p(()=>{"use strict";io();yt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(Se||(Se={}));W0=new Set(Object.values(Se));no=class{constructor(e,t=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,b,O;let C=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&C.append(Se.LOCALE,e.contentLocale):C.append(Se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&C.append(Se.QUERY,e.query);let I=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(E=>E.valueFilter&&!E.valueFilter.negative))!==null&&a!==void 0?a:[];if(I.length>0){let E=I.map(_=>{var G,J;let he=((J=(G=_.valueFilter)===null||G===void 0?void 0:G.values)!==null&&J!==void 0?J:[]).map(ce=>this.escapeFilters(ce)).map(ce=>z0(tg(ce))).join("_");return`${_.key}~${he}`}).join("*");C.append(Se.VALUE_FILTERS,E)}let D=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(D.length>0){let E=D.map(_=>{var G;return`${_.key}~${(G=_.dateFilter)===null||G===void 0?void 0:G.type.toLowerCase()}`}).join("*");C.append(Se.DATE_FILTERS,E)}let B=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&f!==void 0?f:[];if(B.length>0){let E=B.map(_=>{var G,J;return`${_.key}~${(G=_.rangeFilter)===null||G===void 0?void 0:G.from}_${(J=_.rangeFilter)===null||J===void 0?void 0:J.to}`}).join("*");C.append(Se.RANGE_FILTERS,E)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(Se.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Se.PER_PAGE,String(e.paging.perPage));let z=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let E in z)C.append(E,z[E]);let k=new Array;return C.forEach((E,_)=>{k.push(this.encodeQueryString(_)+"="+this.encodeQueryString(E))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(Se.LOCALE)==="all"?void 0:d.get(Se.LOCALE),g=((t=d.get(Se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(i=d.get(Se.SORT))===null||i===void 0?void 0:i.toLowerCase(),b=(n=d.get(Se.SCOPE))!==null&&n!==void 0?n:"default",O=+((a=d.get(Se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let I of d.keys())rg(I)||(C[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Se.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Vm(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Eo(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(Se.FILTERS)&&(d=this.parseValueFilters((t=e.get(Se.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(Se.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(Se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(tg).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Oi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(jm(e))return[{key:"ft:lastEdition",dateFilter:{type:Oi[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var sd={};ne(sd,{toFtFormComponent:()=>ad});var nd,ad,ld=p(()=>{"use strict";yt();nd=Symbol("elementInternals"),ad=Ne(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[nd].form}constructor(...i){super(i),this[nd]=this.attachInternals()}setFormValue(i){this[nd].setFormValue(i)}}return e})});var cd={};ne(cd,{DateFormatter:()=>Fo});var Fo,ka=p(()=>{"use strict";Fo=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,t,i,n)}static getMomentDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(t,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var pd={};ne(pd,{ALL_KEYS_VALUE:()=>dd,SameWindowStorageEvent:()=>Ei});var dd,Ei,ud=p(()=>{"use strict";dd="__all__",Ei=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dd}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new Ei(dd))}})});var hd={};ne(hd,{FocusMainContentEvent:()=>fd});var fd,md=p(()=>{"use strict";fd=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var og={};function V0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function j0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var gd=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",V0);document.addEventListener("click",j0)});var Ri,yd=p(()=>{"use strict";P();Ri=A`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `});var ig,ng=p(()=>{"use strict";si();yt();ig=Ne(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotificationIfVisible(i){setTimeout(()=>{this.checkVisibility()&&this.sendAriaNotification(i)},20)}sendAriaNotification(i){i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new an({type:"aria",message:i}))}}return e})});function Ai(r,e,t){return r?e(r):t?.(r)}var ag=p(()=>{});var _a=p(()=>{ag()});var Je,Bo,Do,bd,IL,sg=p(()=>{"use strict";Y();Zt();_a();P();yt();Je=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Bo||(Bo={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Do||(Do={}));bd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},IL=Ne(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Bo.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Do.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Bo.blur||this.validateOn===Bo.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Do.default&&this.validateOn===Bo.blurWithStatusResolutionOnInput||this.validateOn===Bo.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new bd(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return S`
72
+ `});var ig,ng=p(()=>{"use strict";si();yt();ig=Ne(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotificationIfVisible(i){setTimeout(()=>{this.checkVisibility()&&this.sendAriaNotification(i)},20)}sendAriaNotification(i){i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new an({type:"aria",message:i}))}}return e})});function Ai(r,e,t){return r?e(r):t?.(r)}var ag=p(()=>{});var _a=p(()=>{ag()});var Je,Bo,Do,bd,IL,sg=p(()=>{"use strict";Y();Yt();_a();P();yt();Je=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Bo||(Bo={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Do||(Do={}));bd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},IL=Ne(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Bo.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Do.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Bo.blur||this.validateOn===Bo.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Do.default&&this.validateOn===Bo.blurWithStatusResolutionOnInput||this.validateOn===Bo.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new bd(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return S`
73
73
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
74
74
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
75
75
  ${Re(this.errorMessages,i=>S`
@@ -82,7 +82,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Do.error:this.warningMessages.length?Do.warning:Do.default}processRules(i){return i.map(n=>n(this.value)).filter(n=>n!==!0).map(n=>n)}}return Je([h()],e.prototype,"warningRules",void 0),Je([h()],e.prototype,"errorRules",void 0),Je([h()],e.prototype,"validateOn",void 0),Je([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Je([h()],e.prototype,"label",void 0),Je([h({type:Boolean})],e.prototype,"hideLabel",void 0),Je([h()],e.prototype,"name",void 0),Je([h({type:Boolean})],e.prototype,"disabled",void 0),Je([h()],e.prototype,"helperText",void 0),Je([h()],e.prototype,"forceStatus",void 0),Je([h({reflect:!0})],e.prototype,"value",void 0),Je([N()],e.prototype,"errorMessages",void 0),Je([N()],e.prototype,"warningMessages",void 0),Je([N()],e.prototype,"status",void 0),Je([N()],e.prototype,"focused",void 0),Je([N()],e.prototype,"additionalWarningRules",void 0),Je([N()],e.prototype,"additionalErrorRules",void 0),e})});var lg=p(()=>{"use strict"});var cg=p(()=>{"use strict";sg();lg()});function G0(r){this._$AN!==void 0?($a(this),this._$AM=r,dg(this)):this._$AM=r}function K0(r,e=!1,t=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=t;a<i.length;a++)wn(i[a],!1),$a(i[a]);else i!=null&&(wn(i,!1),$a(i));else wn(this,r)}var wn,$a,dg,q0,Ta,pg=p(()=>{qs();Co();Co();wn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let i of t)i._$AO?.(e,!1),wn(i,e);return!0},$a=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},dg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),q0(e)}};q0=r=>{r.type==nr.CHILD&&(r._$AP??=K0,r._$AQ??=G0)},Ta=class extends Ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),dg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(wn(this,e),$a(this))}setValue(e){if(af(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var ug=p(()=>{pg()});var fg,Z0,xd,WL,hg=p(()=>{"use strict";ug();P();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(fg||(fg={}));Z0={sm:640,md:768,lg:1024,xl:1280},xd=class extends Ta{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,i,n]){return this.lastArgs=[t,i,n],this.render(t,i,n)}render(e,t,i){let n=this.resolveThreshold(e),a=i??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:Z0[e]}},WL=qt(xd)});var mg=p(()=>{"use strict";hg()});var vd,Sd,Cd,Od,Mo,En,L=p(()=>{"use strict";Tu();P();Y();Zt();ut();hf();rn();sl();ea();pl();oa();ia();zl();Wl();si();fa();na();fc();mn();hc();yt();bc();vc();Sc();Oc();Ea();ha();ed();ma();id();ld();ka();ee();ud();md();gd();yd();md();gd();sl();ea();pl();ka();oa();ia();zl();Wl();si();fa();ed();na();fc();ld();mn();ng();hc();yt();bc();vc();Sc();Oc();Ea();ud();ha();ma();id();yd();cg();mg();ee();Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Cd=(Sd=(vd=window.safari)===null||vd===void 0?void 0:vd.pushNotification)===null||Sd===void 0?void 0:Sd.toString())!==null&&Cd!==void 0?Cd:"")==="[object SafariRemoteNotification]",En="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Od=window.ftGlobals)!==null&&Od!==void 0?Od:{lit:Hs,litDecorators:Ks,litRepeat:Zs,litClassMap:Ys,litStyleMap:Qs,litUnsafeHTML:Xs,wcUtils:{...al,...Js,...dl,...cd,...ul,...fl,...Ul,...nl,...sc,...hd,...og,...Jc,...Ml,...uc,...sd,...pc,...kh,...rl,...yc,...Hl,...xc,...Ri,...Nh,...Cc,...Zc,...pd,...lc,...dc,...od,isSafari:Mo,isTouchScreen:En,setVariable:y}}});var gg,$,yg,bg,xg,vg,Sg,Nr=p(()=>{"use strict";P();L();gg=o.extend("--ft-ripple-color","",w.colorContent),$={color:gg,backgroundColor:o.extend("--ft-ripple-background-color","",gg),opacityContentOnSurfacePressed:o.external(w.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(w.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(w.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(w.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},yg=o.extend("--ft-ripple-color","",w.colorPrimary),bg={color:yg,backgroundColor:o.extend("--ft-ripple-background-color","",yg)},xg=o.extend("--ft-ripple-color","",w.colorSecondary),vg={color:xg,backgroundColor:o.extend("--ft-ripple-background-color","",xg)},Sg=A`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Do.error:this.warningMessages.length?Do.warning:Do.default}processRules(i){return i.map(n=>n(this.value)).filter(n=>n!==!0).map(n=>n)}}return Je([h()],e.prototype,"warningRules",void 0),Je([h()],e.prototype,"errorRules",void 0),Je([h()],e.prototype,"validateOn",void 0),Je([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Je([h()],e.prototype,"label",void 0),Je([h({type:Boolean})],e.prototype,"hideLabel",void 0),Je([h()],e.prototype,"name",void 0),Je([h({type:Boolean})],e.prototype,"disabled",void 0),Je([h()],e.prototype,"helperText",void 0),Je([h()],e.prototype,"forceStatus",void 0),Je([h({reflect:!0})],e.prototype,"value",void 0),Je([N()],e.prototype,"errorMessages",void 0),Je([N()],e.prototype,"warningMessages",void 0),Je([N()],e.prototype,"status",void 0),Je([N()],e.prototype,"focused",void 0),Je([N()],e.prototype,"additionalWarningRules",void 0),Je([N()],e.prototype,"additionalErrorRules",void 0),e})});var lg=p(()=>{"use strict"});var cg=p(()=>{"use strict";sg();lg()});function G0(r){this._$AN!==void 0?($a(this),this._$AM=r,dg(this)):this._$AM=r}function K0(r,e=!1,t=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=t;a<i.length;a++)wn(i[a],!1),$a(i[a]);else i!=null&&(wn(i,!1),$a(i));else wn(this,r)}var wn,$a,dg,q0,Ta,pg=p(()=>{qs();Oo();Oo();wn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let i of t)i._$AO?.(e,!1),wn(i,e);return!0},$a=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},dg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),q0(e)}};q0=r=>{r.type==ar.CHILD&&(r._$AP??=K0,r._$AQ??=G0)},Ta=class extends Bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),dg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(wn(this,e),$a(this))}setValue(e){if(af(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var ug=p(()=>{pg()});var fg,Z0,xd,WL,hg=p(()=>{"use strict";ug();P();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(fg||(fg={}));Z0={sm:640,md:768,lg:1024,xl:1280},xd=class extends Ta{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,i,n]){return this.lastArgs=[t,i,n],this.render(t,i,n)}render(e,t,i){let n=this.resolveThreshold(e),a=i??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:Z0[e]}},WL=Zt(xd)});var mg=p(()=>{"use strict";hg()});var vd,Sd,Cd,Od,Mo,En,L=p(()=>{"use strict";Tu();P();Y();Yt();ut();hf();rn();sl();ea();pl();oa();ia();zl();Wl();si();fa();na();fc();mn();hc();yt();bc();vc();Sc();Oc();Ea();ha();ed();ma();id();ld();ka();ee();ud();md();gd();yd();md();gd();sl();ea();pl();ka();oa();ia();zl();Wl();si();fa();ed();na();fc();ld();mn();ng();hc();yt();bc();vc();Sc();Oc();Ea();ud();ha();ma();id();yd();cg();mg();ee();Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Cd=(Sd=(vd=window.safari)===null||vd===void 0?void 0:vd.pushNotification)===null||Sd===void 0?void 0:Sd.toString())!==null&&Cd!==void 0?Cd:"")==="[object SafariRemoteNotification]",En="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Od=window.ftGlobals)!==null&&Od!==void 0?Od:{lit:Hs,litDecorators:Ks,litRepeat:Zs,litClassMap:Ys,litStyleMap:Qs,litUnsafeHTML:Xs,wcUtils:{...al,...Js,...dl,...cd,...ul,...fl,...Ul,...nl,...sc,...hd,...og,...Jc,...Ml,...uc,...sd,...pc,...kh,...rl,...yc,...Hl,...xc,...Ri,...Nh,...Cc,...Zc,...pd,...lc,...dc,...od,isSafari:Mo,isTouchScreen:En,setVariable:y}}});var gg,$,yg,bg,xg,vg,Sg,Fr=p(()=>{"use strict";P();L();gg=o.extend("--ft-ripple-color","",w.colorContent),$={color:gg,backgroundColor:o.extend("--ft-ripple-background-color","",gg),opacityContentOnSurfacePressed:o.external(w.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(w.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(w.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(w.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},yg=o.extend("--ft-ripple-color","",w.colorPrimary),bg={color:yg,backgroundColor:o.extend("--ft-ripple-background-color","",yg)},xg=o.extend("--ft-ripple-color","",w.colorSecondary),vg={color:xg,backgroundColor:o.extend("--ft-ripple-background-color","",xg)},Sg=A`
86
86
  :host {
87
87
  display: contents;
88
88
  }
@@ -195,7 +195,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
195
195
  transform: translate(-50%, -50%) scale(1);
196
196
  }
197
197
  `});function Og(r,e){let t=ln[r];return A`
198
- ${e?or(e):A`.ft-typography--${or(r)}`} {
198
+ ${e?ir(e):A`.ft-typography--${ir(r)}`} {
199
199
  font-family: ${t.fontFamily};
200
200
  font-size: ${t.fontSize};
201
201
  font-weight: ${t.fontWeight};
@@ -204,7 +204,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
204
204
  text-decoration: ${t.textDecoration};
205
205
  text-transform: ${t.textCase};
206
206
  }
207
- `}var wg=p(()=>{"use strict";P();ee()});var Eg,Br,V,Li,Ii,ki,_i,Fr,je,Ze,$i,Ti,ur,Rg,Ag,Lg,Ig,kg,no,fr,_g,$g,Tg,Pg,Ng,Mt=p(()=>{"use strict";P();L();ee();wg();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();Eg=o.extend("--ft-typography-font-family","",w.titleFont),Br=o.extend("--ft-typography-font-family","",w.contentFont),V={fontFamily:Br,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Li={fontFamily:o.extend("--ft-typography-title-font-family","",Eg),fontSize:o.extend("--ft-typography-title-font-size","",V.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",V.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",V.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",V.textTransform,"inherit")},Ii={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Eg),fontSize:o.extend("--ft-typography-title-dense-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",V.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",V.textTransform,"inherit")},ki={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Br),fontSize:o.extend("--ft-typography-subtitle1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",V.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",V.textTransform,"inherit")},_i={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Br),fontSize:o.extend("--ft-typography-subtitle2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",V.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",V.textTransform,"inherit")},Fr={fontFamily:o.extend("--ft-typography-body1-font-family","",Br),fontSize:o.extend("--ft-typography-body1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",V.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",V.textTransform,"inherit")},je={fontFamily:o.extend("--ft-typography-body2-font-family","",Br),fontSize:o.extend("--ft-typography-body2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",V.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",V.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",V.textTransform,"inherit")},Ze={fontFamily:o.extend("--ft-typography-caption-font-family","",Br),fontSize:o.extend("--ft-typography-caption-font-size","",V.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",V.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",V.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",V.textTransform,"inherit")},$i={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Br),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",V.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",V.textTransform,"inherit")},Ti={fontFamily:o.extend("--ft-typography-overline-font-family","",Br),fontSize:o.extend("--ft-typography-overline-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",V.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",V.textTransform,"uppercase")},ur={fontFamily:o.extend("--ft-typography-button-font-family","",Br),fontSize:o.extend("--ft-typography-button-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",V.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",V.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",V.textTransform,"uppercase")},Rg=A`
207
+ `}var wg=p(()=>{"use strict";P();ee()});var Eg,Dr,V,Li,Ii,ki,_i,Br,je,Ze,$i,Ti,fr,Rg,Ag,Lg,Ig,kg,ao,hr,_g,$g,Tg,Pg,Ng,Ut=p(()=>{"use strict";P();L();ee();wg();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();Eg=o.extend("--ft-typography-font-family","",w.titleFont),Dr=o.extend("--ft-typography-font-family","",w.contentFont),V={fontFamily:Dr,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Li={fontFamily:o.extend("--ft-typography-title-font-family","",Eg),fontSize:o.extend("--ft-typography-title-font-size","",V.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",V.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",V.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",V.textTransform,"inherit")},Ii={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Eg),fontSize:o.extend("--ft-typography-title-dense-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",V.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",V.textTransform,"inherit")},ki={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Dr),fontSize:o.extend("--ft-typography-subtitle1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",V.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",V.textTransform,"inherit")},_i={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Dr),fontSize:o.extend("--ft-typography-subtitle2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",V.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",V.textTransform,"inherit")},Br={fontFamily:o.extend("--ft-typography-body1-font-family","",Dr),fontSize:o.extend("--ft-typography-body1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",V.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",V.textTransform,"inherit")},je={fontFamily:o.extend("--ft-typography-body2-font-family","",Dr),fontSize:o.extend("--ft-typography-body2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",V.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",V.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",V.textTransform,"inherit")},Ze={fontFamily:o.extend("--ft-typography-caption-font-family","",Dr),fontSize:o.extend("--ft-typography-caption-font-size","",V.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",V.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",V.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",V.textTransform,"inherit")},$i={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Dr),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",V.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",V.textTransform,"inherit")},Ti={fontFamily:o.extend("--ft-typography-overline-font-family","",Dr),fontSize:o.extend("--ft-typography-overline-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",V.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",V.textTransform,"uppercase")},fr={fontFamily:o.extend("--ft-typography-button-font-family","",Dr),fontSize:o.extend("--ft-typography-button-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",V.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",V.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",V.textTransform,"uppercase")},Rg=A`
208
208
  .ft-typography--title {
209
209
  font-family: ${Li.fontFamily};
210
210
  font-size: ${Li.fontSize};
@@ -243,14 +243,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
243
243
 
244
244
  `,kg=A`
245
245
  .ft-typography--body1 {
246
- font-family: ${Fr.fontFamily};
247
- font-size: ${Fr.fontSize};
248
- font-weight: ${Fr.fontWeight};
249
- letter-spacing: ${Fr.letterSpacing};
250
- line-height: ${Fr.lineHeight};
251
- text-transform: ${Fr.textTransform};
252
- }
253
- `,no=A`
246
+ font-family: ${Br.fontFamily};
247
+ font-size: ${Br.fontSize};
248
+ font-weight: ${Br.fontWeight};
249
+ letter-spacing: ${Br.letterSpacing};
250
+ line-height: ${Br.lineHeight};
251
+ text-transform: ${Br.textTransform};
252
+ }
253
+ `,ao=A`
254
254
  .ft-typography--body2 {
255
255
  font-family: ${je.fontFamily};
256
256
  font-size: ${je.fontSize};
@@ -259,7 +259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
259
259
  line-height: ${je.lineHeight};
260
260
  text-transform: ${je.textTransform};
261
261
  }
262
- `,fr=A`
262
+ `,hr=A`
263
263
  .ft-typography--caption {
264
264
  font-family: ${Ze.fontFamily};
265
265
  font-size: ${Ze.fontSize};
@@ -288,12 +288,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
288
288
  }
289
289
  `,Tg=A`
290
290
  .ft-typography--button {
291
- font-family: ${ur.fontFamily};
292
- font-size: ${ur.fontSize};
293
- font-weight: ${ur.fontWeight};
294
- letter-spacing: ${ur.letterSpacing};
295
- line-height: ${ur.lineHeight};
296
- text-transform: ${ur.textTransform};
291
+ font-family: ${fr.fontFamily};
292
+ font-size: ${fr.fontSize};
293
+ font-weight: ${fr.fontWeight};
294
+ letter-spacing: ${fr.letterSpacing};
295
+ line-height: ${fr.lineHeight};
296
+ text-transform: ${fr.textTransform};
297
297
  }
298
298
  `,Pg=A`
299
299
  .ft-typography {
@@ -416,7 +416,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
416
416
  .ft-icon--material {
417
417
  font-family: ${Fe.materialFontFamily}, "Material Icons", sans-serif;
418
418
  }
419
- `,_r]});var Dg,te,Mg,wd,hr,Ug,zo=p(()=>{"use strict";P();L();Nr();Mt();Rn();Uo();Dg=o.extend("--ft-button-color","",w.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",w.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",w.borderRadiusL),color:Dg,fontSize:o.extend("--ft-button-font-size","",ur.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Dg),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(w.colorOpacityDisabled,"Design system")},Mg=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",w.colorOnPrimary)),wd={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",w.colorPrimary)),color:Mg,rippleColor:o.extend("--ft-button-primary-ripple-color","",Mg)},hr={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",w.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ug=[A`
419
+ `,$r]});var Dg,te,Mg,wd,mr,Ug,zo=p(()=>{"use strict";P();L();Fr();Ut();Rn();Uo();Dg=o.extend("--ft-button-color","",w.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",w.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",w.borderRadiusL),color:Dg,fontSize:o.extend("--ft-button-font-size","",fr.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Dg),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(w.colorOpacityDisabled,"Design system")},Mg=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",w.colorOnPrimary)),wd={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",w.colorPrimary)),color:Mg,rippleColor:o.extend("--ft-button-primary-ripple-color","",Mg)},mr={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",w.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ug=[A`
420
420
  :host {
421
421
  display: inline-block;
422
422
  max-width: 100%;
@@ -475,13 +475,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
475
475
  }
476
476
 
477
477
  .ft-button.ft-button--dense {
478
- padding: ${hr.verticalPadding} ${hr.horizontalPadding};
479
- border-radius: ${hr.borderRadius};
480
- gap: ${hr.iconPadding};
478
+ padding: ${mr.verticalPadding} ${mr.horizontalPadding};
479
+ border-radius: ${mr.borderRadius};
480
+ gap: ${mr.iconPadding};
481
481
  }
482
482
 
483
483
  .ft-button.ft-button--dense.ft-button--outlined {
484
- padding: calc(${hr.verticalPadding} - 1px) calc(${hr.horizontalPadding} - 1px);
484
+ padding: calc(${mr.verticalPadding} - 1px) calc(${mr.horizontalPadding} - 1px);
485
485
  }
486
486
 
487
487
  .ft-button:not([disabled]):hover {
@@ -493,7 +493,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
493
493
  }
494
494
 
495
495
  .ft-button--round.ft-button--dense {
496
- border-radius: calc(var(--button-internal-line-height) / 2 + ${hr.verticalPadding});
496
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${mr.verticalPadding});
497
497
  }
498
498
 
499
499
  .ft-button[disabled] {
@@ -518,12 +518,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
518
518
  text-overflow: ellipsis;
519
519
  display: block;
520
520
  margin: 0 ${te.iconPadding};
521
- ${y(ur.fontSize,"1em")};
522
- ${y(ur.lineHeight,"var(--button-internal-line-height)")};
521
+ ${y(fr.fontSize,"1em")};
522
+ ${y(fr.lineHeight,"var(--button-internal-line-height)")};
523
523
  }
524
524
 
525
525
  .ft-button--dense .ft-button--label {
526
- margin: 0 ${hr.iconPadding};
526
+ margin: 0 ${mr.iconPadding};
527
527
  }
528
528
 
529
529
  .ft-button--label[hidden] {
@@ -541,8 +541,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
541
541
  }
542
542
 
543
543
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
544
- margin: 0 calc(${hr.horizontalPadding} * -1);
545
- padding: 0 ${hr.verticalPadding};
544
+ margin: 0 calc(${mr.horizontalPadding} * -1);
545
+ padding: 0 ${mr.verticalPadding};
546
546
  }
547
547
 
548
548
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -553,7 +553,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
553
553
  ${y(_e.size,te.iconSize)};
554
554
  ${y(_e.color,"var(--button-internal-color)")};
555
555
  }
556
- `,_r]});var xt,re,Ed=p(()=>{"use strict";P();Y();ut();L();Nr();xt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},re=class extends W{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 pe(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new pe(10),this.moveRipple=e=>{var t,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 S`
556
+ `,$r]});var xt,re,Ed=p(()=>{"use strict";P();Y();ut();L();Fr();xt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},re=class extends W{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 pe(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new pe(10),this.moveRipple=e=>{var t,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 S`
557
557
  <style>
558
558
  .ft-ripple .ft-ripple--effect {
559
559
  left: ${this.originX}px;
@@ -564,7 +564,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
564
564
  <div class="ft-ripple--background"></div>
565
565
  <div class="ft-ripple--effect"></div>
566
566
  </div>
567
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Sg;xt([h({type:Boolean})],re.prototype,"primary",void 0);xt([h({type:Boolean})],re.prototype,"secondary",void 0);xt([h({type:Boolean})],re.prototype,"unbounded",void 0);xt([h({type:Boolean})],re.prototype,"activated",void 0);xt([h({type:Boolean})],re.prototype,"selected",void 0);xt([h({type:Boolean})],re.prototype,"disabled",void 0);xt([N()],re.prototype,"hovered",void 0);xt([N()],re.prototype,"focused",void 0);xt([N()],re.prototype,"pressed",void 0);xt([N()],re.prototype,"rippling",void 0);xt([N()],re.prototype,"originX",void 0);xt([N()],re.prototype,"originY",void 0);xt([H(".ft-ripple")],re.prototype,"ripple",void 0);xt([H(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0)});var zg=p(()=>{"use strict"});var ft=p(()=>{"use strict";L();Ed();Ed();Nr();zg();M("ft-ripple")(re)});var Wg,Y0,Rd,Hg,Ad,Ld,Hk,Wk,Vg=p(()=>{Gt();Wg=Symbol.for(""),Y0=r=>{if(r?.r===Wg)return r?._$litStatic$},Rd=r=>({_$litStatic$:r,r:Wg}),Hg=new Map,Ad=r=>(e,...t)=>{let i=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<i;){for(d=e[f];f<i&&(a=t[f],(n=Y0(a))!==void 0);)d+=n+e[++f],g=!0;f!==i&&l.push(a),s.push(d),f++}if(f===i&&s.push(e[i]),g){let m=s.join("$$lit$$");(e=Hg.get(m))===void 0&&(s.raw=s,Hg.set(m,e=s)),t=l}return r(e,...t)},Ld=Ad(S),Hk=Ad(Bs),Wk=Ad(Ds)});var jg=p(()=>{Vg()});var Be,Pi=p(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Be||(Be={}))});var Gg,oe,Id=p(()=>{"use strict";jg();Y();L();Pi();Mt();Gg=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},oe=class extends W{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?Ld`
567
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Sg;xt([h({type:Boolean})],re.prototype,"primary",void 0);xt([h({type:Boolean})],re.prototype,"secondary",void 0);xt([h({type:Boolean})],re.prototype,"unbounded",void 0);xt([h({type:Boolean})],re.prototype,"activated",void 0);xt([h({type:Boolean})],re.prototype,"selected",void 0);xt([h({type:Boolean})],re.prototype,"disabled",void 0);xt([N()],re.prototype,"hovered",void 0);xt([N()],re.prototype,"focused",void 0);xt([N()],re.prototype,"pressed",void 0);xt([N()],re.prototype,"rippling",void 0);xt([N()],re.prototype,"originX",void 0);xt([N()],re.prototype,"originY",void 0);xt([H(".ft-ripple")],re.prototype,"ripple",void 0);xt([H(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0)});var zg=p(()=>{"use strict"});var ft=p(()=>{"use strict";L();Ed();Ed();Fr();zg();M("ft-ripple")(re)});var Wg,Y0,Rd,Hg,Ad,Ld,Hk,Wk,Vg=p(()=>{Kt();Wg=Symbol.for(""),Y0=r=>{if(r?.r===Wg)return r?._$litStatic$},Rd=r=>({_$litStatic$:r,r:Wg}),Hg=new Map,Ad=r=>(e,...t)=>{let i=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<i;){for(d=e[f];f<i&&(a=t[f],(n=Y0(a))!==void 0);)d+=n+e[++f],g=!0;f!==i&&l.push(a),s.push(d),f++}if(f===i&&s.push(e[i]),g){let m=s.join("$$lit$$");(e=Hg.get(m))===void 0&&(s.raw=s,Hg.set(m,e=s)),t=l}return r(e,...t)},Ld=Ad(S),Hk=Ad(Bs),Wk=Ad(Ds)});var jg=p(()=>{Vg()});var Be,Pi=p(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Be||(Be={}))});var Gg,oe,Id=p(()=>{"use strict";jg();Y();L();Pi();Ut();Gg=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},oe=class extends W{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?Ld`
568
568
  <${Rd(this.element)}
569
569
  part="text"
570
570
  class="ft-typography ft-typography--${this.variant}">
@@ -572,7 +572,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
572
572
  </${Rd(this.element)}>
573
573
  `:Ld`
574
574
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
575
- `}};oe.styles=[Rg,Ag,Lg,Ig,kg,no,fr,_g,$g,Tg,Pg,...Ng];Gg([h()],oe.prototype,"element",void 0);Gg([h()],oe.prototype,"variant",void 0)});var ze=p(()=>{"use strict";L();Id();Id();Mt();Pi();M("ft-typography")(oe)});var mr,Kg,Pa=p(()=>{"use strict";P();L();mr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(w.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Kg=A`
575
+ `}};oe.styles=[Rg,Ag,Lg,Ig,kg,ao,hr,_g,$g,Tg,Pg,...Ng];Gg([h()],oe.prototype,"element",void 0);Gg([h()],oe.prototype,"variant",void 0)});var ze=p(()=>{"use strict";L();Id();Id();Ut();Pi();M("ft-typography")(oe)});var gr,Kg,Pa=p(()=>{"use strict";P();L();gr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(w.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Kg=A`
576
576
  .ft-tooltip--container {
577
577
  display: block;
578
578
  }
@@ -587,17 +587,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
587
587
  box-sizing: border-box;
588
588
  overflow: hidden;
589
589
  width: max-content;
590
- max-width: ${mr.maxWidth};
590
+ max-width: ${gr.maxWidth};
591
591
  text-align: center;
592
- padding: ${mr.distance};
593
- z-index: ${mr.zIndex};
592
+ padding: ${gr.distance};
593
+ z-index: ${gr.zIndex};
594
594
  }
595
595
 
596
596
  .ft-tooltip--content {
597
597
  padding: 4px 8px;
598
- border-radius: ${mr.borderRadiusS};
599
- background-color: ${mr.backgroundColor};
600
- color: ${mr.color};
598
+ border-radius: ${gr.borderRadiusS};
599
+ background-color: ${gr.backgroundColor};
600
+ color: ${gr.color};
601
601
  position: relative;
602
602
  word-break: break-word;
603
603
  }
@@ -621,17 +621,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
621
621
  </div>
622
622
  `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(t),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",nc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${w.transitionDuration}, left ${w.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.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(e,t){return Math.max(e,Math.min(0,-t))}};$e.elementDefinitions={"ft-typography":oe};$e.styles=Kg;vt([h()],$e.prototype,"text",void 0);vt([h({type:Boolean})],$e.prototype,"manual",void 0);vt([h({type:Boolean})],$e.prototype,"inline",void 0);vt([h({type:Number})],$e.prototype,"delay",void 0);vt([h()],$e.prototype,"position",void 0);vt([Gs()],$e.prototype,"slotNodes",void 0);vt([H(".ft-tooltip--container")],$e.prototype,"container",void 0);vt([H(".ft-tooltip")],$e.prototype,"tooltip",void 0);vt([H(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0);vt([N()],$e.prototype,"visible",void 0);vt([ti({passive:!0})],$e.prototype,"onTouch",null);vt([ti({passive:!0})],$e.prototype,"onHover",null);vt([ti({passive:!0})],$e.prototype,"onOut",null);vt([ti({passive:!0})],$e.prototype,"onClick",null)});var qg=p(()=>{"use strict"});var Na=p(()=>{"use strict";L();kd();kd();Pa();qg();M("ft-tooltip")($e)});function Fa(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=Q0.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=_d.get(l))!==null&&i!==void 0?i:_d.get(e))!==null&&n!==void 0?n:_d.get(s))!==null&&a!==void 0?a:F.UNKNOWN}var et,F,_d,Q0,C_,$d=p(()=>{"use strict";(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",r.PAPER_PLANE_SLASH="&#xe9a1;",r.COMPRESS="&#xe9a2;",r.EXPAND="&#xe9a3;",r.ARROW_ROTATE_LEFT="&#xe9a4;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;",r.MOBILE_SMALL="&#xe9a5;",r.SPARKLES="&#xe9a6;",r.HAND_SOLID="&#xe9a7;",r.CLOCK_SOLID="&#xe9a8;",r.CONTEXT_MENU_CURSOR="&#xe9a9;",r.LANGUAGE_SLASH="&#xe9aa;",r.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",r.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",r.BOOKMARK_SLASH="&#xe9ad;",r.CIRCLE_PAUSE="&#xe9ae;",r.CIRCLE_PLAY="&#xe9af;",r.CIRCLE_STOP_PLAIN="&#xe9b0;",r.CLOUD_ARROW_DOWN="&#xe9b1;",r.SHARE_NODES="&#xe9b2;",r.BELL="&#xe9b3;",r.BELL_SLASH="&#xe9b4;",r.FILE="&#xe9b5;",r.HAND="&#xe9b6;",r.SQUARE_INFO_SOLID="&#xe9b7;"})(et||(et={}));(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(F||(F={}));_d=new Map([...["abw"].map(r=>[r,F.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(r=>[r,F.AUDIO]),...["avi"].map(r=>[r,F.AVI]),...["chm","xhs"].map(r=>[r,F.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(r=>[r,F.CODE]),...["csv"].map(r=>[r,F.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,F.DITA]),...["epub"].map(r=>[r,F.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,F.EXCEL]),...["flac"].map(r=>[r,F.FLAC]),...["gif"].map(r=>[r,F.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,F.GZIP]),...["html","htm","xhtml"].map(r=>[r,F.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(r=>[r,F.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,F.JPEG]),...["json"].map(r=>[r,F.JSON]),...["m4a","m4p"].map(r=>[r,F.M4A]),...["mov","qt"].map(r=>[r,F.MOV]),...["mp3"].map(r=>[r,F.MP3]),...["mp4","m4v"].map(r=>[r,F.MP4]),...["ogg","oga"].map(r=>[r,F.OGG]),...["pdf","ps"].map(r=>[r,F.PDF]),...["png"].map(r=>[r,F.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,F.POWERPOINT]),...["rar"].map(r=>[r,F.RAR]),...["stp"].map(r=>[r,F.STP]),...["txt","rtf","md","mdown"].map(r=>[r,F.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(r=>[r,F.VIDEO]),...["wav"].map(r=>[r,F.WAV]),...["wma"].map(r=>[r,F.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,F.WORD]),...["xml","xsl","rdf"].map(r=>[r,F.XML]),...["yaml","yml","x-yaml"].map(r=>[r,F.YAML]),...["zip"].map(r=>[r,F.ZIP])]),Q0=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);C_={[F.ABW]:"#91ABC6",[F.AUDIO]:"#1795E3",[F.AVI]:"#E63324",[F.CHM]:"#71C3EB",[F.CODE]:"#71C3EB",[F.CSV]:"#1F7345",[F.DITA]:"#71C3EB",[F.EPUB]:"#85B926",[F.EXCEL]:"#1F7345",[F.FLAC]:"#1795E3",[F.GIF]:"#59B031",[F.GZIP]:"#F8AB36",[F.HTML]:"#71C3EB",[F.IMAGE]:"#59B031",[F.JPEG]:"#59B031",[F.JSON]:"#71C3EB",[F.M4A]:"#1795E3",[F.MOV]:"#E63324",[F.MP3]:"#1795E3",[F.MP4]:"#E63324",[F.OGG]:"#1795E3",[F.PDF]:"#E44948",[F.PNG]:"#59B031",[F.POWERPOINT]:"#B54A2B",[F.RAR]:"#F8AB36",[F.STP]:"#3764B1",[F.TEXT]:"#3162AB",[F.UNKNOWN]:"#999999",[F.VIDEO]:"#E63324",[F.WAV]:"#1795E3",[F.WMA]:"#1795E3",[F.WORD]:"#3162AB",[F.XML]:"#71C3EB",[F.YAML]:"#71C3EB",[F.ZIP]:"#F8AB36"}});var Ye,Td=p(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ye||(Ye={}))});var An,Ce,Pd=p(()=>{"use strict";P();Y();L();rn();$d();Uo();Td();An=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ce=class extends W{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,t=e!==Ye.material||!!this.value;return S`
623
623
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
624
- ${Oo(this.resolvedIcon)}
624
+ ${wo(this.resolvedIcon)}
625
625
  <slot ?hidden=${t}></slot>
626
626
  </i>
627
- `}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=F[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=et[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=Bg;An([h()],Ce.prototype,"variant",void 0);An([h()],Ce.prototype,"value",void 0);An([h({reflect:!0,attribute:"aria-hidden"})],Ce.prototype,"ariaHidden",void 0);An([N()],Ce.prototype,"resolvedIcon",void 0);An([H("slot")],Ce.prototype,"slottedContent",void 0)});var Ut=p(()=>{"use strict";L();Pd();Uo();Td();Pd();$d();M("ft-icon")(Ce)});var Ho,Nd=p(()=>{"use strict";P();L();Rn();Ho=class extends W{render(){return S`
627
+ `}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=F[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=et[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=Bg;An([h()],Ce.prototype,"variant",void 0);An([h()],Ce.prototype,"value",void 0);An([h({reflect:!0,attribute:"aria-hidden"})],Ce.prototype,"ariaHidden",void 0);An([N()],Ce.prototype,"resolvedIcon",void 0);An([H("slot")],Ce.prototype,"slottedContent",void 0)});var zt=p(()=>{"use strict";L();Pd();Uo();Td();Pd();$d();M("ft-icon")(Ce)});var Ho,Nd=p(()=>{"use strict";P();L();Rn();Ho=class extends W{render(){return S`
628
628
  <div class="ft-loader">
629
629
  <div></div>
630
630
  <div></div>
631
631
  <div></div>
632
632
  <div></div>
633
633
  </div>
634
- `}};Ho.styles=Fg});var Zg=p(()=>{"use strict"});var Yg=p(()=>{"use strict";L();Nd();Rn();Zg();Nd();M("ft-loader")(Ho)});var Wo,Qg=p(()=>{Gt();Wo=r=>r??T});var Ba=p(()=>{Qg()});var Qe,Ae,Fd=p(()=>{"use strict";L();ft();Na();ze();Ut();Yg();P();ut();Y();Ba();Qe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ae=class extends ad(W){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,i;let n=S`
634
+ `}};Ho.styles=Fg});var Zg=p(()=>{"use strict"});var Yg=p(()=>{"use strict";L();Nd();Rn();Zg();Nd();M("ft-loader")(Ho)});var Wo,Qg=p(()=>{Kt();Wo=r=>r??T});var Ba=p(()=>{Qg()});var Qe,Ae,Fd=p(()=>{"use strict";L();ft();Na();ze();zt();Yg();P();ut();Y();Ba();Qe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ae=class extends ad(W){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,i;let n=S`
635
635
  <ft-ripple part="ripple"
636
636
  ?disabled=${this.isDisabled()}
637
637
  ?activated=${this.activated}
@@ -672,7 +672,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
672
672
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
673
673
  `:S`
674
674
  <slot part="icon" name="icon"></slot>
675
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Ae.elementDefinitions={"ft-ripple":re,"ft-tooltip":$e,"ft-typography":oe,"ft-icon":Ce,"ft-loader":Ho};Qe([h()],Ae.prototype,"href",void 0);Qe([h()],Ae.prototype,"target",void 0);Qe([h()],Ae.prototype,"type",void 0);Qe([h({type:Boolean})],Ae.prototype,"disabled",void 0);Qe([h()],Ae.prototype,"label",void 0);Qe([h()],Ae.prototype,"icon",void 0);Qe([h()],Ae.prototype,"iconVariant",void 0);Qe([h({type:Boolean})],Ae.prototype,"trailingIcon",void 0);Qe([h({type:Boolean})],Ae.prototype,"loading",void 0);Qe([h({attribute:"aria-label"})],Ae.prototype,"ariaLabel",void 0);Qe([h()],Ae.prototype,"ariaHasPopup",void 0);Qe([h()],Ae.prototype,"tooltipPosition",void 0);Qe([h({type:Boolean})],Ae.prototype,"hideTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"forceTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"activated",void 0);Qe([H(".ft-button")],Ae.prototype,"button",void 0);Qe([H(".ft-button--label slot")],Ae.prototype,"slottedContent",void 0);Qe([H("[part=tooltip]")],Ae.prototype,"tooltip",void 0)});var Da,De,Bd=p(()=>{"use strict";Y();L();zo();Fd();Da=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},De=class extends Ae{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"}};De.styles=[$r,Ug];Da([h({type:Boolean})],De.prototype,"primary",void 0);Da([h({type:Boolean})],De.prototype,"outlined",void 0);Da([h({type:Boolean})],De.prototype,"dense",void 0);Da([h({type:Boolean})],De.prototype,"round",void 0)});var Dd,Xg,Md=p(()=>{"use strict";P();L();Nr();Rn();Uo();ee();Dd={...v,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},Xg=[A`
675
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Ae.elementDefinitions={"ft-ripple":re,"ft-tooltip":$e,"ft-typography":oe,"ft-icon":Ce,"ft-loader":Ho};Qe([h()],Ae.prototype,"href",void 0);Qe([h()],Ae.prototype,"target",void 0);Qe([h()],Ae.prototype,"type",void 0);Qe([h({type:Boolean})],Ae.prototype,"disabled",void 0);Qe([h()],Ae.prototype,"label",void 0);Qe([h()],Ae.prototype,"icon",void 0);Qe([h()],Ae.prototype,"iconVariant",void 0);Qe([h({type:Boolean})],Ae.prototype,"trailingIcon",void 0);Qe([h({type:Boolean})],Ae.prototype,"loading",void 0);Qe([h({attribute:"aria-label"})],Ae.prototype,"ariaLabel",void 0);Qe([h()],Ae.prototype,"ariaHasPopup",void 0);Qe([h()],Ae.prototype,"tooltipPosition",void 0);Qe([h({type:Boolean})],Ae.prototype,"hideTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"forceTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"activated",void 0);Qe([H(".ft-button")],Ae.prototype,"button",void 0);Qe([H(".ft-button--label slot")],Ae.prototype,"slottedContent",void 0);Qe([H("[part=tooltip]")],Ae.prototype,"tooltip",void 0)});var Da,De,Bd=p(()=>{"use strict";Y();L();zo();Fd();Da=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},De=class extends Ae{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"}};De.styles=[Tr,Ug];Da([h({type:Boolean})],De.prototype,"primary",void 0);Da([h({type:Boolean})],De.prototype,"outlined",void 0);Da([h({type:Boolean})],De.prototype,"dense",void 0);Da([h({type:Boolean})],De.prototype,"round",void 0)});var Dd,Xg,Md=p(()=>{"use strict";P();L();Fr();Rn();Uo();ee();Dd={...v,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},Xg=[A`
676
676
  :host {
677
677
  display: inline-block;
678
678
  max-width: 100%;
@@ -1142,7 +1142,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1142
1142
  .ftds--size-small.ft-button--icon-only {
1143
1143
  width: ${v.smallIconOnlyWidth};
1144
1144
  }
1145
- `,_r]});var Ma,Jt,Ud=p(()=>{"use strict";Fd();Y();Pi();L();Md();ee();Ut();Ma=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Jt=class extends dr(Ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Rt.brand,this.iconVariant=Ye.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case qe.large:return Be.body2medium;case qe.medium:return Be.caption1medium;case qe.small:return Be.caption2medium}}};Jt.styles=[$r,Xg];Ma([h({type:Boolean})],Jt.prototype,"primary",void 0);Ma([h({type:Boolean})],Jt.prototype,"secondary",void 0);Ma([h({type:Boolean})],Jt.prototype,"tertiary",void 0);Ma([h({type:Boolean})],Jt.prototype,"round",void 0)});var Jg=p(()=>{"use strict"});var ey=p(()=>{"use strict"});var zt=p(()=>{"use strict";L();Bd();Ud();Bd();zo();Jg();Ud();Md();ey();M("ft-button")(De);M("ftds-button")(Jt)});var Oe,zd,Ln=p(()=>{"use strict";P();L();zt();Na();Oe={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",w.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",w.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",w.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",w.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",w.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",w.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",w.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",w.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",w.colorPrimary)},zd=A`
1145
+ `,$r]});var Ma,er,Ud=p(()=>{"use strict";Fd();Y();Pi();L();Md();ee();zt();Ma=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},er=class extends pr(Ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Rt.brand,this.iconVariant=Ye.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case qe.large:return Be.body2medium;case qe.medium:return Be.caption1medium;case qe.small:return Be.caption2medium}}};er.styles=[Tr,Xg];Ma([h({type:Boolean})],er.prototype,"primary",void 0);Ma([h({type:Boolean})],er.prototype,"secondary",void 0);Ma([h({type:Boolean})],er.prototype,"tertiary",void 0);Ma([h({type:Boolean})],er.prototype,"round",void 0)});var Jg=p(()=>{"use strict"});var ey=p(()=>{"use strict"});var Ht=p(()=>{"use strict";L();Bd();Ud();Bd();zo();Jg();Ud();Md();ey();M("ft-button")(De);M("ftds-button")(er)});var Oe,zd,Ln=p(()=>{"use strict";P();L();Ht();Na();Oe={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",w.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",w.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",w.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",w.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",w.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",w.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",w.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",w.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",w.colorPrimary)},zd=A`
1146
1146
  * {
1147
1147
  box-sizing: border-box;
1148
1148
  ${y(te.color,Oe.buttonColor)};
@@ -1200,7 +1200,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1200
1200
  align-items: center;
1201
1201
  height: 100%;
1202
1202
 
1203
- ${y(mr.zIndex,`calc(${Oe.floatingZIndex} + 1)`)};
1203
+ ${y(gr.zIndex,`calc(${Oe.floatingZIndex} + 1)`)};
1204
1204
  }
1205
1205
 
1206
1206
  .ft-search-input > ft-button,
@@ -1239,17 +1239,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1239
1239
  }
1240
1240
  `});var oy,Vd=p(()=>{"use strict";P();oy=A`
1241
1241
  `});var iy,jd=p(()=>{"use strict";P();iy=A`
1242
- `});var X0,Vo,J0,U,lt=p(()=>{"use strict";L();X0="ft-app-info",Vo=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Vo.eventName="authentication-change";J0={session:(r,e)=>{Ke(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>U.dispatchEvent(new Vo(e.payload)),0))}},U=Pr.get({name:X0,reducers:J0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var jo,Gd=p(()=>{"use strict";lt();jo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=U.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var Va,ny=p(()=>{"use strict";Gd();Va=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:jo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):jo.await()}}});var ct,ao=p(()=>{"use strict";L();ny();ct=class extends Va{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new sr,this.cache=e?n.commonCache:new sr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var ja,Kd=p(()=>{"use strict";lt();ao();ja=class extends ct{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var qd,ay=p(()=>{"use strict";lt();qd=class{addCommand(e,t=!1){U.commands.add(e,t)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qd});var sy,Ni,eS,Ga,Fi,Ka,ly=p(()=>{"use strict";lt();L();ao();Ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},eS=Symbol("clearAfterUnitTest"),Ga=class extends ra(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sy]=()=>{this.defaultMessages={},this.cache=new sr,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ke(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Yr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof ar)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ni({loadedContexts:e})),this.dispatchEvent(new Ni({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ni({loadedContexts:[e]})),this.dispatchEvent(new Ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ta(0).then(()=>i()).catch(()=>null)))}};sy=eS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Fi=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService});var Zd,cy=p(()=>{"use strict";L();Zd=class{highlightHtml(e,t,i){gc(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Zd});var qa,Yd=p(()=>{"use strict";lt();oo();ao();qa=class extends ct{async listMySearches(){let{session:e}=U.getState();return Xm(e,Ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Qd,dy=p(()=>{"use strict";L();lt();Qd=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=U.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var i,n,a;return Fo.format(e,(i=t?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Qd});var Dr,Xd=p(()=>{"use strict";L();lt();Dr=class{static get(e,t){var i,n;let a=U.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new io(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Za,py=p(()=>{"use strict";ao();Za=class extends ct{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var Jd,uy=p(()=>{"use strict";Xd();Jd=class{urlToSearchRequest(e){return Dr.get().parse(e)}searchRequestToUrl(e){return Dr.get().serialize(e)}};window.FluidTopicsUrlService=new Jd});var Go,fy=p(()=>{"use strict";Go=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Go.eventName="change"});var ep,hy,my=p(()=>{"use strict";ep=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},hy=new ep});var Ya,gy=p(()=>{"use strict";L();fy();my();Ya=class r extends Ar{static build(){return new r(window.history,hy,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ke(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Go(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Go.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Go.eventName,e)}currentItem(){return nn(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return nn(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return nn(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var yy=p(()=>{"use strict";gy();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ya.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var by=p(()=>{"use strict";lt()});var tp=p(()=>{"use strict";Kd();Gd();ay();ly();ao();cy();Yd();dy();Xd();py();uy();yy();by()});function vy(r,e){var t;return xy.getState().authenticationRequired&&!(!((t=xy.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var xy,Sy=p(()=>{"use strict";lt();xy=U});var Ge,Le,rp=p(()=>{"use strict";P();Y();L();jd();lt();tp();Sy();Ge=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>jo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new sr,this.cleanSessionDebouncer=new pe,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
1242
+ `});var X0,Vo,J0,U,lt=p(()=>{"use strict";L();X0="ft-app-info",Vo=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Vo.eventName="authentication-change";J0={session:(r,e)=>{Ke(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>U.dispatchEvent(new Vo(e.payload)),0))}},U=Nr.get({name:X0,reducers:J0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var jo,Gd=p(()=>{"use strict";lt();jo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=U.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var Va,ny=p(()=>{"use strict";Gd();Va=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:jo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):jo.await()}}});var ct,so=p(()=>{"use strict";L();ny();ct=class extends Va{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new lr,this.cache=e?n.commonCache:new lr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var ja,Kd=p(()=>{"use strict";lt();so();ja=class extends ct{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var qd,ay=p(()=>{"use strict";lt();qd=class{addCommand(e,t=!1){U.commands.add(e,t)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qd});var sy,Ni,eS,Ga,Fi,Ka,ly=p(()=>{"use strict";lt();L();so();Ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},eS=Symbol("clearAfterUnitTest"),Ga=class extends ra(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sy]=()=>{this.defaultMessages={},this.cache=new lr,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ke(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Qr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof sr)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ni({loadedContexts:e})),this.dispatchEvent(new Ni({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ni({loadedContexts:[e]})),this.dispatchEvent(new Ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ta(0).then(()=>i()).catch(()=>null)))}};sy=eS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Fi=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService});var Zd,cy=p(()=>{"use strict";L();Zd=class{highlightHtml(e,t,i){gc(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Zd});var qa,Yd=p(()=>{"use strict";lt();io();so();qa=class extends ct{async listMySearches(){let{session:e}=U.getState();return Xm(e,Ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Qd,dy=p(()=>{"use strict";L();lt();Qd=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=U.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var i,n,a;return Fo.format(e,(i=t?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Qd});var Mr,Xd=p(()=>{"use strict";L();lt();Mr=class{static get(e,t){var i,n;let a=U.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new no(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Za,py=p(()=>{"use strict";so();Za=class extends ct{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var Jd,uy=p(()=>{"use strict";Xd();Jd=class{urlToSearchRequest(e){return Mr.get().parse(e)}searchRequestToUrl(e){return Mr.get().serialize(e)}};window.FluidTopicsUrlService=new Jd});var Go,fy=p(()=>{"use strict";Go=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Go.eventName="change"});var ep,hy,my=p(()=>{"use strict";ep=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},hy=new ep});var Ya,gy=p(()=>{"use strict";L();fy();my();Ya=class r extends Lr{static build(){return new r(window.history,hy,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ke(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Go(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Go.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Go.eventName,e)}currentItem(){return nn(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return nn(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return nn(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var yy=p(()=>{"use strict";gy();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ya.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var by=p(()=>{"use strict";lt()});var tp=p(()=>{"use strict";Kd();Gd();ay();ly();so();cy();Yd();dy();Xd();py();uy();yy();by()});function vy(r,e){var t;return xy.getState().authenticationRequired&&!(!((t=xy.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var xy,Sy=p(()=>{"use strict";lt();xy=U});var Ge,Le,rp=p(()=>{"use strict";P();Y();L();jd();lt();tp();Sy();Ge=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>jo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new lr,this.cleanSessionDebouncer=new pe,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
1243
1243
  <slot></slot>
1244
- `}connectedCallback(){super.connectedCallback(),U.addEventListener(Vo.eventName,this.reloadConfiguration)}disconnectedCallback(){U.addEventListener(Vo.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(U.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&U.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&U.actions.noCustom(this.noCustom),e.has("editorMode")&&U.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&U.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Fi.addContext(f)),e.has("openExternalDocumentInNewTab")&&U.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&U.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&U.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(U.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),U.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),U.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&U.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&U.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>vy(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Le.elementDefinitions={};Le.styles=iy;Ge([h()],Le.prototype,"baseUrl",void 0);Ge([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ge([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ge([h()],Le.prototype,"uiLocale",void 0);Ge([Ee(null)],Le.prototype,"availableUiLocales",void 0);Ge([Ee(null)],Le.prototype,"metadataConfiguration",void 0);Ge([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ge([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ge([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ge([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ge([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ge([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ge([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ge([h({type:Object})],Le.prototype,"apiProvider",void 0);Ge([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ge([Ee([])],Le.prototype,"messageContexts",void 0);Ge([Ee(void 0)],Le.prototype,"session",void 0);Ge([N()],Le.prototype,"localesConfiguration",void 0);Ge([N()],Le.prototype,"availableContentLocales",void 0)});var Qa,kP,Cy=p(()=>{"use strict";Y();Ea();ka();lt();L();Qa=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},kP=Ne(Symbol("withDateFormat"),function(r){class e extends r{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Fo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Qa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Qa([ve({store:U.name,selector:t=>{var i,n;return(n=(i=t.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Qa([ve({store:U.name})],e.prototype,"uiLocale",void 0),e})});var Xa,Oy=p(()=>{"use strict";lt();ao();Xa=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var Ja,wy=p(()=>{"use strict";ao();lt();Ja=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var tS,rS,It,op,ip,es=p(()=>{"use strict";oo();L();Yd();Kd();lt();Oy();wy();tS="ft-user-assets",rS={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(No).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},It=Pr.get({name:tS,reducers:rS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(No).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),op=class{constructor(e=new Xa,t=new Ja){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ja,this.savedSearchesService=new qa,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=U.getState();Ke((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),It.actions.clearAssetCount(),It.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),It.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),It.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();It.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();It.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&It.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&It.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(It.getState().assetCounts.bookmarkByMap).length!==0;e===No.BOOKMARKS&&t&&It.actions.clearBookmarkCountByMap(),It.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;It.actions.bookmarks(t)}}},ip=new op;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ip)});var Ey=p(()=>{"use strict";oo();es()});var Ry=p(()=>{"use strict"});var gr=p(()=>{"use strict";L();rp();Cy();lt();es();Ey();tp();jd();Ry();rp();M("ft-app-context")(Le)});var np,Ay,Ly=p(()=>{"use strict";np=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ay=new np});var oS,iS,nS,ky,ts,In,St,Iy,rs,os=p(()=>{"use strict";L();gr();Y();Ly();oS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},iS=Symbol("i18nAttributes"),nS=Symbol("i18nListAttributes"),ky=Symbol("i18nProperties"),ts=Symbol("i18nContexts"),In=Symbol("i18nUnsubs"),St=Ne(Symbol("withI18n"),function(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:Fi}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let b=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(s,l,...b)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ay.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,b)=>b?.context&&b.key&&a(g,m,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[iS])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[nS])===null||l===void 0||l.forEach((g,m)=>{var b;return d[m]=(b=d[m])===null||b===void 0?void 0:b.map(O=>f(g,m,O))})}updateI18nProperties(a){var s;(s=this[ky])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ts].set(d,{isCustomContext:l}),this[In].has(d)||this[In].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ts].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ts].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[In].forEach(a=>a()),this[In].clear()}}return e=ts,t=In,oS([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Iy=class extends St(W){},rs=class extends St(Qt){}});var kn,er,ap=p(()=>{"use strict";P();Y();L();Vd();os();gr();kn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},er=class extends rs{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
1244
+ `}connectedCallback(){super.connectedCallback(),U.addEventListener(Vo.eventName,this.reloadConfiguration)}disconnectedCallback(){U.addEventListener(Vo.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(U.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&U.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&U.actions.noCustom(this.noCustom),e.has("editorMode")&&U.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&U.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Fi.addContext(f)),e.has("openExternalDocumentInNewTab")&&U.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&U.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&U.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(U.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),U.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),U.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&U.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&U.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>vy(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Le.elementDefinitions={};Le.styles=iy;Ge([h()],Le.prototype,"baseUrl",void 0);Ge([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ge([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ge([h()],Le.prototype,"uiLocale",void 0);Ge([Ee(null)],Le.prototype,"availableUiLocales",void 0);Ge([Ee(null)],Le.prototype,"metadataConfiguration",void 0);Ge([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ge([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ge([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ge([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ge([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ge([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ge([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ge([h({type:Object})],Le.prototype,"apiProvider",void 0);Ge([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ge([Ee([])],Le.prototype,"messageContexts",void 0);Ge([Ee(void 0)],Le.prototype,"session",void 0);Ge([N()],Le.prototype,"localesConfiguration",void 0);Ge([N()],Le.prototype,"availableContentLocales",void 0)});var Qa,kP,Cy=p(()=>{"use strict";Y();Ea();ka();lt();L();Qa=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},kP=Ne(Symbol("withDateFormat"),function(r){class e extends r{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Fo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Qa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Qa([ve({store:U.name,selector:t=>{var i,n;return(n=(i=t.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Qa([ve({store:U.name})],e.prototype,"uiLocale",void 0),e})});var Xa,Oy=p(()=>{"use strict";lt();so();Xa=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var Ja,wy=p(()=>{"use strict";so();lt();Ja=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var tS,rS,kt,op,ip,es=p(()=>{"use strict";io();L();Yd();Kd();lt();Oy();wy();tS="ft-user-assets",rS={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(It).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:i,asset:n}=e.payload;switch(t){case It.BOOKMARKS:r.bookmarks?r.bookmarks.push(n):r.bookmarks=[n];break;case It.SEARCHES:r.savedSearches?r.savedSearches.push(n):r.savedSearches=[n];break}let a=r.assetCounts.allAsset[t];if(a!==void 0&&(r.assetCounts.allAsset[t]=a+1),t===It.BOOKMARKS&&i!==void 0){let s=r.assetCounts.bookmarkByMap[i];s!==void 0&&(r.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(r,e)=>{var t,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case It.BOOKMARKS:r.bookmarks=(t=r.bookmarks)===null||t===void 0?void 0:t.filter(d=>d.id!==s);break;case It.SEARCHES:r.savedSearches=(i=r.savedSearches)===null||i===void 0?void 0:i.filter(d=>d.id!==s);break}let l=r.assetCounts.allAsset[n];if(l!==void 0&&l>0&&(r.assetCounts.allAsset[n]=l-1),n===It.BOOKMARKS&&a!==void 0){let d=r.assetCounts.bookmarkByMap[a];d!==void 0&&d>0&&(r.assetCounts.bookmarkByMap[a]=d-1)}}},kt=Nr.get({name:tS,reducers:rS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(It).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),op=class{constructor(e=new Xa,t=new Ja){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ja,this.savedSearchesService=new qa,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=U.getState();Ke((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),kt.actions.clearAssetCount(),kt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),kt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),kt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();kt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();kt.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&kt.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&kt.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(kt.getState().assetCounts.bookmarkByMap).length!==0;e===It.BOOKMARKS&&t&&kt.actions.clearBookmarkCountByMap(),kt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;kt.actions.bookmarks(t)}}},ip=new op;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ip)});var Ey=p(()=>{"use strict";io();es()});var Ry=p(()=>{"use strict"});var yr=p(()=>{"use strict";L();rp();Cy();lt();es();Ey();tp();jd();Ry();rp();M("ft-app-context")(Le)});var np,Ay,Ly=p(()=>{"use strict";np=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ay=new np});var oS,iS,nS,ky,ts,In,St,Iy,rs,os=p(()=>{"use strict";L();yr();Y();Ly();oS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},iS=Symbol("i18nAttributes"),nS=Symbol("i18nListAttributes"),ky=Symbol("i18nProperties"),ts=Symbol("i18nContexts"),In=Symbol("i18nUnsubs"),St=Ne(Symbol("withI18n"),function(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:Fi}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let b=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(s,l,...b)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ay.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,b)=>b?.context&&b.key&&a(g,m,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[iS])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[nS])===null||l===void 0||l.forEach((g,m)=>{var b;return d[m]=(b=d[m])===null||b===void 0?void 0:b.map(O=>f(g,m,O))})}updateI18nProperties(a){var s;(s=this[ky])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ts].set(d,{isCustomContext:l}),this[In].has(d)||this[In].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ts].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ts].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[In].forEach(a=>a()),this[In].clear()}}return e=ts,t=In,oS([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Iy=class extends St(W){},rs=class extends St(Xt){}});var kn,tr,ap=p(()=>{"use strict";P();Y();L();Vd();os();yr();kn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},tr=class extends rs{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
1245
1245
  <span class="ft-i18n">
1246
1246
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1247
1247
  </span>
1248
- `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};er.elementDefinitions={};er.styles=oy;kn([ve()],er.prototype,"editorMode",void 0);kn([h()],er.prototype,"context",void 0);kn([h()],er.prototype,"key",void 0);kn([Ee([])],er.prototype,"args",void 0);kn([h()],er.prototype,"defaultMessage",void 0)});var yr,_y=p(()=>{"use strict";gr();yr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ka:Fi}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var $y=p(()=>{"use strict";os()});var Ty=p(()=>{"use strict"});var tr=p(()=>{"use strict";L();ap();_y();os();$y();Vd();Ty();ap();M("ft-i18n")(er)});function Fy(r){var e,t,i,n,a;return((n=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.openMode)===Ia.EXTERNAL}function ns(r){var e,t,i,n,a;if(Fy(r))return(n=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case Dt.MAP:return r.map.readerUrl;case Dt.DOCUMENT:return r.document.viewerUrl;case Dt.TOPIC:return r.topic.readerUrl}return""}function By(r,e){return Wo(e&&Fy(r)?"_blank":void 0)}var cp=p(()=>{"use strict";oo();Ba()});var Di,Mi,pp=p(()=>{"use strict";Di=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Mi=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}}});var lS,up,fp=p(()=>{"use strict";P();lS={},up=A`
1249
- `});var Dy=p(()=>{"use strict"});var cS,My,Uy=p(()=>{"use strict";L();cS={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:wo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestSortId:(r,e)=>{r.request.sortId=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},My=r=>Pr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:cS})});var as,zy=p(()=>{"use strict";gr();as=class extends ct{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var Hy,_n,Ui,hp=p(()=>{"use strict";L();Uy();oo();zy();Hy=r=>r.request.virtualField===Po.TITLE_ONLY&&r.request.scope===wi.DOCUMENTS,_n=class r extends Event{constructor(){super(r.eventName)}};_n.eventName="search-context-clear-all-filters";Ui=class r{static build(e,t){return new r(My(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pe(10),this.searchDebouncer=new pe(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new pe(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=t??new as,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=vi(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=vi(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var t;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(t=this.sortOptions.find(n=>n.id==e))!==null&&t!==void 0?t:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Po.TITLE_ONLY),this.store.actions.setRequestScope(wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Po.EVERYWHERE),this.store.actions.setRequestScope(wi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return Hy(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new _n)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=ni(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof ar||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=ni(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof ar)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var dS,gp,Wy,mp,pS,uS,Ht,Ko=p(()=>{"use strict";L();Y();Dy();hp();dS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gp=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Wy=Symbol("registerInterval"),mp=Symbol("registerAttempts"),pS=40,uS=Ne(Symbol("toFtSearchComponent"),function(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[mp]=0,this[Wy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[mp]>pS?window.clearInterval(this[Wy]):(this[mp]++,this.dispatchEvent(new gp))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return dS([N()],e.prototype,"stateManager",void 0),e}),Ht=class extends uS(Qt){}});function $n(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Tn(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var yp=p(()=>{"use strict"});var ss,Vy=p(()=>{"use strict";L();oo();gr();yp();ss=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Za,this.resultsWatcher=vi(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=U.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=U.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:To.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:$n(e.metadataFilters),facets:e.metadataFilters.map(n=>Tn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:To.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Dt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:To.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Dt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:To.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Dt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ci.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Dt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ci.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Dt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ci.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var tt,ls,cs,ds,Te,bp=p(()=>{"use strict";P();Y();L();fp();Ko();gr();es();Vy();tt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ls=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},cs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ds=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},Te=class extends Qt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ui.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ss(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(U)}render(){return S`
1248
+ `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};tr.elementDefinitions={};tr.styles=oy;kn([ve()],tr.prototype,"editorMode",void 0);kn([h()],tr.prototype,"context",void 0);kn([h()],tr.prototype,"key",void 0);kn([Ee([])],tr.prototype,"args",void 0);kn([h()],tr.prototype,"defaultMessage",void 0)});var br,_y=p(()=>{"use strict";yr();br=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ka:Fi}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var $y=p(()=>{"use strict";os()});var Ty=p(()=>{"use strict"});var rr=p(()=>{"use strict";L();ap();_y();os();$y();Vd();Ty();ap();M("ft-i18n")(tr)});function Fy(r){var e,t,i,n,a;return((n=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.openMode)===Ia.EXTERNAL}function ns(r){var e,t,i,n,a;if(Fy(r))return(n=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case Mt.MAP:return r.map.readerUrl;case Mt.DOCUMENT:return r.document.viewerUrl;case Mt.TOPIC:return r.topic.readerUrl}return""}function By(r,e){return Wo(e&&Fy(r)?"_blank":void 0)}var cp=p(()=>{"use strict";io();Ba()});var Di,Mi,pp=p(()=>{"use strict";Di=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Mi=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}}});var lS,up,fp=p(()=>{"use strict";P();lS={},up=A`
1249
+ `});var Dy=p(()=>{"use strict"});var cS,My,Uy=p(()=>{"use strict";L();cS={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:Eo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestSortId:(r,e)=>{r.request.sortId=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},My=r=>Nr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:cS})});var as,zy=p(()=>{"use strict";yr();as=class extends ct{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var Hy,_n,Ui,hp=p(()=>{"use strict";L();Uy();io();zy();Hy=r=>r.request.virtualField===No.TITLE_ONLY&&r.request.scope===wi.DOCUMENTS,_n=class r extends Event{constructor(){super(r.eventName)}};_n.eventName="search-context-clear-all-filters";Ui=class r{static build(e,t){return new r(My(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pe(10),this.searchDebouncer=new pe(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new pe(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=t??new as,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=vi(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=vi(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var t;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(t=this.sortOptions.find(n=>n.id==e))!==null&&t!==void 0?t:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(No.TITLE_ONLY),this.store.actions.setRequestScope(wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(No.EVERYWHERE),this.store.actions.setRequestScope(wi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return Hy(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new _n)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=ni(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof sr||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=ni(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof sr)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var dS,gp,Wy,mp,pS,uS,Wt,Ko=p(()=>{"use strict";L();Y();Dy();hp();dS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gp=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Wy=Symbol("registerInterval"),mp=Symbol("registerAttempts"),pS=40,uS=Ne(Symbol("toFtSearchComponent"),function(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[mp]=0,this[Wy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[mp]>pS?window.clearInterval(this[Wy]):(this[mp]++,this.dispatchEvent(new gp))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return dS([N()],e.prototype,"stateManager",void 0),e}),Wt=class extends uS(Xt){}});function $n(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Tn(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var yp=p(()=>{"use strict"});var ss,Vy=p(()=>{"use strict";L();io();yr();yp();ss=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Za,this.resultsWatcher=vi(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=U.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=U.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:$n(e.metadataFilters),facets:e.metadataFilters.map(n=>Tn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Mt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Mt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Mt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ci.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Mt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ci.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Mt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ci.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var tt,ls,cs,ds,Te,bp=p(()=>{"use strict";P();Y();L();fp();Ko();yr();es();Vy();tt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ls=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},cs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ds=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},Te=class extends Xt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ui.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ss(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(U)}render(){return S`
1250
1250
  <slot @register-ft-search-component="${this.registerComponent}" @ft-search-result-click="${this.onResultClicked}"
1251
1251
  @ft-search-result-open-context-menu="${this.onResultContextMenuOpened}"></slot>
1252
- `}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new cs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ds(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ls(e))}reloadSavedSearches(){ip.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Te.elementDefinitions={};Te.styles=up;tt([ve({store:U.name})],Te.prototype,"session",void 0);tt([h()],Te.prototype,"query",void 0);tt([h()],Te.prototype,"contentLocale",void 0);tt([h({type:Number})],Te.prototype,"pageSize",void 0);tt([h({type:Boolean})],Te.prototype,"searchInDocumentTitlesOnly",void 0);tt([h()],Te.prototype,"scope",void 0);tt([h()],Te.prototype,"virtualField",void 0);tt([h({type:Boolean})],Te.prototype,"ignoreEmptyQuery",void 0);tt([ve({store:U.name})],Te.prototype,"openExternalDocumentInNewTab",void 0);tt([Ee([])],Te.prototype,"filters",void 0);tt([h()],Te.prototype,"sortId",void 0);tt([Ee([])],Te.prototype,"sort",void 0);tt([Ee({})],Te.prototype,"otherQueryParams",void 0);tt([ve({store:"search"})],Te.prototype,"request",void 0);tt([ve({store:"search"})],Te.prototype,"paging",void 0);tt([ve({store:"search",selector:r=>r.spellcheck})],Te.prototype,"autocorrect",void 0);tt([h({attribute:!1})],Te.prototype,"searchServiceProvider",void 0)});var jy=p(()=>{"use strict"});var Gy={};ne(Gy,{ClearAllFiltersEvent:()=>_n,FtSearchContext:()=>Te,FtSearchContextCssVariables:()=>lS,FtSearchStateManager:()=>Ui,LoadErrorEvent:()=>ls,SearchRequestChangeEvent:()=>cs,SearchResultsChangeEvent:()=>ds,convertMetadataFilterToAnalyticsFacet:()=>Tn,getAnalyticsLastUpdate:()=>$n,searchInDocumentTitlesOnlySelector:()=>Hy,styles:()=>up});var Ky=p(()=>{"use strict";L();bp();fp();jy();bp();hp();yp();M("ft-search-context")(Te)});var so,xp=p(()=>{"use strict";tr();so=yr.build("designedSearchInput")});var Wt,vp=p(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Wt||(Wt={}))});var qy,Sp=p(()=>{"use strict";P();qy=A`
1252
+ `}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new cs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ds(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ls(e))}reloadSavedSearches(){ip.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Te.elementDefinitions={};Te.styles=up;tt([ve({store:U.name})],Te.prototype,"session",void 0);tt([h()],Te.prototype,"query",void 0);tt([h()],Te.prototype,"contentLocale",void 0);tt([h({type:Number})],Te.prototype,"pageSize",void 0);tt([h({type:Boolean})],Te.prototype,"searchInDocumentTitlesOnly",void 0);tt([h()],Te.prototype,"scope",void 0);tt([h()],Te.prototype,"virtualField",void 0);tt([h({type:Boolean})],Te.prototype,"ignoreEmptyQuery",void 0);tt([ve({store:U.name})],Te.prototype,"openExternalDocumentInNewTab",void 0);tt([Ee([])],Te.prototype,"filters",void 0);tt([h()],Te.prototype,"sortId",void 0);tt([Ee([])],Te.prototype,"sort",void 0);tt([Ee({})],Te.prototype,"otherQueryParams",void 0);tt([ve({store:"search"})],Te.prototype,"request",void 0);tt([ve({store:"search"})],Te.prototype,"paging",void 0);tt([ve({store:"search",selector:r=>r.spellcheck})],Te.prototype,"autocorrect",void 0);tt([h({attribute:!1})],Te.prototype,"searchServiceProvider",void 0)});var jy=p(()=>{"use strict"});var Gy={};ne(Gy,{ClearAllFiltersEvent:()=>_n,FtSearchContext:()=>Te,FtSearchContextCssVariables:()=>lS,FtSearchStateManager:()=>Ui,LoadErrorEvent:()=>ls,SearchRequestChangeEvent:()=>cs,SearchResultsChangeEvent:()=>ds,convertMetadataFilterToAnalyticsFacet:()=>Tn,getAnalyticsLastUpdate:()=>$n,searchInDocumentTitlesOnlySelector:()=>Hy,styles:()=>up});var Ky=p(()=>{"use strict";L();bp();fp();jy();bp();hp();yp();M("ft-search-context")(Te)});var lo,xp=p(()=>{"use strict";rr();lo=br.build("designedSearchInput")});var Vt,vp=p(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Vt||(Vt={}))});var qy,Sp=p(()=>{"use strict";P();qy=A`
1253
1253
  .ft-size-watcher--pixel {
1254
1254
  width: 0;
1255
1255
  height: 0;
@@ -1268,19 +1268,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1268
1268
  .ft-size-watcher--local .ft-size-watcher--watcher {
1269
1269
  width: 100%;
1270
1270
  }
1271
- `});var Pn,Cp,kt,Op=p(()=>{"use strict";P();Y();L();vp();Sp();Pn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Cp=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},kt=class extends W{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Wt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new pe}render(){return S`
1271
+ `});var Pn,Cp,_t,Op=p(()=>{"use strict";P();Y();L();vp();Sp();Pn=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Cp=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},_t=class extends W{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Vt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new pe}render(){return S`
1272
1272
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
1273
1273
  <div class="ft-size-watcher--watcher"></div>
1274
1274
  </div>
1275
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Wt.S:this.size<976?this.category=Wt.M:this.size<1024?this.category=Wt.L:this.size<1440?this.category=Wt.XL:this.category=Wt.XXL,this.dispatchEvent(new Cp(this.size,this.category)))},this.debounceTimeout)}};kt.elementDefinitions={};kt.styles=qy;Pn([h({type:Number})],kt.prototype,"debounceTimeout",void 0);Pn([h({type:Boolean})],kt.prototype,"local",void 0);Pn([h({type:Number,reflect:!0})],kt.prototype,"size",void 0);Pn([h({type:String,reflect:!0})],kt.prototype,"category",void 0);Pn([H(".ft-size-watcher--watcher")],kt.prototype,"watcher",void 0)});var Zy=p(()=>{"use strict";L();Op();Op();Sp();vp();M("ft-size-watcher")(kt)});function ps(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yy(r){return ps(r).split("|").pop()}function Qy(r){return ps(r).split("|").join(" > ")}function Xy(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Xy(t,r.selected)),value:r.value}}function Jy(r){return Et(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function wp(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Xy(e,!1))}}function eb(r){return Et(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ep=p(()=>{"use strict";L()});var _t,tb,Rp=p(()=>{"use strict";L();P();ze();ft();_t={textColor:o.extend("--ft-checkbox-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",V.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",w.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",w.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",w.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",w.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",w.colorError)},tb=A`
1275
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Vt.S:this.size<976?this.category=Vt.M:this.size<1024?this.category=Vt.L:this.size<1440?this.category=Vt.XL:this.category=Vt.XXL,this.dispatchEvent(new Cp(this.size,this.category)))},this.debounceTimeout)}};_t.elementDefinitions={};_t.styles=qy;Pn([h({type:Number})],_t.prototype,"debounceTimeout",void 0);Pn([h({type:Boolean})],_t.prototype,"local",void 0);Pn([h({type:Number,reflect:!0})],_t.prototype,"size",void 0);Pn([h({type:String,reflect:!0})],_t.prototype,"category",void 0);Pn([H(".ft-size-watcher--watcher")],_t.prototype,"watcher",void 0)});var Zy=p(()=>{"use strict";L();Op();Op();Sp();vp();M("ft-size-watcher")(_t)});function ps(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yy(r){return ps(r).split("|").pop()}function Qy(r){return ps(r).split("|").join(" > ")}function Xy(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Xy(t,r.selected)),value:r.value}}function Jy(r){return Et(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function wp(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Xy(e,!1))}}function eb(r){return Et(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ep=p(()=>{"use strict";L()});var $t,tb,Rp=p(()=>{"use strict";L();P();ze();ft();$t={textColor:o.extend("--ft-checkbox-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",V.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",w.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",w.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",w.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",w.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",w.colorError)},tb=A`
1276
1276
  * {
1277
1277
  box-sizing: border-box;
1278
1278
  }
1279
1279
 
1280
1280
  .ft-checkbox {
1281
1281
  box-sizing: border-box;
1282
- color: ${_t.textColor};
1283
- font-size: ${_t.fontSize};
1282
+ color: ${$t.textColor};
1283
+ font-size: ${$t.fontSize};
1284
1284
 
1285
1285
  display: inline-flex;
1286
1286
  align-items: center;
@@ -1288,7 +1288,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1288
1288
  }
1289
1289
 
1290
1290
  .ft-checkbox--disabled {
1291
- color: ${_t.disabledColor};
1291
+ color: ${$t.disabledColor};
1292
1292
  }
1293
1293
 
1294
1294
  input {
@@ -1312,26 +1312,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1312
1312
 
1313
1313
  .ft-checkbox--box {
1314
1314
  display: flex;
1315
- border: 2px solid ${_t.borderColor};
1315
+ border: 2px solid ${$t.borderColor};
1316
1316
  border-radius: 2px;
1317
1317
 
1318
1318
  width: 18px;
1319
1319
  height: 18px;
1320
1320
 
1321
- color: ${_t.checkColor};
1321
+ color: ${$t.checkColor};
1322
1322
  }
1323
1323
 
1324
1324
 
1325
1325
  .ft-checkbox--checked .ft-checkbox--box,
1326
1326
  .ft-checkbox--indeterminate .ft-checkbox--box {
1327
- border-color: ${_t.activeColor};
1328
- background-color: ${_t.activeColor};
1327
+ border-color: ${$t.activeColor};
1328
+ background-color: ${$t.activeColor};
1329
1329
  }
1330
1330
 
1331
1331
  .ft-checkbox--disabled .ft-checkbox--box {
1332
- border-color: ${_t.disabledColor};
1332
+ border-color: ${$t.disabledColor};
1333
1333
  background-color: transparent;
1334
- color: ${_t.disabledColor};
1334
+ color: ${$t.disabledColor};
1335
1335
  }
1336
1336
 
1337
1337
  .ft-checkbox--checkmark {
@@ -1352,20 +1352,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1352
1352
  }
1353
1353
 
1354
1354
  .ft-checkbox.ft-checkbox--error {
1355
- color: ${_t.errorColor};
1356
- ${y($.color,_t.errorColor)};
1355
+ color: ${$t.errorColor};
1356
+ ${y($.color,$t.errorColor)};
1357
1357
 
1358
1358
  .ft-checkbox--box {
1359
- border-color: ${_t.errorColor};
1359
+ border-color: ${$t.errorColor};
1360
1360
  }
1361
1361
 
1362
1362
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
1363
1363
  .ft-checkbox--box {
1364
- background-color: ${_t.errorColor};
1364
+ background-color: ${$t.errorColor};
1365
1365
  }
1366
1366
  }
1367
1367
  }
1368
- `});var lo,dt,Ap=p(()=>{"use strict";P();Y();L();ut();ft();ze();Rp();lo=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dt=class extends W{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return S`
1368
+ `});var co,dt,Ap=p(()=>{"use strict";P();Y();L();ut();ft();ze();Rp();co=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dt=class extends W{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return S`
1369
1369
  <label class="${be(e)}" for="checkbox-input" part="checkbox-label">
1370
1370
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
1371
1371
  <ft-ripple part="checkbox-ripple"
@@ -1392,7 +1392,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1392
1392
  <slot></slot>
1393
1393
  </ft-typography>
1394
1394
  </label>
1395
- `}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};dt.elementDefinitions={"ft-ripple":re,"ft-typography":oe};dt.styles=tb;lo([h()],dt.prototype,"name",void 0);lo([h({type:Boolean,reflect:!0})],dt.prototype,"checked",void 0);lo([h({type:Boolean})],dt.prototype,"indeterminate",void 0);lo([h({type:Boolean})],dt.prototype,"disabled",void 0);lo([h({type:Boolean})],dt.prototype,"error",void 0);lo([H(".ft-checkbox")],dt.prototype,"container",void 0);lo([H("ft-ripple")],dt.prototype,"ripple",void 0);lo([H("input")],dt.prototype,"input",void 0)});var rb=p(()=>{"use strict"});var ob=p(()=>{"use strict";L();Ap();Ap();Rp();rb();M("ft-checkbox")(dt)});var co,us,ht,fs=p(()=>{"use strict";P();Y();L();ut();ft();ze();co=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},us=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},ht=class extends W{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return S`
1395
+ `}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};dt.elementDefinitions={"ft-ripple":re,"ft-typography":oe};dt.styles=tb;co([h()],dt.prototype,"name",void 0);co([h({type:Boolean,reflect:!0})],dt.prototype,"checked",void 0);co([h({type:Boolean})],dt.prototype,"indeterminate",void 0);co([h({type:Boolean})],dt.prototype,"disabled",void 0);co([h({type:Boolean})],dt.prototype,"error",void 0);co([H(".ft-checkbox")],dt.prototype,"container",void 0);co([H("ft-ripple")],dt.prototype,"ripple",void 0);co([H("input")],dt.prototype,"input",void 0)});var rb=p(()=>{"use strict"});var ob=p(()=>{"use strict";L();Ap();Ap();Rp();rb();M("ft-checkbox")(dt)});var po,us,ht,fs=p(()=>{"use strict";P();Y();L();ut();ft();ze();po=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},us=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},ht=class extends W{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return S`
1396
1396
  <div class="${be(this.radioClasses)}"
1397
1397
  @click=${this.onClick}>
1398
1398
  <div class="ft-radio--box-container">
@@ -1418,15 +1418,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1418
1418
  </ft-typography>
1419
1419
  </label>
1420
1420
  </div>
1421
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};ht.elementDefinitions={"ft-ripple":re,"ft-typography":oe};co([h()],ht.prototype,"value",void 0);co([h()],ht.prototype,"name",void 0);co([h({type:Boolean,reflect:!0})],ht.prototype,"checked",void 0);co([h({attribute:"aria-checked",reflect:!0})],ht.prototype,"ariaChecked",void 0);co([h({type:Boolean})],ht.prototype,"disabled",void 0);co([H(".ft-radio")],ht.prototype,"container",void 0);co([H("ft-ripple")],ht.prototype,"ripple",void 0);co([H("input")],ht.prototype,"input",void 0)});var po,ib,Lp=p(()=>{"use strict";P();L();ze();po={textColor:o.extend("--ft-radio-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",V.fontSize),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",w.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system")},ib=A`
1421
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};ht.elementDefinitions={"ft-ripple":re,"ft-typography":oe};po([h()],ht.prototype,"value",void 0);po([h()],ht.prototype,"name",void 0);po([h({type:Boolean,reflect:!0})],ht.prototype,"checked",void 0);po([h({attribute:"aria-checked",reflect:!0})],ht.prototype,"ariaChecked",void 0);po([h({type:Boolean})],ht.prototype,"disabled",void 0);po([H(".ft-radio")],ht.prototype,"container",void 0);po([H("ft-ripple")],ht.prototype,"ripple",void 0);po([H("input")],ht.prototype,"input",void 0)});var uo,ib,Lp=p(()=>{"use strict";P();L();ze();uo={textColor:o.extend("--ft-radio-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",V.fontSize),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",w.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system")},ib=A`
1422
1422
  * {
1423
1423
  box-sizing: border-box;
1424
1424
  }
1425
1425
 
1426
1426
  .ft-radio {
1427
1427
  box-sizing: border-box;
1428
- color: ${po.textColor};
1429
- font-size: ${po.fontSize};
1428
+ color: ${uo.textColor};
1429
+ font-size: ${uo.fontSize};
1430
1430
 
1431
1431
  display: inline-flex;
1432
1432
  align-items: center;
@@ -1434,7 +1434,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1434
1434
  }
1435
1435
 
1436
1436
  .ft-radio--disabled {
1437
- color: ${po.colorOnSurfaceDisabled};
1437
+ color: ${uo.colorOnSurfaceDisabled};
1438
1438
  }
1439
1439
 
1440
1440
  input {
@@ -1457,7 +1457,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1457
1457
  }
1458
1458
 
1459
1459
  .ft-radio--box {
1460
- border: 2px solid ${po.borderColor};
1460
+ border: 2px solid ${uo.borderColor};
1461
1461
  border-radius: 50%;
1462
1462
 
1463
1463
  display: flex;
@@ -1470,7 +1470,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1470
1470
 
1471
1471
  .ft-radio--box:after {
1472
1472
  content: " ";
1473
- background-color: ${po.colorPrimary};
1473
+ background-color: ${uo.colorPrimary};
1474
1474
 
1475
1475
  border-radius: 50%;
1476
1476
 
@@ -1482,7 +1482,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1482
1482
  }
1483
1483
 
1484
1484
  .ft-radio--checked .ft-radio--box {
1485
- border-color: ${po.colorPrimary};
1485
+ border-color: ${uo.colorPrimary};
1486
1486
  }
1487
1487
 
1488
1488
 
@@ -1491,12 +1491,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1491
1491
  }
1492
1492
 
1493
1493
  .ft-radio--disabled .ft-radio--box {
1494
- border-color: ${po.colorOnSurfaceDisabled};
1494
+ border-color: ${uo.colorOnSurfaceDisabled};
1495
1495
  background-color: transparent;
1496
1496
  }
1497
1497
 
1498
1498
  .ft-radio--disabled .ft-radio--box:after {
1499
- background-color: ${po.colorOnSurfaceDisabled};
1499
+ background-color: ${uo.colorOnSurfaceDisabled};
1500
1500
  }
1501
1501
 
1502
1502
  .ft-radio:has(:focus-visible) {
@@ -1507,7 +1507,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1507
1507
  .ft-radio ft-typography {
1508
1508
  padding-right: 2px;
1509
1509
  }
1510
- `});var Mr,Ip=p(()=>{"use strict";fs();Lp();Pi();fs();Mr=class extends ht{get typographyVariant(){return Be.body2}};Mr.styles=ib});var nb,kp=p(()=>{"use strict";P();L();ft();nb=A`
1510
+ `});var Ur,Ip=p(()=>{"use strict";fs();Lp();Pi();fs();Ur=class extends ht{get typographyVariant(){return Be.body2}};Ur.styles=ib});var nb,kp=p(()=>{"use strict";P();L();ft();nb=A`
1511
1511
  * {
1512
1512
  box-sizing: border-box;
1513
1513
  --input-size: calc(${ue.circleSize} + 2 * (${ue.focusOutlineOffset} + ${ue.focusOutlineWidth}));
@@ -1615,12 +1615,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1615
1615
  .ft-radio ft-typography {
1616
1616
  padding-right: 2px;
1617
1617
  }
1618
- `});var Nn,_p=p(()=>{"use strict";fs();Pi();L();kp();ee();Nn=class extends dr(ht){constructor(){super(...arguments),this.family=Rt.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return Be.body2medium}};Nn.styles=[$r,nb]});var zi,$t,hs=p(()=>{"use strict";L();Y();P();zi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},$t=class extends W{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return S`
1618
+ `});var Nn,_p=p(()=>{"use strict";fs();Pi();L();kp();ee();Nn=class extends pr(ht){constructor(){super(...arguments),this.family=Rt.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return Be.body2medium}};Nn.styles=[Tr,nb]});var zi,Tt,hs=p(()=>{"use strict";L();Y();P();zi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Tt=class extends W{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return S`
1619
1619
  <slot @slotchange=${this.onSlotChange}
1620
1620
  @change=${this.onChange}
1621
1621
  @keydown=${this.onKeyDown}
1622
1622
  ></slot>
1623
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};$t.elementDefinitions={};zi([h()],$t.prototype,"name",void 0);zi([h({reflect:!0,attribute:"role"})],$t.prototype,"role",void 0);zi([h({reflect:!0})],$t.prototype,"tabIndex",void 0);zi([h({reflect:!0,attribute:"aria-labelledby"})],$t.prototype,"ariaLabelledBy",void 0);zi([js()],$t.prototype,"assignedElements",void 0);zi([N()],$t.prototype,"currentSelectedIndex",void 0)});var ab,$p=p(()=>{"use strict";P();ab=A`
1623
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Tt.elementDefinitions={};zi([h()],Tt.prototype,"name",void 0);zi([h({reflect:!0,attribute:"role"})],Tt.prototype,"role",void 0);zi([h({reflect:!0})],Tt.prototype,"tabIndex",void 0);zi([h({reflect:!0,attribute:"aria-labelledby"})],Tt.prototype,"ariaLabelledBy",void 0);zi([js()],Tt.prototype,"assignedElements",void 0);zi([N()],Tt.prototype,"currentSelectedIndex",void 0)});var ab,$p=p(()=>{"use strict";P();ab=A`
1624
1624
  :host {
1625
1625
  display: block;
1626
1626
  }
@@ -1628,7 +1628,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1628
1628
  :host(:focus-visible) {
1629
1629
  outline: none;
1630
1630
  }
1631
- `});var qo,Tp=p(()=>{"use strict";hs();$p();hs();qo=class extends $t{};qo.styles=ab});var sb,Pp=p(()=>{"use strict";P();L();sb=A`
1631
+ `});var qo,Tp=p(()=>{"use strict";hs();$p();hs();qo=class extends Tt{};qo.styles=ab});var sb,Pp=p(()=>{"use strict";P();L();sb=A`
1632
1632
  :host {
1633
1633
  display: flex;
1634
1634
  flex-direction: column;
@@ -1638,7 +1638,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1638
1638
  :host(:focus-visible) {
1639
1639
  outline: none;
1640
1640
  }
1641
- `});var Fn,Np=p(()=>{"use strict";hs();L();Pp();ee();Fn=class extends dr($t){constructor(){super(...arguments),this.family=Rt.brand}};Fn.styles=[$r,sb]});var Fp=p(()=>{"use strict";L();Ip();_p();Tp();Np();Ip();Lp();_p();kp();Tp();$p();Np();Pp();M("ft-radio")(Mr);M("ftds-radio")(Nn);M("ft-radio-group")(qo);M("ftds-radio-group")(Fn)});var Bn,lb,Bp=p(()=>{"use strict";P();L();zo();Mt();Bn={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",w.colorOnSurface),borderRadiusM:o.external(w.borderRadiusM,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),fontFamily:o.external(je.fontFamily,"Body2 typography"),fontSize:o.external(je.fontSize,"Body2 typography"),fontWeight:o.external(je.fontWeight,"Body2 typography"),letterSpacing:o.external(je.letterSpacing,"Body2 typography"),lineHeight:o.external(je.lineHeight,"Body2 typography"),textTransform:o.external(je.textTransform,"Body2 typography")},lb=A`
1641
+ `});var Fn,Np=p(()=>{"use strict";hs();L();Pp();ee();Fn=class extends pr(Tt){constructor(){super(...arguments),this.family=Rt.brand}};Fn.styles=[Tr,sb]});var Fp=p(()=>{"use strict";L();Ip();_p();Tp();Np();Ip();Lp();_p();kp();Tp();$p();Np();Pp();M("ft-radio")(Ur);M("ftds-radio")(Nn);M("ft-radio-group")(qo);M("ftds-radio-group")(Fn)});var Bn,lb,Bp=p(()=>{"use strict";P();L();zo();Ut();Bn={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",w.colorOnSurface),borderRadiusM:o.external(w.borderRadiusM,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),fontFamily:o.external(je.fontFamily,"Body2 typography"),fontSize:o.external(je.fontSize,"Body2 typography"),fontWeight:o.external(je.fontWeight,"Body2 typography"),letterSpacing:o.external(je.letterSpacing,"Body2 typography"),lineHeight:o.external(je.lineHeight,"Body2 typography"),textTransform:o.external(je.textTransform,"Body2 typography")},lb=A`
1642
1642
  .ft-filter-level--container {
1643
1643
  display: flex;
1644
1644
  flex-direction: column;
@@ -1708,7 +1708,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1708
1708
  margin: 10px 0;
1709
1709
  color: ${Bn.colorOnSurfaceMedium};
1710
1710
  }
1711
- `});var rt,Me,cb=p(()=>{"use strict";P();Y();Zt();L();zt();ze();ft();Ut();ob();Fp();Bp();tr();rt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Me=class extends St(ig(W)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new pe(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){if(super.willUpdate(e),e.has("options")||e.has("hideSelectedOptions")||e.has("filter")){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(i=>!i.selected)),this.filter&&(t=t.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase()))),t!=this.filteredOptions&&(this.filteredOptions=t)}}render(){let e=this.filteredOptions.slice(0,this.limit);return S`
1711
+ `});var rt,Me,cb=p(()=>{"use strict";P();Y();Yt();L();Ht();ze();ft();zt();ob();Fp();Bp();rr();rt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Me=class extends St(ig(W)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new pe(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){if(super.willUpdate(e),e.has("options")||e.has("hideSelectedOptions")||e.has("filter")){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(i=>!i.selected)),this.filter&&(t=t.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase()))),t!=this.filteredOptions&&(this.filteredOptions=t)}}render(){let e=this.filteredOptions.slice(0,this.limit);return S`
1712
1712
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1713
1713
  ${this.parent==null?null:S`
1714
1714
  <div tabindex="0"
@@ -1775,7 +1775,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1775
1775
  @change=${t=>this.optionsChanged(t,e)}>
1776
1776
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1777
1777
  </ft-radio>
1778
- `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Me.elementDefinitions={"ft-button":De,"ft-ripple":re,"ft-typography":oe,"ft-checkbox":dt,"ft-icon":Ce,"ft-radio":Mr};Me.styles=lb;rt([h({type:String})],Me.prototype,"filterId",void 0);rt([h({type:Object})],Me.prototype,"parent",void 0);rt([h({type:Array,hasChanged:Rr})],Me.prototype,"options",void 0);rt([h({type:Boolean})],Me.prototype,"multivalued",void 0);rt([h({type:Boolean})],Me.prototype,"disabled",void 0);rt([h({type:Boolean})],Me.prototype,"hideSelectedOptions",void 0);rt([h({type:Boolean})],Me.prototype,"displayCount",void 0);rt([h({type:Boolean})],Me.prototype,"preventNavigation",void 0);rt([h({type:String})],Me.prototype,"filter",void 0);rt([h({type:String})],Me.prototype,"moreValuesButtonLabel",void 0);rt([h({type:String})],Me.prototype,"noValuesLabel",void 0);rt([h()],Me.prototype,"filteredOptionsNumberAriaNotification",void 0);rt([jr()],Me.prototype,"displayedValuesLimit",void 0);rt([H(".ft-filter-level--container")],Me.prototype,"container",void 0);rt([N()],Me.prototype,"radios",void 0);rt([N()],Me.prototype,"displayedPages",void 0);rt([N()],Me.prototype,"filteredOptions",void 0)});var mt,db,ms=p(()=>{"use strict";P();L();zo();mt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",w.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(w.colorSurface,"Design system")},db=A`
1778
+ `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Me.elementDefinitions={"ft-button":De,"ft-ripple":re,"ft-typography":oe,"ft-checkbox":dt,"ft-icon":Ce,"ft-radio":Ur};Me.styles=lb;rt([h({type:String})],Me.prototype,"filterId",void 0);rt([h({type:Object})],Me.prototype,"parent",void 0);rt([h({type:Array,hasChanged:Ar})],Me.prototype,"options",void 0);rt([h({type:Boolean})],Me.prototype,"multivalued",void 0);rt([h({type:Boolean})],Me.prototype,"disabled",void 0);rt([h({type:Boolean})],Me.prototype,"hideSelectedOptions",void 0);rt([h({type:Boolean})],Me.prototype,"displayCount",void 0);rt([h({type:Boolean})],Me.prototype,"preventNavigation",void 0);rt([h({type:String})],Me.prototype,"filter",void 0);rt([h({type:String})],Me.prototype,"moreValuesButtonLabel",void 0);rt([h({type:String})],Me.prototype,"noValuesLabel",void 0);rt([h()],Me.prototype,"filteredOptionsNumberAriaNotification",void 0);rt([Gr()],Me.prototype,"displayedValuesLimit",void 0);rt([H(".ft-filter-level--container")],Me.prototype,"container",void 0);rt([N()],Me.prototype,"radios",void 0);rt([N()],Me.prototype,"displayedPages",void 0);rt([N()],Me.prototype,"filteredOptions",void 0)});var mt,db,ms=p(()=>{"use strict";P();L();zo();mt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",w.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(w.colorSurface,"Design system")},db=A`
1779
1779
  .ft-snap-scroll {
1780
1780
  box-sizing: border-box;
1781
1781
  position: relative;
@@ -1900,7 +1900,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1900
1900
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1901
1901
  background-color: ${mt.colorSurface};
1902
1902
  }
1903
- `});var br,Dp,He,Mp=p(()=>{"use strict";P();Y();L();zt();ut();ms();br=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Dp=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},He=class extends W{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 pe(200),this.updateScrollDebouncer=new pe(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>i)&&this.scrollToElement(t)}}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(){let e=be({"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":Mo}),t=this.controls&&this.withScroll;return S`
1903
+ `});var xr,Dp,He,Mp=p(()=>{"use strict";P();Y();L();Ht();ut();ms();xr=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Dp=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},He=class extends W{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 pe(200),this.updateScrollDebouncer=new pe(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>i)&&this.scrollToElement(t)}}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(){let e=be({"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":Mo}),t=this.controls&&this.withScroll;return S`
1904
1904
  <div part="container" class="${e}">
1905
1905
  <ft-button
1906
1906
  class="ft-snap-scroll--previous"
@@ -1924,7 +1924,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1924
1924
  @click=${this.next}
1925
1925
  ></ft-button>
1926
1926
  </div>
1927
- `}update(e){super.update(e),e.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")),e.has("currentElement")&&this.dispatchEvent(new Dp(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,i;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,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 e=this.elements[0];return e?e[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(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};He.elementDefinitions={"ft-button":De};He.styles=db;br([h({type:Boolean})],He.prototype,"horizontal",void 0);br([h({type:Boolean})],He.prototype,"hideScrollbar",void 0);br([h({type:Boolean})],He.prototype,"controls",void 0);br([h({type:Boolean})],He.prototype,"limitSize",void 0);br([N()],He.prototype,"elements",void 0);br([N()],He.prototype,"currentElement",void 0);br([N()],He.prototype,"withScroll",void 0);br([N()],He.prototype,"startReached",void 0);br([N()],He.prototype,"endReached",void 0);br([H(".ft-snap-scroll--content")],He.prototype,"contentSlot",void 0)});var pb=p(()=>{"use strict"});var gs=p(()=>{"use strict";L();Mp();Mp();ms();pb();M("ft-snap-scroll")(He)});var Ot,ub,ys=p(()=>{"use strict";P();L();Mt();zo();Ot={colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorSurface:o.external(w.colorSurface,"Design system"),transitionDuration:o.external(w.transitionDuration,"Design system"),transitionTimingFunction:o.external(w.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",w.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",V.fontSize,"16px")},ub=[fr,Io,A`
1927
+ `}update(e){super.update(e),e.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")),e.has("currentElement")&&this.dispatchEvent(new Dp(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,i;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,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 e=this.elements[0];return e?e[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(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};He.elementDefinitions={"ft-button":De};He.styles=db;xr([h({type:Boolean})],He.prototype,"horizontal",void 0);xr([h({type:Boolean})],He.prototype,"hideScrollbar",void 0);xr([h({type:Boolean})],He.prototype,"controls",void 0);xr([h({type:Boolean})],He.prototype,"limitSize",void 0);xr([N()],He.prototype,"elements",void 0);xr([N()],He.prototype,"currentElement",void 0);xr([N()],He.prototype,"withScroll",void 0);xr([N()],He.prototype,"startReached",void 0);xr([N()],He.prototype,"endReached",void 0);xr([H(".ft-snap-scroll--content")],He.prototype,"contentSlot",void 0)});var pb=p(()=>{"use strict"});var gs=p(()=>{"use strict";L();Mp();Mp();ms();pb();M("ft-snap-scroll")(He)});var Ot,ub,ys=p(()=>{"use strict";P();L();Ut();zo();Ot={colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorSurface:o.external(w.colorSurface,"Design system"),transitionDuration:o.external(w.transitionDuration,"Design system"),transitionTimingFunction:o.external(w.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",w.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",V.fontSize,"16px")},ub=[hr,ko,A`
1928
1928
  :host {
1929
1929
  display: flex;
1930
1930
  max-height: 100%;
@@ -2041,7 +2041,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2041
2041
  slot:not([name]) {
2042
2042
  display: none;
2043
2043
  }
2044
- `]});var Ie,Up,fe,zp=p(()=>{"use strict";P();Y();L();ze();cb();zt();gs();ys();Ie=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Up=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fe=class extends W{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.displayCount=!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 pe(300),this.changeDebouncer=new pe(10),this.lastDispatchedValues=[]}get flatOptions(){return Et(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return Et(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return S`
2044
+ `]});var Ie,Up,fe,zp=p(()=>{"use strict";P();Y();L();ze();cb();Ht();gs();ys();Ie=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Up=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fe=class extends W{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.displayCount=!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 pe(300),this.changeDebouncer=new pe(10),this.lastDispatchedValues=[]}get flatOptions(){return Et(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return Et(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return S`
2045
2045
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
2046
2046
  part="container">
2047
2047
  ${!this.label&&!e?null:S`
@@ -2124,17 +2124,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2124
2124
  noValuesLabel="${this.noValuesLabel}"
2125
2125
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
2126
2126
  ></ft-filter-level>
2127
- `}goBack(e){this.slideOut=e.detail.value,on(()=>this.slideOut===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,on(()=>this.slideIn===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){on(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=i.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Ke(this.lastDispatchedValues,e)||(this.dispatchEvent(new Up(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};fe.elementDefinitions={"ft-button":De,"ft-filter-level":Me,"ft-snap-scroll":He,"ft-typography":oe};fe.styles=ub;Ie([h({type:String})],fe.prototype,"id",void 0);Ie([h({type:String})],fe.prototype,"label",void 0);Ie([h({type:String})],fe.prototype,"filterPlaceHolder",void 0);Ie([h({type:String})],fe.prototype,"clearButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"noValuesLabel",void 0);Ie([Ee([])],fe.prototype,"options",void 0);Ie([h({type:Boolean})],fe.prototype,"multivalued",void 0);Ie([h({type:Boolean})],fe.prototype,"disabled",void 0);Ie([h({type:Boolean})],fe.prototype,"raiseSelectedOptions",void 0);Ie([h({type:Boolean})],fe.prototype,"displayCount",void 0);Ie([jr()],fe.prototype,"displayedValuesLimit",void 0);Ie([Ee(void 0)],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ie([h({type:Boolean})],fe.prototype,"hideClearButton",void 0);Ie([H(".ft-filter--slot")],fe.prototype,"slotElement",void 0);Ie([H(".ft-filter--container")],fe.prototype,"container",void 0);Ie([H(".ft-filter--values")],fe.prototype,"valuesContainer",void 0);Ie([H(".ft-filter--levels")],fe.prototype,"levelsContainer",void 0);Ie([N()],fe.prototype,"lastLevelHasHiddenvalues",void 0);Ie([H(".ft-filter--filter input")],fe.prototype,"filterInput",void 0);Ie([Vs(".ft-filter--levels ft-filter-level")],fe.prototype,"levels",void 0);Ie([N()],fe.prototype,"withScroll",void 0);Ie([N()],fe.prototype,"filter",void 0);Ie([N()],fe.prototype,"slideIn",void 0);Ie([N()],fe.prototype,"slideOut",void 0)});var Hi,Tt,Hp=p(()=>{"use strict";L();Y();P();Hi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Tt=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return S`
2127
+ `}goBack(e){this.slideOut=e.detail.value,on(()=>this.slideOut===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,on(()=>this.slideIn===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){on(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=i.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Ke(this.lastDispatchedValues,e)||(this.dispatchEvent(new Up(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};fe.elementDefinitions={"ft-button":De,"ft-filter-level":Me,"ft-snap-scroll":He,"ft-typography":oe};fe.styles=ub;Ie([h({type:String})],fe.prototype,"id",void 0);Ie([h({type:String})],fe.prototype,"label",void 0);Ie([h({type:String})],fe.prototype,"filterPlaceHolder",void 0);Ie([h({type:String})],fe.prototype,"clearButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"noValuesLabel",void 0);Ie([Ee([])],fe.prototype,"options",void 0);Ie([h({type:Boolean})],fe.prototype,"multivalued",void 0);Ie([h({type:Boolean})],fe.prototype,"disabled",void 0);Ie([h({type:Boolean})],fe.prototype,"raiseSelectedOptions",void 0);Ie([h({type:Boolean})],fe.prototype,"displayCount",void 0);Ie([Gr()],fe.prototype,"displayedValuesLimit",void 0);Ie([Ee(void 0)],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ie([h({type:Boolean})],fe.prototype,"hideClearButton",void 0);Ie([H(".ft-filter--slot")],fe.prototype,"slotElement",void 0);Ie([H(".ft-filter--container")],fe.prototype,"container",void 0);Ie([H(".ft-filter--values")],fe.prototype,"valuesContainer",void 0);Ie([H(".ft-filter--levels")],fe.prototype,"levelsContainer",void 0);Ie([N()],fe.prototype,"lastLevelHasHiddenvalues",void 0);Ie([H(".ft-filter--filter input")],fe.prototype,"filterInput",void 0);Ie([Vs(".ft-filter--levels ft-filter-level")],fe.prototype,"levels",void 0);Ie([N()],fe.prototype,"withScroll",void 0);Ie([N()],fe.prototype,"filter",void 0);Ie([N()],fe.prototype,"slideIn",void 0);Ie([N()],fe.prototype,"slideOut",void 0)});var Hi,Pt,Hp=p(()=>{"use strict";L();Y();P();Hi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Pt=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return S`
2128
2128
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
2129
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Tt.elementDefinitions={};Hi([h({type:String})],Tt.prototype,"label",void 0);Hi([h({type:Object,converter:r=>r})],Tt.prototype,"value",void 0);Hi([h({type:Boolean,reflect:!0})],Tt.prototype,"selected",void 0);Hi([h({type:Object})],Tt.prototype,"subOptions",void 0);Hi([Ee({})],Tt.prototype,"renderOption",void 0);Hi([H(".ft-filter-option--slot")],Tt.prototype,"slotElement",void 0)});var fb=p(()=>{"use strict"});var hb=p(()=>{"use strict"});var mb=p(()=>{"use strict";L();zp();Hp();Bp();zp();ys();fb();Hp();hb();M("ft-filter")(fe);M("ft-filter-option")(Tt)});var gb,Wp=p(()=>{"use strict";P();gb=A`
2129
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Pt.elementDefinitions={};Hi([h({type:String})],Pt.prototype,"label",void 0);Hi([h({type:Object,converter:r=>r})],Pt.prototype,"value",void 0);Hi([h({type:Boolean,reflect:!0})],Pt.prototype,"selected",void 0);Hi([h({type:Object})],Pt.prototype,"subOptions",void 0);Hi([Ee({})],Pt.prototype,"renderOption",void 0);Hi([H(".ft-filter-option--slot")],Pt.prototype,"slotElement",void 0)});var fb=p(()=>{"use strict"});var hb=p(()=>{"use strict"});var mb=p(()=>{"use strict";L();zp();Hp();Bp();zp();ys();fb();Hp();hb();M("ft-filter")(fe);M("ft-filter-option")(Pt)});var gb,Wp=p(()=>{"use strict";P();gb=A`
2130
2130
  .ft-accordion {
2131
2131
  box-sizing: border-box;
2132
2132
  }
2133
- `});var yb,xr,Vp=p(()=>{"use strict";P();Y();L();Wp();yb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xr=class extends W{constructor(){super(...arguments),this.multi=!1}render(){return S`
2133
+ `});var yb,vr,Vp=p(()=>{"use strict";P();Y();L();Wp();yb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},vr=class extends W{constructor(){super(...arguments),this.multi=!1}render(){return S`
2134
2134
  <div class="ft-accordion">
2135
2135
  <slot @activated=${this.onChange}></slot>
2136
2136
  </div>
2137
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};xr.elementDefinitions={};xr.styles=gb;yb([h({type:Boolean})],xr.prototype,"multi",void 0);yb([H("slot")],xr.prototype,"content",void 0)});var Zo,bb,jp=p(()=>{"use strict";P();L();Zo={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(w.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},bb=A`
2137
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};vr.elementDefinitions={};vr.styles=gb;yb([h({type:Boolean})],vr.prototype,"multi",void 0);yb([H("slot")],vr.prototype,"content",void 0)});var Zo,bb,jp=p(()=>{"use strict";P();L();Zo={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(w.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},bb=A`
2138
2138
  .ft-accordion-item {
2139
2139
  display: flex;
2140
2140
  flex-direction: column;
@@ -2180,7 +2180,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2180
2180
  .ft-accordion-item--separator {
2181
2181
  border-bottom: 1px solid ${Zo.colorOutline};
2182
2182
  }
2183
- `});var bs,Vt,Gp=p(()=>{"use strict";P();Y();L();ft();ze();Ut();jp();bs=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Vt=class extends W{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return S`
2183
+ `});var bs,jt,Gp=p(()=>{"use strict";P();Y();L();ft();ze();zt();jp();bs=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},jt=class extends W{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return S`
2184
2184
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
2185
2185
  <div class="ft-accordion-item--toggle"
2186
2186
  part="toggle"
@@ -2210,7 +2210,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2210
2210
  </div>
2211
2211
  <div class="ft-accordion-item--separator" part="separator"></div>
2212
2212
  </div>
2213
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Vt.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};Vt.styles=bb;bs([h()],Vt.prototype,"icon",void 0);bs([h()],Vt.prototype,"iconVariant",void 0);bs([h()],Vt.prototype,"label",void 0);bs([h({type:Boolean,reflect:!0})],Vt.prototype,"active",void 0)});var xb=p(()=>{"use strict"});var vb=p(()=>{"use strict"});var Sb=p(()=>{"use strict";L();Vp();Gp();Vp();Wp();xb();Gp();jp();vb();M("ft-accordion")(xr);M("ft-accordion-item")(Vt)});var Cb,ot,Ob,Kp,wb,Eb,qp=p(()=>{"use strict";P();L();Nr();Mt();Uo();zt();Cb=o.extend("--ft-chip-color","",w.colorOnSurface),ot={backgroundColor:o.extend("--ft-chip-background-color","",w.colorSurface),color:Cb,fontSize:o.extend("--ft-chip-font-size","",je.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",je.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Cb),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",w.colorOutline),opacityDisabled:o.external(w.colorOpacityDisabled,"Design system")},Ob=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",w.colorOnPrimary)),Kp={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",w.colorPrimary)),color:Ob,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Ob)},wb={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Eb=[_r,A`
2213
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};jt.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};jt.styles=bb;bs([h()],jt.prototype,"icon",void 0);bs([h()],jt.prototype,"iconVariant",void 0);bs([h()],jt.prototype,"label",void 0);bs([h({type:Boolean,reflect:!0})],jt.prototype,"active",void 0)});var xb=p(()=>{"use strict"});var vb=p(()=>{"use strict"});var Sb=p(()=>{"use strict";L();Vp();Gp();Vp();Wp();xb();Gp();jp();vb();M("ft-accordion")(vr);M("ft-accordion-item")(jt)});var Cb,ot,Ob,Kp,wb,Eb,qp=p(()=>{"use strict";P();L();Fr();Ut();Uo();Ht();Cb=o.extend("--ft-chip-color","",w.colorOnSurface),ot={backgroundColor:o.extend("--ft-chip-background-color","",w.colorSurface),color:Cb,fontSize:o.extend("--ft-chip-font-size","",je.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",je.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Cb),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",w.colorOutline),opacityDisabled:o.external(w.colorOpacityDisabled,"Design system")},Ob=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",w.colorOnPrimary)),Kp={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",w.colorPrimary)),color:Ob,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Ob)},wb={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Eb=[$r,A`
2214
2214
  :host {
2215
2215
  display: inline-block;
2216
2216
  max-width: 100%;
@@ -2238,7 +2238,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2238
2238
  border: 1px solid ${ot.borderColor};
2239
2239
  color: ${ot.color};
2240
2240
  ${y($.color,ot.rippleColor)};
2241
- border-radius: var(${or(ot.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
2241
+ border-radius: var(${ir(ot.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
2242
2242
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
2243
2243
  background-color: ${ot.backgroundColor};
2244
2244
  line-height: var(--chip-internal-content-height);
@@ -2350,7 +2350,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2350
2350
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2351
2351
  order: -1;
2352
2352
  }
2353
- `]});var wt,xs,Ue,Zp=p(()=>{"use strict";P();Y();ut();L();ft();ze();Ut();qp();zt();wt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xs=class extends CustomEvent{constructor(){super("icon-click")}},Ue=class extends W{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.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"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":Mo};return S`
2353
+ `]});var wt,xs,Ue,Zp=p(()=>{"use strict";P();Y();ut();L();ft();ze();zt();qp();Ht();wt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xs=class extends CustomEvent{constructor(){super("icon-click")}},Ue=class extends W{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.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"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":Mo};return S`
2354
2354
  <div class="${be(e)}"
2355
2355
  aria-label="${this.getLabel()}"
2356
2356
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -2377,7 +2377,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2377
2377
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2378
2378
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
2379
2379
  </div>
2380
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xs))}getLabel(){return this.label||this.textContent}get textContent(){return ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ue.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce,"ft-button":De};Ue.styles=Eb;wt([h({type:Boolean})],Ue.prototype,"highlighted",void 0);wt([h({type:Boolean})],Ue.prototype,"removable",void 0);wt([h({type:Boolean})],Ue.prototype,"disabled",void 0);wt([h({type:Boolean})],Ue.prototype,"clickable",void 0);wt([h({type:Boolean})],Ue.prototype,"iconClickable",void 0);wt([h({type:Boolean})],Ue.prototype,"dense",void 0);wt([h({type:Boolean})],Ue.prototype,"multiLine",void 0);wt([h()],Ue.prototype,"label",void 0);wt([h()],Ue.prototype,"iconLabel",void 0);wt([h({type:Boolean})],Ue.prototype,"hideIconTooltip",void 0);wt([h()],Ue.prototype,"icon",void 0);wt([h()],Ue.prototype,"iconVariant",void 0);wt([h({type:Boolean})],Ue.prototype,"trailingIcon",void 0);wt([H("ft-typography slot")],Ue.prototype,"slottedContent",void 0)});var Rb,Yp=p(()=>{"use strict";P();ee();L();Ut();zt();Rb=[A`
2380
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xs))}getLabel(){return this.label||this.textContent}get textContent(){return ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ue.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce,"ft-button":De};Ue.styles=Eb;wt([h({type:Boolean})],Ue.prototype,"highlighted",void 0);wt([h({type:Boolean})],Ue.prototype,"removable",void 0);wt([h({type:Boolean})],Ue.prototype,"disabled",void 0);wt([h({type:Boolean})],Ue.prototype,"clickable",void 0);wt([h({type:Boolean})],Ue.prototype,"iconClickable",void 0);wt([h({type:Boolean})],Ue.prototype,"dense",void 0);wt([h({type:Boolean})],Ue.prototype,"multiLine",void 0);wt([h()],Ue.prototype,"label",void 0);wt([h()],Ue.prototype,"iconLabel",void 0);wt([h({type:Boolean})],Ue.prototype,"hideIconTooltip",void 0);wt([h()],Ue.prototype,"icon",void 0);wt([h()],Ue.prototype,"iconVariant",void 0);wt([h({type:Boolean})],Ue.prototype,"trailingIcon",void 0);wt([H("ft-typography slot")],Ue.prototype,"slottedContent",void 0)});var Rb,Yp=p(()=>{"use strict";P();ee();L();zt();Ht();Rb=[A`
2381
2381
  :host {
2382
2382
  display: inline-block;
2383
2383
  max-width: 100%;
@@ -2544,7 +2544,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2544
2544
  .ftds--family-error .ftds-chip--icon-container {
2545
2545
  color: ${Z.errorIconColor};
2546
2546
  }
2547
- `]});var Wi,Qp,jt,Xp=p(()=>{"use strict";P();Y();ut();L();ze();Ut();Yp();ee();zt();Wi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Qp=class extends CustomEvent{constructor(){super("remove")}},jt=class extends gn{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return S`
2547
+ `]});var Wi,Qp,Gt,Xp=p(()=>{"use strict";P();Y();ut();L();ze();zt();Yp();ee();Ht();Wi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Qp=class extends CustomEvent{constructor(){super("remove")}},Gt=class extends gn{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return S`
2548
2548
  <div class="${be(e)}"
2549
2549
  aria-label="${this.getLabel()}"
2550
2550
  part="chip">
@@ -2570,7 +2570,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2570
2570
  ></ftds-button>
2571
2571
  `:this.withAction?S`
2572
2572
  <slot name="action"></slot>
2573
- `:T}resolveButtonSize(){switch(this.size){case qe.large:return qe.medium;case qe.medium:case qe.small:return qe.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Qp)}typographyVariant(){switch(this.size){case qe.large:return Be.body2medium;case qe.medium:case qe.small:return Be.caption1medium}}};jt.elementDefinitions={"ft-typography":oe,"ft-icon":Ce,"ftds-button":Jt};jt.styles=Rb;Wi([h({type:Boolean})],jt.prototype,"withAction",void 0);Wi([h({type:Boolean})],jt.prototype,"removable",void 0);Wi([h()],jt.prototype,"removeButtonLabel",void 0);Wi([h()],jt.prototype,"label",void 0);Wi([h()],jt.prototype,"icon",void 0);Wi([H("ft-typography slot")],jt.prototype,"slottedContent",void 0)});var Ab=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var Jp=p(()=>{"use strict";L();Zp();Xp();Zp();qp();Ab();Xp();Yp();Lb();M("ft-chip")(Ue);M("ftds-chip")(jt)});var X,Ib,Vi=p(()=>{"use strict";P();L();Mt();X={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",w.colorOutline),textColor:o.extend("--ft-input-label-text-color","",w.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",w.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",w.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",w.borderRadiusS),colorError:o.external(w.colorError,"Design system")},Ib=A`
2573
+ `:T}resolveButtonSize(){switch(this.size){case qe.large:return qe.medium;case qe.medium:case qe.small:return qe.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Qp)}typographyVariant(){switch(this.size){case qe.large:return Be.body2medium;case qe.medium:case qe.small:return Be.caption1medium}}};Gt.elementDefinitions={"ft-typography":oe,"ft-icon":Ce,"ftds-button":er};Gt.styles=Rb;Wi([h({type:Boolean})],Gt.prototype,"withAction",void 0);Wi([h({type:Boolean})],Gt.prototype,"removable",void 0);Wi([h()],Gt.prototype,"removeButtonLabel",void 0);Wi([h()],Gt.prototype,"label",void 0);Wi([h()],Gt.prototype,"icon",void 0);Wi([H("ft-typography slot")],Gt.prototype,"slottedContent",void 0)});var Ab=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var Jp=p(()=>{"use strict";L();Zp();Xp();Zp();qp();Ab();Xp();Yp();Lb();M("ft-chip")(Ue);M("ftds-chip")(Gt)});var X,Ib,Vi=p(()=>{"use strict";P();L();Ut();X={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",w.colorOutline),textColor:o.extend("--ft-input-label-text-color","",w.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",w.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",w.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",w.borderRadiusS),colorError:o.external(w.colorError,"Design system")},Ib=A`
2574
2574
  .ft-input-label {
2575
2575
  position: absolute;
2576
2576
  inset: 0;
@@ -2692,7 +2692,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2692
2692
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
2693
2693
  border-top: none;
2694
2694
  }
2695
- `});var kb,Ur,eu=p(()=>{"use strict";P();Y();_a();ut();L();kb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ur=class extends W{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return S`
2695
+ `});var kb,zr,eu=p(()=>{"use strict";P();Y();_a();ut();L();kb=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},zr=class extends W{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return S`
2696
2696
  <div class="${be(this.inputLabelClasses)}">
2697
2697
  ${Ai(this.text,()=>S`
2698
2698
  <div class="ft-input-label--text ft-typography--caption">
@@ -2701,15 +2701,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2701
2701
  </div>
2702
2702
  `)}
2703
2703
  </div>
2704
- `}};Ur.elementDefinitions={};kb([h({type:String})],Ur.prototype,"text",void 0);kb([h({type:Boolean})],Ur.prototype,"raised",void 0)});var tu,rr,ru=p(()=>{"use strict";Y();Mt();Vi();eu();tu=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},rr=class extends Ur{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};rr.elementDefinitions={};rr.styles=[fr,Ib];tu([h({type:Boolean})],rr.prototype,"outlined",void 0);tu([h({type:Boolean})],rr.prototype,"error",void 0);tu([h({type:Boolean})],rr.prototype,"disabled",void 0)});var pt,_b,ou=p(()=>{"use strict";P();ee();Mt();Vi();L();pt={fontSize:o.extend("--ft-input-label-font-size","",Eo.fontSize),fontSizeRaised:o.extend("--ft-input-label-font-size-raised","",Kr.fontSize),lineHeight:o.extend("--ft-input-label-line-height","",Kr.lineHeight),color:o.extend("--ft-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:o.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:o.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:o.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:o.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:o.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:o.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:o.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:o.create("--ft-input-label-additional-padding-right","","SIZE","0px")},_b=[A`
2704
+ `}};zr.elementDefinitions={};kb([h({type:String})],zr.prototype,"text",void 0);kb([h({type:Boolean})],zr.prototype,"raised",void 0)});var tu,or,ru=p(()=>{"use strict";Y();Ut();Vi();eu();tu=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},or=class extends zr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};or.elementDefinitions={};or.styles=[hr,Ib];tu([h({type:Boolean})],or.prototype,"outlined",void 0);tu([h({type:Boolean})],or.prototype,"error",void 0);tu([h({type:Boolean})],or.prototype,"disabled",void 0)});var pt,_b,ou=p(()=>{"use strict";P();ee();Ut();Vi();L();pt={fontSize:o.extend("--ft-input-label-font-size","",Ro.fontSize),fontSizeRaised:o.extend("--ft-input-label-font-size-raised","",qr.fontSize),lineHeight:o.extend("--ft-input-label-line-height","",qr.lineHeight),color:o.extend("--ft-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:o.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:o.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:o.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:o.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:o.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:o.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:o.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:o.create("--ft-input-label-additional-padding-right","","SIZE","0px")},_b=[A`
2705
2705
 
2706
2706
  :root {
2707
2707
  --field-height: ${pt.largeFieldHeight};
2708
2708
  --field-vertical-gap: ${pt.largeFieldVerticalGap};
2709
2709
  --field-horizontal-padding: ${pt.largeFieldHorizontalPadding};
2710
2710
 
2711
- --typo-caption-height: calc(${Kr.lineHeight} * ${Kr.fontSize});
2712
- --typo-body-height: calc(${Eo.lineHeight} * ${Eo.fontSize});
2711
+ --typo-caption-height: calc(${qr.lineHeight} * ${qr.fontSize});
2712
+ --typo-body-height: calc(${Ro.lineHeight} * ${Ro.fontSize});
2713
2713
  --caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
2714
2714
  --input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
2715
2715
  }
@@ -2783,7 +2783,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2783
2783
  top: var(--input-content-vertical-padding);
2784
2784
  }
2785
2785
 
2786
- `]});var Dn,iu=p(()=>{"use strict";eu();L();ou();ze();Dn=class extends dr(Ur){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Dn.styles=[fr,_b]});var $b=p(()=>{"use strict"});var Tb=p(()=>{"use strict"});var Pb=p(()=>{"use strict";L();ru();iu();ru();Vi();$b();iu();ou();Tb();M("ft-input-label")(rr);M("ftds-input-label")(Dn)});var ie,Nb,vs=p(()=>{"use strict";P();L();Vi();Mt();Nr();Uo();ie={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",w.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",w.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",w.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",w.colorSurface),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),borderRadiusS:o.external(w.borderRadiusS,"Design system"),elevation02:o.external(w.elevation02,"Design system"),colorError:o.external(w.colorError,"Design system")},Nb=A`
2786
+ `]});var Dn,iu=p(()=>{"use strict";eu();L();ou();ze();Dn=class extends pr(zr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Dn.styles=[hr,_b]});var $b=p(()=>{"use strict"});var Tb=p(()=>{"use strict"});var Pb=p(()=>{"use strict";L();ru();iu();ru();Vi();$b();iu();ou();Tb();M("ft-input-label")(or);M("ftds-input-label")(Dn)});var ie,Nb,vs=p(()=>{"use strict";P();L();Vi();Ut();Fr();Uo();ie={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",w.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",w.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",w.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",w.colorSurface),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),borderRadiusS:o.external(w.borderRadiusS,"Design system"),elevation02:o.external(w.elevation02,"Design system"),colorError:o.external(w.colorError,"Design system")},Nb=A`
2787
2787
  *:focus {
2788
2788
  outline: none;
2789
2789
  }
@@ -2859,8 +2859,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2859
2859
  overflow: hidden;
2860
2860
  white-space: nowrap;
2861
2861
  text-overflow: ellipsis;
2862
- ${y(Fr.fontSize,ie.selectedOptionSize)};
2863
- ${y(Fr.lineHeight,ie.selectedOptionSize)};
2862
+ ${y(Br.fontSize,ie.selectedOptionSize)};
2863
+ ${y(Br.lineHeight,ie.selectedOptionSize)};
2864
2864
  }
2865
2865
 
2866
2866
  .ft-select--in-error .ft-select--selected-option {
@@ -2933,7 +2933,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2933
2933
  .ft-select--in-error .ft-select--helper-text {
2934
2934
  color: ${ie.colorError};
2935
2935
  }
2936
- `});var Pe,vr,ye,nu=p(()=>{"use strict";P();Y();ut();Zt();_a();Ba();L();ze();Pb();ft();Ut();vs();Pe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},vr=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return S``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};vr.elementDefinitions={};Pe([h({type:String})],vr.prototype,"label",void 0);Pe([h({type:Object,converter:r=>r})],vr.prototype,"value",void 0);Pe([h({type:Boolean,reflect:!0})],vr.prototype,"selected",void 0);ye=class r extends W{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,t,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&i!==void 0?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return S`
2936
+ `});var Pe,Sr,ye,nu=p(()=>{"use strict";P();Y();ut();Yt();_a();Ba();L();ze();Pb();ft();zt();vs();Pe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Sr=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return S``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Sr.elementDefinitions={};Pe([h({type:String})],Sr.prototype,"label",void 0);Pe([h({type:Object,converter:r=>r})],Sr.prototype,"value",void 0);Pe([h({type:Boolean,reflect:!0})],Sr.prototype,"selected",void 0);ye=class r extends W{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,t,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&i!==void 0?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return S`
2937
2937
  <div class="${be(f)}" part="container">
2938
2938
  <div class="ft-select--main-panel" part="main-panel">
2939
2939
  <ft-input-label text="${this.label}"
@@ -2989,7 +2989,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
2989
2989
  <ft-ripple ?primary=${i} ?activated=${i}></ft-ripple>
2990
2990
  <span>${e.label}</span>
2991
2991
  </div>
2992
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];ac(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",ie.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){var t,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var d;return((d=l.label)===null||d===void 0?void 0:d.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(t=this.optionsMenu)===null||t===void 0?void 0:t.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let t=this.options.findIndex(i=>Ke(i.value,e.value));if(t!==-1)return`option-${t}`}selectOption(e){var t,i;if(!Ke((t=this.selectedOption)===null||t===void 0?void 0:t.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ye.elementDefinitions={"ft-input-label":rr,"ft-typography":oe,"ft-ripple":re,"ft-icon":Ce};ye.searchTimeoutMilliseconds=2e3;ye.styles=[no,fr,Nb];Pe([h({type:String})],ye.prototype,"label",void 0);Pe([h({type:String})],ye.prototype,"ariaLabel",void 0);Pe([h({type:String})],ye.prototype,"helper",void 0);Pe([h({type:Boolean})],ye.prototype,"outlined",void 0);Pe([h({type:Boolean})],ye.prototype,"disabled",void 0);Pe([h({type:Boolean})],ye.prototype,"error",void 0);Pe([h({type:Boolean})],ye.prototype,"fixedMenuPosition",void 0);Pe([h({type:Array})],ye.prototype,"options",void 0);Pe([N()],ye.prototype,"selectedOption",void 0);Pe([N()],ye.prototype,"optionsDisplayed",void 0);Pe([N()],ye.prototype,"focusOptions",void 0);Pe([N()],ye.prototype,"currentSearch",void 0);Pe([N()],ye.prototype,"lastSearchInputDate",void 0);Pe([H(".ft-select")],ye.prototype,"container",void 0);Pe([H(".ft-select--options")],ye.prototype,"optionsMenu",void 0);Pe([H(".ft-select--input-panel")],ye.prototype,"mainPanel",void 0);Pe([H(".ft-select--option:first-child")],ye.prototype,"firstOption",void 0);Pe([H(".ft-select--option:focus")],ye.prototype,"focusedOption",void 0);Pe([H(".ft-select--option.ft-select--option-selected")],ye.prototype,"selectedOptionElement",void 0);Pe([H(".ft-select--option:last-child")],ye.prototype,"lastOption",void 0);Pe([H("slot:not([name])")],ye.prototype,"optionsSlot",void 0)});var Fb=p(()=>{"use strict"});var Bb=p(()=>{"use strict";L();nu();nu();vs();Fb();M("ft-select")(ye);M("ft-select-option")(vr)});var it,Db,Ss=p(()=>{"use strict";P();L();it={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(w.borderRadiusM,"Design system")},Db=A`
2992
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];ac(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",ie.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){var t,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var d;return((d=l.label)===null||d===void 0?void 0:d.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(t=this.optionsMenu)===null||t===void 0?void 0:t.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let t=this.options.findIndex(i=>Ke(i.value,e.value));if(t!==-1)return`option-${t}`}selectOption(e){var t,i;if(!Ke((t=this.selectedOption)===null||t===void 0?void 0:t.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ye.elementDefinitions={"ft-input-label":or,"ft-typography":oe,"ft-ripple":re,"ft-icon":Ce};ye.searchTimeoutMilliseconds=2e3;ye.styles=[ao,hr,Nb];Pe([h({type:String})],ye.prototype,"label",void 0);Pe([h({type:String})],ye.prototype,"ariaLabel",void 0);Pe([h({type:String})],ye.prototype,"helper",void 0);Pe([h({type:Boolean})],ye.prototype,"outlined",void 0);Pe([h({type:Boolean})],ye.prototype,"disabled",void 0);Pe([h({type:Boolean})],ye.prototype,"error",void 0);Pe([h({type:Boolean})],ye.prototype,"fixedMenuPosition",void 0);Pe([h({type:Array})],ye.prototype,"options",void 0);Pe([N()],ye.prototype,"selectedOption",void 0);Pe([N()],ye.prototype,"optionsDisplayed",void 0);Pe([N()],ye.prototype,"focusOptions",void 0);Pe([N()],ye.prototype,"currentSearch",void 0);Pe([N()],ye.prototype,"lastSearchInputDate",void 0);Pe([H(".ft-select")],ye.prototype,"container",void 0);Pe([H(".ft-select--options")],ye.prototype,"optionsMenu",void 0);Pe([H(".ft-select--input-panel")],ye.prototype,"mainPanel",void 0);Pe([H(".ft-select--option:first-child")],ye.prototype,"firstOption",void 0);Pe([H(".ft-select--option:focus")],ye.prototype,"focusedOption",void 0);Pe([H(".ft-select--option.ft-select--option-selected")],ye.prototype,"selectedOptionElement",void 0);Pe([H(".ft-select--option:last-child")],ye.prototype,"lastOption",void 0);Pe([H("slot:not([name])")],ye.prototype,"optionsSlot",void 0)});var Fb=p(()=>{"use strict"});var Bb=p(()=>{"use strict";L();nu();nu();vs();Fb();M("ft-select")(ye);M("ft-select-option")(Sr)});var it,Db,Ss=p(()=>{"use strict";P();L();it={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(w.borderRadiusM,"Design system")},Db=A`
2993
2993
  :host {
2994
2994
  width: ${it.width};
2995
2995
  height: ${it.height};
@@ -3016,7 +3016,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3016
3016
  background-position: calc(100vw + ${it.glareWidth}) 0, calc(${it.glareWidth} * -1) 0;
3017
3017
  }
3018
3018
  }
3019
- `});var q,Mb,Ub,Cs=p(()=>{"use strict";L();P();zo();Vi();vs();Ss();Pa();ms();ys();Mt();q={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",w.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(w.colorSurface,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),elevation02:o.external(w.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",w.colorPrimary)},Mb=A`
3019
+ `});var q,Mb,Ub,Cs=p(()=>{"use strict";L();P();zo();Vi();vs();Ss();Pa();ms();ys();Ut();q={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",w.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(w.colorSurface,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),elevation02:o.external(w.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",w.colorPrimary)},Mb=A`
3020
3020
  * {
3021
3021
  box-sizing: border-box;
3022
3022
  }
@@ -3119,7 +3119,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3119
3119
  align-items: center;
3120
3120
  height: 100%;
3121
3121
 
3122
- ${y(mr.zIndex,`calc(${q.floatingZIndex} + 1)`)};
3122
+ ${y(gr.zIndex,`calc(${q.floatingZIndex} + 1)`)};
3123
3123
  }
3124
3124
 
3125
3125
  .ft-search-bar > ft-button,
@@ -3372,8 +3372,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3372
3372
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
3373
3373
  margin: 0;
3374
3374
  }
3375
- `});var uo,au=p(()=>{"use strict";P();L();Ss();uo=class extends W{render(){return S`
3376
- `}};uo.elementDefinitions={};uo.styles=Db});var zb=p(()=>{"use strict"});var Hb=p(()=>{"use strict";L();au();au();Ss();zb();M("ft-skeleton")(uo)});var Sr,Os=p(()=>{"use strict";P();Zt();Ut();L();Cs();ft();Sr=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new pe(t)}render(){let e=this.recentSearchesMatchingQuery;return S`
3375
+ `});var fo,au=p(()=>{"use strict";P();L();Ss();fo=class extends W{render(){return S`
3376
+ `}};fo.elementDefinitions={};fo.styles=Db});var zb=p(()=>{"use strict"});var Hb=p(()=>{"use strict";L();au();au();Ss();zb();M("ft-skeleton")(fo)});var Cr,Os=p(()=>{"use strict";P();Yt();zt();L();Cs();ft();Cr=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new pe(t)}render(){let e=this.recentSearchesMatchingQuery;return S`
3377
3377
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
3378
3378
  id="${this.listboxId}"
3379
3379
  role="listbox"
@@ -3428,7 +3428,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3428
3428
  </div>
3429
3429
  `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?et.BOOK:et.ARTICLE;break;case"DOCUMENT":i=Fa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=et.TOPICS;break}return S`
3430
3430
  <ft-icon .variant="${t}" .value="${i}" part="suggestion-icon"></ft-icon>
3431
- `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Sr.styles=[bn,A`
3431
+ `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Cr.styles=[bn,A`
3432
3432
  .ft-search-bar--mobile .ft-search-bar--suggestions {
3433
3433
  flex-grow: 1;
3434
3434
  flex-shrink: 1;
@@ -3518,7 +3518,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3518
3518
  ft-ripple {
3519
3519
  ${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
3520
3520
  }
3521
- `]});var Cr,ws=p(()=>{"use strict";P();Zt();Ep();L();gs();Jp();Cr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return S``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=S`
3521
+ `]});var Or,ws=p(()=>{"use strict";P();Yt();Ep();L();gs();Jp();Or=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return S``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=S`
3522
3522
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?S`
3523
3523
  <ft-chip part="selected-filters selected-filter-ft-locale"
3524
3524
  ?dense=${this.searchBar.dense&&!e}
@@ -3568,7 +3568,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3568
3568
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
3569
3569
  ${i}
3570
3570
  </div>
3571
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&t!==void 0?t:e}};Cr.styles=A`
3571
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&t!==void 0?t:e}};Or.styles=A`
3572
3572
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
3573
3573
  flex-shrink: 0;
3574
3574
  display: flex;
@@ -3598,7 +3598,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3598
3598
  .ft-search-bar--selected-filters ft-chip {
3599
3599
  flex-grow: 0;
3600
3600
  }
3601
- `});var Mn,Wb=p(()=>{"use strict";P();ws();Os();ut();Mn=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Cr(e),this.suggestManager=i??new Sr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return S`
3601
+ `});var Mn,Wb=p(()=>{"use strict";P();ws();Os();ut();Mn=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Or(e),this.suggestManager=i??new Cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return S`
3602
3602
  <div class="${be(t)}" part="container" tabindex="-1">
3603
3603
  <div class="ft-search-bar" role="search">
3604
3604
  <div class="ft-search-bar--input-container" part="input-container">
@@ -3657,7 +3657,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3657
3657
  </div>
3658
3658
  `}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};Mn.styles=A`
3659
3659
 
3660
- `});var Un,Vb=p(()=>{"use strict";P();Zt();ws();Os();ut();Un=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Cr(e),this.suggestManager=i??new Sr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return S`
3660
+ `});var Un,Vb=p(()=>{"use strict";P();Yt();ws();Os();ut();Un=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Or(e),this.suggestManager=i??new Cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return S`
3661
3661
  <div class="${be(t)}" part="container" tabindex="-1">
3662
3662
  <div class="ft-search-bar" part="search-bar" role="search">
3663
3663
  ${this.renderSearchBarLeftAction()}
@@ -3736,7 +3736,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3736
3736
  </div>
3737
3737
  `}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Un.styles=A`
3738
3738
 
3739
- `});var ae,jb,su,fS,Q,lu=p(()=>{"use strict";P();Y();Zt();L();Zy();ze();Ep();mb();Ut();Sb();zt();Jp();Bb();gs();Na();ft();Cs();Hb();Os();ws();Wb();Vb();Fp();gr();ae=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");jb={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},su=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fS=()=>{},Q=class extends W{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Yr(jb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new io(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Wt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Sr(this),this.selectedFacetsManager=new Cr(this),this.desktopSearchBarManager=new Un(this),this.mobileSearchBarManager=new Mn(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new pe(10),this.updateLocalesDebouncer=new pe(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new pe(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(i=>t.values.includes(i)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(i=>t.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var i,n;return((n=(i=t.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Wt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await Vr(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return S`
3739
+ `});var ae,jb,su,fS,Q,lu=p(()=>{"use strict";P();Y();Yt();L();Zy();ze();Ep();mb();zt();Sb();Ht();Jp();Bb();gs();Na();ft();Cs();Hb();Os();ws();Wb();Vb();Fp();yr();ae=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");jb={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},su=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fS=()=>{},Q=class extends W{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Qr(jb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new no(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Vt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Cr(this),this.selectedFacetsManager=new Or(this),this.desktopSearchBarManager=new Un(this),this.mobileSearchBarManager=new Mn(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new pe(10),this.updateLocalesDebouncer=new pe(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new pe(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(i=>t.values.includes(i)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(i=>t.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var i,n;return((n=(i=t.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Vt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await jr(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return S`
3740
3740
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
3741
3741
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3742
3742
  ${this.renderLiveText()}
@@ -3876,14 +3876,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3876
3876
  ></ft-filter>
3877
3877
  `})}
3878
3878
  </ft-snap-scroll>
3879
- `:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Yr(jb,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>ps(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new su(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var t,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(fS)),this.facets=[];for(let i of this.facetsRequest)t.has(i.id)?this.facets.push(t.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!En&&this.focusInput(),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Et(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&i.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>Et(t.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?T:S`
3879
+ `:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Qr(jb,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>ps(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new su(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var t,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(fS)),this.facets=[];for(let i of this.facetsRequest)t.has(i.id)?this.facets.push(t.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!En&&this.focusInput(),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Et(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&i.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>Et(t.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?T:S`
3880
3880
  <div class="ft-search-bar--floating-panel"
3881
3881
  id="ft-search-bar-floating-panel"
3882
3882
  @keyup=${this.onFloatingContainerKeyUp}
3883
3883
  part="floating-panel"
3884
3884
  tabindex="-1">
3885
3885
  ${this.renderDesktopMenu()}
3886
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};Q.elementDefinitions={"ft-accordion":xr,"ft-accordion-item":Vt,"ft-button":De,"ft-chip":Ue,"ft-filter":fe,"ft-filter-option":Tt,"ft-icon":Ce,"ft-ripple":re,"ft-select":ye,"ft-select-option":vr,"ft-size-watcher":kt,"ft-skeleton":uo,"ft-snap-scroll":He,"ft-tooltip":$e,"ft-typography":oe,"ft-radio-group":qo,"ft-radio":Mr};Q.styles=[no,Io,Mb,Ub,Cr.styles,Sr.styles,Ri];ae([h({type:Boolean})],Q.prototype,"dense",void 0);ae([h()],Q.prototype,"mode",void 0);ae([h({type:Boolean})],Q.prototype,"forceMobileMenuOpen",void 0);ae([h({type:Boolean})],Q.prototype,"forceMenuOpen",void 0);ae([h()],Q.prototype,"baseUrl",void 0);ae([h()],Q.prototype,"apiIntegrationIdentifier",void 0);ae([h()],Q.prototype,"contentLocale",void 0);ae([N()],Q.prototype,"availableContentLocales",void 0);ae([N()],Q.prototype,"availableContentLocalesInitialized",void 0);ae([h()],Q.prototype,"uiLocale",void 0);ae([Ee({})],Q.prototype,"labels",void 0);ae([Ee([])],Q.prototype,"displayedFilters",void 0);ae([Ee([])],Q.prototype,"presets",void 0);ae([h({type:String,reflect:!0})],Q.prototype,"selectedPreset",void 0);ae([Ee([])],Q.prototype,"priors",void 0);ae([h()],Q.prototype,"searchRequestSerializer",void 0);ae([h({type:Boolean})],Q.prototype,"focusOnDisplay",void 0);ae([N()],Q.prototype,"metadataFilters",void 0);ae([N()],Q.prototype,"sizeCategory",void 0);ae([N()],Q.prototype,"displayFacets",void 0);ae([N()],Q.prototype,"mobileMenuOpen",void 0);ae([N()],Q.prototype,"facets",void 0);ae([N()],Q.prototype,"facetsInitialized",void 0);ae([H(".ft-search-bar--container")],Q.prototype,"container",void 0);ae([H(".ft-search-bar--filters-opener")],Q.prototype,"filtersOpener",void 0);ae([H(".ft-search-bar--floating-panel")],Q.prototype,"floatingContainer",void 0);ae([H("ft-snap-scroll.ft-search-bar--filters-container")],Q.prototype,"scrollingFiltersContainer",void 0);ae([H(".ft-search-bar--input")],Q.prototype,"input",void 0);ae([H(".ft-search-bar--launch-search")],Q.prototype,"launchSearchButton",void 0);ae([N()],Q.prototype,"query",void 0);ae([N()],Q.prototype,"suggestions",void 0);ae([N()],Q.prototype,"recentSearches",void 0);ae([N()],Q.prototype,"scrollToFacet",void 0);ae([N()],Q.prototype,"api",void 0);ae([N()],Q.prototype,"displaySuggestListbox",void 0);ae([N()],Q.prototype,"selectedSuggestOptionId",void 0);ae([N()],Q.prototype,"selectedSuggestRemoveRecent",void 0);ae([N()],Q.prototype,"facetsLoaded",void 0)});var Gb=p(()=>{"use strict"});var Kb=p(()=>{"use strict";L();lu();lu();Cs();Gb();M("ft-search-bar")(Q)});var qb,Zb=p(()=>{"use strict";P();Ln();L();ft();Kb();qb=A`
3886
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};Q.elementDefinitions={"ft-accordion":vr,"ft-accordion-item":jt,"ft-button":De,"ft-chip":Ue,"ft-filter":fe,"ft-filter-option":Pt,"ft-icon":Ce,"ft-ripple":re,"ft-select":ye,"ft-select-option":Sr,"ft-size-watcher":_t,"ft-skeleton":fo,"ft-snap-scroll":He,"ft-tooltip":$e,"ft-typography":oe,"ft-radio-group":qo,"ft-radio":Ur};Q.styles=[ao,ko,Mb,Ub,Or.styles,Cr.styles,Ri];ae([h({type:Boolean})],Q.prototype,"dense",void 0);ae([h()],Q.prototype,"mode",void 0);ae([h({type:Boolean})],Q.prototype,"forceMobileMenuOpen",void 0);ae([h({type:Boolean})],Q.prototype,"forceMenuOpen",void 0);ae([h()],Q.prototype,"baseUrl",void 0);ae([h()],Q.prototype,"apiIntegrationIdentifier",void 0);ae([h()],Q.prototype,"contentLocale",void 0);ae([N()],Q.prototype,"availableContentLocales",void 0);ae([N()],Q.prototype,"availableContentLocalesInitialized",void 0);ae([h()],Q.prototype,"uiLocale",void 0);ae([Ee({})],Q.prototype,"labels",void 0);ae([Ee([])],Q.prototype,"displayedFilters",void 0);ae([Ee([])],Q.prototype,"presets",void 0);ae([h({type:String,reflect:!0})],Q.prototype,"selectedPreset",void 0);ae([Ee([])],Q.prototype,"priors",void 0);ae([h()],Q.prototype,"searchRequestSerializer",void 0);ae([h({type:Boolean})],Q.prototype,"focusOnDisplay",void 0);ae([N()],Q.prototype,"metadataFilters",void 0);ae([N()],Q.prototype,"sizeCategory",void 0);ae([N()],Q.prototype,"displayFacets",void 0);ae([N()],Q.prototype,"mobileMenuOpen",void 0);ae([N()],Q.prototype,"facets",void 0);ae([N()],Q.prototype,"facetsInitialized",void 0);ae([H(".ft-search-bar--container")],Q.prototype,"container",void 0);ae([H(".ft-search-bar--filters-opener")],Q.prototype,"filtersOpener",void 0);ae([H(".ft-search-bar--floating-panel")],Q.prototype,"floatingContainer",void 0);ae([H("ft-snap-scroll.ft-search-bar--filters-container")],Q.prototype,"scrollingFiltersContainer",void 0);ae([H(".ft-search-bar--input")],Q.prototype,"input",void 0);ae([H(".ft-search-bar--launch-search")],Q.prototype,"launchSearchButton",void 0);ae([N()],Q.prototype,"query",void 0);ae([N()],Q.prototype,"suggestions",void 0);ae([N()],Q.prototype,"recentSearches",void 0);ae([N()],Q.prototype,"scrollToFacet",void 0);ae([N()],Q.prototype,"api",void 0);ae([N()],Q.prototype,"displaySuggestListbox",void 0);ae([N()],Q.prototype,"selectedSuggestOptionId",void 0);ae([N()],Q.prototype,"selectedSuggestRemoveRecent",void 0);ae([N()],Q.prototype,"facetsLoaded",void 0)});var Gb=p(()=>{"use strict"});var Kb=p(()=>{"use strict";L();lu();lu();Cs();Gb();M("ft-search-bar")(Q)});var qb,Zb=p(()=>{"use strict";P();Ln();L();ft();Kb();qb=A`
3887
3887
  * {
3888
3888
  box-sizing: border-box;
3889
3889
  }
@@ -3932,11 +3932,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3932
3932
  ft-ripple {
3933
3933
  ${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
3934
3934
  }
3935
- `});var fo,Yb=p(()=>{"use strict";L();P();Zb();Zt();Ut();ft();ze();gr();xp();fo=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Dr.get();return S`
3935
+ `});var ho,Yb=p(()=>{"use strict";L();P();Zb();Yt();zt();ft();ze();yr();xp();ho=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Mr.get();return S`
3936
3936
  <div class="ft-search-input-suggestion ft-word-wrap"
3937
3937
  id="${this.listboxId}"
3938
3938
  role="listbox"
3939
- aria-label="${so.messages.suggestionsLabel()}"
3939
+ aria-label="${lo.messages.suggestionsLabel()}"
3940
3940
  part="container">
3941
3941
  ${Re(this.ftSearchInput.suggestResults||[],t=>t.value,(t,i)=>this.renderSuggestion(i,t,e))}
3942
3942
  </div>
@@ -3968,7 +3968,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
3968
3968
  </div>
3969
3969
  `}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let t=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?et.BOOK:et.ARTICLE;break;case"DOCUMENT":i=Fa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=et.TOPICS;break}return S`
3970
3970
  <ft-icon .variant=${t} .value=${i} part="suggestion-icon"></ft-icon>
3971
- `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};fo.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};fo.styles=[bn,qb]});var Pt,We,cu=p(()=>{"use strict";P();L();Ln();Ko();tr();xp();Y();ut();Yb();zt();ze();gr();Pt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},We=class extends St(Ht){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=so.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new fo(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(so)}render(){var e,t,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(t=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Dr.get().serializeToCurrentPageIfPossible(a,s);return S`
3971
+ `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};ho.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};ho.styles=[bn,qb]});var Nt,We,cu=p(()=>{"use strict";P();L();Ln();Ko();rr();xp();Y();ut();Yb();Ht();ze();yr();Nt=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},We=class extends St(Wt){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=lo.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ho(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(lo)}render(){var e,t,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(t=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Mr.get().serializeToCurrentPageIfPossible(a,s);return S`
3972
3972
  <div class="${be(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3973
3973
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3974
3974
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -4000,7 +4000,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4000
4000
  part="clear-query"
4001
4001
  icon="close"
4002
4002
  round dense
4003
- label="${so.messages.clearButton()}"
4003
+ label="${lo.messages.clearButton()}"
4004
4004
  @click=${()=>this.onClearInput()}
4005
4005
  ></ft-button>
4006
4006
  <div class="ft-search-input--separator"></div>
@@ -4009,26 +4009,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4009
4009
  part="launch-search-in-input"
4010
4010
  icon="search"
4011
4011
  round dense
4012
- label="${so.messages.searchButton()}"
4012
+ label="${lo.messages.searchButton()}"
4013
4013
  href="${this.useCustomSearchPath?l:""}"
4014
4014
  @click=${()=>this.launchSearch(this.liveQuery)}
4015
4015
  ></ft-button>
4016
4016
  </div>
4017
4017
  </div>
4018
- `}renderLiveText(){return this.shouldDisplaySuggestions?so.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let t=this.suggestions.selectedSuggestOption||this.launchSearchButton;t?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await Vr(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!En&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};We.elementDefinitions={"ft-button":De,...fo.elementDefinitions};We.styles=[no,Io,zd,...fo.styles,Ri];Pt([ve()],We.prototype,"request",void 0);Pt([ve()],We.prototype,"liveQuery",void 0);Pt([ve()],We.prototype,"suggestResults",void 0);Pt([N()],We.prototype,"forceCloseSuggestion",void 0);Pt([N()],We.prototype,"displaySuggestListbox",void 0);Pt([N()],We.prototype,"selectedSuggestOptionId",void 0);Pt([h()],We.prototype,"launchSearchPath",void 0);Pt([h()],We.prototype,"placeholder",void 0);Pt([h({type:Boolean})],We.prototype,"useCustomSearchPath",void 0);Pt([h({type:Boolean})],We.prototype,"triggerSearchOnClear",void 0);Pt([h({type:Boolean})],We.prototype,"focusOnDisplay",void 0);Pt([H(".ft-search-input--input")],We.prototype,"input",void 0);Pt([H('[part="launch-search-in-input"]')],We.prototype,"launchSearchButton",void 0)});var Qb=p(()=>{"use strict"});var Xb={};ne(Xb,{FtSearchInput:()=>We,FtSearchInputCssVariables:()=>Oe,styles:()=>zd});var Jb=p(()=>{"use strict";L();cu();Ln();Qb();cu();M("ft-search-input")(We)});var hS,du,pu=p(()=>{"use strict";P();hS={},du=A`
4019
- `});var uu,ex=p(()=>{"use strict";tr();uu=yr.fromGwt("designedActionBlockAriaLabels")});var tx,zr,fu=p(()=>{"use strict";P();L();pu();zt();Ko();tr();ex();tx=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},zr=class extends St(Ht){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(uu)}render(){return this.isLastPage?T:S`
4018
+ `}renderLiveText(){return this.shouldDisplaySuggestions?lo.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let t=this.suggestions.selectedSuggestOption||this.launchSearchButton;t?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await jr(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!En&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};We.elementDefinitions={"ft-button":De,...ho.elementDefinitions};We.styles=[ao,ko,zd,...ho.styles,Ri];Nt([ve()],We.prototype,"request",void 0);Nt([ve()],We.prototype,"liveQuery",void 0);Nt([ve()],We.prototype,"suggestResults",void 0);Nt([N()],We.prototype,"forceCloseSuggestion",void 0);Nt([N()],We.prototype,"displaySuggestListbox",void 0);Nt([N()],We.prototype,"selectedSuggestOptionId",void 0);Nt([h()],We.prototype,"launchSearchPath",void 0);Nt([h()],We.prototype,"placeholder",void 0);Nt([h({type:Boolean})],We.prototype,"useCustomSearchPath",void 0);Nt([h({type:Boolean})],We.prototype,"triggerSearchOnClear",void 0);Nt([h({type:Boolean})],We.prototype,"focusOnDisplay",void 0);Nt([H(".ft-search-input--input")],We.prototype,"input",void 0);Nt([H('[part="launch-search-in-input"]')],We.prototype,"launchSearchButton",void 0)});var Qb=p(()=>{"use strict"});var Xb={};ne(Xb,{FtSearchInput:()=>We,FtSearchInputCssVariables:()=>Oe,styles:()=>zd});var Jb=p(()=>{"use strict";L();cu();Ln();Qb();cu();M("ft-search-input")(We)});var hS,du,pu=p(()=>{"use strict";P();hS={},du=A`
4019
+ `});var uu,ex=p(()=>{"use strict";rr();uu=br.fromGwt("designedActionBlockAriaLabels")});var tx,Hr,fu=p(()=>{"use strict";P();L();pu();Ht();Ko();rr();ex();tx=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Hr=class extends St(Wt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(uu)}render(){return this.isLastPage?T:S`
4020
4020
  <ft-button @click="${this.loadMore}">
4021
4021
  ${uu.messages.searchPageLoadMore()}
4022
4022
  </ft-button>
4023
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};zr.elementDefinitions={"ft-button":De};zr.styles=du;tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],zr.prototype,"currentPage",void 0);tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],zr.prototype,"isLastPage",void 0)});var rx=p(()=>{"use strict"});var ox={};ne(ox,{FtSearchLoadMoreButton:()=>zr,FtSearchLoadMoreButtonCssVariables:()=>hS,styles:()=>du});var ix=p(()=>{"use strict";L();fu();pu();rx();fu();M("ft-search-load-more-button")(zr)});var Es,mu,hu,mS,ji,gu=p(()=>{"use strict";L();Ko();Y();Es=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},mu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},hu=Symbol("registerInterval"),mS=Ne(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[hu]):this.dispatchEvent(new mu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=hu,Es([h({attribute:!1})],t.prototype,"cluster",void 0),Es([h({attribute:!1})],t.prototype,"result",void 0),Es([jr()],t.prototype,"rank",void 0),Es([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),ji=class extends mS(Ht){}});var Yo,yu=p(()=>{"use strict";P();gu();za();rn();ze();Yo=class extends ji{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?S`
4024
- <ft-typography variant="body1" part="text">${Oo(e)}</ft-typography>
4023
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Hr.elementDefinitions={"ft-button":De};Hr.styles=du;tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Hr.prototype,"currentPage",void 0);tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Hr.prototype,"isLastPage",void 0)});var rx=p(()=>{"use strict"});var ox={};ne(ox,{FtSearchLoadMoreButton:()=>Hr,FtSearchLoadMoreButtonCssVariables:()=>hS,styles:()=>du});var ix=p(()=>{"use strict";L();fu();pu();rx();fu();M("ft-search-load-more-button")(Hr)});var Es,mu,hu,mS,ji,gu=p(()=>{"use strict";L();Ko();Y();Es=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},mu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},hu=Symbol("registerInterval"),mS=Ne(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[hu]):this.dispatchEvent(new mu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=hu,Es([h({attribute:!1})],t.prototype,"cluster",void 0),Es([h({attribute:!1})],t.prototype,"result",void 0),Es([Gr()],t.prototype,"rank",void 0),Es([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),ji=class extends mS(Wt){}});var Yo,yu=p(()=>{"use strict";P();gu();za();rn();ze();Yo=class extends ji{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?S`
4024
+ <ft-typography variant="body1" part="text">${wo(e)}</ft-typography>
4025
4025
  `:S`
4026
4026
  <style>
4027
4027
  :host {
4028
4028
  display: none !important;
4029
4029
  }
4030
4030
  </style>
4031
- `}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Yo.elementDefinitions={"ft-typography":oe};Yo.styles=Hd});var nx=p(()=>{"use strict"});var ax={};ne(ax,{FtSearchResultAbstract:()=>Yo,FtSearchResultAbstractCssVariables:()=>Ua,styles:()=>Hd});var bu=p(()=>{"use strict";L();yu();za();nx();yu();M("ft-search-result-abstract")(Yo)});var gS,ho,xu=p(()=>{"use strict";P();Y();gu();Wa();ze();rn();cp();pp();gS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ho=class extends ji{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():S`
4031
+ `}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Yo.elementDefinitions={"ft-typography":oe};Yo.styles=Hd});var nx=p(()=>{"use strict"});var ax={};ne(ax,{FtSearchResultAbstract:()=>Yo,FtSearchResultAbstractCssVariables:()=>Ua,styles:()=>Hd});var bu=p(()=>{"use strict";L();yu();za();nx();yu();M("ft-search-result-abstract")(Yo)});var gS,mo,xu=p(()=>{"use strict";P();Y();gu();Wa();ze();rn();cp();pp();gS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},mo=class extends ji{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():S`
4032
4032
  <a href="${ns(this.result)}"
4033
4033
  @click=${this.onResultClick}
4034
4034
  @auxclick=${t=>this.onAuxClick(t)}
@@ -4038,8 +4038,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4038
4038
  ${this.renderTitle()}
4039
4039
  </a>
4040
4040
  `:T}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){return S`
4041
- <ft-typography variant="title" part="text">${Oo(this.selectTitle(this.result))}</ft-typography>
4042
- `}onResultClick(){this.dispatchEvent(new Di(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new Mi(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};ho.elementDefinitions={"ft-typography":oe};ho.styles=Wd;gS([h({type:Boolean})],ho.prototype,"withoutLink",void 0)});var sx=p(()=>{"use strict"});var lx={};ne(lx,{FtSearchResultTitle:()=>ho,FtSearchResultTitleCssVariables:()=>Ha,styles:()=>Wd});var vu=p(()=>{"use strict";L();xu();Wa();sx();xu();M("ft-search-result-title")(ho)});var yS,Su,Cu=p(()=>{"use strict";P();yS={},Su=A`
4041
+ <ft-typography variant="title" part="text">${wo(this.selectTitle(this.result))}</ft-typography>
4042
+ `}onResultClick(){this.dispatchEvent(new Di(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new Mi(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};mo.elementDefinitions={"ft-typography":oe};mo.styles=Wd;gS([h({type:Boolean})],mo.prototype,"withoutLink",void 0)});var sx=p(()=>{"use strict"});var lx={};ne(lx,{FtSearchResultTitle:()=>mo,FtSearchResultTitleCssVariables:()=>Ha,styles:()=>Wd});var vu=p(()=>{"use strict";L();xu();Wa();sx();xu();M("ft-search-result-title")(mo)});var yS,Su,Cu=p(()=>{"use strict";P();yS={},Su=A`
4043
4043
  [part="no-results-message"] {
4044
4044
  text-align: center;
4045
4045
  padding: 12px;
@@ -4049,9 +4049,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4049
4049
  color: inherit;
4050
4050
  text-decoration: inherit;
4051
4051
  }
4052
- `});var Rs,dx=p(()=>{"use strict";Rs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var As,wu,Or,Eu=p(()=>{"use strict";P();Y();L();Ou();dx();As=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Or=class extends W{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Rs(e=>this.onResultSelected(e))}render(){return S`
4052
+ `});var Rs,dx=p(()=>{"use strict";Rs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var As,wu,wr,Eu=p(()=>{"use strict";P();Y();L();Ou();dx();As=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},wr=class extends W{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Rs(e=>this.onResultSelected(e))}render(){return S`
4053
4053
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
4054
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new wu(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Or.elementDefinitions={};Or.styles=cx;As([h({attribute:!1})],Or.prototype,"cluster",void 0);As([h({attribute:!1,type:Boolean})],Or.prototype,"openResultInNewTab",void 0);As([N()],Or.prototype,"result",void 0);As([h()],Or.prototype,"index",void 0)});var px=p(()=>{"use strict"});var ux=p(()=>{"use strict";L();Eu();Ou();px();Eu();M("ft-search-result-context")(Or)});var Gi,fx,Ru=p(()=>{"use strict";tr();Gi=yr.build("searchResultsNumber"),fx={results:"{0} results","results[\\=1]":"1 result"}});var Qo,Nt,Au=p(()=>{"use strict";P();Zt();Y();L();Cu();Ko();ux();vu();bu();tr();Ru();Qo=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Nt=class extends St(Ht){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>S`
4054
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new wu(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};wr.elementDefinitions={};wr.styles=cx;As([h({attribute:!1})],wr.prototype,"cluster",void 0);As([h({attribute:!1,type:Boolean})],wr.prototype,"openResultInNewTab",void 0);As([N()],wr.prototype,"result",void 0);As([h()],wr.prototype,"index",void 0)});var px=p(()=>{"use strict"});var ux=p(()=>{"use strict";L();Eu();Ou();px();Eu();M("ft-search-result-context")(wr)});var Gi,fx,Ru=p(()=>{"use strict";rr();Gi=br.build("searchResultsNumber"),fx={results:"{0} results","results[\\=1]":"1 result"}});var Qo,Ft,Au=p(()=>{"use strict";P();Yt();Y();L();Cu();Ko();ux();vu();bu();rr();Ru();Qo=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ft=class extends St(Wt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>S`
4055
4055
  <ft-search-result-title></ft-search-result-title>
4056
4056
  <ft-search-result-abstract></ft-search-result-abstract>
4057
4057
  `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(Gi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return S`
@@ -4061,13 +4061,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4061
4061
  @ft-search-result-cluster-change=${a=>this.onClusterChange(t.id,a.detail)}>
4062
4062
  ${this.renderResult((n=this.selectedResultByCluster[t.id])!==null&&n!==void 0?n:t.entries[0],i)}
4063
4063
  </ft-search-result-context>
4064
- `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&Xc.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,i;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Nt.styles=Su;Qo([h({type:String,attribute:"cluster-policy"})],Nt.prototype,"clusterPolicy",void 0);Qo([h({type:Boolean})],Nt.prototype,"displayNoResultsMessage",void 0);Qo([h({attribute:!1})],Nt.prototype,"renderResult",void 0);Qo([Ee([])],Nt.prototype,"clusterSortCriterion",void 0);Qo([ve({selector:r=>({...r.request,paging:void 0})})],Nt.prototype,"requestWithoutPaging",void 0);Qo([ve({selector:r=>r.request.paging})],Nt.prototype,"paging",void 0);Qo([ve()],Nt.prototype,"results",void 0)});var hx=p(()=>{"use strict"});var mx={};ne(mx,{FtSearchResults:()=>Nt,FtSearchResultsCssVariables:()=>yS,styles:()=>Su});var gx=p(()=>{"use strict";L();Au();Cu();hx();Au();M("ft-search-results")(Nt)});var bS,Lu,Iu=p(()=>{"use strict";P();bS={},Lu=A`
4064
+ `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&Xc.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,i;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Ft.styles=Su;Qo([h({type:String,attribute:"cluster-policy"})],Ft.prototype,"clusterPolicy",void 0);Qo([h({type:Boolean})],Ft.prototype,"displayNoResultsMessage",void 0);Qo([h({attribute:!1})],Ft.prototype,"renderResult",void 0);Qo([Ee([])],Ft.prototype,"clusterSortCriterion",void 0);Qo([ve({selector:r=>({...r.request,paging:void 0})})],Ft.prototype,"requestWithoutPaging",void 0);Qo([ve({selector:r=>r.request.paging})],Ft.prototype,"paging",void 0);Qo([ve()],Ft.prototype,"results",void 0)});var hx=p(()=>{"use strict"});var mx={};ne(mx,{FtSearchResults:()=>Ft,FtSearchResultsCssVariables:()=>yS,styles:()=>Su});var gx=p(()=>{"use strict";L();Au();Cu();hx();Au();M("ft-search-results")(Ft)});var bS,Lu,Iu=p(()=>{"use strict";P();bS={},Lu=A`
4065
4065
 
4066
- `});var xS,mo,ku=p(()=>{"use strict";P();L();Iu();Ko();tr();Ru();ze();xS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},mo=class extends St(Ht){constructor(){super(),this.addI18nContext(Gi,fx)}render(){return this.paging==null?T:S`
4066
+ `});var xS,go,ku=p(()=>{"use strict";P();L();Iu();Ko();rr();Ru();ze();xS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},go=class extends St(Wt){constructor(){super(),this.addI18nContext(Gi,fx)}render(){return this.paging==null?T:S`
4067
4067
  <ft-typography variant="body1">
4068
4068
  ${Gi.messages.results(this.paging.totalClustersCount)}
4069
4069
  </ft-typography>
4070
- `}};mo.elementDefinitions={"ft-typography":oe};mo.styles=Lu;xS([ve()],mo.prototype,"paging",void 0)});var yx=p(()=>{"use strict"});var bx={};ne(bx,{FtSearchResultsNumber:()=>mo,FtSearchResultsNumberCssVariables:()=>bS,styles:()=>Lu});var xx=p(()=>{"use strict";L();ku();Iu();yx();ku();M("ft-search-results-number")(mo)});L();P();L();P();L();P();L();Nr();var xe={padding:o.create("--ft-card-padding","","SIZE","12px"),borderRadius:o.extend("--ft-card-border-radius","",w.borderRadiusM),borderStyle:o.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:o.extend("--ft-card-border-color","",w.colorOutline),hoverBorderColor:o.extend("--ft-card-hover-border-color","",w.colorPrimary),outlineStyle:o.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:o.create("--ft-card-outline-width","","SIZE","0"),outlineColor:o.extend("--ft-card-outline-color","",w.colorPrimary),selectedOutlineStyle:o.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:o.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:o.extend("--ft-card-selected-outline-color","",w.colorPrimary),selectedBorderRadius:o.extend("--ft-card-selected-border-radius","",w.borderRadiusM),colorSurface:o.extend("--ft-card-background-color","",w.colorSurface),colorOnSurfaceMedium:o.extend("--ft-card-content-color","",w.colorOnSurfaceMedium),colorOnSurfaceHigh:o.extend("--ft-card-title-color","",w.colorOnSurfaceHigh),elevation02:o.extend("--ft-card-elevation","",w.elevation02),elevation04:o.extend("--ft-card-selected-elevation","",w.elevation04)},Cg=A`
4070
+ `}};go.elementDefinitions={"ft-typography":oe};go.styles=Lu;xS([ve()],go.prototype,"paging",void 0)});var yx=p(()=>{"use strict"});var bx={};ne(bx,{FtSearchResultsNumber:()=>go,FtSearchResultsNumberCssVariables:()=>bS,styles:()=>Lu});var xx=p(()=>{"use strict";L();ku();Iu();yx();ku();M("ft-search-results-number")(go)});L();P();L();P();L();P();L();Fr();var xe={padding:o.create("--ft-card-padding","","SIZE","12px"),borderRadius:o.extend("--ft-card-border-radius","",w.borderRadiusM),borderStyle:o.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:o.extend("--ft-card-border-color","",w.colorOutline),hoverBorderColor:o.extend("--ft-card-hover-border-color","",w.colorPrimary),outlineStyle:o.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:o.create("--ft-card-outline-width","","SIZE","0"),outlineColor:o.extend("--ft-card-outline-color","",w.colorPrimary),selectedOutlineStyle:o.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:o.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:o.extend("--ft-card-selected-outline-color","",w.colorPrimary),selectedBorderRadius:o.extend("--ft-card-selected-border-radius","",w.borderRadiusM),colorSurface:o.extend("--ft-card-background-color","",w.colorSurface),colorOnSurfaceMedium:o.extend("--ft-card-content-color","",w.colorOnSurfaceMedium),colorOnSurfaceHigh:o.extend("--ft-card-title-color","",w.colorOnSurfaceHigh),elevation02:o.extend("--ft-card-elevation","",w.elevation02),elevation04:o.extend("--ft-card-selected-elevation","",w.elevation04)},Cg=A`
4071
4071
  :host {
4072
4072
  display: block;
4073
4073
  }
@@ -4156,7 +4156,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4156
4156
  #action {
4157
4157
  grid-area: actions;
4158
4158
  }
4159
- `;Ln();za();Nr();Wa();var st={searchFieldBackgroundColor:o.extend("--ft-rsid-search-field-background-color","",w.colorSurface),searchFieldBorderColor:o.extend("--ft-rsid-search-field-border-color","",w.colorOutline),searchFieldTextColor:o.extend("--ft-rsid-search-field-text-color","",w.colorOnSurface),searchFieldBorderRadius:o.extend("--ft-rsid-search-field-border-radius","",w.borderRadiusS),searchButtonColor:o.extend("--ft-rsid-search-field-button-color","",w.colorPrimary),resultsNumberColor:o.extend("--ft-rsid-results-number-color","",w.colorOnSurfaceMedium),resultBackgroundColor:o.extend("--ft-rsid-result-background-color","",w.colorSurface),resultBorderColor:o.extend("--ft-rsid-result-border-color","",w.colorOutline),resultBorderRadius:o.extend("--ft-rsid-result-border-radius","",w.borderRadiusS),resultTitleTextColor:o.extend("--ft-rsid-result-title-text-color","",w.colorOnSurface),resultBreadcrumbTextColor:o.extend("--ft-rsid-result-breadcrumb-text-color","",w.colorOnSurfaceMedium),resultContentTextColor:o.extend("--ft-rsid-result-content-text-color","",w.colorOnSurface),resultHighlightBackgroundColor:o.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:o.extend("--ft-rsid-result-hover-background-color","",w.colorPrimary),resultHoverBorderColor:o.extend("--ft-rsid-result-hover-border-color","",w.colorPrimary)},ty=A`
4159
+ `;Ln();za();Fr();Wa();var st={searchFieldBackgroundColor:o.extend("--ft-rsid-search-field-background-color","",w.colorSurface),searchFieldBorderColor:o.extend("--ft-rsid-search-field-border-color","",w.colorOutline),searchFieldTextColor:o.extend("--ft-rsid-search-field-text-color","",w.colorOnSurface),searchFieldBorderRadius:o.extend("--ft-rsid-search-field-border-radius","",w.borderRadiusS),searchButtonColor:o.extend("--ft-rsid-search-field-button-color","",w.colorPrimary),resultsNumberColor:o.extend("--ft-rsid-results-number-color","",w.colorOnSurfaceMedium),resultBackgroundColor:o.extend("--ft-rsid-result-background-color","",w.colorSurface),resultBorderColor:o.extend("--ft-rsid-result-border-color","",w.colorOutline),resultBorderRadius:o.extend("--ft-rsid-result-border-radius","",w.borderRadiusS),resultTitleTextColor:o.extend("--ft-rsid-result-title-text-color","",w.colorOnSurface),resultBreadcrumbTextColor:o.extend("--ft-rsid-result-breadcrumb-text-color","",w.colorOnSurfaceMedium),resultContentTextColor:o.extend("--ft-rsid-result-content-text-color","",w.colorOnSurface),resultHighlightBackgroundColor:o.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:o.extend("--ft-rsid-result-hover-background-color","",w.colorPrimary),resultHoverBorderColor:o.extend("--ft-rsid-result-hover-border-color","",w.colorPrimary)},ty=A`
4160
4160
  .ft-search-in-doc--container {
4161
4161
  display: flex;
4162
4162
  flex-direction: column;
@@ -4223,7 +4223,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4223
4223
  text-decoration: none;
4224
4224
  color: inherit;
4225
4225
  }
4226
- `;tr();L();Y();var Py;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change"})(Py||(Py={}));var Ny;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ny||(Ny={}));var aS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lp=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},sp=Symbol("registerInterval"),sS=Ne(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[sp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[sp]):this.dispatchEvent(new lp)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sp,aS([N()],t.prototype,"stateManager",void 0),t}),is=class extends sS(Qt){};Y();cp();tr();var dp=yr.build("designedReaderSearchInDocument");L();P();Y();L();ft();ze();ut();var Bi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ct=class extends W{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return S`
4226
+ `;rr();L();Y();var Py;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change"})(Py||(Py={}));var Ny;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ny||(Ny={}));var aS=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lp=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},sp=Symbol("registerInterval"),sS=Ne(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[sp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[sp]):this.dispatchEvent(new lp)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sp,aS([N()],t.prototype,"stateManager",void 0),t}),is=class extends sS(Xt){};Y();cp();rr();var dp=br.build("designedReaderSearchInDocument");L();P();Y();L();ft();ze();ut();var Bi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ct=class extends W{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return S`
4227
4227
  <div id="container" part="container" class=${be(e)}>
4228
4228
  ${this.clickable?S`
4229
4229
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
@@ -4241,7 +4241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4241
4241
  </ft-typography>
4242
4242
  </div>
4243
4243
  </div>
4244
- `}};Ct.elementDefinitions={"ft-ripple":re,"ft-typography":oe};Ct.styles=Cg;Bi([h()],Ct.prototype,"title",void 0);Bi([h({type:Boolean})],Ct.prototype,"clickable",void 0);Bi([h({type:Boolean})],Ct.prototype,"selected",void 0);Bi([h({type:Boolean})],Ct.prototype,"noHeader",void 0);Bi([h({type:Boolean})],Ct.prototype,"noContent",void 0);Bi([h({type:Boolean})],Ct.prototype,"oneLineHeader",void 0);M("ft-card")(Ct);pp();var Hr=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gt=class r extends St(is){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=tl(6,"search-in-document-"),this.addI18nContext(dp)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var i;return S`
4244
+ `}};Ct.elementDefinitions={"ft-ripple":re,"ft-typography":oe};Ct.styles=Cg;Bi([h()],Ct.prototype,"title",void 0);Bi([h({type:Boolean})],Ct.prototype,"clickable",void 0);Bi([h({type:Boolean})],Ct.prototype,"selected",void 0);Bi([h({type:Boolean})],Ct.prototype,"noHeader",void 0);Bi([h({type:Boolean})],Ct.prototype,"noContent",void 0);Bi([h({type:Boolean})],Ct.prototype,"oneLineHeader",void 0);M("ft-card")(Ct);pp();var Wr=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gt=class r extends St(is){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=tl(6,"search-in-document-"),this.addI18nContext(dp)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var i;return S`
4245
4245
  <style> ${ry}</style>
4246
4246
  <a href="${ns(e)}" @click=${()=>this.onLinkClick(e,t)}
4247
4247
  @auxclick=${n=>this.onAuxClick(n,e,t)}
@@ -4283,7 +4283,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
4283
4283
  </slot>
4284
4284
  </div>
4285
4285
  </ft-search-context>
4286
- `:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){Vr(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new Di(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Ky(),Gy)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Jb(),Xb)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(ix(),ox)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(bu(),ax)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(vu(),lx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(gx(),mx)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(xx(),bx)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};gt.elementDefinitions={"ft-card":Ct};gt.styles=ty;Hr([ve()],gt.prototype,"map",void 0);Hr([ve()],gt.prototype,"searchInDocumentQuery",void 0);Hr([H("ft-search-results")],gt.prototype,"searchResults",void 0);Hr([h({type:Boolean})],gt.prototype,"hideResultTitle",void 0);Hr([h({type:Boolean})],gt.prototype,"hideResultBreadcrumb",void 0);Hr([h({type:Boolean})],gt.prototype,"hideResultAbstract",void 0);Hr([h({type:Boolean})],gt.prototype,"hideResultsNumber",void 0);Hr([h({type:Boolean})],gt.prototype,"emptyResultOnClear",void 0);Hr([H('[part="search-context"]')],gt.prototype,"searchContext",void 0);M("ft-reader-search-in-document")(gt);})();
4286
+ `:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){jr(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new Di(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Ky(),Gy)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Jb(),Xb)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(ix(),ox)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(bu(),ax)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(vu(),lx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(gx(),mx)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(xx(),bx)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};gt.elementDefinitions={"ft-card":Ct};gt.styles=ty;Wr([ve()],gt.prototype,"map",void 0);Wr([ve()],gt.prototype,"searchInDocumentQuery",void 0);Wr([H("ft-search-results")],gt.prototype,"searchResults",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultTitle",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultBreadcrumb",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultAbstract",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultsNumber",void 0);Wr([h({type:Boolean})],gt.prototype,"emptyResultOnClear",void 0);Wr([H('[part="search-context"]')],gt.prototype,"searchContext",void 0);M("ft-reader-search-in-document")(gt);})();
4287
4287
  /*! Bundled license information:
4288
4288
 
4289
4289
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: