@fluid-topics/ft-reader-feedback 2.1.2 → 2.1.4

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,7 +1,7 @@
1
- "use strict";(()=>{var lp=Object.defineProperty;var V=(t,e)=>{for(var r in e)lp(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=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(x,v){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=v.prototype.attributeChangedCallback,I=new Set(v.observedAttributes||[]);m(v,I,C);let B={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,B),this._definitionsByClass.set(v,B);let ge=r.call(o,x);ge||(ge=h(x),e.call(o,x,ge)),this===window.customElements&&(s.set(v,B),B.standInClass=ge);let Z=this._awaitingUpgrade.get(x);if(Z){this._awaitingUpgrade.delete(x);for(let $ of Z)a.delete($),y($,B,!0)}let N=this._whenDefinedPromises.get(x);return N!==void 0&&(N.resolve(v),this._whenDefinedPromises.delete(x)),v}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let v=this._getDefinition(x);if(v!==void 0)return Promise.resolve(v.elementClass);let C=this._whenDefinedPromises.get(x);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(x,C)),C.promise}_upgradeWhenDefined(x,v,C){let I=this._awaitingUpgrade.get(v);I||this._awaitingUpgrade.set(v,I=new Set),C?I.add(x):I.delete(x)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),n.set(v,C),v},window.HTMLElement.prototype=t.prototype;let p=x=>x===document||x instanceof ShadowRoot,f=x=>{let v=x.getRootNode();if(!p(v)){let C=E[E.length-1];if(C instanceof CustomElementRegistry)return C;v=C.getRootNode(),p(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},h=x=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=f(C)||window.customElements,B=I._getDefinition(x);return B?y(C,B):a.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},m=(x,v,C)=>{if(v.size===0||C===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(Z,N){let $=Z.toLowerCase();if(v.has($)){let K=this.getAttribute($);I.call(this,$,N),C.call(this,$,K,N)}else I.call(this,$,N)});let B=x.prototype.removeAttribute;B&&(x.prototype.removeAttribute=function(Z){let N=Z.toLowerCase();if(v.has(N)){let $=this.getAttribute(N);B.call(this,N),C.call(this,N,$,null)}else B.call(this,N)});let ge=x.prototype.toggleAttribute;ge&&(x.prototype.toggleAttribute=function(Z,N){let $=Z.toLowerCase();if(v.has($)){let K=this.getAttribute($);ge.call(this,$,N);let ve=this.getAttribute($);C.call(this,$,K,ve)}else ge.call(this,$,N)})},b=x=>{let v=Object.getPrototypeOf(x);if(v!==window.HTMLElement)return v===t?Object.setPrototypeOf(x,window.HTMLElement):b(v)},y=(x,v,C=!1)=>{Object.setPrototypeOf(x,v.elementClass.prototype),n.set(x,v),d=x;try{new v.elementClass}catch{b(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(I=>{x.hasAttribute(I)&&v.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),C&&v.connectedCallback&&x.isConnected&&v.connectedCallback.call(x)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let v=S.apply(this,arguments);return x.customElements&&(v.customElements=x.customElements),v};let E=[document],A=(x,v,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):x.prototype)[v];x.prototype[v]=function(){E.push(this);let B=I.apply(C||this,arguments);return B!==void 0&&l.set(B,this),E.pop(),B}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let _=(x,v)=>{let C=Object.getOwnPropertyDescriptor(x.prototype,v);Object.defineProperty(x.prototype,v,{...C,set(I){E.push(this),C.set.call(this,I),E.pop()}})};if(_(Element,"innerHTML"),_(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let x=new WeakMap,v=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let N=v.call(this,...Z);return x.set(N,this),N},C.forEach(Z=>{let N=window.ElementInternals.prototype,$=N[Z];N[Z]=function(...K){let ve=x.get(this);if(n.get(ve).formAssociated===!0)return $?.call(this,...K);throw new DOMException(`Failed to execute ${$} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class B{constructor(N){let $=new Map;N.forEach((K,ve)=>{let yn=K.getAttribute("name"),rl=$.get(yn)||[];this[+ve]=K,rl.push(K),$.set(yn,rl)}),this.length=N.length,$.forEach((K,ve)=>{K&&(K.length===1?this[ve]=K[0]:this[ve]=new I(K))})}namedItem(N){return this[N]}}let ge=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=ge.get.call(this,[]),N=[];for(let $ of Z){let K=n.get($);(!K||K.formAssociated===!0)&&N.push($)}return new B(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var In={};V(In,{CSSResult:()=>Tr,LitElement:()=>mt,ReactiveElement:()=>qe,_$LE:()=>gl,_$LH:()=>Rn,adoptStyles:()=>ho,css:()=>L,defaultConverter:()=>_r,getCompatibleStyle:()=>ei,html:()=>O,isServer:()=>Em,mathml:()=>An,noChange:()=>xe,notEqual:()=>go,nothing:()=>P,render:()=>Tn,supportsAdoptingStyleSheets:()=>fo,svg:()=>wn,unsafeCSS:()=>Xt});var Qo=globalThis,fo=Qo.ShadowRoot&&(Qo.ShadyCSS===void 0||Qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bn=Symbol(),ol=new WeakMap,Tr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==bn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(fo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=ol.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ol.set(r,e))}return e}toString(){return this.cssText}},Xt=t=>new Tr(typeof t=="string"?t:t+"",void 0,bn),L=(t,...e)=>{let r=t.length===1?t[0]:e.reduce(((o,n,a)=>o+(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)+t[a+1]),t[0]);return new Tr(r,t,bn)},ho=(t,e)=>{if(fo)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let o=document.createElement("style"),n=Qo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},ei=fo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Xt(r)})(t):t;var{is:cp,defineProperty:dp,getOwnPropertyDescriptor:up,getOwnPropertyNames:pp,getOwnPropertySymbols:fp,getPrototypeOf:hp}=Object,ti=globalThis,il=ti.trustedTypes,mp=il?il.emptyScript:"",gp=ti.reactiveElementPolyfillSupport,mo=(t,e)=>t,_r={toAttribute(t,e){switch(e){case Boolean:t=t?mp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},go=(t,e)=>!cp(t,e),nl={attribute:!0,type:String,converter:_r,reflect:!1,useDefault:!1,hasChanged:go};Symbol.metadata??=Symbol("metadata"),ti.litPropertyMetadata??=new WeakMap;var qe=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,r=nl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&dp(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=up(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??nl}static _$Ei(){if(this.hasOwnProperty(mo("elementProperties")))return;let e=hp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(mo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mo("properties"))){let r=this.properties,o=[...pp(r),...fp(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(ei(n))}else e!==void 0&&r.push(ei(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o: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,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ho(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,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:_r).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:_r;this._$Em=n,this[n]=s.fromAttribute(r,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??go)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach((r=>r.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((r=>this._$ET(r,this[r]))),this._$EM()}updated(e){}firstUpdated(e){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[mo("elementProperties")]=new Map,qe[mo("finalized")]=new Map,gp?.({ReactiveElement:qe}),(ti.reactiveElementVersions??=[]).push("2.1.0");var xn=globalThis,ri=xn.trustedTypes,al=ri?ri.createPolicy("lit-html",{createHTML:t=>t}):void 0,Sn="$lit$",wt=`lit$${Math.random().toFixed(9).slice(2)}$`,Cn="?"+wt,yp=`<${Cn}>`,er=document,bo=()=>er.createComment(""),vo=t=>t===null||typeof t!="object"&&typeof t!="function",En=Array.isArray,pl=t=>En(t)||typeof t?.[Symbol.iterator]=="function",vn=`[
1
+ "use strict";(()=>{var lp=Object.defineProperty;var V=(t,e)=>{for(var r in e)lp(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=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(S,v){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=v.prototype.attributeChangedCallback,I=new Set(v.observedAttributes||[]);m(v,I,C);let B={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(S,B),this._definitionsByClass.set(v,B);let ge=r.call(o,S);ge||(ge=h(S),e.call(o,S,ge)),this===window.customElements&&(s.set(v,B),B.standInClass=ge);let Z=this._awaitingUpgrade.get(S);if(Z){this._awaitingUpgrade.delete(S);for(let $ of Z)a.delete($),y($,B,!0)}let N=this._whenDefinedPromises.get(S);return N!==void 0&&(N.resolve(v),this._whenDefinedPromises.delete(S)),v}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let v=this._getDefinition(S);if(v!==void 0)return Promise.resolve(v.elementClass);let C=this._whenDefinedPromises.get(S);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(S,C)),C.promise}_upgradeWhenDefined(S,v,C){let I=this._awaitingUpgrade.get(v);I||this._awaitingUpgrade.set(v,I=new Set),C?I.add(S):I.delete(S)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),n.set(v,C),v},window.HTMLElement.prototype=t.prototype;let p=S=>S===document||S instanceof ShadowRoot,f=S=>{let v=S.getRootNode();if(!p(v)){let C=E[E.length-1];if(C instanceof CustomElementRegistry)return C;v=C.getRootNode(),p(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},h=S=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=f(C)||window.customElements,B=I._getDefinition(S);return B?y(C,B):a.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},m=(S,v,C)=>{if(v.size===0||C===void 0)return;let I=S.prototype.setAttribute;I&&(S.prototype.setAttribute=function(Z,N){let $=Z.toLowerCase();if(v.has($)){let K=this.getAttribute($);I.call(this,$,N),C.call(this,$,K,N)}else I.call(this,$,N)});let B=S.prototype.removeAttribute;B&&(S.prototype.removeAttribute=function(Z){let N=Z.toLowerCase();if(v.has(N)){let $=this.getAttribute(N);B.call(this,N),C.call(this,N,$,null)}else B.call(this,N)});let ge=S.prototype.toggleAttribute;ge&&(S.prototype.toggleAttribute=function(Z,N){let $=Z.toLowerCase();if(v.has($)){let K=this.getAttribute($);ge.call(this,$,N);let ve=this.getAttribute($);C.call(this,$,K,ve)}else ge.call(this,$,N)})},b=S=>{let v=Object.getPrototypeOf(S);if(v!==window.HTMLElement)return v===t?Object.setPrototypeOf(S,window.HTMLElement):b(v)},y=(S,v,C=!1)=>{Object.setPrototypeOf(S,v.elementClass.prototype),n.set(S,v),d=S;try{new v.elementClass}catch{b(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(I=>{S.hasAttribute(I)&&v.attributeChangedCallback.call(S,I,null,S.getAttribute(I))}),C&&v.connectedCallback&&S.isConnected&&v.connectedCallback.call(S)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let v=x.apply(this,arguments);return S.customElements&&(v.customElements=S.customElements),v};let E=[document],A=(S,v,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):S.prototype)[v];S.prototype[v]=function(){E.push(this);let B=I.apply(C||this,arguments);return B!==void 0&&l.set(B,this),E.pop(),B}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let _=(S,v)=>{let C=Object.getOwnPropertyDescriptor(S.prototype,v);Object.defineProperty(S.prototype,v,{...C,set(I){E.push(this),C.set.call(this,I),E.pop()}})};if(_(Element,"innerHTML"),_(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,v=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let N=v.call(this,...Z);return S.set(N,this),N},C.forEach(Z=>{let N=window.ElementInternals.prototype,$=N[Z];N[Z]=function(...K){let ve=S.get(this);if(n.get(ve).formAssociated===!0)return $?.call(this,...K);throw new DOMException(`Failed to execute ${$} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class B{constructor(N){let $=new Map;N.forEach((K,ve)=>{let yn=K.getAttribute("name"),rl=$.get(yn)||[];this[+ve]=K,rl.push(K),$.set(yn,rl)}),this.length=N.length,$.forEach((K,ve)=>{K&&(K.length===1?this[ve]=K[0]:this[ve]=new I(K))})}namedItem(N){return this[N]}}let ge=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=ge.get.call(this,[]),N=[];for(let $ of Z){let K=n.get($);(!K||K.formAssociated===!0)&&N.push($)}return new B(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var In={};V(In,{CSSResult:()=>Tr,LitElement:()=>mt,ReactiveElement:()=>qe,_$LE:()=>gl,_$LH:()=>Rn,adoptStyles:()=>ho,css:()=>L,defaultConverter:()=>_r,getCompatibleStyle:()=>ei,html:()=>O,isServer:()=>Em,mathml:()=>An,noChange:()=>xe,notEqual:()=>go,nothing:()=>P,render:()=>Tn,supportsAdoptingStyleSheets:()=>fo,svg:()=>wn,unsafeCSS:()=>Xt});var Qo=globalThis,fo=Qo.ShadowRoot&&(Qo.ShadyCSS===void 0||Qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bn=Symbol(),ol=new WeakMap,Tr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==bn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(fo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=ol.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ol.set(r,e))}return e}toString(){return this.cssText}},Xt=t=>new Tr(typeof t=="string"?t:t+"",void 0,bn),L=(t,...e)=>{let r=t.length===1?t[0]:e.reduce(((o,n,a)=>o+(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)+t[a+1]),t[0]);return new Tr(r,t,bn)},ho=(t,e)=>{if(fo)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let o=document.createElement("style"),n=Qo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},ei=fo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Xt(r)})(t):t;var{is:cp,defineProperty:dp,getOwnPropertyDescriptor:up,getOwnPropertyNames:pp,getOwnPropertySymbols:fp,getPrototypeOf:hp}=Object,ti=globalThis,il=ti.trustedTypes,mp=il?il.emptyScript:"",gp=ti.reactiveElementPolyfillSupport,mo=(t,e)=>t,_r={toAttribute(t,e){switch(e){case Boolean:t=t?mp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},go=(t,e)=>!cp(t,e),nl={attribute:!0,type:String,converter:_r,reflect:!1,useDefault:!1,hasChanged:go};Symbol.metadata??=Symbol("metadata"),ti.litPropertyMetadata??=new WeakMap;var qe=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,r=nl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&dp(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=up(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??nl}static _$Ei(){if(this.hasOwnProperty(mo("elementProperties")))return;let e=hp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(mo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mo("properties"))){let r=this.properties,o=[...pp(r),...fp(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(ei(n))}else e!==void 0&&r.push(ei(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o: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,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ho(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,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:_r).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:_r;this._$Em=n,this[n]=s.fromAttribute(r,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??go)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach((r=>r.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((r=>this._$ET(r,this[r]))),this._$EM()}updated(e){}firstUpdated(e){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[mo("elementProperties")]=new Map,qe[mo("finalized")]=new Map,gp?.({ReactiveElement:qe}),(ti.reactiveElementVersions??=[]).push("2.1.0");var xn=globalThis,ri=xn.trustedTypes,al=ri?ri.createPolicy("lit-html",{createHTML:t=>t}):void 0,Sn="$lit$",wt=`lit$${Math.random().toFixed(9).slice(2)}$`,Cn="?"+wt,yp=`<${Cn}>`,er=document,bo=()=>er.createComment(""),vo=t=>t===null||typeof t!="object"&&typeof t!="function",En=Array.isArray,pl=t=>En(t)||typeof t?.[Symbol.iterator]=="function",vn=`[
2
2
  \f\r]`,yo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sl=/-->/g,ll=/>/g,Jt=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),cl=/'/g,dl=/"/g,fl=/^(?:script|style|textarea|title)$/i,On=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),O=On(1),wn=On(2),An=On(3),xe=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),ul=new WeakMap,Qt=er.createTreeWalker(er,129);function hl(t,e){if(!En(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return al!==void 0?al.createHTML(e):e}var ml=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=yo;for(let l=0;l<r;l++){let d=t[l],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===yo?f[1]==="!--"?s=sl:f[1]!==void 0?s=ll:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=Jt):f[3]!==void 0&&(s=Jt):s===Jt?f[0]===">"?(s=n??yo,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Jt:f[3]==='"'?dl:cl):s===dl||s===cl?s=Jt:s===sl||s===ll?s=yo:(s=Jt,n=void 0);let b=s===Jt&&t[l+1].startsWith("/>")?" ":"";a+=s===yo?d+yp:h>=0?(o.push(p),d.slice(0,h)+Sn+d.slice(h)+wt+b):d+wt+(h===-2?l:b)}return[hl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},xo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=ml(e,r);if(this.el=t.createElement(p,o),Qt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Qt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Sn)){let m=f[s++],b=n.getAttribute(h).split(wt),y=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:y[2],strings:b,ctor:y[1]==="."?ii:y[1]==="?"?ni:y[1]==="@"?ai:rr}),n.removeAttribute(h)}else h.startsWith(wt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(wt),m=h.length-1;if(m>0){n.textContent=ri?ri.emptyScript:"";for(let b=0;b<m;b++)n.append(h[b],bo()),Qt.nextNode(),d.push({type:2,index:++a});n.append(h[m],bo())}}}else if(n.nodeType===8)if(n.data===Cn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(wt,h+1))!==-1;)d.push({type:7,index:a}),h+=wt.length-1}a++}}static createElement(e,r){let o=er.createElement("template");return o.innerHTML=e,o}};function tr(t,e,r=t,o){if(e===xe)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=vo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=tr(t,n._$AS(t,e.values),n,o)),e}var oi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??er).importNode(r,!0);Qt.currentNode=n;let a=Qt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Ir(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new si(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Qt.nextNode(),s++)}return Qt.currentNode=er,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Ir=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tr(this,e,r),vo(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):pl(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!==P&&vo(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=xo.createElement(hl(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new oi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=ul.get(e.strings);return r===void 0&&ul.set(e.strings,r=new xo(e)),r}k(e){En(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(bo()),this.O(bo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=P}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=tr(this,e,r,0),s=!vo(e)||e!==this._$AH&&e!==xe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=tr(this,l[o+d],r,d),p===xe&&(p=this._$AH[d]),s||=!vo(p)||p!==this._$AH[d],p===P?e=P:e!==P&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ii=class extends rr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},ni=class extends rr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},ai=class extends rr{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=tr(this,e,r,0)??P)===xe)return;let o=this._$AH,n=e===P&&o!==P||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),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)}},si=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}},Rn={M:Sn,P:wt,A:Cn,C:1,L:ml,R:oi,D:pl,V:tr,I:Ir,H:rr,N:ni,U:ai,B:ii,F:si},bp=xn.litHtmlPolyfillSupport;bp?.(xo,Ir),(xn.litHtmlVersions??=[]).push("3.3.0");var Tn=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new Ir(e.insertBefore(bo(),a),a,void 0,r??{})}return n._$AI(t),n};var _n=globalThis,mt=class extends qe{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Tn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xe}};mt._$litElement$=!0,mt.finalized=!0,_n.litElementHydrateSupport?.({LitElement:mt});var vp=_n.litElementPolyfillSupport;vp?.({LitElement:mt});var gl={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(_n.litElementVersions??=[]).push("4.2.0");var Em=!1;var Pn={};V(Pn,{customElement:()=>xp,eventOptions:()=>li,property:()=>g,query:()=>G,queryAll:()=>Ln,queryAssignedElements:()=>kn,queryAssignedNodes:()=>So,queryAsync:()=>Ep,standardProperty:()=>yl,state:()=>D});var xp=t=>(e,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};var Sp={attribute:!0,type:String,converter:_r,reflect:!1,hasChanged:go},yl=(t=Sp,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t)}}throw Error("Unsupported decorator location: "+o)};function g(t){return(e,r)=>typeof r=="object"?yl(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function D(t){return g({...t,state:!0,attribute:!1})}function li(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var at=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function G(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return at(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return at(r,o,{get(){return a(this)}})}}var Cp;function Ln(t){return(e,r)=>at(e,r,{get(){return(this.renderRoot??(Cp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ep(t){return(e,r)=>at(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function kn(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return at(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}function So(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return at(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Nn={};V(Nn,{repeat:()=>Mt});var gt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},We=t=>(...e)=>({_$litDirective$:t,values:e}),Ye=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Op}=Rn;var vl=t=>t.strings===void 0,bl=()=>document.createComment(""),Lr=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(bl(),n),s=o.insertBefore(bl(),n);r=new Op(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;o.insertBefore(d,n),d=p}}}return r},Dt=(t,e,r=t)=>(t._$AI(e,r),t),wp={},xl=(t,e=wp)=>t._$AH=e,Sl=t=>t._$AH,ci=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let o=e.nextSibling;e.remove(),e=o}};var Cl=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},Mt=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=Sl(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,m=n.length-1,b=0,y=a.length-1;for(;h<=m&&b<=y;)if(n[h]===null)h++;else if(n[m]===null)m--;else if(l[h]===s[b])d[b]=Dt(n[h],a[b]),h++,b++;else if(l[m]===s[y])d[y]=Dt(n[m],a[y]),m--,y--;else if(l[h]===s[y])d[y]=Dt(n[h],a[y]),Lr(t,d[y+1],n[h]),h++,y--;else if(l[m]===s[b])d[b]=Dt(n[m],a[b]),Lr(t,n[h],n[m]),m--,b++;else if(p===void 0&&(p=Cl(s,b,y),f=Cl(l,h,m)),p.has(l[h]))if(p.has(l[m])){let S=f.get(s[b]),E=S!==void 0?n[S]:null;if(E===null){let A=Lr(t,n[h]);Dt(A,a[b]),d[b]=A}else d[b]=Dt(E,a[b]),Lr(t,n[h],E),n[S]=null;b++}else ci(n[m]),m--;else ci(n[h]),h++;for(;b<=y;){let S=Lr(t,d[y+1]);Dt(S,a[b]),d[b++]=S}for(;h<=m;){let S=n[h++];S!==null&&ci(S)}return this.ut=s,xl(t,d),xe}});var Dn={};V(Dn,{classMap:()=>Oe});var Oe=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return xe}});var Mn={};V(Mn,{styleMap:()=>Rp});var El="important",Ap=" !"+El,Rp=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Ap);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?El:""):r[o]=n}}return xe}});var Un={};V(Un,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>$n});var kr=class extends Ye{constructor(e){if(super(e),this.it=P,e.type!==gt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===P||e==null)return this._t=void 0,this.it=e;if(e===xe)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var $n=We(kr);var Yn={};V(Yn,{CacheRegistry:()=>yt,ClearCacheEvent:()=>Oo});var Bn={};V(Bn,{CancelablePromise:()=>di,CanceledPromiseError:()=>At,cancelable:()=>Fn});var At=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},di=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new At("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new At("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Fn=t=>new di((e,r)=>t.then(e).catch(r));var qn={};V(qn,{FtNotificationEvent:()=>Re,PostResizeEvent:()=>Zn,PreResizeEvent:()=>Kn,WithEventBus:()=>Tt,withEventBus:()=>hi});var jn={};V(jn,{applyMixinOnce:()=>ue,customElements:()=>Y,dateReviver:()=>Lp,deepCopy:()=>st,deepEqual:()=>Ge,delay:()=>ui,eventPathContainsMatchingElement:()=>Wn,everyDeep:()=>Ip,flatDeep:()=>wl,forEachDeep:()=>Al,getComposedPathTo:()=>Vn,hasChanged:()=>Rt,ignoreComposingEvents:()=>ir,last:()=>Pp,minmax:()=>or,parseDate:()=>pi,randomId:()=>Gn,someDeep:()=>Rl,unslotText:()=>fi,waitFor:()=>Eo,waitUntil:()=>zn});var Hn={};V(Hn,{customElement:()=>Co,dateProperty:()=>_p,isNumber:()=>Ol,jsonProperty:()=>Ve,numberProperty:()=>lt,optionalNumberProperty:()=>Tp});var Co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Ve(t,e){return g({type:Object,converter:{fromAttribute:r=>{if(r==null)return st(t);try{return JSON.parse(r)}catch{return st(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Rt,...e??{}})}function Tp(t){return lt(t)}function lt(t){return g({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Ol(e)?or(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Ol(t){return!isNaN(parseFloat(t))}function _p(t){return g({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var ui=t=>new Promise(e=>setTimeout(e,t));async function zn(t,e=10,r=2e4){await Eo(async()=>await t()||void 0,e,r)}async function Eo(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await ui(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function wl(t,e){return t.flatMap(r=>[r,...wl(e(r),e)])}function Al(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Rl(t,e,r){let o=!1;return Al(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function Ip(t,e,r){return!Rl(t,e,(o,n,a,s)=>!r(o,n,a,s))}function Lp(...t){return(e,r)=>t.includes(e)?pi(r):r}function pi(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function kp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ge(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ge(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ge(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ge(t,e){try{return kp(t,e)}catch{return!1}}function Rt(t,e){return!Ge(t,e)}function Wn(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function or(t,e,r){return Math.min(Math.max(t,e),r)}function Pp(t){return t[t.length-1]}function fi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>fi(e)).join(""):t?.textContent||""}function Vn(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function st(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Gn(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ue(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function ir(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function Y(t){for(let[e,r]of Object.entries(t))Co(e)(r)}var Re=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Kn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Zn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},hi=ue(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Tt=class extends hi(Object){};var Oo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},yt=class extends Tt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new Oo(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Oo([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Fn(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),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 r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ta={};V(ta,{ClusteringHelper:()=>Pr,formatHierarchicalValues:()=>ea});var Qn={};V(Qn,{accessBreadcrumb:()=>Dp,accessResult:()=>Xn,accessResultId:()=>Np,accessResultUrl:()=>Jn});function Xn(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Np(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.contentId}function Jn(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.viewerUrl}function Dp(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function ea(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var Pr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=Xn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).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(ea(l)),s.push(ea(l,r))}),{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=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,m,b)=>b.findIndex(y=>y.value===h.value)===m).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,m)=>this.compareMetadata(h.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var ra={};V(ra,{Debouncer:()=>ie});var ie=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)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 aa={};V(aa,{designSystemVariables:()=>w});var na={};V(na,{DesignSystemFamily:()=>wo,DesignSystemSize:()=>Ao,FtCssVariableFactory:()=>i,badge:()=>qp,banner:()=>Zp,button:()=>Up,card:()=>Fp,chart:()=>uf,checkbox:()=>Hp,chip:()=>Gp,chipChoice:()=>Vp,chipGroup:()=>jp,collapsible:()=>cf,combobox:()=>sf,dateRangePicker:()=>bf,drawer:()=>tf,floatingMenu:()=>af,foundation:()=>c,link:()=>Kp,modal:()=>ef,notice:()=>ff,notification:()=>mf,pageDesigner:()=>pf,pageFooter:()=>Jp,pageHeader:()=>Xp,pageLayout:()=>Qp,popover:()=>lf,radio:()=>zp,reorderableList:()=>yf,resolveFamilyClass:()=>oa,resolveSizeClass:()=>ia,semantic:()=>u,setVariable:()=>T,switch_:()=>df,table:()=>Wp,tabs:()=>rf,textArea:()=>nf,textInput:()=>of,titleBreadcrumb:()=>Yp,toggle:()=>hf,tooltip:()=>gf,treeList:()=>Bp,typographies:()=>Mp,typographyBody1Medium:()=>Pl,typographyBody1Regular:()=>kl,typographyBody1Semibold:()=>Nl,typographyBody2Medium:()=>Ml,typographyBody2MediumUnderline:()=>$l,typographyBody2Regular:()=>Dl,typographyBody2Semibold:()=>Ul,typographyCaption1Medium:()=>Fl,typographyCaption1Semibold:()=>Bl,typographyCaption2Bold:()=>Wl,typographyCaption2Medium:()=>Hl,typographyCaption2Semibold:()=>zl,typographyDisplay:()=>Tl,typographyTitle1:()=>_l,typographyTitle2:()=>Il,typographyTitle3:()=>Ll,typographyVariants:()=>$p});var $t=t=>typeof t=="string"?Xt(t):t,i=class{static create(e,r,o,n){let a=l=>$t(l??n),s=L`var(${$t(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>T(s,l??a(n)),s.get=l=>L`var(${$t(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=L`var(${$t(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>T(s,l??a(n)),s.get=l=>L`var(${$t(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=L`var(${$t(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>L`var(${$t(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function T(t,e){return $t(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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)")},Tl={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},_l={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Il={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ll={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},kl={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Pl={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Nl={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Dl={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Ml={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},$l={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Ul={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Fl={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Bl={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Hl={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},zl={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Wl={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Mp={display:Tl,"title-1":_l,"title-2":Il,"title-3":Ll,"body-1-regular":kl,"body-1-medium":Pl,"body-1-semibold":Nl,"body-2-regular":Dl,"body-2-medium":Ml,"body-2-medium-underline":$l,"body-2-semibold":Ul,"caption-1-medium":Fl,"caption-1-semibold":Bl,"caption-2-medium":Hl,"caption-2-semibold":zl,"caption-2-bold":Wl},$p=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Up={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Fp={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var Bp={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Hp={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var zp={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Wp={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Vp={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Gp={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var jp={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Kp={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)};var Zp={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var qp={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Yp={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Xp={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Jp={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Qp={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var ef={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var tf={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var rf={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var of={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var nf={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var af={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var sf={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var lf={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var cf={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var df={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var uf={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var pf={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var ff={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var hf={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)};var mf={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var gf={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var yf={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var bf={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var wo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(wo||(wo={}));var Ao;(function(t){t.large="large",t.medium="medium",t.small="small"})(Ao||(Ao={}));function oa(t){return`ftds--family-${t}`}function ia(t){return`ftds--size-${t}`}var w={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","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:i.create("--ft-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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var sa={};V(sa,{DynamicImporter:()=>mi,dynamicImporter:()=>vf});var mi=class{async import(e){if(e)return import(e)}},vf=new mi;var Ca={};V(Ca,{computeOffsetAutoPosition:()=>Sa,computeOffsetPosition:()=>xa});var Gl=["top","right","bottom","left"],Vl=["start","end"],ca=Gl.reduce((t,e)=>t.concat(e,e+"-"+Vl[0],e+"-"+Vl[1]),[]),nr=Math.min,Ue=Math.max,Ro=Math.round;var ct=t=>({x:t,y:t}),xf={left:"right",right:"left",bottom:"top",top:"bottom"};function da(t,e,r){return Ue(t,nr(e,r))}function Nr(t,e){return typeof t=="function"?t(e):t}function Ut(t){return t.split("-")[0]}function bt(t){return t.split("-")[1]}function ua(t){return t==="x"?"y":"x"}function pa(t){return t==="y"?"height":"width"}function Dr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function fa(t){return ua(Dr(t))}function jl(t,e,r){r===void 0&&(r=!1);let o=bt(t),n=fa(t),a=pa(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=la(s)),[s,la(s)]}function Kl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function la(t){let e=Ut(t);return xf[e]+t.slice(e.length)}function Sf(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zl(t){return typeof t!="number"?Sf(t):{top:t,right:t,bottom:t,left:t}}function ar(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function ql(t,e,r){let{reference:o,floating:n}=t,a=Dr(e),s=fa(e),l=pa(s),d=Ut(e),p=a==="y",f=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,m=o[l]/2-n[l]/2,b;switch(d){case"top":b={x:f,y:o.y-n.height};break;case"bottom":b={x:f,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch(bt(e)){case"start":b[s]-=m*(r&&p?-1:1);break;case"end":b[s]+=m*(r&&p?-1:1);break}return b}async function Yl(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=Nr(e,t),y=Zl(b),E=l[m?h==="floating"?"reference":"floating":h],A=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),_=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),v=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:x,strategy:d}):_);return{top:(A.top-C.top+y.top)/v.y,bottom:(C.bottom-A.bottom+y.bottom)/v.y,left:(A.left-C.left+y.left)/v.x,right:(C.right-A.right+y.right)/v.x}}var Cf=50,Xl=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Yl},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:h}=ql(p,o,d),m=o,b=0,y={};for(let S=0;S<a.length;S++){let E=a[S];if(!E)continue;let{name:A,fn:_}=E,{x,y:v,data:C,reset:I}=await _({x:f,y:h,initialPlacement:o,placement:m,strategy:n,middlewareData:y,rects:p,platform:l,elements:{reference:t,floating:e}});f=x??f,h=v??h,y[A]={...y[A],...C},I&&b<Cf&&(b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(p=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:f,y:h}=ql(p,m,d)),S=-1)}return{x:f,y:h,placement:m,strategy:n,middlewareData:y}};function Ef(t,e,r){return(t?[...r.filter(n=>bt(n)===t),...r.filter(n=>bt(n)!==t)]:r.filter(n=>Ut(n)===n)).filter(n=>t?bt(n)===t||(e?Kl(n)!==n:!1):!0)}var Jl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:m=ca,autoAlignment:b=!0,...y}=Nr(t,e),S=h!==void 0||m===ca?Ef(h||null,b,m):m,E=await d.detectOverflow(e,y),A=((r=s.autoPlacement)==null?void 0:r.index)||0,_=S[A];if(_==null)return{};let x=jl(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==_)return{reset:{placement:S[0]}};let v=[E[Ut(_)],E[x[0]],E[x[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:v}],I=S[A+1];if(I)return{data:{index:A+1,overflows:C},reset:{placement:I}};let B=C.map(N=>{let $=bt(N.placement);return[N.placement,$&&f?N.overflows.slice(0,2).reduce((K,ve)=>K+ve,0):N.overflows[0],N.overflows]}).sort((N,$)=>N[1]-$[1]),Z=((n=B.filter(N=>N[2].slice(0,bt(N[0])?2:3).every($=>$<=0))[0])==null?void 0:n[0])||B[0][0];return Z!==l?{data:{index:A+1,overflows:C},reset:{placement:Z}}:{}}}};var Of=new Set(["left","top"]);async function wf(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Ut(r),l=bt(r),d=Dr(r)==="y",p=Of.has(s)?-1:1,f=a&&d?-1:1,h=Nr(e,t),{mainAxis:m,crossAxis:b,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(b=l==="end"?y*-1:y),d?{x:b*f,y:m*p}:{x:m*p,y:b*f}}var Ql=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await wf(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ec=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:A=>{let{x:_,y:x}=A;return{x:_,y:x}}},...p}=Nr(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=Dr(Ut(n)),b=ua(m),y=f[b],S=f[m];if(s){let A=b==="y"?"top":"left",_=b==="y"?"bottom":"right",x=y+h[A],v=y-h[_];y=da(x,y,v)}if(l){let A=m==="y"?"top":"left",_=m==="y"?"bottom":"right",x=S+h[A],v=S-h[_];S=da(x,S,v)}let E=d.fn({...e,[b]:y,[m]:S});return{...E,data:{x:E.x-r,y:E.y-o,enabled:{[b]:s,[m]:l}}}}}};var tc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...p}=Nr(t,e),f=await s.detectOverflow(e,p),h=Ut(n),m=bt(n),b=Dr(n)==="y",{width:y,height:S}=a.floating,E,A;h==="top"||h==="bottom"?(E=h,A=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(A=h,E=m==="end"?"top":"bottom");let _=S-f.top-f.bottom,x=y-f.left-f.right,v=nr(S-f[E],_),C=nr(y-f[A],x),I=!e.middlewareData.shift,B=v,ge=C;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(ge=x),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(B=_),I&&!m){let N=Ue(f.left,0),$=Ue(f.right,0),K=Ue(f.top,0),ve=Ue(f.bottom,0);b?ge=y-2*(N!==0||$!==0?N+$:Ue(f.left,f.right)):B=S-2*(K!==0||ve!==0?K+ve:Ue(f.top,f.bottom))}await d({...e,availableWidth:ge,availableHeight:B});let Z=await s.getDimensions(l.floating);return y!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function lr(t){return oc(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(oc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function oc(t){return yi()?t instanceof Node||t instanceof Fe(t).Node:!1}function Xe(t){return yi()?t instanceof Element||t instanceof Fe(t).Element:!1}function xt(t){return yi()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function rc(t){return!yi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function Mr(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=Je(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function ic(t){return/^(table|td|th)$/.test(lr(t))}function To(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Af=/transform|translate|scale|rotate|perspective|filter/,Rf=/paint|layout|strict|content/,sr=t=>!!t&&t!=="none",ha;function $r(t){let e=Xe(t)?Je(t):t;return sr(e.transform)||sr(e.translate)||sr(e.scale)||sr(e.rotate)||sr(e.perspective)||!bi()&&(sr(e.backdropFilter)||sr(e.filter))||Af.test(e.willChange||"")||Rf.test(e.contain||"")}function nc(t){let e=_t(t);for(;xt(e)&&!cr(e);){if($r(e))return e;if(To(e))return null;e=_t(e)}return null}function bi(){return ha==null&&(ha=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ha}function cr(t){return/^(html|body|#document)$/.test(lr(t))}function Je(t){return Fe(t).getComputedStyle(t)}function _o(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _t(t){if(lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||rc(t)&&t.host||vt(t);return rc(e)?e.host:e}function ac(t){let e=_t(t);return cr(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Mr(e)?e:ac(e)}function gi(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ac(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Fe(n);if(a){let l=vi(s);return e.concat(s,s.visualViewport||[],Mr(n)?n:[],l&&r?gi(l):[])}else return e.concat(n,gi(n,[],r))}function vi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dc(t){let e=Je(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=xt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=Ro(r)!==a||Ro(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function uc(t){return Xe(t)?t:t.contextElement}function Ur(t){let e=uc(t);if(!xt(e))return ct(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=dc(e),s=(a?Ro(r.width):r.width)/o,l=(a?Ro(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Tf=ct(0);function pc(t){let e=Fe(t);return!bi()||!e.visualViewport?Tf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _f(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Fe(t)?!1:e}function Io(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=uc(t),s=ct(1);e&&(o?Xe(o)&&(s=Ur(o)):s=Ur(t));let l=_f(a,r,o)?pc(a):ct(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let m=Fe(a),b=o&&Xe(o)?Fe(o):o,y=m,S=vi(y);for(;S&&o&&b!==y;){let E=Ur(S),A=S.getBoundingClientRect(),_=Je(S),x=A.left+(S.clientLeft+parseFloat(_.paddingLeft))*E.x,v=A.top+(S.clientTop+parseFloat(_.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=x,p+=v,y=Fe(S),S=vi(y)}}return ar({width:f,height:h,x:d,y:p})}function xi(t,e){let r=_o(t).scrollLeft;return e?e.left+r:Io(vt(t)).left+r}function fc(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-xi(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function If(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=vt(o),l=e?To(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=ct(1),f=ct(0),h=xt(o);if((h||!h&&!a)&&((lr(o)!=="body"||Mr(s))&&(d=_o(o)),h)){let b=Io(o);p=Ur(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let m=s&&!h&&!a?fc(s,d):ct(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+f.x+m.x,y:r.y*p.y-d.scrollTop*p.y+f.y+m.y}}function Lf(t){return Array.from(t.getClientRects())}function kf(t){let e=vt(t),r=_o(t),o=t.ownerDocument.body,n=Ue(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Ue(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+xi(t),l=-r.scrollTop;return Je(o).direction==="rtl"&&(s+=Ue(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}var sc=25;function Pf(t,e){let r=Fe(t),o=vt(t),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=bi();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let p=xi(o);if(p<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),b=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-h.clientWidth-b);y<=sc&&(a-=y)}else p<=sc&&(a+=p);return{width:a,height:s,x:l,y:d}}function Nf(t,e){let r=Io(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=xt(t)?Ur(t):ct(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function lc(t,e,r){let o;if(e==="viewport")o=Pf(t,r);else if(e==="document")o=kf(vt(t));else if(Xe(e))o=Nf(e,r);else{let n=pc(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ar(o)}function hc(t,e){let r=_t(t);return r===e||!Xe(r)||cr(r)?!1:Je(r).position==="fixed"||hc(r,e)}function Df(t,e){let r=e.get(t);if(r)return r;let o=gi(t,[],!1).filter(l=>Xe(l)&&lr(l)!=="body"),n=null,a=Je(t).position==="fixed",s=a?_t(t):t;for(;Xe(s)&&!cr(s);){let l=Je(s),d=$r(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Mr(s)&&!d&&hc(t,s))?o=o.filter(f=>f!==s):n=l,s=_t(s)}return e.set(t,o),o}function Mf(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?To(e)?[]:Df(e,this._c):[].concat(r),o],l=lc(e,s[0],n),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let m=1;m<s.length;m++){let b=lc(e,s[m],n);d=Ue(b.top,d),p=nr(b.right,p),f=nr(b.bottom,f),h=Ue(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function $f(t){let{width:e,height:r}=dc(t);return{width:e,height:r}}function Uf(t,e,r){let o=xt(e),n=vt(e),a=r==="fixed",s=Io(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=ct(0);function p(){d.x=xi(n)}if(o||!o&&!a)if((lr(e)!=="body"||Mr(n))&&(l=_o(e)),o){let b=Io(e,!0,a,e);d.x=b.x+e.clientLeft,d.y=b.y+e.clientTop}else n&&p();a&&!o&&n&&p();let f=n&&!o&&!a?fc(n,l):ct(0),h=s.left+l.scrollLeft-d.x-f.x,m=s.top+l.scrollTop-d.y-f.y;return{x:h,y:m,width:s.width,height:s.height}}function ma(t){return Je(t).position==="static"}function cc(t,e){if(!xt(t)||Je(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function mc(t,e){let r=Fe(t);if(To(t))return r;if(!xt(t)){let n=_t(t);for(;n&&!cr(n);){if(Xe(n)&&!ma(n))return n;n=_t(n)}return r}let o=cc(t,e);for(;o&&ic(o)&&ma(o);)o=cc(o,e);return o&&cr(o)&&ma(o)&&!$r(o)?r:o||nc(t)||r}var Ff=async function(t){let e=this.getOffsetParent||mc,r=this.getDimensions,o=await r(t.floating);return{reference:Uf(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Bf(t){return Je(t).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:If,getDocumentElement:vt,getClippingRect:Mf,getOffsetParent:mc,getElementRects:Ff,getClientRects:Lf,getDimensions:$f,getScale:Ur,isElement:Xe,isRTL:Bf};var gc=Ql,ga=Jl,yc=ec;var bc=tc;var ya=(t,e,r)=>{let o=new Map,n={platform:Fr,...r},a={...n.platform,_c:o};return Xl(t,e,{...n,platform:a})};function va(t){return Hf(t)}function ba(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Hf(t){for(let e=t;e;e=ba(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ba(t);e;e=ba(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||$r(r)||e.tagName==="BODY"))return e}return null}async function xa(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},ya(t,e,{strategy:o.strategy,platform:{...Fr,getOffsetParent:n=>Fr.getOffsetParent(n,va)},middleware:[yc({crossAxis:!0}),ga({allowedPlacements:[o.placement]})]})}async function Sa(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ya(t,e,{placement:l,strategy:n,platform:{...Fr,getOffsetParent:p=>Fr.getOffsetParent(p,va)},middleware:[gc(s??4),ga({allowedPlacements:o}),bc({apply({availableHeight:p,availableWidth:f,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var Ea={};V(Ea,{isSlotEmptyOrWithoutContent:()=>zf});var zf=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var _a={};V(_a,{FtdsBase:()=>Ta,toFtdsBase:()=>wc});var Ra={};V(Ra,{ExportpartsUpdatedEvent:()=>dr,FtLitElement:()=>H});var Oa={};V(Oa,{ScopedRegistryLitElement:()=>Lo});var Lo=class extends mt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return ho(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){Co(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Aa={};V(Aa,{shadowQuerySelector:()=>wa,shadowQuerySelectorAll:()=>Wf});function wa(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Wf(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.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 o}var Br=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cc,vc=Symbol("constructorPrototype"),xc=Symbol("constructorName"),Ec=Symbol("exportpartsDebouncer"),Sc=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var H=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Cc]=new ie(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Ec].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)})},this[xc]=this.constructor.name,this[vc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xc]&&Object.setPrototypeOf(this,this[vc])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[Sc]||(r[Sc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=wa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).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)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],y=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],S=[...b,...y].filter(d).map(E=>E.trim());for(let E of S)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Cc=Ec;Br([g()],H.prototype,"exportpartsPrefix",void 0);Br([Ve([])],H.prototype,"exportpartsPrefixes",void 0);Br([g({reflect:!0})],H.prototype,"exportparts",void 0);Br([g()],H.prototype,"customStylesheet",void 0);Br([g()],H.prototype,"elementToFocus",void 0);Br([D()],H.prototype,"useAdoptedStyleSheets",void 0);var Oc=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wc=ue(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Ao.medium,this.family=wo.neutral}getDesignSystemBaseClasses(){return{[oa(this.family)]:!0,[ia(this.size)]:!0}}}return Oc([g()],e.prototype,"size",void 0),Oc([g()],e.prototype,"family",void 0),e}),Ta=class extends wc(H){};var Ac={};var ka={};V(ka,{highlightHtml:()=>La,highlightHtmlColorCssVariable:()=>Rc,highlightHtmlStyles:()=>Gf});var ur=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];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(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,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(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{r(p)&&(l++,o(f)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,f,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>d.push(b),n)}),d.push(p);d.forEach(m=>{o(m)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 ur(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`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 r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[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${o}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=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=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.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 r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>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:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-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)):o.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 r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return ur.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),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,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),m=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+m,e.nodes.forEach((b,y)=>{y>=l&&(e.nodes[y].start>0&&y!==l&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>o(d[s],h),(h,m)=>{e.lastIndex=m,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,m=>r(m,l,a.value.substring(p,f),d),m=>{o(m,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(m,b)=>this.opt.filter(b,p,o,h),m=>{h++,o++,this.opt.each(m)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=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)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=ur.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ia(t){let e=new ko(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Vf=Ia,Rc=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Gf=L`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),cl=/'/g,dl=/"/g,fl=/^(?:script|style|textarea|title)$/i,On=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),O=On(1),wn=On(2),An=On(3),xe=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),ul=new WeakMap,Qt=er.createTreeWalker(er,129);function hl(t,e){if(!En(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return al!==void 0?al.createHTML(e):e}var ml=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=yo;for(let l=0;l<r;l++){let d=t[l],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===yo?f[1]==="!--"?s=sl:f[1]!==void 0?s=ll:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=Jt):f[3]!==void 0&&(s=Jt):s===Jt?f[0]===">"?(s=n??yo,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Jt:f[3]==='"'?dl:cl):s===dl||s===cl?s=Jt:s===sl||s===ll?s=yo:(s=Jt,n=void 0);let b=s===Jt&&t[l+1].startsWith("/>")?" ":"";a+=s===yo?d+yp:h>=0?(o.push(p),d.slice(0,h)+Sn+d.slice(h)+wt+b):d+wt+(h===-2?l:b)}return[hl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},xo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=ml(e,r);if(this.el=t.createElement(p,o),Qt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Qt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Sn)){let m=f[s++],b=n.getAttribute(h).split(wt),y=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:y[2],strings:b,ctor:y[1]==="."?ii:y[1]==="?"?ni:y[1]==="@"?ai:rr}),n.removeAttribute(h)}else h.startsWith(wt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(wt),m=h.length-1;if(m>0){n.textContent=ri?ri.emptyScript:"";for(let b=0;b<m;b++)n.append(h[b],bo()),Qt.nextNode(),d.push({type:2,index:++a});n.append(h[m],bo())}}}else if(n.nodeType===8)if(n.data===Cn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(wt,h+1))!==-1;)d.push({type:7,index:a}),h+=wt.length-1}a++}}static createElement(e,r){let o=er.createElement("template");return o.innerHTML=e,o}};function tr(t,e,r=t,o){if(e===xe)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=vo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=tr(t,n._$AS(t,e.values),n,o)),e}var oi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??er).importNode(r,!0);Qt.currentNode=n;let a=Qt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Ir(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new si(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Qt.nextNode(),s++)}return Qt.currentNode=er,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Ir=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tr(this,e,r),vo(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):pl(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!==P&&vo(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=xo.createElement(hl(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new oi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=ul.get(e.strings);return r===void 0&&ul.set(e.strings,r=new xo(e)),r}k(e){En(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(bo()),this.O(bo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=P}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=tr(this,e,r,0),s=!vo(e)||e!==this._$AH&&e!==xe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=tr(this,l[o+d],r,d),p===xe&&(p=this._$AH[d]),s||=!vo(p)||p!==this._$AH[d],p===P?e=P:e!==P&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ii=class extends rr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},ni=class extends rr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},ai=class extends rr{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=tr(this,e,r,0)??P)===xe)return;let o=this._$AH,n=e===P&&o!==P||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),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)}},si=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}},Rn={M:Sn,P:wt,A:Cn,C:1,L:ml,R:oi,D:pl,V:tr,I:Ir,H:rr,N:ni,U:ai,B:ii,F:si},bp=xn.litHtmlPolyfillSupport;bp?.(xo,Ir),(xn.litHtmlVersions??=[]).push("3.3.0");var Tn=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new Ir(e.insertBefore(bo(),a),a,void 0,r??{})}return n._$AI(t),n};var _n=globalThis,mt=class extends qe{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Tn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xe}};mt._$litElement$=!0,mt.finalized=!0,_n.litElementHydrateSupport?.({LitElement:mt});var vp=_n.litElementPolyfillSupport;vp?.({LitElement:mt});var gl={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(_n.litElementVersions??=[]).push("4.2.0");var Em=!1;var Pn={};V(Pn,{customElement:()=>xp,eventOptions:()=>li,property:()=>g,query:()=>G,queryAll:()=>Ln,queryAssignedElements:()=>kn,queryAssignedNodes:()=>So,queryAsync:()=>Ep,standardProperty:()=>yl,state:()=>D});var xp=t=>(e,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};var Sp={attribute:!0,type:String,converter:_r,reflect:!1,hasChanged:go},yl=(t=Sp,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t)}}throw Error("Unsupported decorator location: "+o)};function g(t){return(e,r)=>typeof r=="object"?yl(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function D(t){return g({...t,state:!0,attribute:!1})}function li(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var at=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function G(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return at(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return at(r,o,{get(){return a(this)}})}}var Cp;function Ln(t){return(e,r)=>at(e,r,{get(){return(this.renderRoot??(Cp??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ep(t){return(e,r)=>at(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function kn(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return at(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}function So(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return at(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Nn={};V(Nn,{repeat:()=>Mt});var gt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},We=t=>(...e)=>({_$litDirective$:t,values:e}),Ye=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Op}=Rn;var vl=t=>t.strings===void 0,bl=()=>document.createComment(""),Lr=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(bl(),n),s=o.insertBefore(bl(),n);r=new Op(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;o.insertBefore(d,n),d=p}}}return r},Dt=(t,e,r=t)=>(t._$AI(e,r),t),wp={},xl=(t,e=wp)=>t._$AH=e,Sl=t=>t._$AH,ci=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let o=e.nextSibling;e.remove(),e=o}};var Cl=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},Mt=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=Sl(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,m=n.length-1,b=0,y=a.length-1;for(;h<=m&&b<=y;)if(n[h]===null)h++;else if(n[m]===null)m--;else if(l[h]===s[b])d[b]=Dt(n[h],a[b]),h++,b++;else if(l[m]===s[y])d[y]=Dt(n[m],a[y]),m--,y--;else if(l[h]===s[y])d[y]=Dt(n[h],a[y]),Lr(t,d[y+1],n[h]),h++,y--;else if(l[m]===s[b])d[b]=Dt(n[m],a[b]),Lr(t,n[h],n[m]),m--,b++;else if(p===void 0&&(p=Cl(s,b,y),f=Cl(l,h,m)),p.has(l[h]))if(p.has(l[m])){let x=f.get(s[b]),E=x!==void 0?n[x]:null;if(E===null){let A=Lr(t,n[h]);Dt(A,a[b]),d[b]=A}else d[b]=Dt(E,a[b]),Lr(t,n[h],E),n[x]=null;b++}else ci(n[m]),m--;else ci(n[h]),h++;for(;b<=y;){let x=Lr(t,d[y+1]);Dt(x,a[b]),d[b++]=x}for(;h<=m;){let x=n[h++];x!==null&&ci(x)}return this.ut=s,xl(t,d),xe}});var Dn={};V(Dn,{classMap:()=>Oe});var Oe=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return xe}});var Mn={};V(Mn,{styleMap:()=>Rp});var El="important",Ap=" !"+El,Rp=We(class extends Ye{constructor(t){if(super(t),t.type!==gt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Ap);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?El:""):r[o]=n}}return xe}});var Un={};V(Un,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>$n});var kr=class extends Ye{constructor(e){if(super(e),this.it=P,e.type!==gt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===P||e==null)return this._t=void 0,this.it=e;if(e===xe)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var $n=We(kr);var Yn={};V(Yn,{CacheRegistry:()=>yt,ClearCacheEvent:()=>Oo});var Bn={};V(Bn,{CancelablePromise:()=>di,CanceledPromiseError:()=>At,cancelable:()=>Fn});var At=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},di=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new At("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new At("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Fn=t=>new di((e,r)=>t.then(e).catch(r));var qn={};V(qn,{FtNotificationEvent:()=>Re,PostResizeEvent:()=>Zn,PreResizeEvent:()=>Kn,WithEventBus:()=>Tt,withEventBus:()=>hi});var jn={};V(jn,{applyMixinOnce:()=>ue,customElements:()=>Y,dateReviver:()=>Lp,deepCopy:()=>st,deepEqual:()=>Ge,delay:()=>ui,eventPathContainsMatchingElement:()=>Wn,everyDeep:()=>Ip,flatDeep:()=>wl,forEachDeep:()=>Al,getComposedPathTo:()=>Vn,hasChanged:()=>Rt,ignoreComposingEvents:()=>ir,last:()=>Pp,minmax:()=>or,parseDate:()=>pi,randomId:()=>Gn,someDeep:()=>Rl,unslotText:()=>fi,waitFor:()=>Eo,waitUntil:()=>zn});var Hn={};V(Hn,{customElement:()=>Co,dateProperty:()=>_p,isNumber:()=>Ol,jsonProperty:()=>Ve,numberProperty:()=>lt,optionalNumberProperty:()=>Tp});var Co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Ve(t,e){return g({type:Object,converter:{fromAttribute:r=>{if(r==null)return st(t);try{return JSON.parse(r)}catch{return st(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Rt,...e??{}})}function Tp(t){return lt(t)}function lt(t){return g({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Ol(e)?or(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Ol(t){return!isNaN(parseFloat(t))}function _p(t){return g({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var ui=t=>new Promise(e=>setTimeout(e,t));async function zn(t,e=10,r=2e4){await Eo(async()=>await t()||void 0,e,r)}async function Eo(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await ui(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function wl(t,e){return t.flatMap(r=>[r,...wl(e(r),e)])}function Al(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Rl(t,e,r){let o=!1;return Al(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function Ip(t,e,r){return!Rl(t,e,(o,n,a,s)=>!r(o,n,a,s))}function Lp(...t){return(e,r)=>t.includes(e)?pi(r):r}function pi(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function kp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ge(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ge(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ge(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ge(t,e){try{return kp(t,e)}catch{return!1}}function Rt(t,e){return!Ge(t,e)}function Wn(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function or(t,e,r){return Math.min(Math.max(t,e),r)}function Pp(t){return t[t.length-1]}function fi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>fi(e)).join(""):t?.textContent||""}function Vn(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function st(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Gn(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ue(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function ir(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function Y(t){for(let[e,r]of Object.entries(t))Co(e)(r)}var Re=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Kn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Zn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},hi=ue(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Tt=class extends hi(Object){};var Oo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},yt=class extends Tt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new Oo(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Oo([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Fn(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),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 r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ta={};V(ta,{ClusteringHelper:()=>Pr,formatHierarchicalValues:()=>ea});var Qn={};V(Qn,{accessBreadcrumb:()=>Dp,accessResult:()=>Xn,accessResultId:()=>Np,accessResultUrl:()=>Jn});function Xn(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Np(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.contentId}function Jn(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.viewerUrl}function Dp(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function ea(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var Pr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=Xn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).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(ea(l)),s.push(ea(l,r))}),{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=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,m,b)=>b.findIndex(y=>y.value===h.value)===m).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,m)=>this.compareMetadata(h.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var ra={};V(ra,{Debouncer:()=>ie});var ie=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)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 aa={};V(aa,{designSystemVariables:()=>w});var na={};V(na,{DesignSystemFamily:()=>wo,DesignSystemSize:()=>Ao,FtCssVariableFactory:()=>i,badge:()=>qp,banner:()=>Zp,button:()=>Up,card:()=>Fp,chart:()=>uf,checkbox:()=>Hp,chip:()=>Gp,chipChoice:()=>Vp,chipGroup:()=>jp,collapsible:()=>cf,combobox:()=>sf,dateRangePicker:()=>bf,drawer:()=>tf,floatingMenu:()=>af,foundation:()=>c,link:()=>Kp,modal:()=>ef,notice:()=>ff,notification:()=>mf,pageDesigner:()=>pf,pageFooter:()=>Jp,pageHeader:()=>Xp,pageLayout:()=>Qp,popover:()=>lf,radio:()=>zp,reorderableList:()=>yf,resolveFamilyClass:()=>oa,resolveSizeClass:()=>ia,semantic:()=>u,setVariable:()=>T,switch_:()=>df,table:()=>Wp,tabs:()=>rf,textArea:()=>nf,textInput:()=>of,titleBreadcrumb:()=>Yp,toggle:()=>hf,tooltip:()=>gf,treeList:()=>Bp,typographies:()=>Mp,typographyBody1Medium:()=>Pl,typographyBody1Regular:()=>kl,typographyBody1Semibold:()=>Nl,typographyBody2Medium:()=>Ml,typographyBody2MediumUnderline:()=>$l,typographyBody2Regular:()=>Dl,typographyBody2Semibold:()=>Ul,typographyCaption1Medium:()=>Fl,typographyCaption1Semibold:()=>Bl,typographyCaption2Bold:()=>Wl,typographyCaption2Medium:()=>Hl,typographyCaption2Semibold:()=>zl,typographyDisplay:()=>Tl,typographyTitle1:()=>_l,typographyTitle2:()=>Il,typographyTitle3:()=>Ll,typographyVariants:()=>$p});var $t=t=>typeof t=="string"?Xt(t):t,i=class{static create(e,r,o,n){let a=l=>$t(l??n),s=L`var(${$t(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>T(s,l??a(n)),s.get=l=>L`var(${$t(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=L`var(${$t(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>T(s,l??a(n)),s.get=l=>L`var(${$t(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=L`var(${$t(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>L`var(${$t(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function T(t,e){return $t(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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)")},Tl={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},_l={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Il={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ll={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},kl={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Pl={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Nl={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Dl={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Ml={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},$l={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Ul={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Fl={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Bl={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Hl={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},zl={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Wl={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Mp={display:Tl,"title-1":_l,"title-2":Il,"title-3":Ll,"body-1-regular":kl,"body-1-medium":Pl,"body-1-semibold":Nl,"body-2-regular":Dl,"body-2-medium":Ml,"body-2-medium-underline":$l,"body-2-semibold":Ul,"caption-1-medium":Fl,"caption-1-semibold":Bl,"caption-2-medium":Hl,"caption-2-semibold":zl,"caption-2-bold":Wl},$p=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Up={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Fp={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var Bp={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Hp={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var zp={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Wp={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Vp={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Gp={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var jp={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Kp={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)};var Zp={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var qp={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Yp={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Xp={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Jp={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Qp={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var ef={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var tf={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var rf={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var of={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var nf={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var af={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var sf={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var lf={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var cf={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var df={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var uf={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var pf={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var ff={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var hf={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)};var mf={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var gf={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var yf={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var bf={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var wo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(wo||(wo={}));var Ao;(function(t){t.large="large",t.medium="medium",t.small="small"})(Ao||(Ao={}));function oa(t){return`ftds--family-${t}`}function ia(t){return`ftds--size-${t}`}var w={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","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:i.create("--ft-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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var sa={};V(sa,{DynamicImporter:()=>mi,dynamicImporter:()=>vf});var mi=class{async import(e){if(e)return import(e)}},vf=new mi;var Ca={};V(Ca,{computeOffsetAutoPosition:()=>Sa,computeOffsetPosition:()=>xa});var Gl=["top","right","bottom","left"],Vl=["start","end"],ca=Gl.reduce((t,e)=>t.concat(e,e+"-"+Vl[0],e+"-"+Vl[1]),[]),nr=Math.min,Ue=Math.max,Ro=Math.round;var ct=t=>({x:t,y:t}),xf={left:"right",right:"left",bottom:"top",top:"bottom"};function da(t,e,r){return Ue(t,nr(e,r))}function Nr(t,e){return typeof t=="function"?t(e):t}function Ut(t){return t.split("-")[0]}function bt(t){return t.split("-")[1]}function ua(t){return t==="x"?"y":"x"}function pa(t){return t==="y"?"height":"width"}function Dr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function fa(t){return ua(Dr(t))}function jl(t,e,r){r===void 0&&(r=!1);let o=bt(t),n=fa(t),a=pa(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=la(s)),[s,la(s)]}function Kl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function la(t){let e=Ut(t);return xf[e]+t.slice(e.length)}function Sf(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zl(t){return typeof t!="number"?Sf(t):{top:t,right:t,bottom:t,left:t}}function ar(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function ql(t,e,r){let{reference:o,floating:n}=t,a=Dr(e),s=fa(e),l=pa(s),d=Ut(e),p=a==="y",f=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,m=o[l]/2-n[l]/2,b;switch(d){case"top":b={x:f,y:o.y-n.height};break;case"bottom":b={x:f,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch(bt(e)){case"start":b[s]-=m*(r&&p?-1:1);break;case"end":b[s]+=m*(r&&p?-1:1);break}return b}async function Yl(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=Nr(e,t),y=Zl(b),E=l[m?h==="floating"?"reference":"floating":h],A=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),_=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),v=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},C=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:S,strategy:d}):_);return{top:(A.top-C.top+y.top)/v.y,bottom:(C.bottom-A.bottom+y.bottom)/v.y,left:(A.left-C.left+y.left)/v.x,right:(C.right-A.right+y.right)/v.x}}var Cf=50,Xl=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Yl},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:h}=ql(p,o,d),m=o,b=0,y={};for(let x=0;x<a.length;x++){let E=a[x];if(!E)continue;let{name:A,fn:_}=E,{x:S,y:v,data:C,reset:I}=await _({x:f,y:h,initialPlacement:o,placement:m,strategy:n,middlewareData:y,rects:p,platform:l,elements:{reference:t,floating:e}});f=S??f,h=v??h,y[A]={...y[A],...C},I&&b<Cf&&(b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(p=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:f,y:h}=ql(p,m,d)),x=-1)}return{x:f,y:h,placement:m,strategy:n,middlewareData:y}};function Ef(t,e,r){return(t?[...r.filter(n=>bt(n)===t),...r.filter(n=>bt(n)!==t)]:r.filter(n=>Ut(n)===n)).filter(n=>t?bt(n)===t||(e?Kl(n)!==n:!1):!0)}var Jl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:m=ca,autoAlignment:b=!0,...y}=Nr(t,e),x=h!==void 0||m===ca?Ef(h||null,b,m):m,E=await d.detectOverflow(e,y),A=((r=s.autoPlacement)==null?void 0:r.index)||0,_=x[A];if(_==null)return{};let S=jl(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==_)return{reset:{placement:x[0]}};let v=[E[Ut(_)],E[S[0]],E[S[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:v}],I=x[A+1];if(I)return{data:{index:A+1,overflows:C},reset:{placement:I}};let B=C.map(N=>{let $=bt(N.placement);return[N.placement,$&&f?N.overflows.slice(0,2).reduce((K,ve)=>K+ve,0):N.overflows[0],N.overflows]}).sort((N,$)=>N[1]-$[1]),Z=((n=B.filter(N=>N[2].slice(0,bt(N[0])?2:3).every($=>$<=0))[0])==null?void 0:n[0])||B[0][0];return Z!==l?{data:{index:A+1,overflows:C},reset:{placement:Z}}:{}}}};var Of=new Set(["left","top"]);async function wf(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Ut(r),l=bt(r),d=Dr(r)==="y",p=Of.has(s)?-1:1,f=a&&d?-1:1,h=Nr(e,t),{mainAxis:m,crossAxis:b,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(b=l==="end"?y*-1:y),d?{x:b*f,y:m*p}:{x:m*p,y:b*f}}var Ql=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await wf(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ec=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:A=>{let{x:_,y:S}=A;return{x:_,y:S}}},...p}=Nr(t,e),f={x:r,y:o},h=await a.detectOverflow(e,p),m=Dr(Ut(n)),b=ua(m),y=f[b],x=f[m];if(s){let A=b==="y"?"top":"left",_=b==="y"?"bottom":"right",S=y+h[A],v=y-h[_];y=da(S,y,v)}if(l){let A=m==="y"?"top":"left",_=m==="y"?"bottom":"right",S=x+h[A],v=x-h[_];x=da(S,x,v)}let E=d.fn({...e,[b]:y,[m]:x});return{...E,data:{x:E.x-r,y:E.y-o,enabled:{[b]:s,[m]:l}}}}}};var tc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...p}=Nr(t,e),f=await s.detectOverflow(e,p),h=Ut(n),m=bt(n),b=Dr(n)==="y",{width:y,height:x}=a.floating,E,A;h==="top"||h==="bottom"?(E=h,A=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(A=h,E=m==="end"?"top":"bottom");let _=x-f.top-f.bottom,S=y-f.left-f.right,v=nr(x-f[E],_),C=nr(y-f[A],S),I=!e.middlewareData.shift,B=v,ge=C;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(ge=S),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(B=_),I&&!m){let N=Ue(f.left,0),$=Ue(f.right,0),K=Ue(f.top,0),ve=Ue(f.bottom,0);b?ge=y-2*(N!==0||$!==0?N+$:Ue(f.left,f.right)):B=x-2*(K!==0||ve!==0?K+ve:Ue(f.top,f.bottom))}await d({...e,availableWidth:ge,availableHeight:B});let Z=await s.getDimensions(l.floating);return y!==Z.width||x!==Z.height?{reset:{rects:!0}}:{}}}};function yi(){return typeof window<"u"}function lr(t){return oc(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(oc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function oc(t){return yi()?t instanceof Node||t instanceof Fe(t).Node:!1}function Xe(t){return yi()?t instanceof Element||t instanceof Fe(t).Element:!1}function xt(t){return yi()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function rc(t){return!yi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function Mr(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=Je(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function ic(t){return/^(table|td|th)$/.test(lr(t))}function To(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Af=/transform|translate|scale|rotate|perspective|filter/,Rf=/paint|layout|strict|content/,sr=t=>!!t&&t!=="none",ha;function $r(t){let e=Xe(t)?Je(t):t;return sr(e.transform)||sr(e.translate)||sr(e.scale)||sr(e.rotate)||sr(e.perspective)||!bi()&&(sr(e.backdropFilter)||sr(e.filter))||Af.test(e.willChange||"")||Rf.test(e.contain||"")}function nc(t){let e=_t(t);for(;xt(e)&&!cr(e);){if($r(e))return e;if(To(e))return null;e=_t(e)}return null}function bi(){return ha==null&&(ha=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ha}function cr(t){return/^(html|body|#document)$/.test(lr(t))}function Je(t){return Fe(t).getComputedStyle(t)}function _o(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _t(t){if(lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||rc(t)&&t.host||vt(t);return rc(e)?e.host:e}function ac(t){let e=_t(t);return cr(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Mr(e)?e:ac(e)}function gi(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ac(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Fe(n);if(a){let l=vi(s);return e.concat(s,s.visualViewport||[],Mr(n)?n:[],l&&r?gi(l):[])}else return e.concat(n,gi(n,[],r))}function vi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dc(t){let e=Je(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=xt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=Ro(r)!==a||Ro(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function uc(t){return Xe(t)?t:t.contextElement}function Ur(t){let e=uc(t);if(!xt(e))return ct(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=dc(e),s=(a?Ro(r.width):r.width)/o,l=(a?Ro(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Tf=ct(0);function pc(t){let e=Fe(t);return!bi()||!e.visualViewport?Tf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _f(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Fe(t)?!1:e}function Io(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=uc(t),s=ct(1);e&&(o?Xe(o)&&(s=Ur(o)):s=Ur(t));let l=_f(a,r,o)?pc(a):ct(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let m=Fe(a),b=o&&Xe(o)?Fe(o):o,y=m,x=vi(y);for(;x&&o&&b!==y;){let E=Ur(x),A=x.getBoundingClientRect(),_=Je(x),S=A.left+(x.clientLeft+parseFloat(_.paddingLeft))*E.x,v=A.top+(x.clientTop+parseFloat(_.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=S,p+=v,y=Fe(x),x=vi(y)}}return ar({width:f,height:h,x:d,y:p})}function xi(t,e){let r=_o(t).scrollLeft;return e?e.left+r:Io(vt(t)).left+r}function fc(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-xi(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function If(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=vt(o),l=e?To(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=ct(1),f=ct(0),h=xt(o);if((h||!h&&!a)&&((lr(o)!=="body"||Mr(s))&&(d=_o(o)),h)){let b=Io(o);p=Ur(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let m=s&&!h&&!a?fc(s,d):ct(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+f.x+m.x,y:r.y*p.y-d.scrollTop*p.y+f.y+m.y}}function Lf(t){return Array.from(t.getClientRects())}function kf(t){let e=vt(t),r=_o(t),o=t.ownerDocument.body,n=Ue(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Ue(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+xi(t),l=-r.scrollTop;return Je(o).direction==="rtl"&&(s+=Ue(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}var sc=25;function Pf(t,e){let r=Fe(t),o=vt(t),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=bi();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let p=xi(o);if(p<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),b=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-h.clientWidth-b);y<=sc&&(a-=y)}else p<=sc&&(a+=p);return{width:a,height:s,x:l,y:d}}function Nf(t,e){let r=Io(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=xt(t)?Ur(t):ct(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function lc(t,e,r){let o;if(e==="viewport")o=Pf(t,r);else if(e==="document")o=kf(vt(t));else if(Xe(e))o=Nf(e,r);else{let n=pc(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ar(o)}function hc(t,e){let r=_t(t);return r===e||!Xe(r)||cr(r)?!1:Je(r).position==="fixed"||hc(r,e)}function Df(t,e){let r=e.get(t);if(r)return r;let o=gi(t,[],!1).filter(l=>Xe(l)&&lr(l)!=="body"),n=null,a=Je(t).position==="fixed",s=a?_t(t):t;for(;Xe(s)&&!cr(s);){let l=Je(s),d=$r(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Mr(s)&&!d&&hc(t,s))?o=o.filter(f=>f!==s):n=l,s=_t(s)}return e.set(t,o),o}function Mf(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?To(e)?[]:Df(e,this._c):[].concat(r),o],l=lc(e,s[0],n),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let m=1;m<s.length;m++){let b=lc(e,s[m],n);d=Ue(b.top,d),p=nr(b.right,p),f=nr(b.bottom,f),h=Ue(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function $f(t){let{width:e,height:r}=dc(t);return{width:e,height:r}}function Uf(t,e,r){let o=xt(e),n=vt(e),a=r==="fixed",s=Io(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=ct(0);function p(){d.x=xi(n)}if(o||!o&&!a)if((lr(e)!=="body"||Mr(n))&&(l=_o(e)),o){let b=Io(e,!0,a,e);d.x=b.x+e.clientLeft,d.y=b.y+e.clientTop}else n&&p();a&&!o&&n&&p();let f=n&&!o&&!a?fc(n,l):ct(0),h=s.left+l.scrollLeft-d.x-f.x,m=s.top+l.scrollTop-d.y-f.y;return{x:h,y:m,width:s.width,height:s.height}}function ma(t){return Je(t).position==="static"}function cc(t,e){if(!xt(t)||Je(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function mc(t,e){let r=Fe(t);if(To(t))return r;if(!xt(t)){let n=_t(t);for(;n&&!cr(n);){if(Xe(n)&&!ma(n))return n;n=_t(n)}return r}let o=cc(t,e);for(;o&&ic(o)&&ma(o);)o=cc(o,e);return o&&cr(o)&&ma(o)&&!$r(o)?r:o||nc(t)||r}var Ff=async function(t){let e=this.getOffsetParent||mc,r=this.getDimensions,o=await r(t.floating);return{reference:Uf(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Bf(t){return Je(t).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:If,getDocumentElement:vt,getClippingRect:Mf,getOffsetParent:mc,getElementRects:Ff,getClientRects:Lf,getDimensions:$f,getScale:Ur,isElement:Xe,isRTL:Bf};var gc=Ql,ga=Jl,yc=ec;var bc=tc;var ya=(t,e,r)=>{let o=new Map,n={platform:Fr,...r},a={...n.platform,_c:o};return Xl(t,e,{...n,platform:a})};function va(t){return Hf(t)}function ba(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Hf(t){for(let e=t;e;e=ba(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ba(t);e;e=ba(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||$r(r)||e.tagName==="BODY"))return e}return null}async function xa(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},ya(t,e,{strategy:o.strategy,platform:{...Fr,getOffsetParent:n=>Fr.getOffsetParent(n,va)},middleware:[yc({crossAxis:!0}),ga({allowedPlacements:[o.placement]})]})}async function Sa(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ya(t,e,{placement:l,strategy:n,platform:{...Fr,getOffsetParent:p=>Fr.getOffsetParent(p,va)},middleware:[gc(s??4),ga({allowedPlacements:o}),bc({apply({availableHeight:p,availableWidth:f,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var Ea={};V(Ea,{isSlotEmptyOrWithoutContent:()=>zf});var zf=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var _a={};V(_a,{FtdsBase:()=>Ta,toFtdsBase:()=>wc});var Ra={};V(Ra,{ExportpartsUpdatedEvent:()=>dr,FtLitElement:()=>H});var Oa={};V(Oa,{ScopedRegistryLitElement:()=>Lo});var Lo=class extends mt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return ho(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){Co(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Aa={};V(Aa,{shadowQuerySelector:()=>wa,shadowQuerySelectorAll:()=>Wf});function wa(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Wf(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.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 o}var Br=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cc,vc=Symbol("constructorPrototype"),xc=Symbol("constructorName"),Ec=Symbol("exportpartsDebouncer"),Sc=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var H=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Cc]=new ie(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Ec].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)})},this[xc]=this.constructor.name,this[vc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xc]&&Object.setPrototypeOf(this,this[vc])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[Sc]||(r[Sc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=wa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).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)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let m of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],y=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],x=[...b,...y].filter(d).map(E=>E.trim());for(let E of x)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Cc=Ec;Br([g()],H.prototype,"exportpartsPrefix",void 0);Br([Ve([])],H.prototype,"exportpartsPrefixes",void 0);Br([g({reflect:!0})],H.prototype,"exportparts",void 0);Br([g()],H.prototype,"customStylesheet",void 0);Br([g()],H.prototype,"elementToFocus",void 0);Br([D()],H.prototype,"useAdoptedStyleSheets",void 0);var Oc=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wc=ue(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Ao.medium,this.family=wo.neutral}getDesignSystemBaseClasses(){return{[oa(this.family)]:!0,[ia(this.size)]:!0}}}return Oc([g()],e.prototype,"size",void 0),Oc([g()],e.prototype,"family",void 0),e}),Ta=class extends wc(H){};var Ac={};var ka={};V(ka,{highlightHtml:()=>La,highlightHtmlColorCssVariable:()=>Rc,highlightHtmlStyles:()=>Gf});var ur=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];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(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,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(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{r(p)&&(l++,o(f)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,f,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>d.push(b),n)}),d.push(p);d.forEach(m=>{o(m)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 ur(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`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 r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[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${o}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=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=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.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 r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>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:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-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)):o.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 r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return ur.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),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,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),m=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+m,e.nodes.forEach((b,y)=>{y>=l&&(e.nodes[y].start>0&&y!==l&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>o(d[s],h),(h,m)=>{e.lastIndex=m,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,m=>r(m,l,a.value.substring(p,f),d),m=>{o(m,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(m,b)=>this.opt.filter(b,p,o,h),m=>{h++,o++,this.opt.each(m)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=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)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=ur.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ia(t){let e=new ko(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Vf=Ia,Rc=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Gf=L`
5
5
  .highlight-html-match {
6
6
  background: ${Rc};
7
7
  }
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var Tc={};var Da={};V(Da,{ParametrizedLabelResolver:()=>No});var No=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var ns={};V(ns,{FtCommandQueue:()=>Mo,FtLitElementRedux:()=>dt,FtReduxStore:()=>Lt,FtStateManager:()=>Ho,ReduxWatcher:()=>Ai,clearAllStores:()=>Ih,isFtReduxStore:()=>Hr,redux:()=>Q,reduxEventListener:()=>Do,reduxReactive:()=>Kf,watch:()=>Lh,withRedux:()=>_c});var Kf=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Q=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:Rt,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},Do=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Mo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Hr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var $o=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),fr=Symbol("internalStores"),_c=ue(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=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[fr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[fr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[fr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[fr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[fr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[fr].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 p=this.getStore(s.store);p&&(s.store?this[Ft].has(s.store):this[Ft].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ft].set(s,l.subscribe(()=>this.updateFromStores())),this[$o].set(s,[]),Hr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[$o].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ft].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ft].has(s)&&this[Ft].get(s)(),this[Ft].delete(s),(l=this[$o].get(s))===null||l===void 0||l.forEach(d=>d()),this[$o].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ft,r=fr,o=$o,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),dt=class extends _c(H){};function Qe(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function It(t){return!!t&&!!t[ne]}function ut(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===th})(t)||Array.isArray(t)||!!t[Mc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Mc])||Va(t)||Ga(t))}function hr(t,e,r){r===void 0&&(r=!1),Vr(t)===0?(r?Object.keys:Wr)(t).forEach((function(o){r&&typeof o=="symbol"||e(o,t[o],t)})):t.forEach((function(o,n){return e(n,o,t)}))}function Vr(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Va(t)?2:Ga(t)?3:0}function zr(t,e){return Vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Zf(t,e){return Vr(t)===2?t.get(e):t[e]}function $c(t,e,r){var o=Vr(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Va(t){return Qf&&t instanceof Map}function Ga(t){return eh&&t instanceof Set}function Bt(t){return t.o||t.t}function ja(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Hc(t);delete e[ne];for(var r=Wr(e),o=0;o<r.length;o++){var n=r[o],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:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ka(t,e){return e===void 0&&(e=!1),Za(t)||It(t)||!ut(t)||(Vr(t)>1&&(t.set=t.add=t.clear=t.delete=qf),Object.freeze(t),e&&hr(t,(function(r,o){return Ka(o,!0)}),!0)),t}function qf(){Qe(2)}function Za(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function St(t){var e=Wa[t];return e||Qe(18,t),e}function Yf(t,e){Wa[t]||(Wa[t]=e)}function Ba(){return Fo}function Ma(t,e){e&&(St("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){Ha(t),t.p.forEach(Xf),t.p=null}function Ha(t){t===Fo&&(Fo=t.l)}function Ic(t){return Fo={p:[],l:Fo,h:t,m:!0,_:0}}function Xf(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function $a(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||St("ES5").S(e,t,o),o?(r[ne].P&&(Si(e),Qe(4)),ut(t)&&(t=Ci(e,t),e.l||Ei(e,t)),e.u&&St("Patches").M(r[ne].t,t,e.u,e.s)):t=Ci(e,r,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Bc?t:void 0}function Ci(t,e,r){if(Za(e))return e;var o=e[ne];if(!o)return hr(e,(function(l,d){return Lc(t,o,e,l,d,r)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ei(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=ja(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),hr(a,(function(l,d){return Lc(t,o,n,l,d,r,s)})),Ei(t,n,!1),r&&t.u&&St("Patches").N(o,r,t.u,t.s)}return o.o}function Lc(t,e,r,o,n,a,s){if(It(n)){var l=Ci(t,n,a&&e&&e.i!==3&&!zr(e.R,o)?a.concat(o):void 0);if($c(r,o,l),!It(l))return;t.m=!1}else s&&r.add(n);if(ut(n)&&!Za(n)){if(!t.h.D&&t._<1)return;Ci(t,n),e&&e.A.l||Ei(t,n)}}function Ei(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ka(e,r)}function Ua(t,e){var r=t[ne];return(r?Bt(r):t)[e]}function kc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function Fa(t){t.o||(t.o=ja(t.t))}function za(t,e,r){var o=Va(e)?St("MapSet").F(e,r):Ga(e)?St("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ba(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Bo;s&&(d=[l],p=Uo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(e,r):St("ES5").J(e,r);return(r?r.A:Ba()).p.push(o),o}function Jf(t){return It(t)||Qe(22,t),(function e(r){if(!ut(r))return r;var o,n=r[ne],a=Vr(r);if(n){if(!n.P&&(n.i<4||!St("ES5").K(n)))return n.t;n.I=!0,o=Pc(r,a),n.I=!1}else o=Pc(r,a);return hr(o,(function(s,l){n&&Zf(n.t,s)===l||$c(o,s,e(l))})),a===3?new Set(o):o})(t)}function Pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ja(t)}function Fc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[ne];return Bo.get(p,s)},set:function(p){var f=this[ne];Bo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ne];if(!d.P)switch(d.i){case 5:o(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,p=Wr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==ne){var m=l[h];if(m===void 0&&!zr(l,h))return!0;var b=d[h],y=b&&b[ne];if(y?y.t!==m:!Uc(b,m))return!0}}var S=!!l[ne];return p.length!==Wr(l).length+(S?0:1)}function o(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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Qe(3,JSON.stringify(Bt(s)))}var a={};Yf("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,m){if(h){for(var b=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(b,""+y,t(y,!0));return b}var S=Hc(m);delete S[ne];for(var E=Wr(S),A=0;A<E.length;A++){var _=E[A];S[_]=t(_,h||!!S[_].enumerable)}return Object.create(Object.getPrototypeOf(m),S)})(d,s),f={i:d?5:4,A:l?l.A:Ba(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ne,{value:f,writable:!0}),p},S:function(s,l,d){d?It(l)&&l[ne].A===s&&e(s.p):(s.u&&(function p(f){if(f&&typeof f=="object"){var h=f[ne];if(h){var m=h.t,b=h.k,y=h.R,S=h.i;if(S===4)hr(b,(function(v){v!==ne&&(m[v]!==void 0||zr(m,v)?y[v]||p(b[v]):(y[v]=!0,Ht(h)))})),hr(m,(function(v){b[v]!==void 0||zr(b,v)||(y[v]=!1,Ht(h))}));else if(S===5){if(o(h)&&(Ht(h),y.length=!0),b.length<m.length)for(var E=b.length;E<m.length;E++)y[E]=!1;else for(var A=m.length;A<b.length;A++)y[A]=!0;for(var _=Math.min(b.length,m.length),x=0;x<_;x++)b.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&p(b[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Nc,Fo,qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qf=typeof Map<"u",eh=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bc=qa?Symbol.for("immer-nothing"):((Nc={})["immer-nothing"]=!0,Nc),Mc=qa?Symbol.for("immer-draftable"):"__$immer_draftable",ne=qa?Symbol.for("immer-state"):"__$immer_state";var th=""+Object.prototype.constructor,Wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Hc=Object.getOwnPropertyDescriptors||function(t){var e={};return Wr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Wa={},Bo={get:function(t,e){if(e===ne)return t;var r=Bt(t);if(!zr(r,e))return(function(n,a,s){var l,d=kc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var o=r[e];return t.I||!ut(o)?o:o===Ua(t.t,e)?(Fa(t),t.o[e]=za(t.A.h,o,t)):o},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,r){var o=kc(Bt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=Ua(Bt(t),e),a=n?.[ne];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Uc(r,n)&&(r!==void 0||zr(t.t,e)))return!0;Fa(t),Ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fa(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Bt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Qe(12)}},Uo={};hr(Bo,(function(t,e){Uo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Uo.deleteProperty=function(t,e){return Uo.set.call(this,t,e,void 0)},Uo.set=function(t,e,r){return Bo.set.call(this,t[0],e,r,t[0])};var rh=(function(){function t(r){var o=this;this.O=Dc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(S){var E=this;S===void 0&&(S=l);for(var A=arguments.length,_=Array(A>1?A-1:0),x=1;x<A;x++)_[x-1]=arguments[x];return d.produce(S,(function(v){var C;return(C=a).call.apply(C,[E,v].concat(_))}))}}var p;if(typeof a!="function"&&Qe(6),s!==void 0&&typeof s!="function"&&Qe(7),ut(n)){var f=Ic(o),h=za(o,n,void 0),m=!0;try{p=a(h),m=!1}finally{m?Si(f):Ha(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(S){return Ma(f,s),$a(S,f)}),(function(S){throw Si(f),S})):(Ma(f,s),$a(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Bc&&(p=void 0),o.D&&Ka(p,!0),s){var b=[],y=[];St("Patches").M(n,p,b,y),s(b,y)}return p}Qe(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return o.produceWithPatches(p,(function(b){return n.apply(void 0,[b].concat(h))}))};var s,l,d=o.produce(n,a,(function(p,f){s=p,l=f}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ut(r)||Qe(8),It(r)&&(r=Jf(r));var o=Ic(this),n=za(this,r,void 0);return n[ne].C=!0,Ha(o),n},e.finishDraft=function(r,o){var n=r&&r[ne],a=n.A;return Ma(a,o),$a(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Dc&&Qe(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=St("Patches").$;return It(r)?s(r,o):this.produce(r,(function(l){return s(l,o)}))},t})(),je=new rh,oh=je.produce,Yx=je.produceWithPatches.bind(je),Xx=je.setAutoFreeze.bind(je),Jx=je.setUseProxies.bind(je),Qx=je.applyPatches.bind(je),e0=je.createDraft.bind(je),t0=je.finishDraft.bind(je),Oi=oh;function mr(t){"@babel/helpers - typeof";return mr=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},mr(t)}function zc(t,e){if(mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(mr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wc(t){var e=zc(t,"string");return mr(e)=="symbol"?e:e+""}function Vc(t,e,r){return(e=Wc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Ya(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gc(Object(r),!0).forEach(function(o){Vc(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Le(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var jc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Xa=function(){return Math.random().toString(36).substring(7).split("").join(".")},wi={INIT:"@@redux/INIT"+Xa(),REPLACE:"@@redux/REPLACE"+Xa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xa()}};function ih(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ja(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Le(1));return r(Ja)(t,e)}if(typeof t!="function")throw new Error(Le(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Le(3));return a}function h(S){if(typeof S!="function")throw new Error(Le(4));if(d)throw new Error(Le(5));var E=!0;return p(),l.push(S),function(){if(E){if(d)throw new Error(Le(6));E=!1,p();var _=l.indexOf(S);l.splice(_,1),s=null}}}function m(S){if(!ih(S))throw new Error(Le(7));if(typeof S.type>"u")throw new Error(Le(8));if(d)throw new Error(Le(9));try{d=!0,a=n(a,S)}finally{d=!1}for(var E=s=l,A=0;A<E.length;A++){var _=E[A];_()}return S}function b(S){if(typeof S!="function")throw new Error(Le(10));n=S,m({type:wi.REPLACE})}function y(){var S,E=h;return S={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(Le(11));function x(){_.next&&_.next(f())}x();var v=E(x);return{unsubscribe:v}}},S[jc]=function(){return this},S}return m({type:wi.INIT}),o={dispatch:m,subscribe:h,getState:f,replaceReducer:b},o[jc]=y,o}function nh(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:wi.INIT});if(typeof o>"u")throw new Error(Le(12));if(typeof r(void 0,{type:wi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Kc(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{nh(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},y=0;y<a.length;y++){var S=a[y],E=r[S],A=p[S],_=E(A,f);if(typeof _>"u"){var x=f&&f.type;throw new Error(Le(14))}b[S]=_,m=m||_!==A}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Gr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Zc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Le(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Gr.apply(void 0,l)(n.dispatch),Ya(Ya({},n),{},{dispatch:a})}}}function qc(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Yc=qc();Yc.withExtraArgument=qc;var Qa=Yc;var td=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),ah=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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(p){return function(f){return d([p,f])}}function d(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},sh=Object.defineProperty,lh=Object.defineProperties,ch=Object.getOwnPropertyDescriptors,Xc=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,Jc=function(t,e,r){return e in t?sh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zt=function(t,e){for(var r in e||(e={}))dh.call(e,r)&&Jc(t,r,e[r]);if(Xc)for(var o=0,n=Xc(e);o<n.length;o++){var r=n[o];uh.call(e,r)&&Jc(t,r,e[r])}return t},es=function(t,e){return lh(t,ch(e))},ph=function(t,e,r){return new Promise(function(o,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var fh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)},v0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function hh(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Wt(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}var mh=(function(t){td(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,jr([void 0],r.concat(this))))},e})(Array),gh=(function(t){td(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,jr([void 0],r.concat(this))))},e})(Array);function os(t){return ut(t)?Oi(t,function(){}):t}function yh(t){return typeof t=="boolean"}function bh(){return function(e){return vh(e)}}function vh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new mh;if(r&&(yh(r)?p.push(Qa):p.push(Qa.withExtraArgument(r.extraArgument))),0){if(n)var f;if(s)var h;if(d)var m}return p}var ts=!0;function rd(t){var e=bh(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(hh(n))b=Kc(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 y=s;if(typeof y=="function"&&(y=y(e),!ts&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ts&&y.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Zc.apply(void 0,y),E=Gr;d&&(E=fh(zt({trace:!ts},typeof d=="object"&&d)));var A=new gh(S),_=A;Array.isArray(m)?_=jr([S],m):typeof m=="function"&&(_=m(A));var x=E.apply(void 0,_);return Ja(b,f,x)}function od(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function xh(t){return typeof t=="function"}function Sh(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?od(e):[e,r,o],a=n[0],s=n[1],l=n[2],d;if(xh(t))d=function(){return os(t())};else{var p=os(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=jr([a[m.type]],s.filter(function(y){var S=y.matcher;return S(m)}).map(function(y){var S=y.reducer;return S}));return b.filter(function(y){return!!y}).length===0&&(b=[l]),b.reduce(function(y,S){if(S)if(It(y)){var E=y,A=S(E,m);return A===void 0?y:A}else{if(ut(y))return Oi(y,function(_){return S(_,m)});var A=S(y,m);if(A===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return y},h)}return f.getInitialState=d,f}function Ch(t,e){return t+"/"+e}function id(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:os(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(f){var h=o[f],m=Ch(e,f),b,y;"reducer"in h?(b=h.reducer,y=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=y?Wt(m,y):Wt(m)});function d(){var f=typeof t.extraReducers=="function"?od(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],y=b===void 0?[]:b,S=f[2],E=S===void 0?void 0:S,A=zt(zt({},m),s);return Sh(r,function(_){for(var x in A)_.addCase(x,A[x]);for(var v=0,C=y;v<C.length;v++){var I=C[v];_.addMatcher(I.matcher,I.reducer)}E&&_.addDefaultCase(E)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Eh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Eh[Math.random()*64|0];return e},wh=["name","message","stack","code"],rs=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Qc=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ah=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=wh;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},E0=(function(){function t(e,r,o){var n=Wt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:es(zt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(f,h,m){return{payload:void 0,meta:es(zt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(f,h,m,b,y){return{payload:b,error:(o&&o.serializeError||Ah)(f||"Rejected"),meta:es(zt({},y||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,b){var y=o?.idGenerator?o.idGenerator(f):Oh(),S=new d,E,A=!1;function _(v){E=v,S.abort()}var x=(function(){return ph(this,null,function(){var v,C,I,B,ge,Z,N;return ah(this,function($){switch($.label){case 0:return $.trys.push([0,4,,5]),B=(v=o?.condition)==null?void 0:v.call(o,f,{getState:m,extra:b}),Th(B)?[4,B]:[3,2];case 1:B=$.sent(),$.label=2;case 2:if(B===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,ge=new Promise(function(K,ve){return S.signal.addEventListener("abort",function(){return ve({name:"AbortError",message:E||"Aborted"})})}),h(a(y,f,(C=o?.getPendingMeta)==null?void 0:C.call(o,{requestId:y,arg:f},{getState:m,extra:b}))),[4,Promise.race([ge,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:y,signal:S.signal,abort:_,rejectWithValue:function(K,ve){return new rs(K,ve)},fulfillWithValue:function(K,ve){return new Qc(K,ve)}})).then(function(K){if(K instanceof rs)throw K;return K instanceof Qc?n(K.payload,y,f,K.meta):n(K,y,f)})])];case 3:return I=$.sent(),[3,5];case 4:return Z=$.sent(),I=Z instanceof rs?s(null,y,f,Z.payload,Z.meta):s(Z,y,f),[3,5];case 5:return N=o&&!o.dispatchConditionRejection&&s.match(I)&&I.meta.condition,N||h(I),[2,I]}})})})();return Object.assign(x,{abort:_,requestId:y,arg:f,unwrap:function(){return x.then(Rh)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Rh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Th(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nd="listener",ad="completed",sd="cancelled",O0="task-"+sd,w0="task-"+ad,A0=nd+"-"+sd,R0=nd+"-"+ad;var is="listenerMiddleware";var T0=Wt(is+"/add"),_0=Wt(is+"/removeAll"),I0=Wt(is+"/remove");var ed,L0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ed||(ed=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},_h=function(t){return function(e){setTimeout(e,t)}},k0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_h(10);Fc();window.ftReduxStores||(window.ftReduxStores={});var Lt=class t extends Tt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Hr(a))return a;if(n==null)return;let s=id({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=rd({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=st(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Mo;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,p=a[d];return p?(...f)=>{let h=p(...f.map(n));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[d]:n(f)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}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 Ih(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Hr(e)&&e.clear()}var Ai=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Rt(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Lh(t,e,r){return new Ai(t,e,r).watch()}var Ho=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ls={};V(ls,{scrollHelper:()=>kh});var as,Ri=new Map,ss=class{lock(e,r){if(r){let o=Ri.get(r);if(o==null||o===e)return Ri.set(r,e),r}}release(e,r){r&&Ri.get(r)===e&&Ri.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of Vn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=or(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(as=window.FluidTopicsScrollHelper)!==null&&as!==void 0?as:new ss;var kh=window.FluidTopicsScrollHelper;var ds={};V(ds,{SearchPlaceConverter:()=>qr,SearchPlaceQueryParams:()=>W,isSearchPlaceQueryParams:()=>jd,serializeRequest:()=>Dh});var ld;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ld||(ld={}));var cd;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(cd||(cd={}));var dd;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(dd||(dd={}));var ud;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ud||(ud={}));var pd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(pd||(pd={}));var fd;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(fd||(fd={}));var Ti;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ti||(Ti={}));var hd;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(hd||(hd={}));var md;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(md||(md={}));var gd;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(gd||(gd={}));var yd;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(yd||(yd={}));var bd;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(bd||(bd={}));var vd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vd||(vd={}));var xd;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(xd||(xd={}));var ye;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ye||(ye={}));var Sd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Sd||(Sd={}));var Kr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Kr||(Kr={}));var Cd;(function(t){t.ASC="ASC",t.DESC="DESC"})(Cd||(Cd={}));var Ed;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ed||(Ed={}));var cs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(cs||(cs={}));var Ld=t=>Object.keys(cs).includes(t);var Od;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Od||(Od={}));var wd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(wd||(wd={}));var Ad;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ad||(Ad={}));var Zr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zr||(Zr={}));var kd=t=>Object.keys(Zr).includes(t);var Rd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Rd||(Rd={}));var Td;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Td||(Td={}));var _d;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(_d||(_d={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var et;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(et||(et={}));var Id;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Id||(Id={}));var Pd;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Pd||(Pd={}));var Nd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Nd||(Nd={}));var Dd;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Dd||(Dd={}));var Md;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Md||(Md={}));var $d;(function(t){t.JSON="JSON",t.TEXT="TEXT"})($d||($d={}));var Ud;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ud||(Ud={}));var Fd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Fd||(Fd={}));var Bd;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Bd||(Bd={}));var Hd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Hd||(Hd={}));var zd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(zd||(zd={}));var Wd;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Wd||(Wd={}));var Ph={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Vd(t,e){return t===e||(Ph[t]??[]).some(r=>Vd(r,e))}function kt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>Vd(o,e))}function Nh(t){return`"${t}"`}function Gd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dh(t,e){return new qr(t).serialize(e)}var W;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(W||(W={}));var Mh=new Set(Object.values(W));function jd(t){return Mh.has(t)}var qr=class{constructor(e,r=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,f,h,m,b;let y=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&y.append(W.LOCALE,e.contentLocale):y.append(W.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&y.append(W.QUERY,e.query);let S=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(S.length>0){let v=S.map(C=>{var I,B;let ge=((B=(I=C.valueFilter)===null||I===void 0?void 0:I.values)!==null&&B!==void 0?B:[]).map(Z=>this.escapeFilters(Z)).map(Z=>Nh(Gd(Z))).join("_");return`${C.key}~${ge}`}).join("*");y.append(W.VALUE_FILTERS,v)}let E=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(E.length>0){let v=E.map(C=>{var I;return`${C.key}~${(I=C.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");y.append(W.DATE_FILTERS,v)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let v=A.map(C=>{var I,B;return`${C.key}~${(I=C.rangeFilter)===null||I===void 0?void 0:I.from}_${(B=C.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");y.append(W.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append(W.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&y.append(W.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&y.append(W.SORT,e.sortId),!((f=e.paging)===null||f===void 0)&&f.perPage&&((m=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&y.append(W.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&y.append(W.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let _=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let v in _)y.append(v,_[v]);let x=new Array;return y.forEach((v,C)=>{x.push(this.encodeQueryString(C)+"="+this.encodeQueryString(v))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(W.LOCALE)==="all"?void 0:d.get(W.LOCALE),f=((r=d.get(W.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(W.SORT))===null||o===void 0?void 0:o.toLowerCase(),m=(n=d.get(W.SCOPE))!==null&&n!==void 0?n:"default",b=+((a=d.get(W.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),y=d.get(W.KEYWORD_MATCH),S=y?y.toUpperCase()===Kr.MANDATORY?Kr.MANDATORY:Kr.OPTIONAL:void 0,E={};for(let A of d.keys())jd(A)||(E[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(W.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ld(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:or(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:S,otherQueryParams:E}}parseCompatFilters(e){var r,o,n,a,s,l;let d=[];return e.has(W.FILTERS)&&(d=this.parseValueFilters((r=e.get(W.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(W.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(W.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(W.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(W.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(W.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Gd).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Zr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replace(n,r);return e}parseLegacyPeriodFilter(e){if(kd(e))return[{key:"ft:lastEdition",dateFilter:{type:Zr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[W.LOCALE,W.FILTERS,W.VALUE_FILTERS,W.DATE_FILTERS,W.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(W.LOCALE),r!==void 0&&o.searchParams.append(W.LOCALE,r),o.toString()}};var ps={};V(ps,{toFtFormComponent:()=>gr});var us=Symbol("elementInternals"),gr=ue(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[us].form}constructor(...o){super(o),this[us]=this.attachInternals()}setFormValue(o){this[us].setFormValue(o)}}return e});var fs={};V(fs,{DateFormatter:()=>yr});var yr=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ms={};V(ms,{ALL_KEYS_VALUE:()=>hs,SameWindowStorageEvent:()=>Yr});var hs="__all__",Yr=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==hs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Yr(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Yr(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Yr(hs))}});var ys={};V(ys,{FocusMainContentEvent:()=>gs});var gs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Kd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function $h(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Uh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",$h);document.addEventListener("click",Uh);var Zd=L`
47
+ `;var Tc={};var Da={};V(Da,{ParametrizedLabelResolver:()=>No});var No=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var ns={};V(ns,{FtCommandQueue:()=>Mo,FtLitElementRedux:()=>dt,FtReduxStore:()=>Lt,FtStateManager:()=>Ho,ReduxWatcher:()=>Ai,clearAllStores:()=>Ih,isFtReduxStore:()=>Hr,redux:()=>Q,reduxEventListener:()=>Do,reduxReactive:()=>Kf,watch:()=>Lh,withRedux:()=>_c});var Kf=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Q=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:Rt,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},Do=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Mo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Hr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var $o=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),fr=Symbol("internalStores"),_c=ue(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=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[fr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[fr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[fr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[fr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[fr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[fr].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 p=this.getStore(s.store);p&&(s.store?this[Ft].has(s.store):this[Ft].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ft].set(s,l.subscribe(()=>this.updateFromStores())),this[$o].set(s,[]),Hr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||l.name===p.store)){let h=m=>this[f](m);l.addEventListener(p.eventName,h),this[$o].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ft].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ft].has(s)&&this[Ft].get(s)(),this[Ft].delete(s),(l=this[$o].get(s))===null||l===void 0||l.forEach(d=>d()),this[$o].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ft,r=fr,o=$o,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),dt=class extends _c(H){};function Qe(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function It(t){return!!t&&!!t[ne]}function ut(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===th})(t)||Array.isArray(t)||!!t[Mc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Mc])||Va(t)||Ga(t))}function hr(t,e,r){r===void 0&&(r=!1),Vr(t)===0?(r?Object.keys:Wr)(t).forEach((function(o){r&&typeof o=="symbol"||e(o,t[o],t)})):t.forEach((function(o,n){return e(n,o,t)}))}function Vr(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Va(t)?2:Ga(t)?3:0}function zr(t,e){return Vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Zf(t,e){return Vr(t)===2?t.get(e):t[e]}function $c(t,e,r){var o=Vr(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Va(t){return Qf&&t instanceof Map}function Ga(t){return eh&&t instanceof Set}function Bt(t){return t.o||t.t}function ja(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Hc(t);delete e[ne];for(var r=Wr(e),o=0;o<r.length;o++){var n=r[o],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:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ka(t,e){return e===void 0&&(e=!1),Za(t)||It(t)||!ut(t)||(Vr(t)>1&&(t.set=t.add=t.clear=t.delete=qf),Object.freeze(t),e&&hr(t,(function(r,o){return Ka(o,!0)}),!0)),t}function qf(){Qe(2)}function Za(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function St(t){var e=Wa[t];return e||Qe(18,t),e}function Yf(t,e){Wa[t]||(Wa[t]=e)}function Ba(){return Fo}function Ma(t,e){e&&(St("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){Ha(t),t.p.forEach(Xf),t.p=null}function Ha(t){t===Fo&&(Fo=t.l)}function Ic(t){return Fo={p:[],l:Fo,h:t,m:!0,_:0}}function Xf(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function $a(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||St("ES5").S(e,t,o),o?(r[ne].P&&(Si(e),Qe(4)),ut(t)&&(t=Ci(e,t),e.l||Ei(e,t)),e.u&&St("Patches").M(r[ne].t,t,e.u,e.s)):t=Ci(e,r,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Bc?t:void 0}function Ci(t,e,r){if(Za(e))return e;var o=e[ne];if(!o)return hr(e,(function(l,d){return Lc(t,o,e,l,d,r)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ei(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=ja(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),hr(a,(function(l,d){return Lc(t,o,n,l,d,r,s)})),Ei(t,n,!1),r&&t.u&&St("Patches").N(o,r,t.u,t.s)}return o.o}function Lc(t,e,r,o,n,a,s){if(It(n)){var l=Ci(t,n,a&&e&&e.i!==3&&!zr(e.R,o)?a.concat(o):void 0);if($c(r,o,l),!It(l))return;t.m=!1}else s&&r.add(n);if(ut(n)&&!Za(n)){if(!t.h.D&&t._<1)return;Ci(t,n),e&&e.A.l||Ei(t,n)}}function Ei(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ka(e,r)}function Ua(t,e){var r=t[ne];return(r?Bt(r):t)[e]}function kc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function Fa(t){t.o||(t.o=ja(t.t))}function za(t,e,r){var o=Va(e)?St("MapSet").F(e,r):Ga(e)?St("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ba(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Bo;s&&(d=[l],p=Uo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m})(e,r):St("ES5").J(e,r);return(r?r.A:Ba()).p.push(o),o}function Jf(t){return It(t)||Qe(22,t),(function e(r){if(!ut(r))return r;var o,n=r[ne],a=Vr(r);if(n){if(!n.P&&(n.i<4||!St("ES5").K(n)))return n.t;n.I=!0,o=Pc(r,a),n.I=!1}else o=Pc(r,a);return hr(o,(function(s,l){n&&Zf(n.t,s)===l||$c(o,s,e(l))})),a===3?new Set(o):o})(t)}function Pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ja(t)}function Fc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[ne];return Bo.get(p,s)},set:function(p){var f=this[ne];Bo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ne];if(!d.P)switch(d.i){case 5:o(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,p=Wr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==ne){var m=l[h];if(m===void 0&&!zr(l,h))return!0;var b=d[h],y=b&&b[ne];if(y?y.t!==m:!Uc(b,m))return!0}}var x=!!l[ne];return p.length!==Wr(l).length+(x?0:1)}function o(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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Qe(3,JSON.stringify(Bt(s)))}var a={};Yf("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,m){if(h){for(var b=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(b,""+y,t(y,!0));return b}var x=Hc(m);delete x[ne];for(var E=Wr(x),A=0;A<E.length;A++){var _=E[A];x[_]=t(_,h||!!x[_].enumerable)}return Object.create(Object.getPrototypeOf(m),x)})(d,s),f={i:d?5:4,A:l?l.A:Ba(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ne,{value:f,writable:!0}),p},S:function(s,l,d){d?It(l)&&l[ne].A===s&&e(s.p):(s.u&&(function p(f){if(f&&typeof f=="object"){var h=f[ne];if(h){var m=h.t,b=h.k,y=h.R,x=h.i;if(x===4)hr(b,(function(v){v!==ne&&(m[v]!==void 0||zr(m,v)?y[v]||p(b[v]):(y[v]=!0,Ht(h)))})),hr(m,(function(v){b[v]!==void 0||zr(b,v)||(y[v]=!1,Ht(h))}));else if(x===5){if(o(h)&&(Ht(h),y.length=!0),b.length<m.length)for(var E=b.length;E<m.length;E++)y[E]=!1;else for(var A=m.length;A<b.length;A++)y[A]=!0;for(var _=Math.min(b.length,m.length),S=0;S<_;S++)b.hasOwnProperty(S)||(y[S]=!0),y[S]===void 0&&p(b[S])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Nc,Fo,qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qf=typeof Map<"u",eh=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bc=qa?Symbol.for("immer-nothing"):((Nc={})["immer-nothing"]=!0,Nc),Mc=qa?Symbol.for("immer-draftable"):"__$immer_draftable",ne=qa?Symbol.for("immer-state"):"__$immer_state";var th=""+Object.prototype.constructor,Wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Hc=Object.getOwnPropertyDescriptors||function(t){var e={};return Wr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Wa={},Bo={get:function(t,e){if(e===ne)return t;var r=Bt(t);if(!zr(r,e))return(function(n,a,s){var l,d=kc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var o=r[e];return t.I||!ut(o)?o:o===Ua(t.t,e)?(Fa(t),t.o[e]=za(t.A.h,o,t)):o},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,r){var o=kc(Bt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=Ua(Bt(t),e),a=n?.[ne];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Uc(r,n)&&(r!==void 0||zr(t.t,e)))return!0;Fa(t),Ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fa(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Bt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Qe(12)}},Uo={};hr(Bo,(function(t,e){Uo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Uo.deleteProperty=function(t,e){return Uo.set.call(this,t,e,void 0)},Uo.set=function(t,e,r){return Bo.set.call(this,t[0],e,r,t[0])};var rh=(function(){function t(r){var o=this;this.O=Dc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(x){var E=this;x===void 0&&(x=l);for(var A=arguments.length,_=Array(A>1?A-1:0),S=1;S<A;S++)_[S-1]=arguments[S];return d.produce(x,(function(v){var C;return(C=a).call.apply(C,[E,v].concat(_))}))}}var p;if(typeof a!="function"&&Qe(6),s!==void 0&&typeof s!="function"&&Qe(7),ut(n)){var f=Ic(o),h=za(o,n,void 0),m=!0;try{p=a(h),m=!1}finally{m?Si(f):Ha(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(x){return Ma(f,s),$a(x,f)}),(function(x){throw Si(f),x})):(Ma(f,s),$a(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Bc&&(p=void 0),o.D&&Ka(p,!0),s){var b=[],y=[];St("Patches").M(n,p,b,y),s(b,y)}return p}Qe(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return o.produceWithPatches(p,(function(b){return n.apply(void 0,[b].concat(h))}))};var s,l,d=o.produce(n,a,(function(p,f){s=p,l=f}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ut(r)||Qe(8),It(r)&&(r=Jf(r));var o=Ic(this),n=za(this,r,void 0);return n[ne].C=!0,Ha(o),n},e.finishDraft=function(r,o){var n=r&&r[ne],a=n.A;return Ma(a,o),$a(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Dc&&Qe(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=St("Patches").$;return It(r)?s(r,o):this.produce(r,(function(l){return s(l,o)}))},t})(),je=new rh,oh=je.produce,Yx=je.produceWithPatches.bind(je),Xx=je.setAutoFreeze.bind(je),Jx=je.setUseProxies.bind(je),Qx=je.applyPatches.bind(je),e0=je.createDraft.bind(je),t0=je.finishDraft.bind(je),Oi=oh;function mr(t){"@babel/helpers - typeof";return mr=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},mr(t)}function zc(t,e){if(mr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(mr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wc(t){var e=zc(t,"string");return mr(e)=="symbol"?e:e+""}function Vc(t,e,r){return(e=Wc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Ya(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gc(Object(r),!0).forEach(function(o){Vc(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Le(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var jc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Xa=function(){return Math.random().toString(36).substring(7).split("").join(".")},wi={INIT:"@@redux/INIT"+Xa(),REPLACE:"@@redux/REPLACE"+Xa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xa()}};function ih(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ja(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Le(1));return r(Ja)(t,e)}if(typeof t!="function")throw new Error(Le(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Le(3));return a}function h(x){if(typeof x!="function")throw new Error(Le(4));if(d)throw new Error(Le(5));var E=!0;return p(),l.push(x),function(){if(E){if(d)throw new Error(Le(6));E=!1,p();var _=l.indexOf(x);l.splice(_,1),s=null}}}function m(x){if(!ih(x))throw new Error(Le(7));if(typeof x.type>"u")throw new Error(Le(8));if(d)throw new Error(Le(9));try{d=!0,a=n(a,x)}finally{d=!1}for(var E=s=l,A=0;A<E.length;A++){var _=E[A];_()}return x}function b(x){if(typeof x!="function")throw new Error(Le(10));n=x,m({type:wi.REPLACE})}function y(){var x,E=h;return x={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(Le(11));function S(){_.next&&_.next(f())}S();var v=E(S);return{unsubscribe:v}}},x[jc]=function(){return this},x}return m({type:wi.INIT}),o={dispatch:m,subscribe:h,getState:f,replaceReducer:b},o[jc]=y,o}function nh(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:wi.INIT});if(typeof o>"u")throw new Error(Le(12));if(typeof r(void 0,{type:wi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Kc(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{nh(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},y=0;y<a.length;y++){var x=a[y],E=r[x],A=p[x],_=E(A,f);if(typeof _>"u"){var S=f&&f.type;throw new Error(Le(14))}b[x]=_,m=m||_!==A}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Gr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Zc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Le(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Gr.apply(void 0,l)(n.dispatch),Ya(Ya({},n),{},{dispatch:a})}}}function qc(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Yc=qc();Yc.withExtraArgument=qc;var Qa=Yc;var td=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),ah=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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(p){return function(f){return d([p,f])}}function d(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},sh=Object.defineProperty,lh=Object.defineProperties,ch=Object.getOwnPropertyDescriptors,Xc=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,Jc=function(t,e,r){return e in t?sh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zt=function(t,e){for(var r in e||(e={}))dh.call(e,r)&&Jc(t,r,e[r]);if(Xc)for(var o=0,n=Xc(e);o<n.length;o++){var r=n[o];uh.call(e,r)&&Jc(t,r,e[r])}return t},es=function(t,e){return lh(t,ch(e))},ph=function(t,e,r){return new Promise(function(o,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var fh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)},v0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function hh(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Wt(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}var mh=(function(t){td(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,jr([void 0],r.concat(this))))},e})(Array),gh=(function(t){td(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,jr([void 0],r.concat(this))))},e})(Array);function os(t){return ut(t)?Oi(t,function(){}):t}function yh(t){return typeof t=="boolean"}function bh(){return function(e){return vh(e)}}function vh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new mh;if(r&&(yh(r)?p.push(Qa):p.push(Qa.withExtraArgument(r.extraArgument))),0){if(n)var f;if(s)var h;if(d)var m}return p}var ts=!0;function rd(t){var e=bh(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(hh(n))b=Kc(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 y=s;if(typeof y=="function"&&(y=y(e),!ts&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ts&&y.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Zc.apply(void 0,y),E=Gr;d&&(E=fh(zt({trace:!ts},typeof d=="object"&&d)));var A=new gh(x),_=A;Array.isArray(m)?_=jr([x],m):typeof m=="function"&&(_=m(A));var S=E.apply(void 0,_);return Ja(b,f,S)}function od(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function xh(t){return typeof t=="function"}function Sh(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?od(e):[e,r,o],a=n[0],s=n[1],l=n[2],d;if(xh(t))d=function(){return os(t())};else{var p=os(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=jr([a[m.type]],s.filter(function(y){var x=y.matcher;return x(m)}).map(function(y){var x=y.reducer;return x}));return b.filter(function(y){return!!y}).length===0&&(b=[l]),b.reduce(function(y,x){if(x)if(It(y)){var E=y,A=x(E,m);return A===void 0?y:A}else{if(ut(y))return Oi(y,function(_){return x(_,m)});var A=x(y,m);if(A===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return y},h)}return f.getInitialState=d,f}function Ch(t,e){return t+"/"+e}function id(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:os(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(f){var h=o[f],m=Ch(e,f),b,y;"reducer"in h?(b=h.reducer,y=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=y?Wt(m,y):Wt(m)});function d(){var f=typeof t.extraReducers=="function"?od(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],y=b===void 0?[]:b,x=f[2],E=x===void 0?void 0:x,A=zt(zt({},m),s);return Sh(r,function(_){for(var S in A)_.addCase(S,A[S]);for(var v=0,C=y;v<C.length;v++){var I=C[v];_.addMatcher(I.matcher,I.reducer)}E&&_.addDefaultCase(E)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Eh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Eh[Math.random()*64|0];return e},wh=["name","message","stack","code"],rs=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Qc=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ah=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=wh;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},E0=(function(){function t(e,r,o){var n=Wt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:es(zt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(f,h,m){return{payload:void 0,meta:es(zt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(f,h,m,b,y){return{payload:b,error:(o&&o.serializeError||Ah)(f||"Rejected"),meta:es(zt({},y||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,m,b){var y=o?.idGenerator?o.idGenerator(f):Oh(),x=new d,E,A=!1;function _(v){E=v,x.abort()}var S=(function(){return ph(this,null,function(){var v,C,I,B,ge,Z,N;return ah(this,function($){switch($.label){case 0:return $.trys.push([0,4,,5]),B=(v=o?.condition)==null?void 0:v.call(o,f,{getState:m,extra:b}),Th(B)?[4,B]:[3,2];case 1:B=$.sent(),$.label=2;case 2:if(B===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,ge=new Promise(function(K,ve){return x.signal.addEventListener("abort",function(){return ve({name:"AbortError",message:E||"Aborted"})})}),h(a(y,f,(C=o?.getPendingMeta)==null?void 0:C.call(o,{requestId:y,arg:f},{getState:m,extra:b}))),[4,Promise.race([ge,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:y,signal:x.signal,abort:_,rejectWithValue:function(K,ve){return new rs(K,ve)},fulfillWithValue:function(K,ve){return new Qc(K,ve)}})).then(function(K){if(K instanceof rs)throw K;return K instanceof Qc?n(K.payload,y,f,K.meta):n(K,y,f)})])];case 3:return I=$.sent(),[3,5];case 4:return Z=$.sent(),I=Z instanceof rs?s(null,y,f,Z.payload,Z.meta):s(Z,y,f),[3,5];case 5:return N=o&&!o.dispatchConditionRejection&&s.match(I)&&I.meta.condition,N||h(I),[2,I]}})})})();return Object.assign(S,{abort:_,requestId:y,arg:f,unwrap:function(){return S.then(Rh)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Rh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Th(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nd="listener",ad="completed",sd="cancelled",O0="task-"+sd,w0="task-"+ad,A0=nd+"-"+sd,R0=nd+"-"+ad;var is="listenerMiddleware";var T0=Wt(is+"/add"),_0=Wt(is+"/removeAll"),I0=Wt(is+"/remove");var ed,L0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ed||(ed=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},_h=function(t){return function(e){setTimeout(e,t)}},k0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_h(10);Fc();window.ftReduxStores||(window.ftReduxStores={});var Lt=class t extends Tt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Hr(a))return a;if(n==null)return;let s=id({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=rd({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=st(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Mo;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,p=a[d];return p?(...f)=>{let h=p(...f.map(n));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[d]:n(f)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}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 Ih(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Hr(e)&&e.clear()}var Ai=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Rt(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Lh(t,e,r){return new Ai(t,e,r).watch()}var Ho=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ls={};V(ls,{scrollHelper:()=>kh});var as,Ri=new Map,ss=class{lock(e,r){if(r){let o=Ri.get(r);if(o==null||o===e)return Ri.set(r,e),r}}release(e,r){r&&Ri.get(r)===e&&Ri.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of Vn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=or(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(as=window.FluidTopicsScrollHelper)!==null&&as!==void 0?as:new ss;var kh=window.FluidTopicsScrollHelper;var ds={};V(ds,{SearchPlaceConverter:()=>qr,SearchPlaceQueryParams:()=>W,isSearchPlaceQueryParams:()=>jd,serializeRequest:()=>Dh});var ld;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ld||(ld={}));var cd;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(cd||(cd={}));var dd;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(dd||(dd={}));var ud;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ud||(ud={}));var pd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(pd||(pd={}));var fd;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(fd||(fd={}));var Ti;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ti||(Ti={}));var hd;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(hd||(hd={}));var md;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(md||(md={}));var gd;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(gd||(gd={}));var yd;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(yd||(yd={}));var bd;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(bd||(bd={}));var vd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vd||(vd={}));var xd;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(xd||(xd={}));var ye;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ye||(ye={}));var Sd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Sd||(Sd={}));var Kr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Kr||(Kr={}));var Cd;(function(t){t.ASC="ASC",t.DESC="DESC"})(Cd||(Cd={}));var Ed;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ed||(Ed={}));var cs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(cs||(cs={}));var Ld=t=>Object.keys(cs).includes(t);var Od;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Od||(Od={}));var wd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(wd||(wd={}));var Ad;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ad||(Ad={}));var Zr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zr||(Zr={}));var kd=t=>Object.keys(Zr).includes(t);var Rd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Rd||(Rd={}));var Td;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Td||(Td={}));var _d;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(_d||(_d={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var et;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(et||(et={}));var Id;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Id||(Id={}));var Pd;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Pd||(Pd={}));var Nd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Nd||(Nd={}));var Dd;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Dd||(Dd={}));var Md;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Md||(Md={}));var $d;(function(t){t.JSON="JSON",t.TEXT="TEXT"})($d||($d={}));var Ud;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ud||(Ud={}));var Fd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Fd||(Fd={}));var Bd;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Bd||(Bd={}));var Hd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Hd||(Hd={}));var zd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(zd||(zd={}));var Wd;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Wd||(Wd={}));var Ph={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Vd(t,e){return t===e||(Ph[t]??[]).some(r=>Vd(r,e))}function kt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>Vd(o,e))}function Nh(t){return`"${t}"`}function Gd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dh(t,e){return new qr(t).serialize(e)}var W;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(W||(W={}));var Mh=new Set(Object.values(W));function jd(t){return Mh.has(t)}var qr=class{constructor(e,r=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,f,h,m,b;let y=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&y.append(W.LOCALE,e.contentLocale):y.append(W.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&y.append(W.QUERY,e.query);let x=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(x.length>0){let v=x.map(C=>{var I,B;let ge=((B=(I=C.valueFilter)===null||I===void 0?void 0:I.values)!==null&&B!==void 0?B:[]).map(Z=>this.escapeFilters(Z)).map(Z=>Nh(Gd(Z))).join("_");return`${C.key}~${ge}`}).join("*");y.append(W.VALUE_FILTERS,v)}let E=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(E.length>0){let v=E.map(C=>{var I;return`${C.key}~${(I=C.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");y.append(W.DATE_FILTERS,v)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let v=A.map(C=>{var I,B;return`${C.key}~${(I=C.rangeFilter)===null||I===void 0?void 0:I.from}_${(B=C.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");y.append(W.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append(W.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&y.append(W.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&y.append(W.SORT,e.sortId),!((f=e.paging)===null||f===void 0)&&f.perPage&&((m=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&y.append(W.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&y.append(W.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let _=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let v in _)y.append(v,_[v]);let S=new Array;return y.forEach((v,C)=>{S.push(this.encodeQueryString(C)+"="+this.encodeQueryString(v))}),encodeURI(S.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(W.LOCALE)==="all"?void 0:d.get(W.LOCALE),f=((r=d.get(W.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(W.SORT))===null||o===void 0?void 0:o.toLowerCase(),m=(n=d.get(W.SCOPE))!==null&&n!==void 0?n:"default",b=+((a=d.get(W.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),y=d.get(W.KEYWORD_MATCH),x=y?y.toUpperCase()===Kr.MANDATORY?Kr.MANDATORY:Kr.OPTIONAL:void 0,E={};for(let A of d.keys())jd(A)||(E[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(W.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ld(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:or(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:x,otherQueryParams:E}}parseCompatFilters(e){var r,o,n,a,s,l;let d=[];return e.has(W.FILTERS)&&(d=this.parseValueFilters((r=e.get(W.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(W.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(W.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(W.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(W.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(W.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Gd).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Zr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(kd(e))return[{key:"ft:lastEdition",dateFilter:{type:Zr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[W.LOCALE,W.FILTERS,W.VALUE_FILTERS,W.DATE_FILTERS,W.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(W.LOCALE),r!==void 0&&o.searchParams.append(W.LOCALE,r),o.toString()}};var ps={};V(ps,{toFtFormComponent:()=>gr});var us=Symbol("elementInternals"),gr=ue(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[us].form}constructor(...o){super(o),this[us]=this.attachInternals()}setFormValue(o){this[us].setFormValue(o)}}return e});var fs={};V(fs,{DateFormatter:()=>yr});var yr=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ms={};V(ms,{ALL_KEYS_VALUE:()=>hs,SameWindowStorageEvent:()=>Yr});var hs="__all__",Yr=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==hs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Yr(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Yr(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Yr(hs))}});var ys={};V(ys,{FocusMainContentEvent:()=>gs});var gs=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Kd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function $h(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Uh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",$h);document.addEventListener("click",Uh);var Zd=L`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -1474,7 +1474,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1474
1474
  .value=${this.icon}
1475
1475
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1476
1476
  `:P}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Ki(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Zi(e))):this.dispatchEvent(new qi(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];Sa(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};F.elementDefinitions={"ft-input-label":Ze,"ft-ripple":J,"ft-typography":pe,"ft-icon":he,"ft-text-field-suggestion":nt};F.styles=[io,Pa,ep];j([g()],F.prototype,"label",void 0);j([g({noAccessor:!0})],F.prototype,"value",null);j([D()],F.prototype,"dispatchedValue",void 0);j([g()],F.prototype,"helper",void 0);j([g()],F.prototype,"suggestionsHelper",void 0);j([g({type:Boolean})],F.prototype,"outlined",void 0);j([g({type:Boolean})],F.prototype,"disabled",void 0);j([g({type:Boolean})],F.prototype,"error",void 0);j([g({type:Boolean})],F.prototype,"fixedMenuPosition",void 0);j([g()],F.prototype,"prefix",void 0);j([g()],F.prototype,"icon",void 0);j([g()],F.prototype,"name",void 0);j([g()],F.prototype,"type",void 0);j([g()],F.prototype,"passwordHiddenIcon",void 0);j([g()],F.prototype,"passwordRevealedIcon",void 0);j([g()],F.prototype,"iconVariant",void 0);j([g({type:Boolean})],F.prototype,"filterSuggestions",void 0);j([lt()],F.prototype,"maxLength",void 0);j([g({type:Boolean})],F.prototype,"password",void 0);j([g({type:String})],F.prototype,"autocomplete",void 0);j([g({attribute:!1})],F.prototype,"suggestionsProvider",void 0);j([D()],F.prototype,"focused",void 0);j([D()],F.prototype,"inputValid",void 0);j([D()],F.prototype,"hidePassword",void 0);j([D()],F.prototype,"hideSuggestions",void 0);j([D()],F.prototype,"visibleSuggestions",void 0);j([D()],F.prototype,"providedSuggestions",void 0);j([G(".ft-text-field--main-panel")],F.prototype,"mainPanel",void 0);j([G(".ft-text-field--input")],F.prototype,"input",void 0);j([G(".ft-text-field-suggestion--new-value")],F.prototype,"newValueSuggestion",void 0);j([G(".ft-text-field--suggestions")],F.prototype,"suggestionsContainer",void 0);j([Ln("ft-text-field-suggestion")],F.prototype,"providedSuggestionsInDom",void 0);j([kn({selector:"ft-text-field-suggestion"})],F.prototype,"slottedSuggestions",void 0);j([ir()],F.prototype,"handleInput",null);j([ir()],F.prototype,"catchComposingEvents",null);var rp={"ft-text-field":F,"ft-text-field-suggestion":nt};Y(rp);var op=L`
1477
- `;var nm={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},ip=t=>Lt.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:nm});var Xs=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,o){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,r,o):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),h=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(e,r){var o,n,a,s,l,d,p,f;let h={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(s=(n=e.tocId)!==null&&n!==void 0?n:(a=e.pageToc)===null||a===void 0?void 0:a[0].tocId)!==null&&s!==void 0?s:"root",toc:((l=e.pageToc)!==null&&l!==void 0?l:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},m=(y,S)=>(S?h.topics:h.hiddenTopics).push(y),b=(p=(d=e.pageConfiguration)===null||d===void 0?void 0:d.parentsVisibility)!==null&&p!==void 0?p:[];return h.breadcrumb.forEach((y,S)=>{m(y,b[S])}),e.tocId&&m(e.tocId,e.pageConfiguration.isVisible),h.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[])),h}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Xi=class{convertPaginatedToc(e,r){return new Xs(e,r).build()}};var Ji=class extends ke{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,o){super(!1,r),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return kt((r=(e=k.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var o;return(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var o,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let o=await this.getEnrichedToc(r);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,r){let o=await this.getEnrichedToc(r);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let o=this.getTocNodeNow(e);if(!o)return;let n=await this.getTopicInfo(o);return n?.metadata.find(a=>a.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,o){return this.cache.get("topic-relatives-"+[e,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,o){let n=this.getNavigationData(e,r,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,o,n){var a,s;e=e||"root";let l=this.getEnrichedTocNow(n),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o}}async getAccurateNavigationData(e,r,o,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,o,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,o){return this.makeRateTopicRequest(e,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=k.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,o){return this.makeTopicFeedbackRequest(e,r,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let o=this.getTocNodeNow(e,r),n=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case tt.FEEDBACK:return kt(r??[],re.FEEDBACK_USER);case tt.RATING:return kt(r??[],re.RATING_USER);case tt.PRINT:return kt(r??[],re.PRINT_USER);case tt.BOOKMARK:return!!r?.sessionAuthenticated;case tt.COLLECTIONS:return kt(r??[],re.COLLECTION_USER);case tt.PERSONAL_BOOKS:return kt(r??[],re.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Qi=class t extends Ji{static async build(e){return new t(new Xi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let o=await this.api.getMap(e,r);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,r,o){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,o){return this.api.rateTopic(this.mapId,e,r,o)}makeTopicFeedbackRequest(e,r,o){return this.api.sendTopicFeedback(this.mapId,e,r,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var am="topicPivot";function np(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(am,o)}),r.href}var en=class t{static build(e,r){return new t(ip(e.trim()||"context"),r??Qi.build)}loaded(){return zn(()=>this._loaded)}constructor(e,r,o,n){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ie(10),this.analyticsEventsService=n??new Fi,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Eo(()=>this.service)}async navigateToTopic(e,r,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:r.rootTocId;return r.topics.includes(s)?s:(e!="root"&&!r.hiddenTopics.includes(s)&&this.store.dispatchEvent(new CustomEvent(Jr.requestedTopicNotFound,{detail:{tocId:s}})),(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root")}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,o,n,a,s;try{e&&this.setTranslationLoading(!0);let l=d=>{throw e&&this.setTranslationError(!0),d};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(d=>this.store.actions.map(d)).catch(l),(o=this.service)===null||o===void 0?void 0:o.getToc(e).then(d=>this.store.actions.toc(d)).catch(l),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(d=>this.store.actions.pagesToc(d)).catch(l),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(d=>this.store.actions.paginationConfiguration(d)).catch(l),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(d=>this.setTranslationError(d))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(l){this.errorHandler&&!(l instanceof At)&&this.errorHandler(l)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(o!==void 0&&o.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Jr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(e=k.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new Pr(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,n;await this.loaded();let a=await Eo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(o=(r=d?.results)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let o=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,o){return this.service.getAccurateNavigationData(e,r?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,o;let n=this.getTranslationSettings();return n?(this.sendTopicAiTranslateEvent(n.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Jr.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,n;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Pr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),s=Jn(a);if(s){let l=this.store.getState().visibleTopics[0],d=(o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativeTopicPivotMetadata;if(d&&l){let p=await((n=this.service)===null||n===void 0?void 0:n.getTopicMetadataValue(l,d));s=np(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:n,apiIntegrationAppVersion:a}=k.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!n||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(r=l.untranslatedTitle)!==null&&r!==void 0?r:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:n,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:Ti.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var o;let{editorMode:n,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=k.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(n||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let m={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(b=>{var y;return{tocId:b.tocId,title:(y=b.untranslatedTitle)!==null&&y!==void 0?y:b.title}}),document:m,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var tn=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},rn=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},on=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},nn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},an=class extends Event{constructor(){super("ft-reader-map-not-found")}},sn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},ln=class extends Event{constructor(){super("ft-reader-map-forbidden")}},cn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Js=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},Ce=class extends dt{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new ie(5),this.navigationDebouncer=new ie(10),this.mapLoadedEventDebouncer=new ie(50),this.addStore(k)}render(){return O`
1477
+ `;var nm={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},ip=t=>Lt.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:nm});var Xs=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,o){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,r,o):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),h=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(e,r){var o,n,a,s,l,d,p,f;let h={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(s=(n=e.tocId)!==null&&n!==void 0?n:(a=e.pageToc)===null||a===void 0?void 0:a[0].tocId)!==null&&s!==void 0?s:"root",toc:((l=e.pageToc)!==null&&l!==void 0?l:[]).map(x=>this.nodeByTocId[x.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},m=(x,E)=>(E?h.topics:h.hiddenTopics).push(x),b=(p=(d=e.pageConfiguration)===null||d===void 0?void 0:d.parentsVisibility)!==null&&p!==void 0?p:[];h.breadcrumb.forEach((x,E)=>{m(x,b[E])}),e.tocId&&m(e.tocId,e.pageConfiguration.isVisible),h.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let y=this.resolveOverridenRootTocIdByParentForcedByPagination(h.breadcrumb,b);return h.rootTocId=y??h.rootTocId,h}resolveOverridenRootTocIdByParentForcedByPagination(e,r){for(let o=0;o<e.length;o++)if(r[o])return e[o]}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Xi=class{convertPaginatedToc(e,r){return new Xs(e,r).build()}};var Ji=class extends ke{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,o){super(!1,r),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return kt((r=(e=k.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var o;return(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var o,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(r))===null||o===void 0?void 0:o.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let o=await this.getEnrichedToc(r);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,r){let o=await this.getEnrichedToc(r);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let o=this.getTocNodeNow(e);if(!o)return;let n=await this.getTopicInfo(o);return n?.metadata.find(a=>a.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,o){return this.cache.get("topic-relatives-"+[e,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,o){let n=this.getNavigationData(e,r,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,o,n){var a,s;e=e||"root";let l=this.getEnrichedTocNow(n),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o}}async getAccurateNavigationData(e,r,o,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,o,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,o){return this.makeRateTopicRequest(e,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=k.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,o){return this.makeTopicFeedbackRequest(e,r,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let o=this.getTocNodeNow(e,r),n=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case tt.FEEDBACK:return kt(r??[],re.FEEDBACK_USER);case tt.RATING:return kt(r??[],re.RATING_USER);case tt.PRINT:return kt(r??[],re.PRINT_USER);case tt.BOOKMARK:return!!r?.sessionAuthenticated;case tt.COLLECTIONS:return kt(r??[],re.COLLECTION_USER);case tt.PERSONAL_BOOKS:return kt(r??[],re.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Qi=class t extends Ji{static async build(e){return new t(new Xi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let o=await this.api.getMap(e,r);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,r,o){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,o){return this.api.rateTopic(this.mapId,e,r,o)}makeTopicFeedbackRequest(e,r,o){return this.api.sendTopicFeedback(this.mapId,e,r,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var am="topicPivot";function np(t,e){let r=new URL(t);return e?.values.forEach(o=>{r.searchParams.append(am,o)}),r.href}var en=class t{static build(e,r){return new t(ip(e.trim()||"context"),r??Qi.build)}loaded(){return zn(()=>this._loaded)}constructor(e,r,o,n){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ie(10),this.analyticsEventsService=n??new Fi,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Eo(()=>this.service)}async navigateToTopic(e,r,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:r.rootTocId;return r.topics.includes(s)?s:(e!="root"&&!r.hiddenTopics.includes(s)&&this.store.dispatchEvent(new CustomEvent(Jr.requestedTopicNotFound,{detail:{tocId:s}})),(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root")}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,o,n,a,s;try{e&&this.setTranslationLoading(!0);let l=d=>{throw e&&this.setTranslationError(!0),d};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(d=>this.store.actions.map(d)).catch(l),(o=this.service)===null||o===void 0?void 0:o.getToc(e).then(d=>this.store.actions.toc(d)).catch(l),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(d=>this.store.actions.pagesToc(d)).catch(l),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(d=>this.store.actions.paginationConfiguration(d)).catch(l),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(d=>this.setTranslationError(d))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(l){this.errorHandler&&!(l instanceof At)&&this.errorHandler(l)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(o!==void 0&&o.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Jr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(e=k.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new Pr(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,o,n;await this.loaded();let a=await Eo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(o=(r=d?.results)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let o=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,o){return this.service.getAccurateNavigationData(e,r?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,o;let n=this.getTranslationSettings();return n?(this.sendTopicAiTranslateEvent(n.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Jr.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,o,n;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Pr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),s=Jn(a);if(s){let l=this.store.getState().visibleTopics[0],d=(o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativeTopicPivotMetadata;if(d&&l){let p=await((n=this.service)===null||n===void 0?void 0:n.getTopicMetadataValue(l,d));s=np(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:o,apiIntegrationIdentifier:n,apiIntegrationAppVersion:a}=k.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!n||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(r=l.untranslatedTitle)!==null&&r!==void 0?r:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:n,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:Ti.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var o;let{editorMode:n,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=k.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(n||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let m={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(b=>{var y;return{tocId:b.tocId,title:(y=b.untranslatedTitle)!==null&&y!==void 0?y:b.title}}),document:m,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var tn=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},rn=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},on=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},nn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},an=class extends Event{constructor(){super("ft-reader-map-not-found")}},sn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},ln=class extends Event{constructor(){super("ft-reader-map-forbidden")}},cn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Js=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},Ce=class extends dt{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new ie(5),this.navigationDebouncer=new ie(10),this.mapLoadedEventDebouncer=new ie(50),this.addStore(k)}render(){return O`
1478
1478
  ${this.importStyleIfNeeded()}
1479
1479
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1480
1480
  `}importStyleIfNeeded(){var e,r;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?P:O`