@fluid-topics/ft-reader-content 2.2.19 → 2.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- "use strict";(()=>{var Kd=Object.defineProperty;var N=(r,e)=>{for(var t in e)Kd(r,t,{get:e[t],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=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(m,y){if(m=m.toLowerCase(),this._getDefinition(m)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${m}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=y.prototype.attributeChangedCallback,R=new Set(y.observedAttributes||[]);g(y,R,v);let T={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(m,T),this._definitionsByClass.set(y,T);let P=t.call(o,m);P||(P=h(m),e.call(o,m,P)),this===window.customElements&&(s.set(y,T),T.standInClass=P);let W=this._awaitingUpgrade.get(m);if(W){this._awaitingUpgrade.delete(m);for(let F of W)a.delete(F),x(F,T,!0)}let I=this._whenDefinedPromises.get(m);return I!==void 0&&(I.resolve(y),this._whenDefinedPromises.delete(m)),y}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(m){return this._definitionsByTag.get(m)?.elementClass}_getDefinition(m){return this._definitionsByTag.get(m)}whenDefined(m){let y=this._getDefinition(m);if(y!==void 0)return Promise.resolve(y.elementClass);let v=this._whenDefinedPromises.get(m);return v===void 0&&(v={},v.promise=new Promise(R=>v.resolve=R),this._whenDefinedPromises.set(m,v)),v.promise}_upgradeWhenDefined(m,y,v){let R=this._awaitingUpgrade.get(y);R||this._awaitingUpgrade.set(y,R=new Set),v?R.add(m):R.delete(m)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let v=s.get(this.constructor);if(!v)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(r,[],v.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,v),y},window.HTMLElement.prototype=r.prototype;let p=m=>m===document||m instanceof ShadowRoot,f=m=>{let y=m.getRootNode();if(!p(y)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;y=v.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=m=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let R=f(v)||window.customElements,T=R._getDefinition(m);return T?x(v,T):a.set(v,R),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,m,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,m,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let v=i.get(this);v&&v.formAssociated&&v?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let v=i.get(this);v?.formAssociated&&v?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let v=i.get(this);v?.formAssociated&&v?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let v=i.get(this);v?.formAssociated&&v?.formStateRestoreCallback?.apply(this,arguments)}},g=(m,y,v)=>{if(y.size===0||v===void 0)return;let R=m.prototype.setAttribute;R&&(m.prototype.setAttribute=function(W,I){let F=W.toLowerCase();if(y.has(F)){let q=this.getAttribute(F);R.call(this,F,I),v.call(this,F,q,I)}else R.call(this,F,I)});let T=m.prototype.removeAttribute;T&&(m.prototype.removeAttribute=function(W){let I=W.toLowerCase();if(y.has(I)){let F=this.getAttribute(I);T.call(this,I),v.call(this,I,F,null)}else T.call(this,I)});let P=m.prototype.toggleAttribute;P&&(m.prototype.toggleAttribute=function(W,I){let F=W.toLowerCase();if(y.has(F)){let q=this.getAttribute(F);P.call(this,F,I);let Pe=this.getAttribute(F);v.call(this,F,q,Pe)}else P.call(this,F,I)})},b=m=>{let y=Object.getPrototypeOf(m);if(y!==window.HTMLElement)return y===r?Object.setPrototypeOf(m,window.HTMLElement):b(y)},x=(m,y,v=!1)=>{Object.setPrototypeOf(m,y.elementClass.prototype),i.set(m,y),d=m;try{new y.elementClass}catch{b(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(R=>{m.hasAttribute(R)&&y.attributeChangedCallback.call(m,R,null,m.getAttribute(R))}),v&&y.connectedCallback&&m.isConnected&&y.connectedCallback.call(m)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(m){let y=C.apply(this,arguments);return m.customElements&&(y.customElements=m.customElements),y};let E=[document],O=(m,y,v=void 0)=>{let R=(v?Object.getPrototypeOf(v):m.prototype)[y];m.prototype[y]=function(){E.push(this);let T=R.apply(v||this,arguments);return T!==void 0&&l.set(T,this),E.pop(),T}};O(ShadowRoot,"createElement",document),O(ShadowRoot,"importNode",document),O(Element,"insertAdjacentHTML");let L=(m,y)=>{let v=Object.getOwnPropertyDescriptor(m.prototype,y);Object.defineProperty(m.prototype,y,{...v,set(R){E.push(this),v.set.call(this,R),E.pop()}})};if(L(Element,"innerHTML"),L(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let m=new WeakMap,y=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...W){let I=y.call(this,...W);return m.set(I,this),I},v.forEach(W=>{let I=window.ElementInternals.prototype,F=I[W];I[W]=function(...q){let Pe=m.get(this);if(i.get(Pe).formAssociated===!0)return F?.call(this,...q);throw new DOMException(`Failed to execute ${F} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class T{constructor(I){let F=new Map;I.forEach((q,Pe)=>{let _n=q.getAttribute("name"),ts=F.get(_n)||[];this[+Pe]=q,ts.push(q),F.set(_n,ts)}),this.length=I.length,F.forEach((q,Pe)=>{q&&(q.length===1?this[Pe]=q[0]:this[Pe]=new R(q))})}namedItem(I){return this[I]}}let P=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let W=P.get.call(this,[]),I=[];for(let F of W){let q=i.get(F);(!q||q.formAssociated===!0)&&I.push(F)}return new T(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},i):console.info(t,o,i,s)}}}var zn={};N(zn,{CSSResult:()=>jt,LitElement:()=>Fe,ReactiveElement:()=>xe,_$LE:()=>ms,_$LH:()=>Bn,adoptStyles:()=>xr,css:()=>_,defaultConverter:()=>Kt,getCompatibleStyle:()=>ao,html:()=>$,isServer:()=>Gh,mathml:()=>Un,noChange:()=>Z,notEqual:()=>Er,nothing:()=>D,render:()=>$n,supportsAdoptingStyleSheets:()=>br,svg:()=>Rr,unsafeCSS:()=>vr});var io=globalThis,br=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kn=Symbol(),rs=new WeakMap,jt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==kn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(br&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=rs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&rs.set(t,e))}return e}toString(){return this.cssText}},vr=r=>new jt(typeof r=="string"?r:r+"",void 0,kn),_=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,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.")})(i)+r[a+1],r[0]);return new jt(t,r,kn)},xr=(r,e)=>{if(br)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=io.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},ao=br?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return vr(t)})(r):r;var{is:qd,defineProperty:Zd,getOwnPropertyDescriptor:Qd,getOwnPropertyNames:Yd,getOwnPropertySymbols:Jd,getPrototypeOf:Xd}=Object,so=globalThis,os=so.trustedTypes,eu=os?os.emptyScript:"",tu=so.reactiveElementPolyfillSupport,Sr=(r,e)=>r,Kt={toAttribute(r,e){switch(e){case Boolean:r=r?eu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Er=(r,e)=>!qd(r,e),ns={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:Er};Symbol.metadata??=Symbol("metadata"),so.litPropertyMetadata??=new WeakMap;var xe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ns){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Zd(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Qd(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ns}static _$Ei(){if(this.hasOwnProperty(Sr("elementProperties")))return;let e=Xd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Sr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sr("properties"))){let t=this.properties,o=[...Yd(t),...Jd(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(ao(i))}else e!==void 0&&t.push(ao(e));return t}static _$Eu(e,t){let o=t.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,t=this.constructor.elementProperties;for(let o of t.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 xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Kt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kt;this._$Em=i;let l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Er)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Sr("elementProperties")]=new Map,xe[Sr("finalized")]=new Map,tu?.({ReactiveElement:xe}),(so.reactiveElementVersions??=[]).push("2.1.2");var Nn=globalThis,is=r=>r,co=Nn.trustedTypes,as=co?co.createPolicy("lit-html",{createHTML:r=>r}):void 0,Pn="$lit$",We=`lit$${Math.random().toFixed(9).slice(2)}$`,Fn="?"+We,ru=`<${Fn}>`,ft=document,wr=()=>ft.createComment(""),Or=r=>r===null||typeof r!="object"&&typeof r!="function",Mn=Array.isArray,ps=r=>Mn(r)||typeof r?.[Symbol.iterator]=="function",Ln=`[
1
+ "use strict";(()=>{var Kd=Object.defineProperty;var P=(r,e)=>{for(var t in e)Kd(r,t,{get:e[t],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=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(m,y){if(m=m.toLowerCase(),this._getDefinition(m)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${m}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=y.prototype.attributeChangedCallback,R=new Set(y.observedAttributes||[]);g(y,R,v);let T={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(m,T),this._definitionsByClass.set(y,T);let N=t.call(o,m);N||(N=h(m),e.call(o,m,N)),this===window.customElements&&(s.set(y,T),T.standInClass=N);let W=this._awaitingUpgrade.get(m);if(W){this._awaitingUpgrade.delete(m);for(let F of W)a.delete(F),x(F,T,!0)}let I=this._whenDefinedPromises.get(m);return I!==void 0&&(I.resolve(y),this._whenDefinedPromises.delete(m)),y}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(m){return this._definitionsByTag.get(m)?.elementClass}_getDefinition(m){return this._definitionsByTag.get(m)}whenDefined(m){let y=this._getDefinition(m);if(y!==void 0)return Promise.resolve(y.elementClass);let v=this._whenDefinedPromises.get(m);return v===void 0&&(v={},v.promise=new Promise(R=>v.resolve=R),this._whenDefinedPromises.set(m,v)),v.promise}_upgradeWhenDefined(m,y,v){let R=this._awaitingUpgrade.get(y);R||this._awaitingUpgrade.set(y,R=new Set),v?R.add(m):R.delete(m)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let v=s.get(this.constructor);if(!v)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(r,[],v.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,v),y},window.HTMLElement.prototype=r.prototype;let p=m=>m===document||m instanceof ShadowRoot,f=m=>{let y=m.getRootNode();if(!p(y)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;y=v.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=m=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let R=f(v)||window.customElements,T=R._getDefinition(m);return T?x(v,T):a.set(v,R),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,m,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,m,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let v=i.get(this);v&&v.formAssociated&&v?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let v=i.get(this);v?.formAssociated&&v?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let v=i.get(this);v?.formAssociated&&v?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let v=i.get(this);v?.formAssociated&&v?.formStateRestoreCallback?.apply(this,arguments)}},g=(m,y,v)=>{if(y.size===0||v===void 0)return;let R=m.prototype.setAttribute;R&&(m.prototype.setAttribute=function(W,I){let F=W.toLowerCase();if(y.has(F)){let q=this.getAttribute(F);R.call(this,F,I),v.call(this,F,q,I)}else R.call(this,F,I)});let T=m.prototype.removeAttribute;T&&(m.prototype.removeAttribute=function(W){let I=W.toLowerCase();if(y.has(I)){let F=this.getAttribute(I);T.call(this,I),v.call(this,I,F,null)}else T.call(this,I)});let N=m.prototype.toggleAttribute;N&&(m.prototype.toggleAttribute=function(W,I){let F=W.toLowerCase();if(y.has(F)){let q=this.getAttribute(F);N.call(this,F,I);let Ne=this.getAttribute(F);v.call(this,F,q,Ne)}else N.call(this,F,I)})},b=m=>{let y=Object.getPrototypeOf(m);if(y!==window.HTMLElement)return y===r?Object.setPrototypeOf(m,window.HTMLElement):b(y)},x=(m,y,v=!1)=>{Object.setPrototypeOf(m,y.elementClass.prototype),i.set(m,y),d=m;try{new y.elementClass}catch{b(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(R=>{m.hasAttribute(R)&&y.attributeChangedCallback.call(m,R,null,m.getAttribute(R))}),v&&y.connectedCallback&&m.isConnected&&y.connectedCallback.call(m)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(m){let y=C.apply(this,arguments);return m.customElements&&(y.customElements=m.customElements),y};let E=[document],O=(m,y,v=void 0)=>{let R=(v?Object.getPrototypeOf(v):m.prototype)[y];m.prototype[y]=function(){E.push(this);let T=R.apply(v||this,arguments);return T!==void 0&&l.set(T,this),E.pop(),T}};O(ShadowRoot,"createElement",document),O(ShadowRoot,"importNode",document),O(Element,"insertAdjacentHTML");let L=(m,y)=>{let v=Object.getOwnPropertyDescriptor(m.prototype,y);Object.defineProperty(m.prototype,y,{...v,set(R){E.push(this),v.set.call(this,R),E.pop()}})};if(L(Element,"innerHTML"),L(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let m=new WeakMap,y=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...W){let I=y.call(this,...W);return m.set(I,this),I},v.forEach(W=>{let I=window.ElementInternals.prototype,F=I[W];I[W]=function(...q){let Ne=m.get(this);if(i.get(Ne).formAssociated===!0)return F?.call(this,...q);throw new DOMException(`Failed to execute ${F} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class T{constructor(I){let F=new Map;I.forEach((q,Ne)=>{let _n=q.getAttribute("name"),ts=F.get(_n)||[];this[+Ne]=q,ts.push(q),F.set(_n,ts)}),this.length=I.length,F.forEach((q,Ne)=>{q&&(q.length===1?this[Ne]=q[0]:this[Ne]=new R(q))})}namedItem(I){return this[I]}}let N=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let W=N.get.call(this,[]),I=[];for(let F of W){let q=i.get(F);(!q||q.formAssociated===!0)&&I.push(F)}return new T(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},i):console.info(t,o,i,s)}}}var zn={};P(zn,{CSSResult:()=>jt,LitElement:()=>Fe,ReactiveElement:()=>xe,_$LE:()=>ms,_$LH:()=>Bn,adoptStyles:()=>xr,css:()=>_,defaultConverter:()=>Kt,getCompatibleStyle:()=>ao,html:()=>$,isServer:()=>jh,mathml:()=>Un,noChange:()=>Z,notEqual:()=>Er,nothing:()=>D,render:()=>$n,supportsAdoptingStyleSheets:()=>br,svg:()=>Rr,unsafeCSS:()=>vr});var io=globalThis,br=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kn=Symbol(),rs=new WeakMap,jt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==kn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(br&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=rs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&rs.set(t,e))}return e}toString(){return this.cssText}},vr=r=>new jt(typeof r=="string"?r:r+"",void 0,kn),_=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,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.")})(i)+r[a+1],r[0]);return new jt(t,r,kn)},xr=(r,e)=>{if(br)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=io.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},ao=br?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return vr(t)})(r):r;var{is:qd,defineProperty:Zd,getOwnPropertyDescriptor:Qd,getOwnPropertyNames:Yd,getOwnPropertySymbols:Jd,getPrototypeOf:Xd}=Object,so=globalThis,os=so.trustedTypes,eu=os?os.emptyScript:"",tu=so.reactiveElementPolyfillSupport,Sr=(r,e)=>r,Kt={toAttribute(r,e){switch(e){case Boolean:r=r?eu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Er=(r,e)=>!qd(r,e),ns={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:Er};Symbol.metadata??=Symbol("metadata"),so.litPropertyMetadata??=new WeakMap;var xe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ns){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Zd(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Qd(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ns}static _$Ei(){if(this.hasOwnProperty(Sr("elementProperties")))return;let e=Xd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Sr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sr("properties"))){let t=this.properties,o=[...Yd(t),...Jd(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(ao(i))}else e!==void 0&&t.push(ao(e));return t}static _$Eu(e,t){let o=t.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,t=this.constructor.elementProperties;for(let o of t.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 xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Kt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kt;this._$Em=i;let l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Er)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Sr("elementProperties")]=new Map,xe[Sr("finalized")]=new Map,tu?.({ReactiveElement:xe}),(so.reactiveElementVersions??=[]).push("2.1.2");var Pn=globalThis,is=r=>r,co=Pn.trustedTypes,as=co?co.createPolicy("lit-html",{createHTML:r=>r}):void 0,Nn="$lit$",We=`lit$${Math.random().toFixed(9).slice(2)}$`,Fn="?"+We,ru=`<${Fn}>`,ft=document,wr=()=>ft.createComment(""),Or=r=>r===null||typeof r!="object"&&typeof r!="function",Mn=Array.isArray,ps=r=>Mn(r)||typeof r?.[Symbol.iterator]=="function",Ln=`[
2
2
  \f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ss=/-->/g,cs=/>/g,ut=RegExp(`>|${Ln}(?:([^\\s"'>=/]+)(${Ln}*=${Ln}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ls=/'/g,ds=/"/g,fs=/^(?:script|style|textarea|title)$/i,Dn=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Dn(1),Rr=Dn(2),Un=Dn(3),Z=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),us=new WeakMap,pt=ft.createTreeWalker(ft,129);function hs(r,e){if(!Mn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return as!==void 0?as.createHTML(e):e}var gs=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Cr;for(let l=0;l<t;l++){let d=r[l],p,f,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,f=s.exec(d),f!==null);)g=s.lastIndex,s===Cr?f[1]==="!--"?s=ss:f[1]!==void 0?s=cs:f[2]!==void 0?(fs.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=ut):f[3]!==void 0&&(s=ut):s===ut?f[0]===">"?(s=i??Cr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?ut:f[3]==='"'?ds:ls):s===ds||s===ls?s=ut:s===ss||s===cs?s=Cr:(s=ut,i=void 0);let b=s===ut&&r[l+1].startsWith("/>")?" ":"";a+=s===Cr?d+ru:h>=0?(o.push(p),d.slice(0,h)+Pn+d.slice(h)+We+b):d+We+(h===-2?l:b)}return[hs(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ar=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=gs(e,t);if(this.el=r.createElement(p,o),pt.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=pt.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Pn)){let g=f[s++],b=i.getAttribute(h).split(We),x=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?uo:x[1]==="?"?po:x[1]==="@"?fo:gt}),i.removeAttribute(h)}else h.startsWith(We)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(fs.test(i.tagName)){let h=i.textContent.split(We),g=h.length-1;if(g>0){i.textContent=co?co.emptyScript:"";for(let b=0;b<g;b++)i.append(h[b],wr()),pt.nextNode(),d.push({type:2,index:++a});i.append(h[g],wr())}}}else if(i.nodeType===8)if(i.data===Fn)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(We,h+1))!==-1;)d.push({type:7,index:a}),h+=We.length-1}a++}}static createElement(e,t){let o=ft.createElement("template");return o.innerHTML=e,o}};function ht(r,e,t=r,o){if(e===Z)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Or(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ht(r,i._$AS(r,e.values),i,o)),e}var lo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??ft).importNode(t,!0);pt.currentNode=i;let a=pt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new qt(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new ho(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=pt.nextNode(),s++)}return pt.currentNode=ft,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},qt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ht(this,e,t),Or(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ps(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!==D&&Or(this._$AH)?this._$AA.nextSibling.data=e:this.T(ft.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ar.createElement(hs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new lo(i,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=us.get(e.strings);return t===void 0&&us.set(e.strings,t=new Ar(e)),t}k(e){Mn(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.O(wr()),this.O(wr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=is(e).nextSibling;is(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=ht(this,e,t,0),s=!Or(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=ht(this,l[o+d],t,d),p===Z&&(p=this._$AH[d]),s||=!Or(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},uo=class extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},po=class extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},fo=class extends gt{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=ht(this,e,t,0)??D)===Z)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&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)}},ho=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ht(this,e)}},Bn={M:Pn,P:We,A:Fn,C:1,L:gs,R:lo,D:ps,V:ht,I:qt,H:gt,N:po,U:fo,B:uo,F:ho},ou=Nn.litHtmlPolyfillSupport;ou?.(Ar,qt),(Nn.litHtmlVersions??=[]).push("3.3.3");var $n=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new qt(e.insertBefore(wr(),a),a,void 0,t??{})}return i._$AI(r),i};var Hn=globalThis,Fe=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$n(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};Fe._$litElement$=!0,Fe.finalized=!0,Hn.litElementHydrateSupport?.({LitElement:Fe});var nu=Hn.litElementPolyfillSupport;nu?.({LitElement:Fe});var ms={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Hn.litElementVersions??=[]).push("4.2.2");var Gh=!1;var Vn={};N(Vn,{customElement:()=>iu,eventOptions:()=>su,property:()=>S,query:()=>Me,queryAll:()=>lu,queryAssignedElements:()=>uu,queryAssignedNodes:()=>pu,queryAsync:()=>du,standardProperty:()=>ys,state:()=>H});var iu=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var au={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Er},ys=(r=au,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r,!0,l)}}throw Error("Unsupported decorator location: "+o)};function S(r){return(e,t)=>typeof t=="object"?ys(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function H(r){return S({...r,state:!0,attribute:!1})}function su(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Me(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ae(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Ae(t,o,{get(){return a(this)}})}}var cu;function lu(r){return(e,t)=>Ae(e,t,{get(){return(this.renderRoot??(cu??=document.createDocumentFragment())).querySelectorAll(r)}})}function du(r){return(e,t)=>Ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function uu(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function pu(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var Wn={};N(Wn,{repeat:()=>et});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...e)=>({_$litDirective$:r,values:e}),Se=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:fu}=Bn,bs=r=>r;var xs=r=>r.strings===void 0,vs=()=>document.createComment(""),Zt=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(vs(),i),s=o.insertBefore(vs(),i);t=new fu(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==i||l){let d=t._$AA;for(;d!==a;){let p=bs(d).nextSibling;bs(o).insertBefore(d,i),d=p}}}return t},Xe=(r,e,t=r)=>(r._$AI(e,t),r),hu={},Ss=(r,e=hu)=>r._$AH=e,Es=r=>r._$AH,go=r=>{r._$AR(),r._$AA.remove()};var Cs=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},et=ue(class extends Se{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let i=Es(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,g=i.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(l[h]===s[b])d[b]=Xe(i[h],a[b]),h++,b++;else if(l[g]===s[x])d[x]=Xe(i[g],a[x]),g--,x--;else if(l[h]===s[x])d[x]=Xe(i[h],a[x]),Zt(r,d[x+1],i[h]),h++,x--;else if(l[g]===s[b])d[b]=Xe(i[g],a[b]),Zt(r,i[h],i[g]),g--,b++;else if(p===void 0&&(p=Cs(s,b,x),f=Cs(l,h,g)),p.has(l[h]))if(p.has(l[g])){let C=f.get(s[b]),E=C!==void 0?i[C]:null;if(E===null){let O=Zt(r,i[h]);Xe(O,a[b]),d[b]=O}else d[b]=Xe(E,a[b]),Zt(r,i[h],E),i[C]=null;b++}else go(i[g]),g--;else go(i[h]),h++;for(;b<=x;){let C=Zt(r,d[x+1]);Xe(C,a[b]),d[b++]=C}for(;h<=g;){let C=i[h++];C!==null&&go(C)}return this.ut=s,Ss(r,d),Z}});var Gn={};N(Gn,{classMap:()=>gu});var gu=ue(class extends Se{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return Z}});var jn={};N(jn,{styleMap:()=>yu});var ws="important",mu=" !"+ws,yu=ue(class extends Se{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(mu);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?ws:""):t[o]=i}}return Z}});var qn={};N(qn,{UnsafeHTMLDirective:()=>Qt,unsafeHTML:()=>Kn});var Qt=class extends Se{constructor(e){if(super(e),this.it=D,e.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===Z)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Qt.directiveName="unsafeHTML",Qt.resultType=1;var Kn=ue(Qt);var Zn={};N(Zn,{splitBreadcrumbForMenu:()=>bu});function bu(r,e=0,t=0){if(r.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(t,1),i=r.slice(o*-1);return e+o>=r.length?{beforeMenu:[],inMenu:[],afterMenu:r}:{beforeMenu:r.slice(0,e),inMenu:r.slice(e,r.length-i.length),afterMenu:i}}var ni={};N(ni,{CacheRegistry:()=>Ue,ClearCacheEvent:()=>kr});var Qn={};N(Qn,{CancelablePromise:()=>mo,CanceledPromiseError:()=>pe,cancelable:()=>tt});var pe=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},mo=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new pe("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new pe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},tt=r=>new mo((e,t)=>r.then(e).catch(t));var oi={};N(oi,{FtNotificationEvent:()=>_r,PostResizeEvent:()=>ri,PreResizeEvent:()=>ti,WithEventBus:()=>Ge,withEventBus:()=>vo});var ei={};N(ei,{applyMixinOnce:()=>Q,customElements:()=>oe,dateReviver:()=>Eu,deepCopy:()=>fe,deepEqual:()=>re,delay:()=>bo,eventPathContainsMatchingElement:()=>wu,everyDeep:()=>Su,flatDeep:()=>As,forEachDeep:()=>Rs,getComposedPathTo:()=>Jn,groupBy:()=>Ru,hasChanged:()=>Ee,ignoreComposingEvents:()=>Au,last:()=>Ou,minmax:()=>Re,parseDate:()=>Is,randomId:()=>Xn,someDeep:()=>Ts,unslotText:()=>_s,waitFor:()=>mt,waitUntil:()=>Ir});var Yn={};N(Yn,{customElement:()=>Tr,dateProperty:()=>xu,isNumber:()=>Os,jsonProperty:()=>he,jsonPropertyConverter:()=>yo,numberProperty:()=>ie,optionalNumberProperty:()=>vu});var Tr=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)},yo=r=>({fromAttribute:e=>{if(e==null)return fe(r);try{return JSON.parse(e)}catch{return fe(r)}},toAttribute:e=>JSON.stringify(e)});function he(r,e){return S({type:Object,converter:yo(r),hasChanged:Ee,...e??{}})}function vu(r){return ie(r)}function ie(r){return S({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let i=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Os(e)?Re(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Os(r){return!isNaN(parseFloat(r))}function xu(r){return S({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var bo=r=>new Promise(e=>setTimeout(e,r));async function Ir(r,e=10,t=2e4){await mt(async()=>await r()||void 0,e,t)}async function mt(r,e=10,t=2e4){let o=await r(),i=performance.now(),a=i;for(;o==null&&(!t||a-i<t);)await bo(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function As(r,e){return r.flatMap(t=>[t,...As(e(t),e)])}function Rs(r,e,t){let o=(i,a)=>{var s;for(let l=0;l<i.length;l++){let d=i[l];if(!(((s=t(d,l,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function Ts(r,e,t){let o=!1;return Rs(r,e,(i,a,s,l)=>(o=!!t(i,a,s,l),!o)),o}function Su(r,e,t){return!Ts(r,e,(o,i,a,s)=>!t(o,i,a,s))}function Eu(...r){return(e,t)=>r.includes(e)?Is(t):t}function Is(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function Cu(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!re(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!re(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(r);if(t=a.length,t!==i(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!re(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function re(r,e){try{return Cu(r,e)}catch{return!1}}function Ee(r,e){return!re(r,e)}function wu(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Re(r,e,t){return Math.min(Math.max(r,e),t)}function Ou(r){return r[r.length-1]}function _s(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>_s(e)).join(""):r?.textContent||""}function Jn(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function fe(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Xn(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Q(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let i=e(o);return i[r]=!0,i}}function Au(){return function(r,e,t){let o=t.value;t.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function oe(r){for(let[e,t]of Object.entries(r))Tr(e)(t)}function Ru(r,e){var t,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of r)((t=a[o=i(s)])!==null&&t!==void 0?t:a[o]=[]).push(s);return a}var _r=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ti=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ri=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},vo=Q(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,i){this.eventBus.addEventListener(t,o,i)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,i){this.eventBus.removeEventListener(t,o,i)}}}),Ge=class extends vo(Object){};var kr=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ue=class extends Ge{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new kr(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new kr([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,i;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let i=async()=>t,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return t=t??i.loader,i.status="LOADING",i.promise=tt(t()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.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 t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ui={};N(ui,{ClusteringHelper:()=>Xt,formatHierarchicalValues:()=>di});var li={};N(li,{accessBreadcrumb:()=>Fu,accessResult:()=>Lr,accessResultId:()=>Pu,accessResultUrl:()=>ci,enrichReaderUrl:()=>si});var ai={};N(ai,{SearchPlaceConverter:()=>Te,SearchPlaceQueryParams:()=>k,isSearchPlaceQueryParams:()=>hc,serializeRequest:()=>Lu});var Tu=r=>typeof r=="object"&&r!=null;var Iu=r=>typeof r=="number",xo=r=>typeof r=="string",ii=r=>Tu(r)&&xo(r.endpoint)&&xo(r.method)&&xo(r.statusText)&&xo(r.body)&&Iu(r.status),ks;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ks||(ks={}));var Ls;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ls||(Ls={}));var Ns;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ns||(Ns={}));var rt;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(rt||(rt={}));var Ps;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ps||(Ps={}));var Fs;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Fs||(Fs={}));var So;(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(So||(So={}));var yt;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(yt||(yt={}));var Ms;(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Ms||(Ms={}));var Ds;(function(r){r.METADATA_FILTER="METADATA_FILTER",r.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ds||(Ds={}));var Us;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Us||(Us={}));var Bs;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(Bs||(Bs={}));var $s;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})($s||($s={}));var Hs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Hs||(Hs={}));var zs;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(zs||(zs={}));var Vs;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Ws;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Ws||(Ws={}));var ot;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(ot||(ot={}));var Gs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gs||(Gs={}));var js;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(js||(js={}));var bt;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(bt||(bt={}));var Js=r=>Object.keys(bt).includes(r);var Ks;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Ks||(Ks={}));var qs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(qs||(qs={}));var Zs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Zs||(Zs={}));var Yt;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Yt||(Yt={}));var Xs=r=>Object.keys(Yt).includes(r);var Be;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Be||(Be={}));var Jt;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jt||(Jt={}));var Qs;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qs||(Qs={}));var B;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(B||(B={}));var Ce;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var Ys;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(Ys||(Ys={}));var ec;(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ec||(ec={}));var tc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(tc||(tc={}));var rc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(rc||(rc={}));var oc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(oc||(oc={}));var nc;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(nc||(nc={}));var ic;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(ic||(ic={}));var ac;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ac||(ac={}));var sc;(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(sc||(sc={}));var cc;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(cc||(cc={}));var lc;(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(lc||(lc={}));var dc;(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(dc||(dc={}));var _u={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function uc(r,e){return r===e||(_u[r]??[]).some(t=>uc(t,e))}function we(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>uc(o,e))}function pc(r,...e){return r==null?!1:e.some(t=>we(r,t))}function ku(r){return`"${r}"`}function fc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Lu(r,e){return new Te(r).serialize(e)}var k;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.NEGATIVE_VALUE_FILTERS="negative-value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(k||(k={}));var Nu=new Set(Object.values(k));function hc(r){return Nu.has(r)}var Te=class r{constructor(e,t=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,t=!1){var o,i,a,s,l,d,p,f,h;let g=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&g.append(k.LOCALE,e.contentLocale):g.append(k.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(k.QUERY,e.query);let b=r.serializeValueFilters(e.metadataFilters);b&&g.append(k.VALUE_FILTERS,b);let x=r.serializeNegativeValueFilters(e.metadataFilters);x&&g.append(k.NEGATIVE_VALUE_FILTERS,x);let C=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(m=>m.dateFilter))!==null&&d!==void 0?d:[];if(C.length>0){let m=C.map(y=>{var v;return`${y.key}~${(v=y.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");g.append(k.DATE_FILTERS,m)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(m=>m.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let m=E.map(y=>{var v,R;return`${y.key}~${(v=y.rangeFilter)===null||v===void 0?void 0:v.from}_${(R=y.rangeFilter)===null||R===void 0?void 0:R.to}`}).join("*");g.append(k.RANGE_FILTERS,m)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(k.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(k.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(k.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&g.append(k.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(k.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let m in O)g.append(m,O[m]);let L=new Array;return g.forEach((m,y)=>{L.push(this.encodeQueryString(y)+"="+this.encodeQueryString(m))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,o,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(e),p=d.get(k.LOCALE)==="all"?void 0:d.get(k.LOCALE),f=((o=d.get(k.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),h=(t=d.get(k.SORT))===null||t===void 0?void 0:t.toLowerCase(),g=(i=d.get(k.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(k.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(k.KEYWORD_MATCH),C=x?x.toUpperCase()===ot.MANDATORY?ot.MANDATORY:ot.OPTIONAL:void 0,E={};for(let O of d.keys())hc(O)||(E[O]=d.get(O));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(k.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Js(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Re(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:C,otherQueryParams:E}}parseCompatFilters(e){var t,o,i,a,s,l,d;let p=[];return e.has(k.FILTERS)&&(p=r.parseValueFilters((t=e.get(k.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(k.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(k.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...r.parseValueFilters((a=e.get(k.VALUE_FILTERS))!==null&&a!==void 0?a:""),...r.parseValueFilters((s=e.get(k.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(k.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(k.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}static parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(fc).map(i=>this.unescapeFilterValue(i)),negative:t}}))}parseDateFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Yt[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}static escapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}static superEscapeFilters(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(i,t);return e}parseLegacyPeriodFilter(e){if(Xs(e))return[{key:"ft:lastEdition",dateFilter:{type:Yt[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var t,o;let i=((o=(t=e.valueFilter)===null||t===void 0?void 0:t.values)!==null&&o!==void 0?o:[]).map(a=>r.escapeFilters(a)).map(a=>ku(fc(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let t=new URL(e);return[k.LOCALE,k.FILTERS,k.VALUE_FILTERS,k.NEGATIVE_VALUE_FILTERS,k.DATE_FILTERS,k.RANGE_FILTERS].forEach(i=>{t.searchParams.delete(i)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(k.LOCALE),t!==void 0&&o.searchParams.append(k.LOCALE,t),o.toString()}};Te.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Lr(r){var e,t,o,i;return(i=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&i!==void 0?i:r?.htmlPackagePage}function Pu(r){var e,t,o,i,a,s,l,d,p;return(p=(d=(l=(s=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(t=r?.topic)===null||t===void 0?void 0:t.tocId)!==null&&l!==void 0?l:(o=r?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=r?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=r?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function ci(r,e){var t,o,i,a,s,l,d,p,f;return(f=(p=(d=(l=si((t=r?.map)===null||t===void 0?void 0:t.readerUrl,e))!==null&&l!==void 0?l:si((o=r?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=r?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=r?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=r?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Fu(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}function si(r,e){if(e&&r){let t=URL.parse(r),o=Te.serializeValueFilters(e);if(o&&t?.searchParams.append(k.VALUE_FILTERS,o),t)return t.toString()}return r}function di(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var Xt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,t,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let i=(o=(t=Lr(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(di(l)),s.push(di(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",i,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>r.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,b)=>b.findIndex(x=>x.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==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(t,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var pi={};N(pi,{Debouncer:()=>z});var z=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){i(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 mi={};N(mi,{designSystemVariables:()=>Eo});var gi={};N(gi,{DesignSystemFamily:()=>Nr,DesignSystemSize:()=>Pr,FtCssVariableFactory:()=>n,badge:()=>Qu,banner:()=>Zu,button:()=>Uu,card:()=>Bu,chart:()=>pp,checkbox:()=>zu,chip:()=>ju,chipChoice:()=>Gu,chipGroup:()=>Ku,collapsible:()=>dp,combobox:()=>cp,dateRangePicker:()=>bp,drawer:()=>op,eventCard:()=>$u,floatingMenu:()=>sp,foundation:()=>c,link:()=>qu,modal:()=>tp,notice:()=>hp,notification:()=>mp,pageDesigner:()=>fp,pageFooter:()=>Xu,pageHeader:()=>Ju,pageLayout:()=>ep,popover:()=>lp,radio:()=>Vu,reorderableList:()=>rp,resolveFamilyClass:()=>fi,resolveSizeClass:()=>hi,semantic:()=>u,setVariable:()=>er,switch_:()=>up,table:()=>Wu,tabs:()=>np,textArea:()=>ap,textInput:()=>ip,titleBreadcrumb:()=>Yu,toggle:()=>gp,tooltip:()=>yp,treeList:()=>Hu,typographies:()=>Mu,typographyBody1Medium:()=>xc,typographyBody1Regular:()=>vc,typographyBody1Semibold:()=>Sc,typographyBody2Medium:()=>Cc,typographyBody2MediumUnderline:()=>wc,typographyBody2Regular:()=>Ec,typographyBody2Semibold:()=>Oc,typographyCaption1Medium:()=>Ac,typographyCaption1Semibold:()=>Rc,typographyCaption2Bold:()=>_c,typographyCaption2Medium:()=>Tc,typographyCaption2Semibold:()=>Ic,typographyDisplay:()=>gc,typographyTitle1:()=>mc,typographyTitle2:()=>yc,typographyTitle3:()=>bc,typographyVariants:()=>Du});var nt=r=>typeof r=="string"?vr(r):r,n=class{static create(e,t,o,i){let a=l=>nt(l??i),s=_`var(${nt(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${nt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=_`var(${nt(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${nt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),i=_`var(${nt(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>_`var(${nt(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function er(r,e){return nt(`${r.name}: ${e}`)}var c={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},gc={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},mc={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},yc={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},bc={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},vc={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},xc={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Sc={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Ec={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Cc={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},wc={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Oc={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ac={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Rc={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Tc={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Ic={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},_c={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Mu={display:gc,"title-1":mc,"title-2":yc,"title-3":bc,"body-1-regular":vc,"body-1-medium":xc,"body-1-semibold":Sc,"body-2-regular":Ec,"body-2-medium":Cc,"body-2-medium-underline":wc,"body-2-semibold":Oc,"caption-1-medium":Ac,"caption-1-semibold":Rc,"caption-2-medium":Tc,"caption-2-semibold":Ic,"caption-2-bold":_c},Du=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Uu={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:n.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:n.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Bu={borderRadius:n.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var $u={borderRadius:n.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize4),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Hu={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var zu={iconSize:n.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Vu={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Wu={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Gu={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var ju={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var Ku={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var qu={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Zu={iconSize:n.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var Qu={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Yu={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Ju={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Xu={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var ep={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var tp={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var rp={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var op={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var np={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var ip={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var ap={backgroundColor:n.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:n.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-area-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-area-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-area-warning-helper-icon-color","",u.contentWarningIconOnly),focusFocusRingColor:n.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:n.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:n.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:n.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:n.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var sp={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var cp={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var lp={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",c.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var dp={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var up={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var pp={color1Light:n.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:n.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:n.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:n.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var fp={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var hp={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:n.extend("--ftds-notice-gap","",c.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var gp={offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",c.spacing3)};var mp={iconSize:n.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",c.spacing8)};var yp={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",c.spacing05)};var bp={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Nr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Nr||(Nr={}));var Pr;(function(r){r.large="large",r.medium="medium",r.small="small"})(Pr||(Pr={}));function fi(r){return`ftds--family-${r}`}function hi(r){return`ftds--size-${r}`}var Eo={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var yi={};N(yi,{DynamicImporter:()=>Co,dynamicImporter:()=>vp});var Co=class{async import(e){if(e)return import(e)}},vp=new Co;var Ii={};N(Ii,{computeOffsetAutoPosition:()=>Wp,computeOffsetPosition:()=>Vp});var Lc=["top","right","bottom","left"],kc=["start","end"],vi=Lc.reduce((r,e)=>r.concat(e,e+"-"+kc[0],e+"-"+kc[1]),[]),vt=Math.min,$e=Math.max,Fr=Math.round;var He=r=>({x:r,y:r}),xp={left:"right",right:"left",bottom:"top",top:"bottom"};function Nc(r,e,t){return $e(r,vt(e,t))}function tr(r,e){return typeof r=="function"?r(e):r}function xt(r){return r.split("-")[0]}function ze(r){return r.split("-")[1]}function xi(r){return r==="x"?"y":"x"}function Si(r){return r==="y"?"height":"width"}function rr(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Ei(r){return xi(rr(r))}function Pc(r,e,t){t===void 0&&(t=!1);let o=ze(r),i=Ei(r),a=Si(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=bi(s)),[s,bi(s)]}function Fc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function bi(r){let e=xt(r);return xp[e]+r.slice(e.length)}function Sp(r){var e,t,o,i;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(i=r.left)!=null?i:0}}function Mc(r){return typeof r!="number"?Sp(r):{top:r,right:r,bottom:r,left:r}}function St(r){let{x:e,y:t,width:o,height:i}=r;return{width:o,height:i,top:t,left:e,right:e+o,bottom:t+i,x:e,y:t}}function Dc(r,e,t){let{reference:o,floating:i}=r,a=rr(e),s=Ei(e),l=Si(s),d=xt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,b;switch(d){case"top":b={x:f,y:o.y-i.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-i.width,y:h};break;default:b={x:o.x,y:o.y}}let x=ze(e);return x&&(b[s]+=g*(x==="end"?1:-1)*(t&&p?-1:1)),b}async function Uc(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=tr(e,r),x=Mc(b),E=l[g?h==="floating"?"reference":"floating":h],O=St(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(E)))==null||t?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),L=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,m=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(m))&&await(a.getScale==null?void 0:a.getScale(m))||{x:1,y:1},v=St(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:L,offsetParent:m,strategy:d}):L);return{top:(O.top-v.top+x.top)/y.y,bottom:(v.bottom-O.bottom+x.bottom)/y.y,left:(O.left-v.left+x.left)/y.x,right:(v.right-O.right+x.right)/y.x}}var Ep=50,Bc=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Uc},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:f,y:h}=Dc(p,o,d),g=o,b=0,x={};for(let C=0;C<a.length;C++){let E=a[C];if(!E)continue;let{name:O,fn:L}=E,{x:m,y,data:v,reset:R}=await L({x:f,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:x,rects:p,platform:l,elements:{reference:r,floating:e}});f=m??f,h=y??h,x[O]={...x[O],...v},R&&b<Ep&&(b++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(p=R.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):R.rects),{x:f,y:h}=Dc(p,g,d)),C=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};function Cp(r,e,t){return(r?[...t.filter(i=>ze(i)===r),...t.filter(i=>ze(i)!==r)]:t.filter(i=>xt(i)===i)).filter(i=>r?ze(i)===r||(e?Fc(i)!==i:!1):!0)}var $c=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:g=vi,autoAlignment:b=!0,...x}=tr(r,e),C=h!==void 0||g===vi?Cp(h||null,b,g):g,E=((t=s.autoPlacement)==null?void 0:t.index)||0,O=C[E];if(O==null)return{};if(l!==O)return{reset:{placement:C[0]}};let L=await d.detectOverflow(e,x),m=Pc(O,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[L[xt(O)],L[m[0]],L[m[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:O,overflows:y}],R=C[E+1];if(R)return{data:{index:E+1,overflows:v},reset:{placement:R}};let T=v.map(I=>{let F=ze(I.placement);return[I.placement,F&&f?I.overflows.slice(0,2).reduce((q,Pe)=>q+Pe,0):I.overflows[0],I.overflows]}).sort((I,F)=>I[1]-F[1]),W=((i=T.filter(I=>I[2].slice(0,ze(I[0])?2:3).every(F=>F<=0))[0])==null?void 0:i[0])||T[0][0];return W!==l?{data:{index:E+1,overflows:v},reset:{placement:W}}:{}}}};var wp=new Set(["left","top"]);async function Op(r,e){let{placement:t,platform:o,elements:i}=r,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=xt(t),l=ze(t),d=rr(t)==="y",p=wp.has(s)?-1:1,f=a&&d?-1:1,h=tr(e,r),{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*f,y:g*p}:{x:g*p,y:b*f}}var Hc=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:i,y:a,placement:s,middlewareData:l}=e,d=await Op(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},zc=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:L=>{let{x:m,y}=L;return{x:m,y}}},...p}=tr(r,e),f={x:t,y:o},h=await a.detectOverflow(e,p),g=rr(i),b=xi(g),x=f[b],C=f[g],E=(L,m)=>Nc(m+h[L==="y"?"top":"left"],m,m-h[L==="y"?"bottom":"right"]);s&&(x=E(b,x)),l&&(C=E(g,C));let O=d.fn({...e,[b]:x,[g]:C});return{...O,data:{x:O.x-t,y:O.y-o,enabled:{[b]:s,[g]:l}}}}}};var Vc=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...l}=tr(r,e),d=await i.detectOverflow(e,l),p=xt(t),f=ze(t),h=rr(t)==="y",{width:g,height:b}=o.floating,x,C;p==="top"||p==="bottom"?(x=p,C=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,x=f==="end"?"top":"bottom");let E=b-d.top-d.bottom,O=g-d.left-d.right,L=vt(b-d[x],E),m=vt(g-d[C],O),y=e.middlewareData.shift,v=!y,R=L,T=m;y!=null&&y.enabled.x&&(T=O),y!=null&&y.enabled.y&&(R=E),v&&!f&&(h?T=g-2*$e(d.left,d.right):R=b-2*$e(d.top,d.bottom)),await s({...e,availableWidth:T,availableHeight:R});let P=await i.getDimensions(a.floating);return g!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}};function Oo(){return typeof window<"u"}function Ct(r){return Gc(r)?(r.nodeName||"").toLowerCase():"#document"}function de(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function je(r){var e;return(e=(Gc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Gc(r){return Oo()?r instanceof Node||r instanceof de(r).Node:!1}function Ie(r){return Oo()?r instanceof Element||r instanceof de(r).Element:!1}function Ke(r){return Oo()?r instanceof HTMLElement||r instanceof de(r).HTMLElement:!1}function Wc(r){return!Oo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof de(r).ShadowRoot}function Mr(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=_e(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&i!=="inline"&&i!=="contents"}function jc(r){return/^(table|td|th)$/.test(Ct(r))}function Dr(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}var Ap=/transform|translate|scale|rotate|perspective|filter/,Rp=/paint|layout|strict|content/,Et=r=>!!r&&r!=="none",Ci;function or(r){let e=Ie(r)?_e(r):r;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!Ao()&&(Et(e.backdropFilter)||Et(e.filter))||Ap.test(e.willChange||"")||Rp.test(e.contain||"")}function Kc(r){let e=it(r);for(;Ke(e)&&!nr(e);){if(or(e))return e;if(Dr(e))return null;e=it(e)}return null}function Ao(){return Ci==null&&(Ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ci}function nr(r){return/^(html|body|#document)$/.test(Ct(r))}function _e(r){return de(r).getComputedStyle(r)}function Ur(r){return Ie(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function it(r){if(Ct(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Wc(r)&&r.host||je(r);return Wc(e)?e.host:e}function qc(r){let e=it(r);return nr(e)?(r.ownerDocument||r).body:Ke(e)&&Mr(e)?e:qc(e)}function wo(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=qc(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=de(i);if(a){let l=Ro(s);return e.concat(s,s.visualViewport||[],Mr(i)?i:[],l&&t?wo(l):[])}else return e.concat(i,wo(i,[],t))}function Ro(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Yc(r){let e=_e(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=Ke(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=Fr(t)!==a||Fr(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Jc(r){return Ie(r)?r:r.contextElement}function ir(r){let e=Jc(r);if(!Ke(e))return He(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=Yc(e),s=(a?Fr(t.width):t.width)/o,l=(a?Fr(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Tp=He(0);function Xc(r){let e=de(r);return!Ao()||!e.visualViewport?Tp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===de(r)}function Br(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=Jc(r),s=He(1);e&&(o?Ie(o)&&(s=ir(o)):s=ir(r));let l=Ip(a,t,o)?Xc(a):He(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let g=de(a),b=Ie(o)?de(o):o,x=g,C=Ro(x);for(;C&&b!==x;){let E=ir(C),O=C.getBoundingClientRect(),L=_e(C),m=O.left+(C.clientLeft+parseFloat(L.paddingLeft))*E.x,y=O.top+(C.clientTop+parseFloat(L.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=m,p+=y,x=de(C),C=Ro(x)}}return St({width:f,height:h,x:d,y:p})}function To(r,e){let t=Ur(r).scrollLeft;return e?e.left+t:Br(je(r)).left+t}function el(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-To(r,t),i=t.top+e.scrollTop;return{x:o,y:i}}function _p(r){let{elements:e,rect:t,offsetParent:o,strategy:i}=r,a=i==="fixed",s=je(o),l=e?Dr(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},p=He(1),f=He(0),h=Ke(o);if((h||!a)&&((Ct(o)!=="body"||Mr(s))&&(d=Ur(o)),h)){let b=Br(o);p=ir(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let g=s&&!h&&!a?el(s,d):He(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+g.x,y:t.y*p.y-d.scrollTop*p.y+f.y+g.y}}function kp(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function Lp(r){let e=Ur(r),t=r.ownerDocument.body,o=$e(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),i=$e(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+To(r),s=-e.scrollTop;return _e(t).direction==="rtl"&&(a+=$e(r.clientWidth,t.clientWidth)-o),{width:o,height:i,x:a,y:s}}var Np=25;function Pp(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",i=de(r),a=je(r),s=i.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let g=!Ao()||e==="fixed";o?g||(p=-s.offsetLeft,f=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,f=s.offsetTop))}if(To(a)<=0){let g=a.ownerDocument,b=g.body,x=getComputedStyle(b),C=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(a.clientWidth-b.clientWidth-C),O=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;O<=Np&&(l-=O)}return{width:l,height:d,x:p,y:f}}function Fp(r,e){let t=Br(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ir(r),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function Zc(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=Pp(r,t,e);else if(e==="document")o=Lp(je(r));else if(Ie(e))o=Fp(e,t);else{let i=Xc(r);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return St(o)}function Mp(r,e){let t=e.get(r);if(t)return t;let o=wo(r,[],!1).filter(l=>Ie(l)&&Ct(l)!=="body"),i=null,a=_e(r).position==="fixed",s=a?it(r):r;for(;Ie(s)&&!nr(s);){let l=_e(s),d=or(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):i=l,s=it(s)}return e.set(r,o),o}function Dp(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Dr(e)?[]:Mp(e,this._c):[].concat(t),o],l=Zc(e,s[0],i),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let b=Zc(e,s[g],i);d=$e(b.top,d),p=vt(b.right,p),f=vt(b.bottom,f),h=$e(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function Up(r){let{width:e,height:t}=Yc(r);return{width:e,height:t}}function Bp(r,e,t){let o=Ke(e),i=je(e),a=t==="fixed",s=Br(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=He(0);if((o||!a)&&((Ct(e)!=="body"||Mr(i))&&(l=Ur(e)),o)){let g=Br(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&i&&(d.x=To(i));let p=i&&!o&&!a?el(i,l):He(0),f=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function wi(r){return _e(r).position==="static"}function Qc(r,e){if(!Ke(r)||_e(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return je(r)===t&&(t=t.ownerDocument.body),t}function tl(r,e){let t=de(r);if(Dr(r))return t;if(!Ke(r)){let i=it(r);for(;i&&!nr(i);){if(Ie(i)&&!wi(i))return i;i=it(i)}return t}let o=Qc(r,e);for(;o&&jc(o)&&wi(o);)o=Qc(o,e);return o&&nr(o)&&wi(o)&&!or(o)?t:o||Kc(r)||t}var $p=async function(r){let e=this.getOffsetParent||tl,t=this.getDimensions,o=await t(r.floating);return{reference:Bp(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hp(r){return _e(r).direction==="rtl"}var ar={convertOffsetParentRelativeRectToViewportRelativeRect:_p,getDocumentElement:je,getClippingRect:Dp,getOffsetParent:tl,getElementRects:$p,getClientRects:kp,getDimensions:Up,getScale:ir,isElement:Ie,isRTL:Hp};var rl=Hc,Oi=$c,ol=zc;var nl=Vc;var Ai=(r,e,t)=>{let o=new Map,i=t??{},a={...ar,...i.platform,_c:o};return Bc(r,e,{...i,platform:a})};function Ti(r){return zp(r)}function Ri(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function zp(r){for(let e=r;e;e=Ri(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ri(r);e;e=Ri(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||or(t)||e.tagName==="BODY"))return e}return null}async function Vp(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Ai(r,e,{strategy:o.strategy,platform:{...ar,getOffsetParent:i=>ar.getOffsetParent(i,Ti)},middleware:[ol({crossAxis:!0}),Oi({allowedPlacements:[o.placement]})]})}async function Wp(r,e,t,o,i,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,i=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,Ai(r,e,{placement:l,strategy:i,platform:{...ar,getOffsetParent:p=>ar.getOffsetParent(p,Ti)},middleware:[rl(s??4),Oi({allowedPlacements:o}),nl({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 _i={};N(_i,{isSlotEmptyOrWithoutContent:()=>Gp});var Gp=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Mi={};N(Mi,{FtdsBase:()=>Fi,toFtdsBase:()=>ul});var Pi={};N(Pi,{ExportpartsUpdatedEvent:()=>wt,FtLitElement:()=>Y});var ki={};N(ki,{ScopedRegistryLitElement:()=>$r});var $r=class extends Fe{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return xr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Tr(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}};var Ni={};N(Ni,{shadowQuerySelector:()=>Li,shadowQuerySelectorAll:()=>jp});function Li(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function jp(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return o}var sr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},cl,il=Symbol("constructorPrototype"),al=Symbol("constructorName"),ll=Symbol("exportpartsDebouncer"),sl=Symbol("dynamicDependenciesLoaded"),wt=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Y=class extends $r{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cl]=new z(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[ll].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[al]=this.constructor.name,this[il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[al]&&Object.setPrototypeOf(this,this[il])}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 t=this.constructor;t[sl]||(t[sl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(wt.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 wt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];t=Li(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.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((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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 t,o,i,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let g of(a=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],x=(l=(i=g.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],C=[...b,...x].filter(d).map(E=>E.trim());for(let E of C)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};cl=ll;sr([S()],Y.prototype,"exportpartsPrefix",void 0);sr([he([])],Y.prototype,"exportpartsPrefixes",void 0);sr([S({reflect:!0})],Y.prototype,"exportparts",void 0);sr([S()],Y.prototype,"customStylesheet",void 0);sr([S()],Y.prototype,"elementToFocus",void 0);sr([H()],Y.prototype,"useAdoptedStyleSheets",void 0);var dl=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ul=Q(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Pr.medium,this.family=Nr.neutral}getDesignSystemBaseClasses(){return{[fi(this.family)]:!0,[hi(this.size)]:!0}}}return dl([S()],e.prototype,"size",void 0),dl([S()],e.prototype,"family",void 0),e}),Fi=class extends ul(Y){};var pl={};var Bi={};N(Bi,{highlightHtml:()=>Ui,highlightHtmlColorCssVariable:()=>fl,highlightHtmlStyles:()=>qp});var Ot=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{t(p)&&(l++,o(f)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,f,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>d.push(b),i)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var Hr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ot(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-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:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,i=d+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return Ot.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!i(s.node))return!1;let p=t-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=f),e.nodes[x].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+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),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+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,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){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,g=>t(g,l,a.value.substring(p,f),d),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](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,t){this.opt=t;let o=0,i="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[i](f,1,(g,b)=>this.opt.filter(b,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(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 t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Ot.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Di(r){let e=new Hr(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Kp=Di,fl=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),qp=_`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ls=/'/g,ds=/"/g,fs=/^(?:script|style|textarea|title)$/i,Dn=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Dn(1),Rr=Dn(2),Un=Dn(3),Z=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),us=new WeakMap,pt=ft.createTreeWalker(ft,129);function hs(r,e){if(!Mn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return as!==void 0?as.createHTML(e):e}var gs=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Cr;for(let l=0;l<t;l++){let d=r[l],p,f,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,f=s.exec(d),f!==null);)g=s.lastIndex,s===Cr?f[1]==="!--"?s=ss:f[1]!==void 0?s=cs:f[2]!==void 0?(fs.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=ut):f[3]!==void 0&&(s=ut):s===ut?f[0]===">"?(s=i??Cr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?ut:f[3]==='"'?ds:ls):s===ds||s===ls?s=ut:s===ss||s===cs?s=Cr:(s=ut,i=void 0);let b=s===ut&&r[l+1].startsWith("/>")?" ":"";a+=s===Cr?d+ru:h>=0?(o.push(p),d.slice(0,h)+Nn+d.slice(h)+We+b):d+We+(h===-2?l:b)}return[hs(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ar=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=gs(e,t);if(this.el=r.createElement(p,o),pt.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=pt.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Nn)){let g=f[s++],b=i.getAttribute(h).split(We),x=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?uo:x[1]==="?"?po:x[1]==="@"?fo:gt}),i.removeAttribute(h)}else h.startsWith(We)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(fs.test(i.tagName)){let h=i.textContent.split(We),g=h.length-1;if(g>0){i.textContent=co?co.emptyScript:"";for(let b=0;b<g;b++)i.append(h[b],wr()),pt.nextNode(),d.push({type:2,index:++a});i.append(h[g],wr())}}}else if(i.nodeType===8)if(i.data===Fn)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(We,h+1))!==-1;)d.push({type:7,index:a}),h+=We.length-1}a++}}static createElement(e,t){let o=ft.createElement("template");return o.innerHTML=e,o}};function ht(r,e,t=r,o){if(e===Z)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Or(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ht(r,i._$AS(r,e.values),i,o)),e}var lo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??ft).importNode(t,!0);pt.currentNode=i;let a=pt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new qt(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new ho(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=pt.nextNode(),s++)}return pt.currentNode=ft,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},qt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ht(this,e,t),Or(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ps(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!==D&&Or(this._$AH)?this._$AA.nextSibling.data=e:this.T(ft.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ar.createElement(hs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new lo(i,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=us.get(e.strings);return t===void 0&&us.set(e.strings,t=new Ar(e)),t}k(e){Mn(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.O(wr()),this.O(wr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=is(e).nextSibling;is(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=ht(this,e,t,0),s=!Or(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=ht(this,l[o+d],t,d),p===Z&&(p=this._$AH[d]),s||=!Or(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},uo=class extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},po=class extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},fo=class extends gt{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=ht(this,e,t,0)??D)===Z)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&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)}},ho=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ht(this,e)}},Bn={M:Nn,P:We,A:Fn,C:1,L:gs,R:lo,D:ps,V:ht,I:qt,H:gt,N:po,U:fo,B:uo,F:ho},ou=Pn.litHtmlPolyfillSupport;ou?.(Ar,qt),(Pn.litHtmlVersions??=[]).push("3.3.3");var $n=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new qt(e.insertBefore(wr(),a),a,void 0,t??{})}return i._$AI(r),i};var Hn=globalThis,Fe=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$n(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};Fe._$litElement$=!0,Fe.finalized=!0,Hn.litElementHydrateSupport?.({LitElement:Fe});var nu=Hn.litElementPolyfillSupport;nu?.({LitElement:Fe});var ms={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Hn.litElementVersions??=[]).push("4.2.2");var jh=!1;var Vn={};P(Vn,{customElement:()=>iu,eventOptions:()=>su,property:()=>S,query:()=>Me,queryAll:()=>lu,queryAssignedElements:()=>uu,queryAssignedNodes:()=>pu,queryAsync:()=>du,standardProperty:()=>ys,state:()=>H});var iu=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var au={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Er},ys=(r=au,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r,!0,l)}}throw Error("Unsupported decorator location: "+o)};function S(r){return(e,t)=>typeof t=="object"?ys(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function H(r){return S({...r,state:!0,attribute:!1})}function su(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Me(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ae(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Ae(t,o,{get(){return a(this)}})}}var cu;function lu(r){return(e,t)=>Ae(e,t,{get(){return(this.renderRoot??(cu??=document.createDocumentFragment())).querySelectorAll(r)}})}function du(r){return(e,t)=>Ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function uu(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function pu(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var Wn={};P(Wn,{repeat:()=>et});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...e)=>({_$litDirective$:r,values:e}),Se=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:fu}=Bn,bs=r=>r;var xs=r=>r.strings===void 0,vs=()=>document.createComment(""),Zt=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(vs(),i),s=o.insertBefore(vs(),i);t=new fu(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==i||l){let d=t._$AA;for(;d!==a;){let p=bs(d).nextSibling;bs(o).insertBefore(d,i),d=p}}}return t},Xe=(r,e,t=r)=>(r._$AI(e,t),r),hu={},Ss=(r,e=hu)=>r._$AH=e,Es=r=>r._$AH,go=r=>{r._$AR(),r._$AA.remove()};var Cs=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},et=ue(class extends Se{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let i=Es(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,g=i.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(l[h]===s[b])d[b]=Xe(i[h],a[b]),h++,b++;else if(l[g]===s[x])d[x]=Xe(i[g],a[x]),g--,x--;else if(l[h]===s[x])d[x]=Xe(i[h],a[x]),Zt(r,d[x+1],i[h]),h++,x--;else if(l[g]===s[b])d[b]=Xe(i[g],a[b]),Zt(r,i[h],i[g]),g--,b++;else if(p===void 0&&(p=Cs(s,b,x),f=Cs(l,h,g)),p.has(l[h]))if(p.has(l[g])){let C=f.get(s[b]),E=C!==void 0?i[C]:null;if(E===null){let O=Zt(r,i[h]);Xe(O,a[b]),d[b]=O}else d[b]=Xe(E,a[b]),Zt(r,i[h],E),i[C]=null;b++}else go(i[g]),g--;else go(i[h]),h++;for(;b<=x;){let C=Zt(r,d[x+1]);Xe(C,a[b]),d[b++]=C}for(;h<=g;){let C=i[h++];C!==null&&go(C)}return this.ut=s,Ss(r,d),Z}});var Gn={};P(Gn,{classMap:()=>gu});var gu=ue(class extends Se{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return Z}});var jn={};P(jn,{styleMap:()=>yu});var ws="important",mu=" !"+ws,yu=ue(class extends Se{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(mu);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?ws:""):t[o]=i}}return Z}});var qn={};P(qn,{UnsafeHTMLDirective:()=>Qt,unsafeHTML:()=>Kn});var Qt=class extends Se{constructor(e){if(super(e),this.it=D,e.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===Z)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Qt.directiveName="unsafeHTML",Qt.resultType=1;var Kn=ue(Qt);var Zn={};P(Zn,{splitBreadcrumbForMenu:()=>bu});function bu(r,e=0,t=0){if(r.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(t,1),i=r.slice(o*-1);return e+o>=r.length?{beforeMenu:[],inMenu:[],afterMenu:r}:{beforeMenu:r.slice(0,e),inMenu:r.slice(e,r.length-i.length),afterMenu:i}}var ni={};P(ni,{CacheRegistry:()=>Ue,ClearCacheEvent:()=>kr});var Qn={};P(Qn,{CancelablePromise:()=>mo,CanceledPromiseError:()=>pe,cancelable:()=>tt});var pe=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},mo=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new pe("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new pe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},tt=r=>new mo((e,t)=>r.then(e).catch(t));var oi={};P(oi,{FtNotificationEvent:()=>_r,PostResizeEvent:()=>ri,PreResizeEvent:()=>ti,WithEventBus:()=>Ge,withEventBus:()=>vo});var ei={};P(ei,{applyMixinOnce:()=>Q,customElements:()=>oe,dateReviver:()=>Eu,deepCopy:()=>fe,deepEqual:()=>re,delay:()=>bo,eventPathContainsMatchingElement:()=>wu,everyDeep:()=>Su,flatDeep:()=>As,forEachDeep:()=>Rs,getComposedPathTo:()=>Jn,groupBy:()=>Ru,hasChanged:()=>Ee,ignoreComposingEvents:()=>Au,last:()=>Ou,minmax:()=>Re,parseDate:()=>Is,randomId:()=>Xn,someDeep:()=>Ts,unslotText:()=>_s,waitFor:()=>mt,waitUntil:()=>Ir});var Yn={};P(Yn,{customElement:()=>Tr,dateProperty:()=>xu,isNumber:()=>Os,jsonProperty:()=>he,jsonPropertyConverter:()=>yo,numberProperty:()=>ie,optionalNumberProperty:()=>vu});var Tr=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)},yo=r=>({fromAttribute:e=>{if(e==null)return fe(r);try{return JSON.parse(e)}catch{return fe(r)}},toAttribute:e=>JSON.stringify(e)});function he(r,e){return S({type:Object,converter:yo(r),hasChanged:Ee,...e??{}})}function vu(r){return ie(r)}function ie(r){return S({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let i=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Os(e)?Re(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Os(r){return!isNaN(parseFloat(r))}function xu(r){return S({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var bo=r=>new Promise(e=>setTimeout(e,r));async function Ir(r,e=10,t=2e4){await mt(async()=>await r()||void 0,e,t)}async function mt(r,e=10,t=2e4){let o=await r(),i=performance.now(),a=i;for(;o==null&&(!t||a-i<t);)await bo(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function As(r,e){return r.flatMap(t=>[t,...As(e(t),e)])}function Rs(r,e,t){let o=(i,a)=>{var s;for(let l=0;l<i.length;l++){let d=i[l];if(!(((s=t(d,l,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function Ts(r,e,t){let o=!1;return Rs(r,e,(i,a,s,l)=>(o=!!t(i,a,s,l),!o)),o}function Su(r,e,t){return!Ts(r,e,(o,i,a,s)=>!t(o,i,a,s))}function Eu(...r){return(e,t)=>r.includes(e)?Is(t):t}function Is(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function Cu(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!re(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!re(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(r);if(t=a.length,t!==i(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!re(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function re(r,e){try{return Cu(r,e)}catch{return!1}}function Ee(r,e){return!re(r,e)}function wu(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Re(r,e,t){return Math.min(Math.max(r,e),t)}function Ou(r){return r[r.length-1]}function _s(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>_s(e)).join(""):r?.textContent||""}function Jn(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function fe(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Xn(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Q(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let i=e(o);return i[r]=!0,i}}function Au(){return function(r,e,t){let o=t.value;t.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function oe(r){for(let[e,t]of Object.entries(r))Tr(e)(t)}function Ru(r,e){var t,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of r)((t=a[o=i(s)])!==null&&t!==void 0?t:a[o]=[]).push(s);return a}var _r=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ti=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ri=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},vo=Q(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,i){this.eventBus.addEventListener(t,o,i)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,i){this.eventBus.removeEventListener(t,o,i)}}}),Ge=class extends vo(Object){};var kr=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ue=class extends Ge{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new kr(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new kr([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,i;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let i=async()=>t,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return t=t??i.loader,i.status="LOADING",i.promise=tt(t()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.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 t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ui={};P(ui,{ClusteringHelper:()=>Xt,formatHierarchicalValues:()=>di});var li={};P(li,{accessBreadcrumb:()=>Fu,accessResult:()=>Lr,accessResultId:()=>Nu,accessResultUrl:()=>ci,enrichReaderUrl:()=>si});var ai={};P(ai,{SearchPlaceConverter:()=>Te,SearchPlaceQueryParams:()=>k,isSearchPlaceQueryParams:()=>hc,serializeRequest:()=>Lu});var Tu=r=>typeof r=="object"&&r!=null;var Iu=r=>typeof r=="number",xo=r=>typeof r=="string",ii=r=>Tu(r)&&xo(r.endpoint)&&xo(r.method)&&xo(r.statusText)&&xo(r.body)&&Iu(r.status),ks;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ks||(ks={}));var Ls;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ls||(Ls={}));var Ps;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ps||(Ps={}));var rt;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(rt||(rt={}));var Ns;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ns||(Ns={}));var Fs;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Fs||(Fs={}));var So;(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(So||(So={}));var yt;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(yt||(yt={}));var Ms;(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Ms||(Ms={}));var Ds;(function(r){r.METADATA_FILTER="METADATA_FILTER",r.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ds||(Ds={}));var Us;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Us||(Us={}));var Bs;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(Bs||(Bs={}));var $s;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})($s||($s={}));var Hs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Hs||(Hs={}));var zs;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(zs||(zs={}));var Vs;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Vs||(Vs={}));var Ws;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Ws||(Ws={}));var ot;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(ot||(ot={}));var Gs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gs||(Gs={}));var js;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(js||(js={}));var bt;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(bt||(bt={}));var Js=r=>Object.keys(bt).includes(r);var Ks;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Ks||(Ks={}));var qs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(qs||(qs={}));var Zs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Zs||(Zs={}));var Yt;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Yt||(Yt={}));var Xs=r=>Object.keys(Yt).includes(r);var Be;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Be||(Be={}));var Jt;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jt||(Jt={}));var Qs;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qs||(Qs={}));var B;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(B||(B={}));var Ce;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var Ys;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(Ys||(Ys={}));var ec;(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ec||(ec={}));var tc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(tc||(tc={}));var rc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(rc||(rc={}));var oc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(oc||(oc={}));var nc;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(nc||(nc={}));var ic;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(ic||(ic={}));var ac;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ac||(ac={}));var sc;(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(sc||(sc={}));var cc;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(cc||(cc={}));var lc;(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(lc||(lc={}));var dc;(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(dc||(dc={}));var _u={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function uc(r,e){return r===e||(_u[r]??[]).some(t=>uc(t,e))}function we(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>uc(o,e))}function pc(r,...e){return r==null?!1:e.some(t=>we(r,t))}function ku(r){return`"${r}"`}function fc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Lu(r,e){return new Te(r).serialize(e)}var k;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.NEGATIVE_VALUE_FILTERS="negative-value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(k||(k={}));var Pu=new Set(Object.values(k));function hc(r){return Pu.has(r)}var Te=class r{constructor(e,t=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,t=!1){var o,i,a,s,l,d,p,f,h;let g=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&g.append(k.LOCALE,e.contentLocale):g.append(k.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(k.QUERY,e.query);let b=r.serializeValueFilters(e.metadataFilters);b&&g.append(k.VALUE_FILTERS,b);let x=r.serializeNegativeValueFilters(e.metadataFilters);x&&g.append(k.NEGATIVE_VALUE_FILTERS,x);let C=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(m=>m.dateFilter))!==null&&d!==void 0?d:[];if(C.length>0){let m=C.map(y=>{var v;return`${y.key}~${(v=y.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");g.append(k.DATE_FILTERS,m)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(m=>m.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let m=E.map(y=>{var v,R;return`${y.key}~${(v=y.rangeFilter)===null||v===void 0?void 0:v.from}_${(R=y.rangeFilter)===null||R===void 0?void 0:R.to}`}).join("*");g.append(k.RANGE_FILTERS,m)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(k.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(k.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(k.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&g.append(k.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(k.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let m in O)g.append(m,O[m]);let L=new Array;return g.forEach((m,y)=>{L.push(this.encodeQueryString(y)+"="+this.encodeQueryString(m))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,o,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(O){console.warn("Could not decode search request query params, fallback on raw value",O)}let d=new URLSearchParams(e),p=d.get(k.LOCALE)==="all"?void 0:d.get(k.LOCALE),f=((o=d.get(k.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),h=(t=d.get(k.SORT))===null||t===void 0?void 0:t.toLowerCase(),g=(i=d.get(k.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(k.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(k.KEYWORD_MATCH),C=x?x.toUpperCase()===ot.MANDATORY?ot.MANDATORY:ot.OPTIONAL:void 0,E={};for(let O of d.keys())hc(O)||(E[O]=d.get(O));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(k.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Js(f)?f:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Re(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:C,otherQueryParams:E}}parseCompatFilters(e){var t,o,i,a,s,l,d;let p=[];return e.has(k.FILTERS)&&(p=r.parseValueFilters((t=e.get(k.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(k.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(k.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...r.parseValueFilters((a=e.get(k.VALUE_FILTERS))!==null&&a!==void 0?a:""),...r.parseValueFilters((s=e.get(k.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(k.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(k.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}static parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(fc).map(i=>this.unescapeFilterValue(i)),negative:t}}))}parseDateFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Yt[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}static escapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}static superEscapeFilters(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(i,t);return e}parseLegacyPeriodFilter(e){if(Xs(e))return[{key:"ft:lastEdition",dateFilter:{type:Yt[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var t,o;let i=((o=(t=e.valueFilter)===null||t===void 0?void 0:t.values)!==null&&o!==void 0?o:[]).map(a=>r.escapeFilters(a)).map(a=>ku(fc(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let t=new URL(e);return[k.LOCALE,k.FILTERS,k.VALUE_FILTERS,k.NEGATIVE_VALUE_FILTERS,k.DATE_FILTERS,k.RANGE_FILTERS].forEach(i=>{t.searchParams.delete(i)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(k.LOCALE),t!==void 0&&o.searchParams.append(k.LOCALE,t),o.toString()}};Te.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Lr(r){var e,t,o,i;return(i=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&i!==void 0?i:r?.htmlPackagePage}function Nu(r){var e,t,o,i,a,s,l,d,p;return(p=(d=(l=(s=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(t=r?.topic)===null||t===void 0?void 0:t.tocId)!==null&&l!==void 0?l:(o=r?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=r?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=r?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function ci(r,e){var t,o,i,a,s,l,d,p,f;return(f=(p=(d=(l=si((t=r?.map)===null||t===void 0?void 0:t.readerUrl,e))!==null&&l!==void 0?l:si((o=r?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=r?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=r?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=r?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Fu(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}function si(r,e){if(e&&r){let t=URL.parse(r),o=Te.serializeValueFilters(e);if(o&&t?.searchParams.append(k.VALUE_FILTERS,o),t)return t.toString()}return r}function di(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var Xt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,t,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let i=(o=(t=Lr(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(di(l)),s.push(di(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",i,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>r.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,b)=>b.findIndex(x=>x.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==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(t,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var pi={};P(pi,{Debouncer:()=>z});var z=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){i(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 mi={};P(mi,{designSystemVariables:()=>Eo});var gi={};P(gi,{DesignSystemFamily:()=>Pr,DesignSystemSize:()=>Nr,FtCssVariableFactory:()=>n,badge:()=>Yu,banner:()=>Qu,button:()=>Uu,card:()=>Bu,chart:()=>fp,checkbox:()=>Vu,chip:()=>Ku,chipChoice:()=>ju,chipGroup:()=>qu,collapsible:()=>up,combobox:()=>lp,dateRangePicker:()=>vp,drawer:()=>np,eventCard:()=>$u,floatingMenu:()=>cp,foundation:()=>c,link:()=>Zu,modal:()=>rp,notice:()=>gp,notification:()=>yp,pageDesigner:()=>hp,pageFooter:()=>ep,pageHeader:()=>Xu,pageLayout:()=>tp,popover:()=>dp,radio:()=>Wu,reorderableList:()=>op,resolveFamilyClass:()=>fi,resolveSizeClass:()=>hi,semantic:()=>u,setVariable:()=>er,stickyToc:()=>zu,switch_:()=>pp,table:()=>Gu,tabs:()=>ip,textArea:()=>sp,textInput:()=>ap,titleBreadcrumb:()=>Ju,toggle:()=>mp,tooltip:()=>bp,treeList:()=>Hu,typographies:()=>Mu,typographyBody1Medium:()=>xc,typographyBody1Regular:()=>vc,typographyBody1Semibold:()=>Sc,typographyBody2Medium:()=>Cc,typographyBody2MediumUnderline:()=>wc,typographyBody2Regular:()=>Ec,typographyBody2Semibold:()=>Oc,typographyCaption1Medium:()=>Ac,typographyCaption1Semibold:()=>Rc,typographyCaption2Bold:()=>_c,typographyCaption2Medium:()=>Tc,typographyCaption2Semibold:()=>Ic,typographyDisplay:()=>gc,typographyTitle1:()=>mc,typographyTitle2:()=>yc,typographyTitle3:()=>bc,typographyVariants:()=>Du});var nt=r=>typeof r=="string"?vr(r):r,n=class{static create(e,t,o,i){let a=l=>nt(l??i),s=_`var(${nt(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${nt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=_`var(${nt(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${nt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),i=_`var(${nt(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>_`var(${nt(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function er(r,e){return nt(`${r.name}: ${e}`)}var c={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},gc={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},mc={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},yc={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},bc={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},vc={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},xc={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Sc={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Ec={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Cc={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},wc={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Oc={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ac={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Rc={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Tc={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Ic={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},_c={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Mu={display:gc,"title-1":mc,"title-2":yc,"title-3":bc,"body-1-regular":vc,"body-1-medium":xc,"body-1-semibold":Sc,"body-2-regular":Ec,"body-2-medium":Cc,"body-2-medium-underline":wc,"body-2-semibold":Oc,"caption-1-medium":Ac,"caption-1-semibold":Rc,"caption-2-medium":Tc,"caption-2-semibold":Ic,"caption-2-bold":_c},Du=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Uu={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:n.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:n.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Bu={borderRadius:n.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var $u={borderRadius:n.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize4),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Hu={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var zu={titleColor:n.extend("--ftds-sticky-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-sticky-toc-title-gap","",c.spacing2),itemGap:n.create("--ftds-sticky-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:n.extend("--ftds-sticky-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:n.extend("--ftds-sticky-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:n.extend("--ftds-sticky-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:n.create("--ftds-sticky-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:n.extend("--ftds-sticky-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:n.create("--ftds-sticky-toc-item-focus-focus-ring-width","","SIZE","3px"),itemRootDefaultLabelColor:n.extend("--ftds-sticky-toc-item-root-default-label-color","",u.contentGlobalSecondary),itemRootDefaultBorderColor:n.extend("--ftds-sticky-toc-item-root-default-border-color","",u.borderGlobalSubtle),itemRootHoverLabelColor:n.extend("--ftds-sticky-toc-item-root-hover-label-color","",u.contentGlobalSecondary),itemRootHoverBorderColor:n.extend("--ftds-sticky-toc-item-root-hover-border-color","",u.borderGlobalSubtle),itemRootHoverStateLayerColor:n.extend("--ftds-sticky-toc-item-root-hover-state-layer-color","",u.contentGlobalSecondary),itemRootHoverStateLayerOpacity:n.extend("--ftds-sticky-toc-item-root-hover-state-layer-opacity","",c.opacity8),itemRootFocusLabelColor:n.extend("--ftds-sticky-toc-item-root-focus-label-color","",u.contentGlobalSecondary),itemRootFocusStateLayerColor:n.extend("--ftds-sticky-toc-item-root-focus-state-layer-color","",u.contentGlobalSecondary),itemRootFocusStateLayerOpacity:n.extend("--ftds-sticky-toc-item-root-focus-state-layer-opacity","",c.opacity8),itemRootSelectedLabelColor:n.extend("--ftds-sticky-toc-item-root-selected-label-color","",u.contentActionPrimary),itemRootSelectedBorderColor:n.extend("--ftds-sticky-toc-item-root-selected-border-color","",u.borderActionPrimary),itemRootSelectedBorderWidth:n.create("--ftds-sticky-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:n.extend("--ftds-sticky-toc-item-root-selected-state-layer-color","",u.contentActionPrimary),itemRootSelectedStateLayerOpacity:n.extend("--ftds-sticky-toc-item-root-selected-state-layer-opacity","",c.opacity8),itemRootChildrenActiveLabelColor:n.extend("--ftds-sticky-toc-item-root-children-active-label-color","",u.contentActionPrimary),itemRootChildrenActiveBorderColor:n.extend("--ftds-sticky-toc-item-root-children-active-border-color","",u.borderGlobalSubtle),itemChildDefaultLabelColor:n.extend("--ftds-sticky-toc-item-child-default-label-color","",u.contentGlobalSubtle),itemChildDefaultBorderColor:n.extend("--ftds-sticky-toc-item-child-default-border-color","",u.borderGlobalSubtle),itemChildHoverLabelColor:n.extend("--ftds-sticky-toc-item-child-hover-label-color","",u.contentGlobalSubtle),itemChildHoverBorderColor:n.extend("--ftds-sticky-toc-item-child-hover-border-color","",u.borderGlobalSubtle),itemChildHoverStateLayerColor:n.extend("--ftds-sticky-toc-item-child-hover-state-layer-color","",u.contentGlobalSecondary),itemChildHoverStateLayerOpacity:n.extend("--ftds-sticky-toc-item-child-hover-state-layer-opacity","",c.opacity8),itemChildFocusLabelColor:n.extend("--ftds-sticky-toc-item-child-focus-label-color","",u.contentGlobalSubtle),itemChildFocusStateLayerColor:n.extend("--ftds-sticky-toc-item-child-focus-state-layer-color","",u.contentGlobalSecondary),itemChildFocusStateLayerOpacity:n.extend("--ftds-sticky-toc-item-child-focus-state-layer-opacity","",c.opacity8),itemChildSelectedLabelColor:n.extend("--ftds-sticky-toc-item-child-selected-label-color","",u.contentActionPrimary),itemChildSelectedBorderColor:n.extend("--ftds-sticky-toc-item-child-selected-border-color","",u.borderActionPrimary),itemChildSelectedBorderWidth:n.create("--ftds-sticky-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:n.extend("--ftds-sticky-toc-item-child-selected-state-layer-color","",u.contentActionPrimary),itemChildSelectedStateLayerOpacity:n.extend("--ftds-sticky-toc-item-child-selected-state-layer-opacity","",c.opacity8)};var Vu={iconSize:n.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Wu={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Gu={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var ju={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Ku={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var qu={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Zu={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Qu={iconSize:n.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var Yu={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Ju={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Xu={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var ep={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var tp={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var rp={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var op={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var np={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var ip={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var ap={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var sp={backgroundColor:n.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:n.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-area-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-area-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-area-warning-helper-icon-color","",u.contentWarningIconOnly),focusFocusRingColor:n.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:n.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:n.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:n.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),helperHorizontalPadding:n.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var cp={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var lp={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var dp={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",c.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var up={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var pp={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var fp={color1Light:n.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:n.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:n.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:n.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:n.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:n.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var hp={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var gp={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:n.extend("--ftds-notice-gap","",c.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var mp={offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",c.spacing3)};var yp={iconSize:n.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",c.spacing8)};var bp={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",c.spacing05)};var vp={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Pr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Pr||(Pr={}));var Nr;(function(r){r.large="large",r.medium="medium",r.small="small"})(Nr||(Nr={}));function fi(r){return`ftds--family-${r}`}function hi(r){return`ftds--size-${r}`}var Eo={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var yi={};P(yi,{DynamicImporter:()=>Co,dynamicImporter:()=>xp});var Co=class{async import(e){if(e)return import(e)}},xp=new Co;var Ii={};P(Ii,{computeOffsetAutoPosition:()=>Gp,computeOffsetPosition:()=>Wp});var Lc=["top","right","bottom","left"],kc=["start","end"],vi=Lc.reduce((r,e)=>r.concat(e,e+"-"+kc[0],e+"-"+kc[1]),[]),vt=Math.min,$e=Math.max,Fr=Math.round;var He=r=>({x:r,y:r}),Sp={left:"right",right:"left",bottom:"top",top:"bottom"};function Pc(r,e,t){return $e(r,vt(e,t))}function tr(r,e){return typeof r=="function"?r(e):r}function xt(r){return r.split("-")[0]}function ze(r){return r.split("-")[1]}function xi(r){return r==="x"?"y":"x"}function Si(r){return r==="y"?"height":"width"}function rr(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Ei(r){return xi(rr(r))}function Nc(r,e,t){t===void 0&&(t=!1);let o=ze(r),i=Ei(r),a=Si(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=bi(s)),[s,bi(s)]}function Fc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function bi(r){let e=xt(r);return Sp[e]+r.slice(e.length)}function Ep(r){var e,t,o,i;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(i=r.left)!=null?i:0}}function Mc(r){return typeof r!="number"?Ep(r):{top:r,right:r,bottom:r,left:r}}function St(r){let{x:e,y:t,width:o,height:i}=r;return{width:o,height:i,top:t,left:e,right:e+o,bottom:t+i,x:e,y:t}}function Dc(r,e,t){let{reference:o,floating:i}=r,a=rr(e),s=Ei(e),l=Si(s),d=xt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,b;switch(d){case"top":b={x:f,y:o.y-i.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-i.width,y:h};break;default:b={x:o.x,y:o.y}}let x=ze(e);return x&&(b[s]+=g*(x==="end"?1:-1)*(t&&p?-1:1)),b}async function Uc(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=tr(e,r),x=Mc(b),E=l[g?h==="floating"?"reference":"floating":h],O=St(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(E)))==null||t?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),L=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,m=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(m))&&await(a.getScale==null?void 0:a.getScale(m))||{x:1,y:1},v=St(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:L,offsetParent:m,strategy:d}):L);return{top:(O.top-v.top+x.top)/y.y,bottom:(v.bottom-O.bottom+x.bottom)/y.y,left:(O.left-v.left+x.left)/y.x,right:(v.right-O.right+x.right)/y.x}}var Cp=50,Bc=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Uc},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:f,y:h}=Dc(p,o,d),g=o,b=0,x={};for(let C=0;C<a.length;C++){let E=a[C];if(!E)continue;let{name:O,fn:L}=E,{x:m,y,data:v,reset:R}=await L({x:f,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:x,rects:p,platform:l,elements:{reference:r,floating:e}});f=m??f,h=y??h,x[O]={...x[O],...v},R&&b<Cp&&(b++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(p=R.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):R.rects),{x:f,y:h}=Dc(p,g,d)),C=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};function wp(r,e,t){return(r?[...t.filter(i=>ze(i)===r),...t.filter(i=>ze(i)!==r)]:t.filter(i=>xt(i)===i)).filter(i=>r?ze(i)===r||(e?Fc(i)!==i:!1):!0)}var $c=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:g=vi,autoAlignment:b=!0,...x}=tr(r,e),C=h!==void 0||g===vi?wp(h||null,b,g):g,E=((t=s.autoPlacement)==null?void 0:t.index)||0,O=C[E];if(O==null)return{};if(l!==O)return{reset:{placement:C[0]}};let L=await d.detectOverflow(e,x),m=Nc(O,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[L[xt(O)],L[m[0]],L[m[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:O,overflows:y}],R=C[E+1];if(R)return{data:{index:E+1,overflows:v},reset:{placement:R}};let T=v.map(I=>{let F=ze(I.placement);return[I.placement,F&&f?I.overflows.slice(0,2).reduce((q,Ne)=>q+Ne,0):I.overflows[0],I.overflows]}).sort((I,F)=>I[1]-F[1]),W=((i=T.filter(I=>I[2].slice(0,ze(I[0])?2:3).every(F=>F<=0))[0])==null?void 0:i[0])||T[0][0];return W!==l?{data:{index:E+1,overflows:v},reset:{placement:W}}:{}}}};var Op=new Set(["left","top"]);async function Ap(r,e){let{placement:t,platform:o,elements:i}=r,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=xt(t),l=ze(t),d=rr(t)==="y",p=Op.has(s)?-1:1,f=a&&d?-1:1,h=tr(e,r),{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*f,y:g*p}:{x:g*p,y:b*f}}var Hc=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:i,y:a,placement:s,middlewareData:l}=e,d=await Ap(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},zc=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:L=>{let{x:m,y}=L;return{x:m,y}}},...p}=tr(r,e),f={x:t,y:o},h=await a.detectOverflow(e,p),g=rr(i),b=xi(g),x=f[b],C=f[g],E=(L,m)=>Pc(m+h[L==="y"?"top":"left"],m,m-h[L==="y"?"bottom":"right"]);s&&(x=E(b,x)),l&&(C=E(g,C));let O=d.fn({...e,[b]:x,[g]:C});return{...O,data:{x:O.x-t,y:O.y-o,enabled:{[b]:s,[g]:l}}}}}};var Vc=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...l}=tr(r,e),d=await i.detectOverflow(e,l),p=xt(t),f=ze(t),h=rr(t)==="y",{width:g,height:b}=o.floating,x,C;p==="top"||p==="bottom"?(x=p,C=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,x=f==="end"?"top":"bottom");let E=b-d.top-d.bottom,O=g-d.left-d.right,L=vt(b-d[x],E),m=vt(g-d[C],O),y=e.middlewareData.shift,v=!y,R=L,T=m;y!=null&&y.enabled.x&&(T=O),y!=null&&y.enabled.y&&(R=E),v&&!f&&(h?T=g-2*$e(d.left,d.right):R=b-2*$e(d.top,d.bottom)),await s({...e,availableWidth:T,availableHeight:R});let N=await i.getDimensions(a.floating);return g!==N.width||b!==N.height?{reset:{rects:!0}}:{}}}};function Oo(){return typeof window<"u"}function Ct(r){return Gc(r)?(r.nodeName||"").toLowerCase():"#document"}function de(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function je(r){var e;return(e=(Gc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Gc(r){return Oo()?r instanceof Node||r instanceof de(r).Node:!1}function Ie(r){return Oo()?r instanceof Element||r instanceof de(r).Element:!1}function Ke(r){return Oo()?r instanceof HTMLElement||r instanceof de(r).HTMLElement:!1}function Wc(r){return!Oo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof de(r).ShadowRoot}function Mr(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=_e(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&i!=="inline"&&i!=="contents"}function jc(r){return/^(table|td|th)$/.test(Ct(r))}function Dr(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}var Rp=/transform|translate|scale|rotate|perspective|filter/,Tp=/paint|layout|strict|content/,Et=r=>!!r&&r!=="none",Ci;function or(r){let e=Ie(r)?_e(r):r;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!Ao()&&(Et(e.backdropFilter)||Et(e.filter))||Rp.test(e.willChange||"")||Tp.test(e.contain||"")}function Kc(r){let e=it(r);for(;Ke(e)&&!nr(e);){if(or(e))return e;if(Dr(e))return null;e=it(e)}return null}function Ao(){return Ci==null&&(Ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ci}function nr(r){return/^(html|body|#document)$/.test(Ct(r))}function _e(r){return de(r).getComputedStyle(r)}function Ur(r){return Ie(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function it(r){if(Ct(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Wc(r)&&r.host||je(r);return Wc(e)?e.host:e}function qc(r){let e=it(r);return nr(e)?(r.ownerDocument||r).body:Ke(e)&&Mr(e)?e:qc(e)}function wo(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=qc(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=de(i);if(a){let l=Ro(s);return e.concat(s,s.visualViewport||[],Mr(i)?i:[],l&&t?wo(l):[])}else return e.concat(i,wo(i,[],t))}function Ro(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Yc(r){let e=_e(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=Ke(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=Fr(t)!==a||Fr(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Jc(r){return Ie(r)?r:r.contextElement}function ir(r){let e=Jc(r);if(!Ke(e))return He(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=Yc(e),s=(a?Fr(t.width):t.width)/o,l=(a?Fr(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Ip=He(0);function Xc(r){let e=de(r);return!Ao()||!e.visualViewport?Ip:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _p(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===de(r)}function Br(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=Jc(r),s=He(1);e&&(o?Ie(o)&&(s=ir(o)):s=ir(r));let l=_p(a,t,o)?Xc(a):He(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let g=de(a),b=Ie(o)?de(o):o,x=g,C=Ro(x);for(;C&&b!==x;){let E=ir(C),O=C.getBoundingClientRect(),L=_e(C),m=O.left+(C.clientLeft+parseFloat(L.paddingLeft))*E.x,y=O.top+(C.clientTop+parseFloat(L.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=m,p+=y,x=de(C),C=Ro(x)}}return St({width:f,height:h,x:d,y:p})}function To(r,e){let t=Ur(r).scrollLeft;return e?e.left+t:Br(je(r)).left+t}function el(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-To(r,t),i=t.top+e.scrollTop;return{x:o,y:i}}function kp(r){let{elements:e,rect:t,offsetParent:o,strategy:i}=r,a=i==="fixed",s=je(o),l=e?Dr(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},p=He(1),f=He(0),h=Ke(o);if((h||!a)&&((Ct(o)!=="body"||Mr(s))&&(d=Ur(o)),h)){let b=Br(o);p=ir(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let g=s&&!h&&!a?el(s,d):He(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+g.x,y:t.y*p.y-d.scrollTop*p.y+f.y+g.y}}function Lp(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function Pp(r){let e=Ur(r),t=r.ownerDocument.body,o=$e(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),i=$e(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+To(r),s=-e.scrollTop;return _e(t).direction==="rtl"&&(a+=$e(r.clientWidth,t.clientWidth)-o),{width:o,height:i,x:a,y:s}}var Np=25;function Fp(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",i=de(r),a=je(r),s=i.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let g=!Ao()||e==="fixed";o?g||(p=-s.offsetLeft,f=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,f=s.offsetTop))}if(To(a)<=0){let g=a.ownerDocument,b=g.body,x=getComputedStyle(b),C=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(a.clientWidth-b.clientWidth-C),O=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;O<=Np&&(l-=O)}return{width:l,height:d,x:p,y:f}}function Mp(r,e){let t=Br(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ir(r),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function Zc(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=Fp(r,t,e);else if(e==="document")o=Pp(je(r));else if(Ie(e))o=Mp(e,t);else{let i=Xc(r);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return St(o)}function Dp(r,e){let t=e.get(r);if(t)return t;let o=wo(r,[],!1).filter(l=>Ie(l)&&Ct(l)!=="body"),i=null,a=_e(r).position==="fixed",s=a?it(r):r;for(;Ie(s)&&!nr(s);){let l=_e(s),d=or(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):i=l,s=it(s)}return e.set(r,o),o}function Up(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Dr(e)?[]:Dp(e,this._c):[].concat(t),o],l=Zc(e,s[0],i),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let b=Zc(e,s[g],i);d=$e(b.top,d),p=vt(b.right,p),f=vt(b.bottom,f),h=$e(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function Bp(r){let{width:e,height:t}=Yc(r);return{width:e,height:t}}function $p(r,e,t){let o=Ke(e),i=je(e),a=t==="fixed",s=Br(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=He(0);if((o||!a)&&((Ct(e)!=="body"||Mr(i))&&(l=Ur(e)),o)){let g=Br(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&i&&(d.x=To(i));let p=i&&!o&&!a?el(i,l):He(0),f=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function wi(r){return _e(r).position==="static"}function Qc(r,e){if(!Ke(r)||_e(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return je(r)===t&&(t=t.ownerDocument.body),t}function tl(r,e){let t=de(r);if(Dr(r))return t;if(!Ke(r)){let i=it(r);for(;i&&!nr(i);){if(Ie(i)&&!wi(i))return i;i=it(i)}return t}let o=Qc(r,e);for(;o&&jc(o)&&wi(o);)o=Qc(o,e);return o&&nr(o)&&wi(o)&&!or(o)?t:o||Kc(r)||t}var Hp=async function(r){let e=this.getOffsetParent||tl,t=this.getDimensions,o=await t(r.floating);return{reference:$p(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function zp(r){return _e(r).direction==="rtl"}var ar={convertOffsetParentRelativeRectToViewportRelativeRect:kp,getDocumentElement:je,getClippingRect:Up,getOffsetParent:tl,getElementRects:Hp,getClientRects:Lp,getDimensions:Bp,getScale:ir,isElement:Ie,isRTL:zp};var rl=Hc,Oi=$c,ol=zc;var nl=Vc;var Ai=(r,e,t)=>{let o=new Map,i=t??{},a={...ar,...i.platform,_c:o};return Bc(r,e,{...i,platform:a})};function Ti(r){return Vp(r)}function Ri(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Vp(r){for(let e=r;e;e=Ri(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ri(r);e;e=Ri(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||or(t)||e.tagName==="BODY"))return e}return null}async function Wp(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Ai(r,e,{strategy:o.strategy,platform:{...ar,getOffsetParent:i=>ar.getOffsetParent(i,Ti)},middleware:[ol({crossAxis:!0}),Oi({allowedPlacements:[o.placement]})]})}async function Gp(r,e,t,o,i,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,i=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,Ai(r,e,{placement:l,strategy:i,platform:{...ar,getOffsetParent:p=>ar.getOffsetParent(p,Ti)},middleware:[rl(s??4),Oi({allowedPlacements:o}),nl({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 _i={};P(_i,{isSlotEmptyOrWithoutContent:()=>jp});var jp=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Mi={};P(Mi,{FtdsBase:()=>Fi,toFtdsBase:()=>ul});var Ni={};P(Ni,{ExportpartsUpdatedEvent:()=>wt,FtLitElement:()=>Y});var ki={};P(ki,{ScopedRegistryLitElement:()=>$r});var $r=class extends Fe{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return xr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Tr(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}};var Pi={};P(Pi,{shadowQuerySelector:()=>Li,shadowQuerySelectorAll:()=>Kp});function Li(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function Kp(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return o}var sr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},cl,il=Symbol("constructorPrototype"),al=Symbol("constructorName"),ll=Symbol("exportpartsDebouncer"),sl=Symbol("dynamicDependenciesLoaded"),wt=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Y=class extends $r{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cl]=new z(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[ll].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[al]=this.constructor.name,this[il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[al]&&Object.setPrototypeOf(this,this[il])}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 t=this.constructor;t[sl]||(t[sl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(wt.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 wt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];t=Li(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.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((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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 t,o,i,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let g of(a=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],x=(l=(i=g.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],C=[...b,...x].filter(d).map(E=>E.trim());for(let E of C)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};cl=ll;sr([S()],Y.prototype,"exportpartsPrefix",void 0);sr([he([])],Y.prototype,"exportpartsPrefixes",void 0);sr([S({reflect:!0})],Y.prototype,"exportparts",void 0);sr([S()],Y.prototype,"customStylesheet",void 0);sr([S()],Y.prototype,"elementToFocus",void 0);sr([H()],Y.prototype,"useAdoptedStyleSheets",void 0);var dl=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ul=Q(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Nr.medium,this.family=Pr.neutral}getDesignSystemBaseClasses(){return{[fi(this.family)]:!0,[hi(this.size)]:!0}}}return dl([S()],e.prototype,"size",void 0),dl([S()],e.prototype,"family",void 0),e}),Fi=class extends ul(Y){};var pl={};var Bi={};P(Bi,{highlightHtml:()=>Ui,highlightHtmlColorCssVariable:()=>fl,highlightHtmlStyles:()=>Zp});var Ot=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{t(p)&&(l++,o(f)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,f,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>d.push(b),i)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var Hr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ot(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-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:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,i=d+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return Ot.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!i(s.node))return!1;let p=t-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=f),e.nodes[x].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+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),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+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,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){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,g=>t(g,l,a.value.substring(p,f),d),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](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,t){this.opt=t;let o=0,i="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[i](f,1,(g,b)=>this.opt.filter(b,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(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 t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Ot.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Di(r){let e=new Hr(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var qp=Di,fl=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Zp=_`
5
5
  .highlight-html-match {
6
6
  background: ${fl};
7
7
  }
8
- `;function Ui(r,e,t){var o,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Kp(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=p=>{for(let f in t.attributes)p.setAttribute(f,t.attributes[f])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var $i={};N($i,{noTextInputDefaultClearButton:()=>Jp,noTextSelect:()=>Zp,safariEllipsisFix:()=>Yp,wordWrap:()=>Qp});var Zp=_`
8
+ `;function Ui(r,e,t){var o,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new qp(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=p=>{for(let f in t.attributes)p.setAttribute(f,t.attributes[f])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var $i={};P($i,{noTextInputDefaultClearButton:()=>Xp,noTextSelect:()=>Qp,safariEllipsisFix:()=>Jp,wordWrap:()=>Yp});var Qp=_`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,Qp=_`
17
+ `,Yp=_`
18
18
  .ft-word-wrap {
19
19
  white-space: normal;
20
20
  word-wrap: break-word;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,Yp=_`
29
+ `,Jp=_`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,Jp=_`
40
+ `,Xp=_`
41
41
  input::-webkit-search-cancel-button,
42
42
  input::-webkit-search-decoration,
43
43
  input::-webkit-search-results-button,
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var hl={};var Hi={};N(Hi,{ParametrizedLabelResolver:()=>zr});var zr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var ca={};N(ca,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>ge,FtReduxStore:()=>Le,FtStateManager:()=>Tt,ReduxWatcher:()=>ct,clearAllStores:()=>Qf,isFtReduxStore:()=>cr,redux:()=>M,reduxEventListener:()=>ef,reduxReactive:()=>Xp,watch:()=>sa,withRedux:()=>gl});var Xp=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},M=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Ee,attribute:!1,...e};S(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[o]),store:e.store})}},ef=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Vr=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function cr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),At=Symbol("internalStores"),gl=Q(Symbol("withRedux"),function(r){var e,t,o;class i extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=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[At].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[At].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[At].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[At].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[At].delete(l)}setupStores(){this.unsubscribeFromStores(),this[At].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[at].has(s.store):this[at].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[at].set(s,l.subscribe(()=>this.updateFromStores())),this[Wr].set(s,[]),cr(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=g=>this[f](g);l.addEventListener(p.eventName,h),this[Wr].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[at].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[at].has(s)&&this[at].get(s)(),this[at].delete(s),(l=this[Wr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=at,t=At,o=Wr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ge=class extends gl(Y){};function ne(r){return`Minified Redux error #${r}; visit https://redux.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}var tf=typeof Symbol=="function"&&Symbol.observable||"@@observable",ml=tf,zi=()=>Math.random().toString(36).substring(7).split("").join("."),rf={INIT:`@@redux/INIT${zi()}`,REPLACE:`@@redux/REPLACE${zi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zi()}`},Io=rf;function _o(r){if(typeof r!="object"||r===null)return!1;let e=r;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e||Object.getPrototypeOf(r)===null}function Vi(r,e,t){if(typeof r!="function")throw new Error(ne(2));if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ne(1));return t(Vi)(r,e)}let o=r,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,O)=>{s.set(O,E)}))}function f(){if(d)throw new Error(ne(3));return i}function h(E){if(typeof E!="function")throw new Error(ne(4));if(d)throw new Error(ne(5));let O=!0;p();let L=l++;return s.set(L,E),function(){if(O){if(d)throw new Error(ne(6));O=!1,p(),s.delete(L),a=null}}}function g(E){if(!_o(E))throw new Error(ne(7));if(typeof E.type>"u")throw new Error(ne(8));if(typeof E.type!="string")throw new Error(ne(17));if(d)throw new Error(ne(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(L=>{L()}),E}function b(E){if(typeof E!="function")throw new Error(ne(10));o=E,g({type:Io.REPLACE})}function x(){let E=h;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ne(11));function L(){let y=O;y.next&&y.next(f())}return L(),{unsubscribe:E(L)}},[ml](){return this}}}return g({type:Io.INIT}),{dispatch:g,subscribe:h,getState:f,replaceReducer:b,[ml]:x}}function of(r){Object.keys(r).forEach(e=>{let t=r[e];if(typeof t(void 0,{type:Io.INIT})>"u")throw new Error(ne(12));if(typeof t(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ne(13))})}function yl(r){let e=Object.keys(r),t={};for(let s=0;s<e.length;s++){let l=e[s];typeof r[l]=="function"&&(t[l]=r[l])}let o=Object.keys(t),i,a;try{of(t)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let g=o[h],b=t[g],x=l[g],C=b(x,d);if(typeof C>"u"){let E=d&&d.type;throw new Error(ne(14))}f[g]=C,p=p||C!==x}return p=p||o.length!==Object.keys(l).length,p?f:l}}function Gr(...r){return r.length===0?e=>e:r.length===1?r[0]:r.reduce((e,t)=>(...o)=>e(t(...o)))}function bl(...r){return e=>(t,o)=>{let i=e(t,o),a=()=>{throw new Error(ne(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=r.map(d=>d(s));return a=Gr(...l)(i.dispatch),{...i,dispatch:a}}}function vl(r){return _o(r)&&"type"in r&&typeof r.type=="string"}var Tl=Symbol.for("immer-nothing"),xl=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function ke(r,...e){throw new Error(`[Immer] minified error nr: ${r}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,dr=me.getPrototypeOf,Po="constructor",$o="prototype",Ki="configurable",Fo="enumerable",Lo="writable",jr="value",Ve=r=>!!r&&!!r[ae];function ye(r){return r?Il(r)||zo(r)||!!r[xl]||!!r[Po]?.[xl]||Vo(r)||Wo(r):!1}var nf=me[$o][Po].toString(),Sl=new WeakMap;function Il(r){if(!r||!ta(r))return!1;let e=dr(r);if(e===null||e===me[$o])return!0;let t=me.hasOwnProperty.call(e,Po)&&e[Po];if(t===Object)return!0;if(!lr(t))return!1;let o=Sl.get(t);return o===void 0&&(o=Function.toString.call(t),Sl.set(t,o)),o===nf}function Ho(r,e,t=!0){Zr(r)===0?(t?Reflect.ownKeys(r):me.keys(r)).forEach(i=>{e(i,r[i],r)}):r.forEach((o,i)=>e(i,o,r))}function Zr(r){let e=r[ae];return e?e.type_:zo(r)?1:Vo(r)?2:Wo(r)?3:0}var Wi=(r,e,t=Zr(r))=>t===2?r.has(e):me[$o].hasOwnProperty.call(r,e),qi=(r,e,t=Zr(r))=>t===2?r.get(e):r[e],Mo=(r,e,t,o=Zr(r))=>{o===2?r.set(e,t):o===3?r.add(t):r[e]=t};function af(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}var zo=Array.isArray,Vo=r=>r instanceof Map,Wo=r=>r instanceof Set,ta=r=>typeof r=="object",lr=r=>typeof r=="function",Gi=r=>typeof r=="boolean";function sf(r){let e=+r;return Number.isInteger(e)&&String(e)===r}var qe=r=>r.copy_||r.base_;var ra=r=>r.modified_?r.copy_:r.base_;function Zi(r,e){if(Vo(r))return new Map(r);if(Wo(r))return new Set(r);if(zo(r))return Array[$o].slice.call(r);let t=Il(r);if(e===!0||e==="class_only"&&!t){let o=me.getOwnPropertyDescriptors(r);delete o[ae];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],l=o[s];l[Lo]===!1&&(l[Lo]=!0,l[Ki]=!0),(l.get||l.set)&&(o[s]={[Ki]:!0,[Lo]:!0,[Fo]:l[Fo],[jr]:r[s]})}return me.create(dr(r),o)}else{let o=dr(r);if(o!==null&&t)return{...r};let i=me.create(o);return me.assign(i,r)}}function oa(r,e=!1){return Go(r)||Ve(r)||!ye(r)||(Zr(r)>1&&me.defineProperties(r,{set:ko,add:ko,clear:ko,delete:ko}),me.freeze(r),e&&Ho(r,(t,o)=>{oa(o,!0)},!1)),r}function cf(){ke(2)}var ko={[jr]:cf};function Go(r){return r===null||!ta(r)?!0:me.isFrozen(r)}var Do="MapSet",Qi="Patches",El="ArrayMethods",_l={};function Rt(r){let e=_l[r];return e||ke(0,r),e}var Cl=r=>!!_l[r];var Kr,kl=()=>Kr,lf=(r,e)=>({drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Cl(Do)?Rt(Do):void 0,arrayMethodsPlugin_:Cl(El)?Rt(El):void 0});function wl(r,e){e&&(r.patchPlugin_=Rt(Qi),r.patches_=[],r.inversePatches_=[],r.patchListener_=e)}function Yi(r){Ji(r),r.drafts_.forEach(df),r.drafts_=null}function Ji(r){r===Kr&&(Kr=r.parent_)}var Ol=r=>Kr=lf(Kr,r);function df(r){let e=r[ae];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Al(r,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];if(r!==void 0&&r!==t){t[ae].modified_&&(Yi(e),ke(4)),ye(r)&&(r=Rl(e,r));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(t[ae].base_,r,e)}else r=Rl(e,t);return uf(e,r,!0),Yi(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),r!==Tl?r:void 0}function Rl(r,e){if(Go(e))return e;let t=e[ae];if(!t)return Uo(e,r.handledSet_,r);if(!jo(t,r))return e;if(!t.modified_)return t.base_;if(!t.finalized_){let{callbacks_:o}=t;if(o)for(;o.length>0;)o.pop()(r);Pl(t,r)}return t.copy_}function uf(r,e,t=!1){!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_&&oa(e,t)}function Ll(r){r.finalized_=!0,r.scope_.unfinalizedDrafts_--}var jo=(r,e)=>r.scope_===e,pf=[];function Nl(r,e,t,o){let i=qe(r),a=r.type_;if(o!==void 0&&qi(i,o,a)===e){Mo(i,o,t,a);return}if(!r.draftLocations_){let l=r.draftLocations_=new Map;Ho(i,(d,p)=>{if(Ve(p)){let f=l.get(p)||[];f.push(d),l.set(p,f)}})}let s=r.draftLocations_.get(e)??pf;for(let l of s)Mo(i,l,t,a)}function ff(r,e,t){r.callbacks_.push(function(i){let a=e;if(!a||!jo(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=ra(a);Nl(r,a.draft_??a,s,t),Pl(a,i)})}function Pl(r,e){if(r.modified_&&!r.finalized_&&(r.type_===3||r.type_===1&&r.allIndicesReassigned_||(r.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(r);i&&o.generatePatches_(r,i,e)}Ll(r)}}function hf(r,e,t){let{scope_:o}=r;if(Ve(t)){let i=t[ae];jo(i,o)&&i.callbacks_.push(function(){No(r);let s=ra(i);Nl(r,t,s,e)})}else ye(t)&&r.callbacks_.push(function(){let a=qe(r);r.type_===3?a.has(t)&&Uo(t,o.handledSet_,o):qi(a,e,r.type_)===t&&o.drafts_.length>1&&(r.assigned_.get(e)??!1)===!0&&r.copy_&&Uo(qi(r.copy_,e,r.type_),o.handledSet_,o)})}function Uo(r,e,t){return!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||Ve(r)||e.has(r)||!ye(r)||Go(r)||(e.add(r),Ho(r,(o,i)=>{if(Ve(i)){let a=i[ae];if(jo(a,t)){let s=ra(a);Mo(r,o,s,r.type_),Ll(a)}}else ye(i)&&Uo(i,e,t)})),r}function gf(r,e){let t=zo(r),o={type_:t?1:0,scope_:e?e.scope_:kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=Bo;t&&(i=[o],a=qr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return o.draft_=l,o.revoke_=s,[l,o]}var Bo={get(r,e){if(e===ae)return r;let t=r.scope_.arrayMethodsPlugin_,o=r.type_===1&&typeof e=="string";if(o&&t?.isArrayOperationMethod(e))return t.createMethodInterceptor(r,e);let i=qe(r);if(!Wi(i,e,r.type_))return yf(r,i,e);let a=i[e];if(r.finalized_||!ye(a)||o&&r.operationMethod&&t?.isMutatingArrayMethod(r.operationMethod)&&sf(e))return a;if(a===ji(r.base_,e)||mf(r,e,a)){No(r);let s=r.type_===1?+e:e,l=ea(r.scope_,a,r,s);return r.copy_[s]=l}return a},has(r,e){return e in qe(r)},ownKeys(r){return Reflect.ownKeys(qe(r))},set(r,e,t){let o=Fl(qe(r),e);if(o?.set)return o.set.call(r.draft_,t),!0;if(!r.modified_){let i=ji(qe(r),e),a=i?.[ae];if(a&&a.base_===t)return r.copy_[e]=t,r.assigned_.set(e,!1),!0;if(af(t,i)&&(t!==void 0||Wi(r.base_,e,r.type_)))return!0;No(r),Xi(r)}return r.copy_[e]===t&&(t!==void 0||Wi(r.copy_,e,r.type_))||Number.isNaN(t)&&Number.isNaN(r.copy_[e])||(r.copy_[e]=t,r.assigned_.set(e,!0),hf(r,e,t)),!0},deleteProperty(r,e){return No(r),ji(r.base_,e)!==void 0||e in r.base_?(r.assigned_.set(e,!1),Xi(r)):r.assigned_.delete(e),r.copy_&&delete r.copy_[e],!0},getOwnPropertyDescriptor(r,e){let t=qe(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{[Lo]:!0,[Ki]:r.type_!==1||e!=="length",[Fo]:o[Fo],[jr]:t[e]}},defineProperty(){ke(11)},getPrototypeOf(r){return dr(r.base_)},setPrototypeOf(){ke(12)}},qr={};for(let r in Bo){let e=Bo[r];qr[r]=function(){let t=arguments;return t[0]=t[0][0],e.apply(this,t)}}qr.deleteProperty=function(r,e){return qr.set.call(this,r,e,void 0)};qr.set=function(r,e,t){return Bo.set.call(this,r[0],e,t,r[0])};function ji(r,e){let t=r[ae];return(t?qe(t):r)[e]}function mf(r,e,t){return r.type_!==1||!r.allIndicesReassigned_||r.assigned_?.get(e)||!ye(t)||t[ae]?!1:r.baseRefs_.has(t)}function yf(r,e,t){let o=Fl(e,t);return o?jr in o?o[jr]:o.get?.call(r.draft_):void 0}function Fl(r,e){if(!(e in r))return;let t=dr(r);for(;t;){let o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=dr(t)}}function Xi(r){r.modified_||(r.modified_=!0,r.parent_&&Xi(r.parent_))}function No(r){r.copy_||(r.assigned_=new Map,r.copy_=Zi(r.base_,r.scope_.immer_.useStrictShallowCopy_))}var bf=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,o)=>{if(lr(e)&&!lr(t)){let a=t;t=e;let s=this;return function(d=a,...p){return s.produce(d,f=>t.call(this,f,...p))}}lr(t)||ke(6),o!==void 0&&!lr(o)&&ke(7);let i;if(ye(e)){let a=Ol(this),s=ea(a,e,void 0),l=!0;try{i=t(s),l=!1}finally{l?Yi(a):Ji(a)}return wl(a,o),Al(i,a)}else if(!e||!ta(e)){if(i=t(e),i===void 0&&(i=e),i===Tl&&(i=void 0),this.autoFreeze_&&oa(i,!0),o){let a=[],s=[];Rt(Qi).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else ke(1,e)},this.produceWithPatches=(e,t)=>{if(lr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,i;return[this.produce(e,t,(s,l)=>{o=s,i=l}),o,i]},Gi(r?.autoFreeze)&&this.setAutoFreeze(r.autoFreeze),Gi(r?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),Gi(r?.useStrictIteration)&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){ye(r)||ke(8),Ve(r)&&(r=Ml(r));let e=Ol(this),t=ea(e,r,void 0);return t[ae].isManual_=!0,Ji(e),t}finishDraft(r,e){let t=r&&r[ae];(!t||!t.isManual_)&&ke(9);let{scope_:o}=t;return wl(o,e),Al(void 0,o)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,e){let t;for(t=e.length-1;t>=0;t--){let i=e[t];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}t>-1&&(e=e.slice(t+1));let o=Rt(Qi).applyPatches_;return Ve(r)?o(r,e):this.produce(r,i=>o(i,e))}};function ea(r,e,t,o){let[i,a]=Vo(e)?Rt(Do).proxyMap_(e,t):Wo(e)?Rt(Do).proxySet_(e,t):gf(e,t);return(t?.scope_??kl()).drafts_.push(i),a.callbacks_=t?.callbacks_??[],a.key_=o,t&&o!==void 0?ff(t,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Ml(r){return Ve(r)||ke(10,r),Dl(r)}function Dl(r){if(!ye(r)||Go(r))return r;let e=r[ae],t,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,t=Zi(r,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else t=Zi(r,!0);return Ho(t,(i,a)=>{Mo(t,i,Dl(a))},o),e&&(e.finalized_=!1),t}var vf=globalThis.Iterator,Vx=typeof vf?.from=="function";var xf=new bf,na=xf.produce;function Ul(r){return({dispatch:t,getState:o})=>i=>a=>typeof a=="function"?a(t,o,r):i(a)}var Bl=Ul(),$l=Ul;var Sf=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)},Qx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}},Ef=r=>r&&typeof r.match=="function";function st(r,e){function t(...o){if(e){let i=e(...o);if(!i)throw new Error(Ze(0));return{type:r,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:r,payload:o[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=o=>vl(o)&&o.type===r,t}var Gl=class Qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qr(...e[0].concat(this)):new Qr(...e.concat(this))}};function Hl(r){return ye(r)?na(r,()=>{}):r}function Ko(r,e,t){return r.has(e)?r.get(e):r.set(e,t(e)).get(e)}function Cf(r){return typeof r=="boolean"}var wf=()=>function(e){let{thunk:t=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Gl;return t&&(Cf(t)?s.push(Bl):s.push($l(t.extraArgument))),s},Of="RTK_autoBatch";var zl=r=>e=>{setTimeout(e,r)},Af=(r,e)=>t=>{let o=!1,i=()=>{o||(o=!0,cancelAnimationFrame(a),clearTimeout(s),t())},a=r(i),s=setTimeout(i,e)},Rf=(r={type:"raf"})=>e=>(...t)=>{let o=e(...t),i=!0,a=!1,s=!1,l=new Set,d=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Af(window.requestAnimationFrame,100):zl(10):r.type==="callback"?r.queueNotification:zl(r.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),g=o.subscribe(h);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){try{return i=!f?.meta?.[Of],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Tf=r=>function(t){let{autoBatch:o=!0}=t??{},i=new Gl(r);return o&&i.push(Rf(typeof o=="object"?o:void 0)),i};function jl(r){let e=wf(),{reducer:t=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=r||{},d;if(typeof t=="function")d=t;else if(_o(t))d=yl(t);else throw new Error(Ze(1));let p;typeof o=="function"?p=o(e):p=e();let f=Gr;i&&(f=Sf({trace:!1,...typeof i=="object"&&i}));let h=bl(...p),g=Tf(h),b=typeof l=="function"?l(g):g(),x=f(...b);return Vi(d,s,x)}function Kl(r){let e={},t=[],o,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ze(28));if(l in e)throw new Error(Ze(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&t.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return r(i),[e,t,o]}function If(r){return typeof r=="function"}function _f(r,e){let[t,o,i]=Kl(e),a;if(If(r))a=()=>Hl(r());else{let l=Hl(r);a=()=>l}function s(l=a(),d){let p=[t[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(Ve(f)){let b=h(f,d);return b===void 0?f:b}else{if(ye(f))return na(f,g=>h(g,d));{let g=h(f,d);if(g===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return f},l)}return s.getInitialState=a,s}var kf=(r,e)=>Ef(r)?r.match(e):r(e);function Lf(...r){return e=>r.some(t=>kf(t,e))}var Nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pf=(r=21)=>{let e="",t=r;for(;t--;)e+=Nf[Math.random()*64|0];return e},Ff=["name","message","stack","code"],ia=class{constructor(r,e){this.payload=r,this.meta=e}payload;meta;_type},Vl=class{constructor(r,e){this.payload=r,this.meta=e}payload;meta;_type},Mf=r=>{if(typeof r=="object"&&r!==null){let e={};for(let t of Ff)typeof r[t]=="string"&&(e[t]=r[t]);return e}return{message:String(r)}},Wl="External signal was aborted",Df=(()=>{function r(e,t,o){let i=st(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=st(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=st(e+"/rejected",(d,p,f,h,g)=>({payload:h,error:(o&&o.serializeError||Mf)(d||"Rejected"),meta:{...g||{},arg:f,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(f,h,g)=>{let b=o?.idGenerator?o.idGenerator(d):Pf(),x=new AbortController,C,E;function O(m){E=m,x.abort()}p&&(p.aborted?O(Wl):p.addEventListener("abort",()=>O(Wl),{once:!0}));let L=(async function(){let m;try{let v=o?.condition?.(d,{getState:h,extra:g});if(Bf(v)&&(v=await v),v===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let R=new Promise((T,P)=>{C=()=>{P({name:"AbortError",message:E||"Aborted"})},x.signal.addEventListener("abort",C,{once:!0})});f(a(b,d,o?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:g}))),m=await Promise.race([R,Promise.resolve(t(d,{dispatch:f,getState:h,extra:g,requestId:b,signal:x.signal,abort:O,rejectWithValue:((T,P)=>new ia(T,P)),fulfillWithValue:((T,P)=>new Vl(T,P))})).then(T=>{if(T instanceof ia)throw T;return T instanceof Vl?i(T.payload,b,d,T.meta):i(T,b,d)})])}catch(v){m=v instanceof ia?s(null,b,d,v.payload,v.meta):s(v,b,d)}finally{C&&x.signal.removeEventListener("abort",C)}return o&&!o.dispatchConditionRejection&&s.match(m)&&m.meta.condition||f(m),m})();return Object.assign(L,{abort:O,requestId:b,arg:d,unwrap(){return L.then(Uf)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:Lf(s,i),typePrefix:e})}return r.withTypes=()=>r,r})();function Uf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Bf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ql=Symbol.for("rtk-slice-createasyncthunk"),Jx={[ql]:Df};function $f(r,e){return`${r}/${e}`}function Hf({creators:r}={}){let e=r?.asyncThunk?.[ql];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Ze(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(Vf()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(m,y){let v=typeof m=="string"?m:m.type;if(!v)throw new Error(Ze(12));if(v in d.sliceCaseReducersByType)throw new Error(Ze(13));return d.sliceCaseReducersByType[v]=y,p},addMatcher(m,y){return d.sliceMatchers.push({matcher:m,reducer:y}),p},exposeAction(m,y){return d.actionCreators[m]=y,p},exposeCaseReducer(m,y){return d.sliceCaseReducersByName[m]=y,p}};l.forEach(m=>{let y=s[m],v={reducerName:m,type:$f(i,m),createNotation:typeof o.reducers=="function"};Gf(y)?Kf(v,y,p,e):Wf(v,y,p)});function f(){let[m={},y=[],v=void 0]=typeof o.extraReducers=="function"?Kl(o.extraReducers):[o.extraReducers],R={...m,...d.sliceCaseReducersByType};return _f(o.initialState,T=>{for(let P in R)T.addCase(P,R[P]);for(let P of d.sliceMatchers)T.addMatcher(P.matcher,P.reducer);for(let P of y)T.addMatcher(P.matcher,P.reducer);v&&T.addDefaultCase(v)})}let h=m=>m,g=new Map,b=new WeakMap,x;function C(m,y){return x||(x=f()),x(m,y)}function E(){return x||(x=f()),x.getInitialState()}function O(m,y=!1){function v(T){let P=T[m];return typeof P>"u"&&y&&(P=Ko(b,v,E)),P}function R(T=h){let P=Ko(g,y,()=>new WeakMap);return Ko(P,T,()=>{let W={};for(let[I,F]of Object.entries(o.selectors??{}))W[I]=zf(F,T,()=>Ko(b,T,E),y);return W})}return{reducerPath:m,getSelectors:R,get selectors(){return R(v)},selectSlice:v}}let L={name:i,reducer:C,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...O(a),injectInto(m,{reducerPath:y,...v}={}){let R=y??a;return m.inject({reducerPath:R,reducer:C},v),{...L,...O(R,!0)}}};return L}}function zf(r,e,t,o){function i(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=t()),r(l,...s)}return i.unwrapped=r,i}var Zl=Hf();function Vf(){function r(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return r.withTypes=()=>r,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:r}}function Wf({type:r,reducerName:e,createNotation:t},o,i){let a,s;if("reducer"in o){if(t&&!jf(o))throw new Error(Ze(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(r,a).exposeCaseReducer(e,a).exposeAction(e,s?st(r,s):st(r))}function Gf(r){return r._reducerDefinitionType==="asyncThunk"}function jf(r){return r._reducerDefinitionType==="reducerWithPrepare"}function Kf({type:r,reducerName:e},t,o,i){if(!i)throw new Error(Ze(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:f}=t,h=i(r,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),l&&o.addCase(h.pending,l),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||qo,pending:l||qo,rejected:d||qo,settled:p||qo})}function qo(){}var Ql="listener",Yl="completed",Jl="cancelled",Xx=`task-${Jl}`,e0=`task-${Yl}`,t0=`${Ql}-${Jl}`,r0=`${Ql}-${Yl}`;var{assign:Xl}=Object;var aa="listenerMiddleware";var qf=Xl(st(`${aa}/add`),{withTypes:()=>qf}),o0=st(`${aa}/removeAll`),Zf=Xl(st(`${aa}/remove`),{withTypes:()=>Zf});function Ze(r){return`Minified Redux Toolkit error #${r}; visit https://redux-toolkit.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Le=class r extends Ge{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(cr(a))return a;if(i==null)return;let s=Zl({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=jl({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=fe(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[i.name]=new r(s,l,i.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=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(i));return this.reduxStore.dispatch(h),h}:f=>{let h=d,g=this.getState()[h];re(g,f)||this.setState({[h]:i(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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Qf(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))cr(e)&&e.clear()}var ct=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ee(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function sa(r,e,t){return new ct(r,e,t).watch()}var Tt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ua={};N(ua,{scrollHelper:()=>ur});var la,Zo=new Map,da=class{lock(e,t){if(t){let o=Zo.get(t);if(o==null||o===e)return Zo.set(t,e),t}}release(e,t){t&&Zo.get(t)===e&&Zo.delete(t)}findFirstScrollableParent(e){var t;let o,i;for(let a of Jn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(t=o??i)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,i;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((i=t?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=Re(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.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=(la=window.FluidTopicsScrollHelper)!==null&&la!==void 0?la:new da;var ur=window.FluidTopicsScrollHelper;var fa={};N(fa,{toFtFormComponent:()=>Yf});var pa=Symbol("elementInternals"),Yf=Q(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[pa].form}constructor(...o){super(o),this[pa]=this.attachInternals()}setFormValue(o){this[pa].setFormValue(o)}}return e});var ha={};N(ha,{DateFormatter:()=>It});var It=class{static format(e,t,o,i,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,t,o,i,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}};var ma={};N(ma,{ALL_KEYS_VALUE:()=>ga,SameWindowStorageEvent:()=>pr});var ga="__all__",pr=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ga}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new pr(ga))}});var ba={};N(ba,{FocusMainContentEvent:()=>ya});var ya=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ed={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Jf(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function Xf(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}document.addEventListener("keydown",Jf);document.addEventListener("click",Xf);var td=_`
47
+ `;var hl={};var Hi={};P(Hi,{ParametrizedLabelResolver:()=>zr});var zr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var ca={};P(ca,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>ge,FtReduxStore:()=>Le,FtStateManager:()=>Tt,ReduxWatcher:()=>ct,clearAllStores:()=>Yf,isFtReduxStore:()=>cr,redux:()=>M,reduxEventListener:()=>tf,reduxReactive:()=>ef,watch:()=>sa,withRedux:()=>gl});var ef=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},M=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Ee,attribute:!1,...e};S(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[o]),store:e.store})}},tf=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Vr=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function cr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),At=Symbol("internalStores"),gl=Q(Symbol("withRedux"),function(r){var e,t,o;class i extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=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[At].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[At].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[At].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[At].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[At].delete(l)}setupStores(){this.unsubscribeFromStores(),this[At].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[at].has(s.store):this[at].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[at].set(s,l.subscribe(()=>this.updateFromStores())),this[Wr].set(s,[]),cr(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=g=>this[f](g);l.addEventListener(p.eventName,h),this[Wr].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[at].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[at].has(s)&&this[at].get(s)(),this[at].delete(s),(l=this[Wr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=at,t=At,o=Wr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ge=class extends gl(Y){};function ne(r){return`Minified Redux error #${r}; visit https://redux.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}var rf=typeof Symbol=="function"&&Symbol.observable||"@@observable",ml=rf,zi=()=>Math.random().toString(36).substring(7).split("").join("."),of={INIT:`@@redux/INIT${zi()}`,REPLACE:`@@redux/REPLACE${zi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zi()}`},Io=of;function _o(r){if(typeof r!="object"||r===null)return!1;let e=r;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e||Object.getPrototypeOf(r)===null}function Vi(r,e,t){if(typeof r!="function")throw new Error(ne(2));if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ne(1));return t(Vi)(r,e)}let o=r,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,O)=>{s.set(O,E)}))}function f(){if(d)throw new Error(ne(3));return i}function h(E){if(typeof E!="function")throw new Error(ne(4));if(d)throw new Error(ne(5));let O=!0;p();let L=l++;return s.set(L,E),function(){if(O){if(d)throw new Error(ne(6));O=!1,p(),s.delete(L),a=null}}}function g(E){if(!_o(E))throw new Error(ne(7));if(typeof E.type>"u")throw new Error(ne(8));if(typeof E.type!="string")throw new Error(ne(17));if(d)throw new Error(ne(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(L=>{L()}),E}function b(E){if(typeof E!="function")throw new Error(ne(10));o=E,g({type:Io.REPLACE})}function x(){let E=h;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ne(11));function L(){let y=O;y.next&&y.next(f())}return L(),{unsubscribe:E(L)}},[ml](){return this}}}return g({type:Io.INIT}),{dispatch:g,subscribe:h,getState:f,replaceReducer:b,[ml]:x}}function nf(r){Object.keys(r).forEach(e=>{let t=r[e];if(typeof t(void 0,{type:Io.INIT})>"u")throw new Error(ne(12));if(typeof t(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ne(13))})}function yl(r){let e=Object.keys(r),t={};for(let s=0;s<e.length;s++){let l=e[s];typeof r[l]=="function"&&(t[l]=r[l])}let o=Object.keys(t),i,a;try{nf(t)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let g=o[h],b=t[g],x=l[g],C=b(x,d);if(typeof C>"u"){let E=d&&d.type;throw new Error(ne(14))}f[g]=C,p=p||C!==x}return p=p||o.length!==Object.keys(l).length,p?f:l}}function Gr(...r){return r.length===0?e=>e:r.length===1?r[0]:r.reduce((e,t)=>(...o)=>e(t(...o)))}function bl(...r){return e=>(t,o)=>{let i=e(t,o),a=()=>{throw new Error(ne(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=r.map(d=>d(s));return a=Gr(...l)(i.dispatch),{...i,dispatch:a}}}function vl(r){return _o(r)&&"type"in r&&typeof r.type=="string"}var Tl=Symbol.for("immer-nothing"),xl=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function ke(r,...e){throw new Error(`[Immer] minified error nr: ${r}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,dr=me.getPrototypeOf,No="constructor",$o="prototype",Ki="configurable",Fo="enumerable",Lo="writable",jr="value",Ve=r=>!!r&&!!r[ae];function ye(r){return r?Il(r)||zo(r)||!!r[xl]||!!r[No]?.[xl]||Vo(r)||Wo(r):!1}var af=me[$o][No].toString(),Sl=new WeakMap;function Il(r){if(!r||!ta(r))return!1;let e=dr(r);if(e===null||e===me[$o])return!0;let t=me.hasOwnProperty.call(e,No)&&e[No];if(t===Object)return!0;if(!lr(t))return!1;let o=Sl.get(t);return o===void 0&&(o=Function.toString.call(t),Sl.set(t,o)),o===af}function Ho(r,e,t=!0){Zr(r)===0?(t?Reflect.ownKeys(r):me.keys(r)).forEach(i=>{e(i,r[i],r)}):r.forEach((o,i)=>e(i,o,r))}function Zr(r){let e=r[ae];return e?e.type_:zo(r)?1:Vo(r)?2:Wo(r)?3:0}var Wi=(r,e,t=Zr(r))=>t===2?r.has(e):me[$o].hasOwnProperty.call(r,e),qi=(r,e,t=Zr(r))=>t===2?r.get(e):r[e],Mo=(r,e,t,o=Zr(r))=>{o===2?r.set(e,t):o===3?r.add(t):r[e]=t};function sf(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}var zo=Array.isArray,Vo=r=>r instanceof Map,Wo=r=>r instanceof Set,ta=r=>typeof r=="object",lr=r=>typeof r=="function",Gi=r=>typeof r=="boolean";function cf(r){let e=+r;return Number.isInteger(e)&&String(e)===r}var qe=r=>r.copy_||r.base_;var ra=r=>r.modified_?r.copy_:r.base_;function Zi(r,e){if(Vo(r))return new Map(r);if(Wo(r))return new Set(r);if(zo(r))return Array[$o].slice.call(r);let t=Il(r);if(e===!0||e==="class_only"&&!t){let o=me.getOwnPropertyDescriptors(r);delete o[ae];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],l=o[s];l[Lo]===!1&&(l[Lo]=!0,l[Ki]=!0),(l.get||l.set)&&(o[s]={[Ki]:!0,[Lo]:!0,[Fo]:l[Fo],[jr]:r[s]})}return me.create(dr(r),o)}else{let o=dr(r);if(o!==null&&t)return{...r};let i=me.create(o);return me.assign(i,r)}}function oa(r,e=!1){return Go(r)||Ve(r)||!ye(r)||(Zr(r)>1&&me.defineProperties(r,{set:ko,add:ko,clear:ko,delete:ko}),me.freeze(r),e&&Ho(r,(t,o)=>{oa(o,!0)},!1)),r}function lf(){ke(2)}var ko={[jr]:lf};function Go(r){return r===null||!ta(r)?!0:me.isFrozen(r)}var Do="MapSet",Qi="Patches",El="ArrayMethods",_l={};function Rt(r){let e=_l[r];return e||ke(0,r),e}var Cl=r=>!!_l[r];var Kr,kl=()=>Kr,df=(r,e)=>({drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Cl(Do)?Rt(Do):void 0,arrayMethodsPlugin_:Cl(El)?Rt(El):void 0});function wl(r,e){e&&(r.patchPlugin_=Rt(Qi),r.patches_=[],r.inversePatches_=[],r.patchListener_=e)}function Yi(r){Ji(r),r.drafts_.forEach(uf),r.drafts_=null}function Ji(r){r===Kr&&(Kr=r.parent_)}var Ol=r=>Kr=df(Kr,r);function uf(r){let e=r[ae];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Al(r,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];if(r!==void 0&&r!==t){t[ae].modified_&&(Yi(e),ke(4)),ye(r)&&(r=Rl(e,r));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(t[ae].base_,r,e)}else r=Rl(e,t);return pf(e,r,!0),Yi(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),r!==Tl?r:void 0}function Rl(r,e){if(Go(e))return e;let t=e[ae];if(!t)return Uo(e,r.handledSet_,r);if(!jo(t,r))return e;if(!t.modified_)return t.base_;if(!t.finalized_){let{callbacks_:o}=t;if(o)for(;o.length>0;)o.pop()(r);Nl(t,r)}return t.copy_}function pf(r,e,t=!1){!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_&&oa(e,t)}function Ll(r){r.finalized_=!0,r.scope_.unfinalizedDrafts_--}var jo=(r,e)=>r.scope_===e,ff=[];function Pl(r,e,t,o){let i=qe(r),a=r.type_;if(o!==void 0&&qi(i,o,a)===e){Mo(i,o,t,a);return}if(!r.draftLocations_){let l=r.draftLocations_=new Map;Ho(i,(d,p)=>{if(Ve(p)){let f=l.get(p)||[];f.push(d),l.set(p,f)}})}let s=r.draftLocations_.get(e)??ff;for(let l of s)Mo(i,l,t,a)}function hf(r,e,t){r.callbacks_.push(function(i){let a=e;if(!a||!jo(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=ra(a);Pl(r,a.draft_??a,s,t),Nl(a,i)})}function Nl(r,e){if(r.modified_&&!r.finalized_&&(r.type_===3||r.type_===1&&r.allIndicesReassigned_||(r.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(r);i&&o.generatePatches_(r,i,e)}Ll(r)}}function gf(r,e,t){let{scope_:o}=r;if(Ve(t)){let i=t[ae];jo(i,o)&&i.callbacks_.push(function(){Po(r);let s=ra(i);Pl(r,t,s,e)})}else ye(t)&&r.callbacks_.push(function(){let a=qe(r);r.type_===3?a.has(t)&&Uo(t,o.handledSet_,o):qi(a,e,r.type_)===t&&o.drafts_.length>1&&(r.assigned_.get(e)??!1)===!0&&r.copy_&&Uo(qi(r.copy_,e,r.type_),o.handledSet_,o)})}function Uo(r,e,t){return!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||Ve(r)||e.has(r)||!ye(r)||Go(r)||(e.add(r),Ho(r,(o,i)=>{if(Ve(i)){let a=i[ae];if(jo(a,t)){let s=ra(a);Mo(r,o,s,r.type_),Ll(a)}}else ye(i)&&Uo(i,e,t)})),r}function mf(r,e){let t=zo(r),o={type_:t?1:0,scope_:e?e.scope_:kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=Bo;t&&(i=[o],a=qr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return o.draft_=l,o.revoke_=s,[l,o]}var Bo={get(r,e){if(e===ae)return r;let t=r.scope_.arrayMethodsPlugin_,o=r.type_===1&&typeof e=="string";if(o&&t?.isArrayOperationMethod(e))return t.createMethodInterceptor(r,e);let i=qe(r);if(!Wi(i,e,r.type_))return bf(r,i,e);let a=i[e];if(r.finalized_||!ye(a)||o&&r.operationMethod&&t?.isMutatingArrayMethod(r.operationMethod)&&cf(e))return a;if(a===ji(r.base_,e)||yf(r,e,a)){Po(r);let s=r.type_===1?+e:e,l=ea(r.scope_,a,r,s);return r.copy_[s]=l}return a},has(r,e){return e in qe(r)},ownKeys(r){return Reflect.ownKeys(qe(r))},set(r,e,t){let o=Fl(qe(r),e);if(o?.set)return o.set.call(r.draft_,t),!0;if(!r.modified_){let i=ji(qe(r),e),a=i?.[ae];if(a&&a.base_===t)return r.copy_[e]=t,r.assigned_.set(e,!1),!0;if(sf(t,i)&&(t!==void 0||Wi(r.base_,e,r.type_)))return!0;Po(r),Xi(r)}return r.copy_[e]===t&&(t!==void 0||Wi(r.copy_,e,r.type_))||Number.isNaN(t)&&Number.isNaN(r.copy_[e])||(r.copy_[e]=t,r.assigned_.set(e,!0),gf(r,e,t)),!0},deleteProperty(r,e){return Po(r),ji(r.base_,e)!==void 0||e in r.base_?(r.assigned_.set(e,!1),Xi(r)):r.assigned_.delete(e),r.copy_&&delete r.copy_[e],!0},getOwnPropertyDescriptor(r,e){let t=qe(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{[Lo]:!0,[Ki]:r.type_!==1||e!=="length",[Fo]:o[Fo],[jr]:t[e]}},defineProperty(){ke(11)},getPrototypeOf(r){return dr(r.base_)},setPrototypeOf(){ke(12)}},qr={};for(let r in Bo){let e=Bo[r];qr[r]=function(){let t=arguments;return t[0]=t[0][0],e.apply(this,t)}}qr.deleteProperty=function(r,e){return qr.set.call(this,r,e,void 0)};qr.set=function(r,e,t){return Bo.set.call(this,r[0],e,t,r[0])};function ji(r,e){let t=r[ae];return(t?qe(t):r)[e]}function yf(r,e,t){return r.type_!==1||!r.allIndicesReassigned_||r.assigned_?.get(e)||!ye(t)||t[ae]?!1:r.baseRefs_.has(t)}function bf(r,e,t){let o=Fl(e,t);return o?jr in o?o[jr]:o.get?.call(r.draft_):void 0}function Fl(r,e){if(!(e in r))return;let t=dr(r);for(;t;){let o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=dr(t)}}function Xi(r){r.modified_||(r.modified_=!0,r.parent_&&Xi(r.parent_))}function Po(r){r.copy_||(r.assigned_=new Map,r.copy_=Zi(r.base_,r.scope_.immer_.useStrictShallowCopy_))}var vf=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,o)=>{if(lr(e)&&!lr(t)){let a=t;t=e;let s=this;return function(d=a,...p){return s.produce(d,f=>t.call(this,f,...p))}}lr(t)||ke(6),o!==void 0&&!lr(o)&&ke(7);let i;if(ye(e)){let a=Ol(this),s=ea(a,e,void 0),l=!0;try{i=t(s),l=!1}finally{l?Yi(a):Ji(a)}return wl(a,o),Al(i,a)}else if(!e||!ta(e)){if(i=t(e),i===void 0&&(i=e),i===Tl&&(i=void 0),this.autoFreeze_&&oa(i,!0),o){let a=[],s=[];Rt(Qi).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else ke(1,e)},this.produceWithPatches=(e,t)=>{if(lr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,i;return[this.produce(e,t,(s,l)=>{o=s,i=l}),o,i]},Gi(r?.autoFreeze)&&this.setAutoFreeze(r.autoFreeze),Gi(r?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),Gi(r?.useStrictIteration)&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){ye(r)||ke(8),Ve(r)&&(r=Ml(r));let e=Ol(this),t=ea(e,r,void 0);return t[ae].isManual_=!0,Ji(e),t}finishDraft(r,e){let t=r&&r[ae];(!t||!t.isManual_)&&ke(9);let{scope_:o}=t;return wl(o,e),Al(void 0,o)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,e){let t;for(t=e.length-1;t>=0;t--){let i=e[t];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}t>-1&&(e=e.slice(t+1));let o=Rt(Qi).applyPatches_;return Ve(r)?o(r,e):this.produce(r,i=>o(i,e))}};function ea(r,e,t,o){let[i,a]=Vo(e)?Rt(Do).proxyMap_(e,t):Wo(e)?Rt(Do).proxySet_(e,t):mf(e,t);return(t?.scope_??kl()).drafts_.push(i),a.callbacks_=t?.callbacks_??[],a.key_=o,t&&o!==void 0?hf(t,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Ml(r){return Ve(r)||ke(10,r),Dl(r)}function Dl(r){if(!ye(r)||Go(r))return r;let e=r[ae],t,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,t=Zi(r,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else t=Zi(r,!0);return Ho(t,(i,a)=>{Mo(t,i,Dl(a))},o),e&&(e.finalized_=!1),t}var xf=globalThis.Iterator,Zx=typeof xf?.from=="function";var Sf=new vf,na=Sf.produce;function Ul(r){return({dispatch:t,getState:o})=>i=>a=>typeof a=="function"?a(t,o,r):i(a)}var Bl=Ul(),$l=Ul;var Ef=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)},r0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}},Cf=r=>r&&typeof r.match=="function";function st(r,e){function t(...o){if(e){let i=e(...o);if(!i)throw new Error(Ze(0));return{type:r,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:r,payload:o[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=o=>vl(o)&&o.type===r,t}var Gl=class Qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qr(...e[0].concat(this)):new Qr(...e.concat(this))}};function Hl(r){return ye(r)?na(r,()=>{}):r}function Ko(r,e,t){return r.has(e)?r.get(e):r.set(e,t(e)).get(e)}function wf(r){return typeof r=="boolean"}var Of=()=>function(e){let{thunk:t=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Gl;return t&&(wf(t)?s.push(Bl):s.push($l(t.extraArgument))),s},Af="RTK_autoBatch";var zl=r=>e=>{setTimeout(e,r)},Rf=(r,e)=>t=>{let o=!1,i=()=>{o||(o=!0,cancelAnimationFrame(a),clearTimeout(s),t())},a=r(i),s=setTimeout(i,e)},Tf=(r={type:"raf"})=>e=>(...t)=>{let o=e(...t),i=!0,a=!1,s=!1,l=new Set,d=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Rf(window.requestAnimationFrame,100):zl(10):r.type==="callback"?r.queueNotification:zl(r.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),g=o.subscribe(h);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){try{return i=!f?.meta?.[Af],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},If=r=>function(t){let{autoBatch:o=!0}=t??{},i=new Gl(r);return o&&i.push(Tf(typeof o=="object"?o:void 0)),i};function jl(r){let e=Of(),{reducer:t=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=r||{},d;if(typeof t=="function")d=t;else if(_o(t))d=yl(t);else throw new Error(Ze(1));let p;typeof o=="function"?p=o(e):p=e();let f=Gr;i&&(f=Ef({trace:!1,...typeof i=="object"&&i}));let h=bl(...p),g=If(h),b=typeof l=="function"?l(g):g(),x=f(...b);return Vi(d,s,x)}function Kl(r){let e={},t=[],o,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ze(28));if(l in e)throw new Error(Ze(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&t.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return r(i),[e,t,o]}function _f(r){return typeof r=="function"}function kf(r,e){let[t,o,i]=Kl(e),a;if(_f(r))a=()=>Hl(r());else{let l=Hl(r);a=()=>l}function s(l=a(),d){let p=[t[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(Ve(f)){let b=h(f,d);return b===void 0?f:b}else{if(ye(f))return na(f,g=>h(g,d));{let g=h(f,d);if(g===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return f},l)}return s.getInitialState=a,s}var Lf=(r,e)=>Cf(r)?r.match(e):r(e);function Pf(...r){return e=>r.some(t=>Lf(t,e))}var Nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ff=(r=21)=>{let e="",t=r;for(;t--;)e+=Nf[Math.random()*64|0];return e},Mf=["name","message","stack","code"],ia=class{constructor(r,e){this.payload=r,this.meta=e}payload;meta;_type},Vl=class{constructor(r,e){this.payload=r,this.meta=e}payload;meta;_type},Df=r=>{if(typeof r=="object"&&r!==null){let e={};for(let t of Mf)typeof r[t]=="string"&&(e[t]=r[t]);return e}return{message:String(r)}},Wl="External signal was aborted",Uf=(()=>{function r(e,t,o){let i=st(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=st(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=st(e+"/rejected",(d,p,f,h,g)=>({payload:h,error:(o&&o.serializeError||Df)(d||"Rejected"),meta:{...g||{},arg:f,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(f,h,g)=>{let b=o?.idGenerator?o.idGenerator(d):Ff(),x=new AbortController,C,E;function O(m){E=m,x.abort()}p&&(p.aborted?O(Wl):p.addEventListener("abort",()=>O(Wl),{once:!0}));let L=(async function(){let m;try{let v=o?.condition?.(d,{getState:h,extra:g});if($f(v)&&(v=await v),v===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let R=new Promise((T,N)=>{C=()=>{N({name:"AbortError",message:E||"Aborted"})},x.signal.addEventListener("abort",C,{once:!0})});f(a(b,d,o?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:g}))),m=await Promise.race([R,Promise.resolve(t(d,{dispatch:f,getState:h,extra:g,requestId:b,signal:x.signal,abort:O,rejectWithValue:((T,N)=>new ia(T,N)),fulfillWithValue:((T,N)=>new Vl(T,N))})).then(T=>{if(T instanceof ia)throw T;return T instanceof Vl?i(T.payload,b,d,T.meta):i(T,b,d)})])}catch(v){m=v instanceof ia?s(null,b,d,v.payload,v.meta):s(v,b,d)}finally{C&&x.signal.removeEventListener("abort",C)}return o&&!o.dispatchConditionRejection&&s.match(m)&&m.meta.condition||f(m),m})();return Object.assign(L,{abort:O,requestId:b,arg:d,unwrap(){return L.then(Bf)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:Pf(s,i),typePrefix:e})}return r.withTypes=()=>r,r})();function Bf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function $f(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ql=Symbol.for("rtk-slice-createasyncthunk"),n0={[ql]:Uf};function Hf(r,e){return`${r}/${e}`}function zf({creators:r}={}){let e=r?.asyncThunk?.[ql];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Ze(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(Wf()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(m,y){let v=typeof m=="string"?m:m.type;if(!v)throw new Error(Ze(12));if(v in d.sliceCaseReducersByType)throw new Error(Ze(13));return d.sliceCaseReducersByType[v]=y,p},addMatcher(m,y){return d.sliceMatchers.push({matcher:m,reducer:y}),p},exposeAction(m,y){return d.actionCreators[m]=y,p},exposeCaseReducer(m,y){return d.sliceCaseReducersByName[m]=y,p}};l.forEach(m=>{let y=s[m],v={reducerName:m,type:Hf(i,m),createNotation:typeof o.reducers=="function"};jf(y)?qf(v,y,p,e):Gf(v,y,p)});function f(){let[m={},y=[],v=void 0]=typeof o.extraReducers=="function"?Kl(o.extraReducers):[o.extraReducers],R={...m,...d.sliceCaseReducersByType};return kf(o.initialState,T=>{for(let N in R)T.addCase(N,R[N]);for(let N of d.sliceMatchers)T.addMatcher(N.matcher,N.reducer);for(let N of y)T.addMatcher(N.matcher,N.reducer);v&&T.addDefaultCase(v)})}let h=m=>m,g=new Map,b=new WeakMap,x;function C(m,y){return x||(x=f()),x(m,y)}function E(){return x||(x=f()),x.getInitialState()}function O(m,y=!1){function v(T){let N=T[m];return typeof N>"u"&&y&&(N=Ko(b,v,E)),N}function R(T=h){let N=Ko(g,y,()=>new WeakMap);return Ko(N,T,()=>{let W={};for(let[I,F]of Object.entries(o.selectors??{}))W[I]=Vf(F,T,()=>Ko(b,T,E),y);return W})}return{reducerPath:m,getSelectors:R,get selectors(){return R(v)},selectSlice:v}}let L={name:i,reducer:C,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...O(a),injectInto(m,{reducerPath:y,...v}={}){let R=y??a;return m.inject({reducerPath:R,reducer:C},v),{...L,...O(R,!0)}}};return L}}function Vf(r,e,t,o){function i(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=t()),r(l,...s)}return i.unwrapped=r,i}var Zl=zf();function Wf(){function r(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return r.withTypes=()=>r,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:r}}function Gf({type:r,reducerName:e,createNotation:t},o,i){let a,s;if("reducer"in o){if(t&&!Kf(o))throw new Error(Ze(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(r,a).exposeCaseReducer(e,a).exposeAction(e,s?st(r,s):st(r))}function jf(r){return r._reducerDefinitionType==="asyncThunk"}function Kf(r){return r._reducerDefinitionType==="reducerWithPrepare"}function qf({type:r,reducerName:e},t,o,i){if(!i)throw new Error(Ze(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:f}=t,h=i(r,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),l&&o.addCase(h.pending,l),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||qo,pending:l||qo,rejected:d||qo,settled:p||qo})}function qo(){}var Ql="listener",Yl="completed",Jl="cancelled",i0=`task-${Jl}`,a0=`task-${Yl}`,s0=`${Ql}-${Jl}`,c0=`${Ql}-${Yl}`;var{assign:Xl}=Object;var aa="listenerMiddleware";var Zf=Xl(st(`${aa}/add`),{withTypes:()=>Zf}),l0=st(`${aa}/removeAll`),Qf=Xl(st(`${aa}/remove`),{withTypes:()=>Qf});function Ze(r){return`Minified Redux Toolkit error #${r}; visit https://redux-toolkit.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Le=class r extends Ge{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(cr(a))return a;if(i==null)return;let s=Zl({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=jl({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=fe(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[i.name]=new r(s,l,i.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=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(i));return this.reduxStore.dispatch(h),h}:f=>{let h=d,g=this.getState()[h];re(g,f)||this.setState({[h]:i(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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Yf(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))cr(e)&&e.clear()}var ct=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ee(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function sa(r,e,t){return new ct(r,e,t).watch()}var Tt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ua={};P(ua,{scrollHelper:()=>ur});var la,Zo=new Map,da=class{lock(e,t){if(t){let o=Zo.get(t);if(o==null||o===e)return Zo.set(t,e),t}}release(e,t){t&&Zo.get(t)===e&&Zo.delete(t)}findFirstScrollableParent(e){var t;let o,i;for(let a of Jn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(t=o??i)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,i;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((i=t?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=Re(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.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=(la=window.FluidTopicsScrollHelper)!==null&&la!==void 0?la:new da;var ur=window.FluidTopicsScrollHelper;var fa={};P(fa,{toFtFormComponent:()=>Jf});var pa=Symbol("elementInternals"),Jf=Q(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[pa].form}constructor(...o){super(o),this[pa]=this.attachInternals()}setFormValue(o){this[pa].setFormValue(o)}}return e});var ha={};P(ha,{DateFormatter:()=>It});var It=class{static format(e,t,o,i,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,t,o,i,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}};var ma={};P(ma,{ALL_KEYS_VALUE:()=>ga,SameWindowStorageEvent:()=>pr});var ga="__all__",pr=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ga}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new pr(ga))}});var ba={};P(ba,{FocusMainContentEvent:()=>ya});var ya=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ed={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Xf(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function eh(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}document.addEventListener("keydown",Xf);document.addEventListener("click",eh);var td=_`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var va={};N(va,{withAriaNotification:()=>th});var eh={checkVisibility:!0},th=Q(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,i){let{checkVisibility:a}={...eh,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new _r({type:"aria",message:o})))},20)}}return e});var xa={};N(xa,{withConditionalVisibility:()=>rh});var rd=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function rh(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,i){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return rd([S({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),rd([H()],e.prototype,"isVisible",void 0),e}var Ea={};N(Ea,{FormController:()=>Sa});function oh(r){let e={};for(let t of Object.keys(r))e[t]=r[t].initial;return e}var Sa=class{constructor(e,t){this.host=e,this.config=t,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=oh(t),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,t){if(this.data[e]===t)return;let o={...this.data};o[e]=t,this.data=o,this.checkValidity()}bind(e){return t=>this.setValue(e,t.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,t){var o,i;let a=(i=(o=this.config[e]).validator)===null||i===void 0?void 0:i.call(o,this.value(e),this.data,t);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(t=>{this.validateField(t,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let t=this.config[e].selector;if(this.errors.has(e)&&t!==void 0)return t}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let t=this.host.renderRoot.querySelector(e);t instanceof HTMLElement&&t.focus()}async submit(e){var t,o,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(t=e.onInvalid)===null||t===void 0||t.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=ii(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function Ca(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}function od(r,e,t){return r?e(r):t?.(r)}var J=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},_t;(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(_t||(_t={}));var lt;(function(r){r.default="default",r.warning="warning",r.error="error"})(lt||(lt={}));var wa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var z0=Q(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=_t.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=lt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===_t.blur||this.validateOn===_t.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==lt.default&&this.validateOn===_t.blurWithStatusResolutionOnInput||this.validateOn===_t.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ca(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ca(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new wa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return $`
71
+ `;var va={};P(va,{withAriaNotification:()=>rh});var th={checkVisibility:!0},rh=Q(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,i){let{checkVisibility:a}={...th,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new _r({type:"aria",message:o})))},20)}}return e});var xa={};P(xa,{withConditionalVisibility:()=>oh});var rd=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function oh(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,i){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return rd([S({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),rd([H()],e.prototype,"isVisible",void 0),e}var Ea={};P(Ea,{FormController:()=>Sa});function nh(r){let e={};for(let t of Object.keys(r))e[t]=r[t].initial;return e}var Sa=class{constructor(e,t){this.host=e,this.config=t,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=nh(t),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,t){if(this.data[e]===t)return;let o={...this.data};o[e]=t,this.data=o,this.checkValidity()}bind(e){return t=>this.setValue(e,t.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,t){var o,i;let a=(i=(o=this.config[e]).validator)===null||i===void 0?void 0:i.call(o,this.value(e),this.data,t);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(t=>{this.validateField(t,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let t=this.config[e].selector;if(this.errors.has(e)&&t!==void 0)return t}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let t=this.host.renderRoot.querySelector(e);t instanceof HTMLElement&&t.focus()}async submit(e){var t,o,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(t=e.onInvalid)===null||t===void 0||t.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=ii(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function Ca(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}function od(r,e,t){return r?e(r):t?.(r)}var J=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},_t;(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(_t||(_t={}));var lt;(function(r){r.default="default",r.warning="warning",r.error="error"})(lt||(lt={}));var wa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var q0=Q(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=_t.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=lt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===_t.blur||this.validateOn===_t.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==lt.default&&this.validateOn===_t.blurWithStatusResolutionOnInput||this.validateOn===_t.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ca(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ca(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new wa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return $`
72
72
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
73
73
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
74
74
  ${et(this.errorMessages,o=>$`
@@ -81,9 +81,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?lt.error:this.warningMessages.length?lt.warning:lt.default}}return J([S()],e.prototype,"warningRules",void 0),J([S()],e.prototype,"errorRules",void 0),J([S()],e.prototype,"validateOn",void 0),J([S({type:Boolean})],e.prototype,"validateAtRender",void 0),J([S()],e.prototype,"label",void 0),J([S({type:Boolean})],e.prototype,"hideLabel",void 0),J([S()],e.prototype,"name",void 0),J([S({type:Boolean})],e.prototype,"disabled",void 0),J([S()],e.prototype,"helperText",void 0),J([S()],e.prototype,"forceStatus",void 0),J([S({reflect:!0})],e.prototype,"value",void 0),J([H()],e.prototype,"errorMessages",void 0),J([H()],e.prototype,"warningMessages",void 0),J([H()],e.prototype,"status",void 0),J([H()],e.prototype,"focused",void 0),J([H()],e.prototype,"additionalWarningRules",void 0),J([H()],e.prototype,"additionalErrorRules",void 0),J([H()],e.prototype,"forceErrorMessages",void 0),e});var Yr=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),Yr(o,e);return!0},Qo=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},nd=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),sh(e)}};function ih(r){this._$AN!==void 0?(Qo(this),this._$AM=r,nd(this)):this._$AM=r}function ah(r,e=!1,t=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)Yr(o[a],!1),Qo(o[a]);else o!=null&&(Yr(o,!1),Qo(o));else Yr(this,r)}var sh=r=>{r.type==De.CHILD&&(r._$AP??=ah,r._$AQ??=ih)},fr=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),nd(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Yr(this,e),Qo(this))}setValue(e){if(xs(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Oa=class extends fr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Z}update(e){return this.part=e,this.ensureFocusTrap(e.element),Z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof xe&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},vS=ue(Oa);var id;(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(id||(id={}));var ch={sm:640,md:768,lg:1024,xl:1280},Aa=class extends fr{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,i]){return this.lastArgs=[t,o,i],this.render(t,o,i)}render(e,t,o){let i=this.resolveThreshold(e),a=o??(()=>D);return this.size>i?t():a()}resolveThreshold(e){return typeof e=="number"?e:ch[e]}},CS=ue(Aa);var Yo=class{constructor(e,t=20){this.onChange=e,this.maxCapacity=t,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let t=JSON.stringify(e);window.localStorage.setItem(this.storageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}};var Ra,Ta,Ia,_a,lh=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ia=(Ta=(Ra=window.safari)===null||Ra===void 0?void 0:Ra.pushNotification)===null||Ta===void 0?void 0:Ta.toString())!==null&&Ia!==void 0?Ia:"")==="[object SafariRemoteNotification]",dh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(_a=window.ftGlobals)!==null&&_a!==void 0?_a:{lit:zn,litDecorators:Vn,litRepeat:Wn,litClassMap:Gn,litStyleMap:jn,litUnsafeHTML:qn,wcUtils:{...Zn,...ni,...Qn,...ui,...ha,...pi,...Yn,...mi,...oi,...Ii,...ba,...ed,...ua,..._i,...gi,...Mi,...fa,...Pi,...va,...xa,...pl,...ei,...Bi,...yi,...$i,...td,...hl,...Hi,...ca,...ma,...ki,...Ni,...ai,...li,...Ea,isSafari:lh,isTouchScreen:dh,setVariable:er}};var Qe;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found",r.requestedTopicFiltered="requested-topic-filtered"})(Qe||(Qe={}));var Jo=class extends CustomEvent{constructor(e){super(Qe.requestedTopicFiltered,{detail:e})}},Ye;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ye||(Ye={}));var uh=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},La=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ka=Symbol("registerInterval"),ph=Q(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[ka]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ka]):this.dispatchEvent(new La)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ka,uh([H()],t.prototype,"stateManager",void 0),t}),hr=class extends ph(ge){};var Na={padding:n.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:n.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:n.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},ad=_`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?lt.error:this.warningMessages.length?lt.warning:lt.default}}return J([S()],e.prototype,"warningRules",void 0),J([S()],e.prototype,"errorRules",void 0),J([S()],e.prototype,"validateOn",void 0),J([S({type:Boolean})],e.prototype,"validateAtRender",void 0),J([S()],e.prototype,"label",void 0),J([S({type:Boolean})],e.prototype,"hideLabel",void 0),J([S()],e.prototype,"name",void 0),J([S({type:Boolean})],e.prototype,"disabled",void 0),J([S()],e.prototype,"helperText",void 0),J([S()],e.prototype,"forceStatus",void 0),J([S({reflect:!0})],e.prototype,"value",void 0),J([H()],e.prototype,"errorMessages",void 0),J([H()],e.prototype,"warningMessages",void 0),J([H()],e.prototype,"status",void 0),J([H()],e.prototype,"focused",void 0),J([H()],e.prototype,"additionalWarningRules",void 0),J([H()],e.prototype,"additionalErrorRules",void 0),J([H()],e.prototype,"forceErrorMessages",void 0),e});var Yr=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),Yr(o,e);return!0},Qo=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},nd=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),ch(e)}};function ah(r){this._$AN!==void 0?(Qo(this),this._$AM=r,nd(this)):this._$AM=r}function sh(r,e=!1,t=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)Yr(o[a],!1),Qo(o[a]);else o!=null&&(Yr(o,!1),Qo(o));else Yr(this,r)}var ch=r=>{r.type==De.CHILD&&(r._$AP??=sh,r._$AQ??=ah)},fr=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),nd(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Yr(this,e),Qo(this))}setValue(e){if(xs(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Oa=class extends fr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Z}update(e){return this.part=e,this.ensureFocusTrap(e.element),Z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof xe&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},OS=ue(Oa);var id;(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(id||(id={}));var lh={sm:640,md:768,lg:1024,xl:1280},Aa=class extends fr{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,i]){return this.lastArgs=[t,o,i],this.render(t,o,i)}render(e,t,o){let i=this.resolveThreshold(e),a=o??(()=>D);return this.size>i?t():a()}resolveThreshold(e){return typeof e=="number"?e:lh[e]}},IS=ue(Aa);var Yo=class{constructor(e,t=20){this.onChange=e,this.maxCapacity=t,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let t=JSON.stringify(e);window.localStorage.setItem(this.storageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}};var Ra,Ta,Ia,_a,dh=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ia=(Ta=(Ra=window.safari)===null||Ra===void 0?void 0:Ra.pushNotification)===null||Ta===void 0?void 0:Ta.toString())!==null&&Ia!==void 0?Ia:"")==="[object SafariRemoteNotification]",uh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(_a=window.ftGlobals)!==null&&_a!==void 0?_a:{lit:zn,litDecorators:Vn,litRepeat:Wn,litClassMap:Gn,litStyleMap:jn,litUnsafeHTML:qn,wcUtils:{...Zn,...ni,...Qn,...ui,...ha,...pi,...Yn,...mi,...oi,...Ii,...ba,...ed,...ua,..._i,...gi,...Mi,...fa,...Ni,...va,...xa,...pl,...ei,...Bi,...yi,...$i,...td,...hl,...Hi,...ca,...ma,...ki,...Pi,...ai,...li,...Ea,isSafari:dh,isTouchScreen:uh,setVariable:er}};var Qe;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found",r.requestedTopicFiltered="requested-topic-filtered"})(Qe||(Qe={}));var Jo=class extends CustomEvent{constructor(e){super(Qe.requestedTopicFiltered,{detail:e})}},Ye;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ye||(Ye={}));var ph=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},La=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ka=Symbol("registerInterval"),fh=Q(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[ka]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ka]):this.dispatchEvent(new La)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ka,ph([H()],t.prototype,"stateManager",void 0),t}),hr=class extends fh(ge){};var Pa={padding:n.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:n.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:n.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},ad=_`
85
85
  .items-container {
86
- padding: ${Na.padding};
86
+ padding: ${Pa.padding};
87
87
  outline: none;
88
88
  }
89
89
 
@@ -100,7 +100,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
100
100
  By adding this gap we ensure that the previous item will be fully hidden
101
101
  and even if its size changes, it will not impact the scroll offset
102
102
  */
103
- margin-top: ${Na.itemsGap};
103
+ margin-top: ${Pa.itemsGap};
104
104
  }
105
105
 
106
106
  .item-container:not(.rendered) {
@@ -109,9 +109,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
109
109
 
110
110
  .item-container.rendered {
111
111
  display: flow-root;
112
- min-height: ${Na.itemContainerMinHeight};
112
+ min-height: ${Pa.itemContainerMinHeight};
113
113
  }
114
- `;var se=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Pa=class extends CustomEvent{constructor(e,t){super("visible-items-change",{detail:{indexes:e,items:t,visibleIndexes:e,visibleItems:t}})}},Fa=class extends CustomEvent{constructor(e,t){super("rendered-items-change",{detail:{indexes:e,items:t}})}},Ma=class extends Event{constructor(){super("scrolled-to-target")}},fh=r=>(r??[])[(r??[]).length-1],G=class extends Y{constructor(){super(...arguments),this.items=[],this.renderItem=()=>$``,this.getItemKey=(e,t)=>`${t} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.unRenderDistance=20,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new z(5),this.scrollDoneDebouncer=new z(10),this.onVisibilityChange=e=>{let t=new Set(this.visibleItems),o=new Set;for(let i of e){let a=+i.target.getAttribute("data-item-index");i.intersectionRect.height>0?(t.add(a),o.add(a)):o.has(a)||t.delete(a)}this.visibleItems=[...t].sort((i,a)=>i-a)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new z(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let t=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,t||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let o=this.scrollable.scrollTop,i=o-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=o,this.scrolledToTarget&&(this.restoreScrollIfNeeded(t?0:i),!t||this.scrollRestorationItem==null)){let a=this.searchFirstVisibleItem(o,this.itemsContainer.children);this.scrollRestorationItem=a?+a.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=o-this.getOffset(a)}},this.restoreScrollIfNeeded=(e=0)=>{var t;let o=this.scrollable.scrollHeight,i=o-((t=this.lastScrollHeight)!==null&&t!==void 0?t:o);if(this.lastScrollHeight=o,i!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let a=this.getItem(this.scrollRestorationItem),s=this.getOffset(a),l=Re(this.scrollRestorationItem===0?-s:1,this.scrollRestorationOffset,a.clientHeight-1),d=s+l+e-this.scrollable.scrollTop;(Math.abs(i-d)<4||Math.abs(d)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=d)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new z(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var t,o,i;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),ur.release(this,this._scrollable)),this._scrollable=ur.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(t=this._scrollable)===null||t===void 0||t.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(o=this._scrollable)===null||o===void 0?void 0:o.scrollTop,this.lastScrollHeight=(i=this._scrollable)===null||i===void 0?void 0:i.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return $`
114
+ `;var se=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Na=class extends CustomEvent{constructor(e,t){super("visible-items-change",{detail:{indexes:e,items:t,visibleIndexes:e,visibleItems:t}})}},Fa=class extends CustomEvent{constructor(e,t){super("rendered-items-change",{detail:{indexes:e,items:t}})}},Ma=class extends Event{constructor(){super("scrolled-to-target")}},hh=r=>(r??[])[(r??[]).length-1],G=class extends Y{constructor(){super(...arguments),this.items=[],this.renderItem=()=>$``,this.getItemKey=(e,t)=>`${t} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.unRenderDistance=20,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new z(5),this.scrollDoneDebouncer=new z(10),this.onVisibilityChange=e=>{let t=new Set(this.visibleItems),o=new Set;for(let i of e){let a=+i.target.getAttribute("data-item-index");i.intersectionRect.height>0?(t.add(a),o.add(a)):o.has(a)||t.delete(a)}this.visibleItems=[...t].sort((i,a)=>i-a)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new z(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let t=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,t||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let o=this.scrollable.scrollTop,i=o-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=o,this.scrolledToTarget&&(this.restoreScrollIfNeeded(t?0:i),!t||this.scrollRestorationItem==null)){let a=this.searchFirstVisibleItem(o,this.itemsContainer.children);this.scrollRestorationItem=a?+a.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=o-this.getOffset(a)}},this.restoreScrollIfNeeded=(e=0)=>{var t;let o=this.scrollable.scrollHeight,i=o-((t=this.lastScrollHeight)!==null&&t!==void 0?t:o);if(this.lastScrollHeight=o,i!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let a=this.getItem(this.scrollRestorationItem),s=this.getOffset(a),l=Re(this.scrollRestorationItem===0?-s:1,this.scrollRestorationOffset,a.clientHeight-1),d=s+l+e-this.scrollable.scrollTop;(Math.abs(i-d)<4||Math.abs(d)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=d)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new z(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var t,o,i;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),ur.release(this,this._scrollable)),this._scrollable=ur.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(t=this._scrollable)===null||t===void 0||t.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(o=this._scrollable)===null||o===void 0?void 0:o.scrollTop,this.lastScrollHeight=(i=this._scrollable)===null||i===void 0?void 0:i.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return $`
115
115
  <div @scroll-into-view=${this.onScrollIntoView} class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
116
116
  ${et(this.items,(e,t)=>this.getItemKey(e,t),(e,t)=>this.renderItemContainer(e,t))}
117
117
  </div>
@@ -121,21 +121,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
121
121
  data-item-index="${t}">
122
122
  ${i?(()=>{let s=this.renderItem(e,t);return typeof s=="string"?Kn(s):s})():D}
123
123
  </div>
124
- `}prepareRenderIfNeeded(e){let t=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!t&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}removeRenderedIndex(e){this.renderApprovalTimeouts[e]&&(clearTimeout(this.renderApprovalTimeouts[e]),this.renderApprovalTimeouts[e]=void 0),this.renderedIndexes.delete(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=fh(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect();let t=this.resolveScrollToIndex();this.cleanRenderedItems(t),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e),this.addRenderedIndex(t),this.updateComplete.then(()=>{this.scrollToTarget(t),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(t),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(t)})})}cleanRenderedItems(e){let t=e-this.renderBeforeFirst-this.unRenderDistance,o=e+this.renderAfterLast+this.unRenderDistance;this.renderedIndexes.forEach(i=>{(i<t||i>o)&&this.removeRenderedIndex(i)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=ur.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let t=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return t>=this.items.length?-1:t}getItem(e){var t,o;return(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(`#item-${e}`))!==null&&o!==void 0?o:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var t;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let o=e.composedPath()[0],i=this.getOffset(o),a=(t=e.composedPath().find(s=>typeof s.matches=="function"&&s.matches(".item-container")))===null||t===void 0?void 0:t.getAttribute("data-item-index");this.scrollRestorationItem=a==null?this.scrollRestorationItem:+a,this.scrollRestorationOffset=i-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=i}getOffset(e){let t=typeof e=="number"?this.getItem(e):e;return t?ur.getAbsoluteScrollOffset(this.scrollable,t):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,t,o,i){if(o=o??0,i=i??t.length-1,i<=o)return t[o];let a=Math.floor((i-o)/2)+o,s=t[a],l=this.getOffset(s);return l>e?this.searchFirstVisibleItem(e,t,o,a-1):l+s.clientHeight<e?this.searchFirstVisibleItem(e,t,a+1,i):s}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let t=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,t&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(o=>clearTimeout(o)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&mt(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Ma)}contentAvailableCallback(e){var t,o;super.contentAvailableCallback(e);let i=[...(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".item-container.rendered"))!==null&&o!==void 0?o:[]].map(a=>+a.getAttribute("data-item-index"));this.lastRenderedItemsLength!==i.length&&(this.dispatchRenderedItemsChangeEvent(i),this.lastRenderedItemsLength=i.length)}dispatchRenderedItemsChangeEvent(e){let t=e??[...this.renderedIndexes].sort((o,i)=>o-i);this.dispatchEvent(new Fa(t,t.map(o=>this.items[o])))}onVisibleItemsChange(){this.visibleItems.every((t,o)=>this.visibleItems[o+1]==null||t+1===this.visibleItems[o+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=tt(Ir(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Pa(this.visibleItems,this.visibleItems.map(t=>this.items[t])))).catch(()=>null)}};G.styles=ad;se([S({attribute:!1,hasChanged:Ee})],G.prototype,"items",void 0);se([S({attribute:!1})],G.prototype,"renderItem",void 0);se([S({attribute:!1})],G.prototype,"getItemKey",void 0);se([S({type:Object})],G.prototype,"scrollToItem",void 0);se([ie()],G.prototype,"scrollToIndex",void 0);se([S({type:Boolean})],G.prototype,"internalScroll",void 0);se([ie({min:1})],G.prototype,"renderBeforeFirst",void 0);se([ie({min:1})],G.prototype,"renderAfterLast",void 0);se([ie({min:0})],G.prototype,"unRenderDistance",void 0);se([S({type:Boolean})],G.prototype,"ensureScrollToTarget",void 0);se([S({type:Boolean})],G.prototype,"disableScrollManagement",void 0);se([H({hasChanged(r,e){return r!=null&&e==null||r.length!==e.length||r[0]!==e[0]}})],G.prototype,"visibleItems",void 0);se([Me(".scrollable")],G.prototype,"internalScrollable",void 0);se([Me(".items-container")],G.prototype,"itemsContainer",void 0);se([H()],G.prototype,"scrolledToTarget",void 0);se([H()],G.prototype,"scrolling",void 0);var sd={"ft-infinite-scroll":G};oe(sd);var cd=_`
124
+ `}prepareRenderIfNeeded(e){let t=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!t&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}removeRenderedIndex(e){this.renderApprovalTimeouts[e]&&(clearTimeout(this.renderApprovalTimeouts[e]),this.renderApprovalTimeouts[e]=void 0),this.renderedIndexes.delete(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=hh(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect();let t=this.resolveScrollToIndex();this.cleanRenderedItems(t),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e),this.addRenderedIndex(t),this.updateComplete.then(()=>{this.scrollToTarget(t),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(t),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(t)})})}cleanRenderedItems(e){let t=e-this.renderBeforeFirst-this.unRenderDistance,o=e+this.renderAfterLast+this.unRenderDistance;this.renderedIndexes.forEach(i=>{(i<t||i>o)&&this.removeRenderedIndex(i)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=ur.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let t=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return t>=this.items.length?-1:t}getItem(e){var t,o;return(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(`#item-${e}`))!==null&&o!==void 0?o:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var t;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let o=e.composedPath()[0],i=this.getOffset(o),a=(t=e.composedPath().find(s=>typeof s.matches=="function"&&s.matches(".item-container")))===null||t===void 0?void 0:t.getAttribute("data-item-index");this.scrollRestorationItem=a==null?this.scrollRestorationItem:+a,this.scrollRestorationOffset=i-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=i}getOffset(e){let t=typeof e=="number"?this.getItem(e):e;return t?ur.getAbsoluteScrollOffset(this.scrollable,t):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,t,o,i){if(o=o??0,i=i??t.length-1,i<=o)return t[o];let a=Math.floor((i-o)/2)+o,s=t[a],l=this.getOffset(s);return l>e?this.searchFirstVisibleItem(e,t,o,a-1):l+s.clientHeight<e?this.searchFirstVisibleItem(e,t,a+1,i):s}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let t=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,t&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(o=>clearTimeout(o)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&mt(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Ma)}contentAvailableCallback(e){var t,o;super.contentAvailableCallback(e);let i=[...(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".item-container.rendered"))!==null&&o!==void 0?o:[]].map(a=>+a.getAttribute("data-item-index"));this.lastRenderedItemsLength!==i.length&&(this.dispatchRenderedItemsChangeEvent(i),this.lastRenderedItemsLength=i.length)}dispatchRenderedItemsChangeEvent(e){let t=e??[...this.renderedIndexes].sort((o,i)=>o-i);this.dispatchEvent(new Fa(t,t.map(o=>this.items[o])))}onVisibleItemsChange(){this.visibleItems.every((t,o)=>this.visibleItems[o+1]==null||t+1===this.visibleItems[o+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=tt(Ir(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Na(this.visibleItems,this.visibleItems.map(t=>this.items[t])))).catch(()=>null)}};G.styles=ad;se([S({attribute:!1,hasChanged:Ee})],G.prototype,"items",void 0);se([S({attribute:!1})],G.prototype,"renderItem",void 0);se([S({attribute:!1})],G.prototype,"getItemKey",void 0);se([S({type:Object})],G.prototype,"scrollToItem",void 0);se([ie()],G.prototype,"scrollToIndex",void 0);se([S({type:Boolean})],G.prototype,"internalScroll",void 0);se([ie({min:1})],G.prototype,"renderBeforeFirst",void 0);se([ie({min:1})],G.prototype,"renderAfterLast",void 0);se([ie({min:0})],G.prototype,"unRenderDistance",void 0);se([S({type:Boolean})],G.prototype,"ensureScrollToTarget",void 0);se([S({type:Boolean})],G.prototype,"disableScrollManagement",void 0);se([H({hasChanged(r,e){return r!=null&&e==null||r.length!==e.length||r[0]!==e[0]}})],G.prototype,"visibleItems",void 0);se([Me(".scrollable")],G.prototype,"internalScrollable",void 0);se([Me(".items-container")],G.prototype,"itemsContainer",void 0);se([H()],G.prototype,"scrolledToTarget",void 0);se([H()],G.prototype,"scrolling",void 0);var sd={"ft-infinite-scroll":G};oe(sd);var cd=_`
125
125
  `;var ld=_`
126
126
  `;var dt=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},be=class extends hr{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return $`
127
127
  <article id="${this.tocId}">
128
128
  <slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
129
129
  </article>
130
130
  `}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift,e.headingStartLevel=this.headingStartLevel}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(t=>e.has(t))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(t=>t.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};be.styles=ld;dt([M({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.id}})],be.prototype,"mapId",void 0);dt([M({selector:r=>r.translation.profileId})],be.prototype,"translationProfileId",void 0);dt([M({selector:r=>r.translation.destinationLanguage})],be.prototype,"translationDestinationLanguage",void 0);dt([S()],be.prototype,"tocId",void 0);dt([S({type:Boolean})],be.prototype,"disableContextInteractions",void 0);dt([S({type:Number})],be.prototype,"headingLevelsShift",void 0);dt([ie()],be.prototype,"headingStartLevel",void 0);dt([H()],be.prototype,"tocNode",void 0);var dd={"ft-reader-topic-context":be};oe(dd);var ud=_`
131
- `;var hh={setTranslationDestinationLanguage:(r,e)=>{r.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(r,e)=>{r.translation.sourceLanguage=e.payload},setTranslationProfileId:(r,e)=>{r.translation.profileId=e.payload},setTranslationLoading:(r,e)=>{r.translation.isLoading=e.payload},setTranslationError:(r,e)=>{r.translation.isError=e.payload},setTopicsRating:(r,e)=>{for(let t in e.payload)r.topicsRating[t]=e.payload[t]}},pd=r=>Le.get({name:"ft-reader-"+r,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},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,metadataFilters:[]},reducers:hh});var Da=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,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,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,t,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]})}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:t,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,g={number:this.pages.length+1,title:(l=e.title)!==null&&l!==void 0?l:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},b=(E,O)=>(O?g.topics:g.hiddenTopics).push(E),x=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];g.breadcrumb.forEach((E,O)=>{b(E,x[O])}),e.tocId&&b(e.tocId,e.pageConfiguration.isVisible),g.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let C=this.resolveOverridenRootTocIdByParentForcedByPagination(g.breadcrumb,x);return g.rootTocId=C??g.rootTocId,g.rootDepth=C?this.nodeByTocId[C].depth:g.rootDepth,g}resolveOverridenRootTocIdByParentForcedByPagination(e,t){for(let o=0;o<e.length;o++)if(t[o])return e[o]}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}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}},Xo=class{convertPaginatedToc(e,t){return new Da(e,t).build()}};var gh="ft-app-info",ve=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};ve.eventName="authentication-change";var Jr=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Jr.eventName="ui-locale-changed";var mh={session:(r,e)=>{re(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>w.dispatchEvent(new ve(e.payload)),0))}},w=Le.get({name:gh,reducers:mh,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var en=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},yC=Q(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>It.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),en([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),en([M({store:w.name,selector:t=>{var o,i;return(i=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),en([M({store:w.name})],e.prototype,"uiLocale",void 0),e});var kt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=w.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=w.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var gr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var X=class extends gr{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new Ue,this.cache=e?i.commonCache:new Ue}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}};var tn=class extends X{async listMySearches(){let{session:e}=w.getState();return we(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rn=class extends X{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var on=class extends X{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var nn=class extends X{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var yh="ft-user-assets",bh={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Ce).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:i}=e.payload;Ba(r,t,[...Ua(r,t),i]),fd(r,t,1,o),hd(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Ba(r,t,Ua(r,t).map(i=>i.id===o.id?o:i)),hd(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:i}=e.payload;Ba(r,t,Ua(r,t).filter(a=>a.id!==i)),fd(r,t,-1,o)}},gd={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Ua=(r,e)=>{var t;let o=gd[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Ba=(r,e,t)=>{let o=gd[e];o&&(r[o]=t)},fd=(r,e,t,o)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===Ce.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},hd=(r,e)=>{let t=r.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!t.includes(i)).map(i=>({title:i}));r.assetLabels.push(...o)},le=Le.get({name:yh,reducers:bh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),$a=class{constructor(e=new on,t=new nn){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=w.getState();re((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),le.actions.clearAssetCount(),le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();le.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&le.getState().assetCounts.allAsset[e]!==t.count&&le.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&le.getState().assetCounts.bookmarkByMap[e]!==t.count&&le.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(le.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&t&&le.actions.clearBookmarkCountByMap(),le.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;le.actions.bookmarks(t)}}},Ha=new $a;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ha);var za=class{addCommand(e,t=!1){w.commands.add(e,t)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new za;var md,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},vh=Symbol("clearAfterUnitTest"),an=class extends vo(X){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[md]=()=>{this.defaultMessages={},this.cache=new Ue,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};re(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new zr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(i){!(i instanceof pe)&&t&&console.error(i)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>bo(0).then(()=>o()).catch(()=>null)))}};md=vh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var yd=window.FluidTopicsI18nService,tw=window.FluidTopicsCustomI18nService;var Va=class{highlightHtml(e,t,o){Ui(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Va;var Wa=class{isDate(e){var t,o,i,a;return(a=(o=((i=(t=w.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a,s;if(e==null)return"";try{return It.format(e,(o=t?.locale)!==null&&o!==void 0?o:w.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Wa;var Xr=class{static get(e,t){var o,i,a,s;let l=w.getState(),{lang:d,region:p}=(s=(i=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Te(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,t??`${d}-${p}`)}};var yr=class extends X{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(t),console.debug(i),o)),1e3)}};var Ga=class{urlToSearchRequest(e){return Xr.get().parse(e)}searchRequestToUrl(e){return Xr.get().serialize(e)}};window.FluidTopicsUrlService=new Ga;var Lt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{nextLocation:e}})}};Lt.eventName="before-location-change";var Nt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var ja=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},bd=new ja;var sn=class r extends Ge{static build(){return new r(window.history,bd,()=>window.location,!1)}constructor(e,t,o,i){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),re(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=t=>(o,i,[a,s,l])=>{let d=new Lt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=t(),f={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(i,[f,s,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(Lt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Lt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return fe(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return fe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return fe(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return fe(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let i=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r),addBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(r),removeBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(r)});var vd=_`
132
- `;function xd(r,e){let{authenticationRequired:t,session:o}=w.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var cn=class extends gr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ka=class r extends Tt{static build(e){return new r(w,e)}constructor(e,t){super(),this.store=e,this.cache=new Ue,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new z,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new z(500),this.apiProvider=t??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ve.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ve.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>xd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,t){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:t}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Jr(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return pc(w.getState().session,...e)}},eo=Ka.build();var Pt=class extends Event{constructor(e,t,o,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=i??!1}};var to=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:i,callbackRef:a}of o){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Pt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(t);a===void 0&&i.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),i.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ee=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},V=class extends ge{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=eo,this.contextRoot=new to}render(){return $`
131
+ `;var gh={setTranslationDestinationLanguage:(r,e)=>{r.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(r,e)=>{r.translation.sourceLanguage=e.payload},setTranslationProfileId:(r,e)=>{r.translation.profileId=e.payload},setTranslationLoading:(r,e)=>{r.translation.isLoading=e.payload},setTranslationError:(r,e)=>{r.translation.isError=e.payload},setTopicsRating:(r,e)=>{for(let t in e.payload)r.topicsRating[t]=e.payload[t]}},pd=r=>Le.get({name:"ft-reader-"+r,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},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,metadataFilters:[]},reducers:gh});var Da=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,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,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,t,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]})}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:t,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,g={number:this.pages.length+1,title:(l=e.title)!==null&&l!==void 0?l:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},b=(E,O)=>(O?g.topics:g.hiddenTopics).push(E),x=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];g.breadcrumb.forEach((E,O)=>{b(E,x[O])}),e.tocId&&b(e.tocId,e.pageConfiguration.isVisible),g.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let C=this.resolveOverridenRootTocIdByParentForcedByPagination(g.breadcrumb,x);return g.rootTocId=C??g.rootTocId,g.rootDepth=C?this.nodeByTocId[C].depth:g.rootDepth,g}resolveOverridenRootTocIdByParentForcedByPagination(e,t){for(let o=0;o<e.length;o++)if(t[o])return e[o]}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}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}},Xo=class{convertPaginatedToc(e,t){return new Da(e,t).build()}};var mh="ft-app-info",ve=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};ve.eventName="authentication-change";var Jr=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Jr.eventName="ui-locale-changed";var yh={session:(r,e)=>{re(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>w.dispatchEvent(new ve(e.payload)),0))}},w=Le.get({name:mh,reducers:yh,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var en=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},CC=Q(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>It.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),en([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),en([M({store:w.name,selector:t=>{var o,i;return(i=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),en([M({store:w.name})],e.prototype,"uiLocale",void 0),e});var kt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=w.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=w.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var gr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var X=class extends gr{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new Ue,this.cache=e?i.commonCache:new Ue}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}};var tn=class extends X{async listMySearches(){let{session:e}=w.getState();return we(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rn=class extends X{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var on=class extends X{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var nn=class extends X{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var bh="ft-user-assets",vh={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Ce).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:i}=e.payload;Ba(r,t,[...Ua(r,t),i]),fd(r,t,1,o),hd(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Ba(r,t,Ua(r,t).map(i=>i.id===o.id?o:i)),hd(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:i}=e.payload;Ba(r,t,Ua(r,t).filter(a=>a.id!==i)),fd(r,t,-1,o)}},gd={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Ua=(r,e)=>{var t;let o=gd[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Ba=(r,e,t)=>{let o=gd[e];o&&(r[o]=t)},fd=(r,e,t,o)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===Ce.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},hd=(r,e)=>{let t=r.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!t.includes(i)).map(i=>({title:i}));r.assetLabels.push(...o)},le=Le.get({name:bh,reducers:vh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),$a=class{constructor(e=new on,t=new nn){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=w.getState();re((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),le.actions.clearAssetCount(),le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();le.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&le.getState().assetCounts.allAsset[e]!==t.count&&le.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&le.getState().assetCounts.bookmarkByMap[e]!==t.count&&le.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(le.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&t&&le.actions.clearBookmarkCountByMap(),le.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;le.actions.bookmarks(t)}}},Ha=new $a;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ha);var za=class{addCommand(e,t=!1){w.commands.add(e,t)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new za;var md,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xh=Symbol("clearAfterUnitTest"),an=class extends vo(X){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[md]=()=>{this.defaultMessages={},this.cache=new Ue,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};re(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new zr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(i){!(i instanceof pe)&&t&&console.error(i)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>bo(0).then(()=>o()).catch(()=>null)))}};md=xh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var yd=window.FluidTopicsI18nService,sw=window.FluidTopicsCustomI18nService;var Va=class{highlightHtml(e,t,o){Ui(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Va;var Wa=class{isDate(e){var t,o,i,a;return(a=(o=((i=(t=w.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a,s;if(e==null)return"";try{return It.format(e,(o=t?.locale)!==null&&o!==void 0?o:w.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Wa;var Xr=class{static get(e,t){var o,i,a,s;let l=w.getState(),{lang:d,region:p}=(s=(i=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Te(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,t??`${d}-${p}`)}};var yr=class extends X{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(t),console.debug(i),o)),1e3)}};var Ga=class{urlToSearchRequest(e){return Xr.get().parse(e)}searchRequestToUrl(e){return Xr.get().serialize(e)}};window.FluidTopicsUrlService=new Ga;var Lt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{nextLocation:e}})}};Lt.eventName="before-location-change";var Pt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Pt.eventName="change";var ja=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},bd=new ja;var sn=class r extends Ge{static build(){return new r(window.history,bd,()=>window.location,!1)}constructor(e,t,o,i){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),re(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Pt(this.currentItem())),0)}installProxies(){let e=t=>(o,i,[a,s,l])=>{let d=new Lt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=t(),f={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(i,[f,s,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(Lt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Lt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Pt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Pt.eventName,e)}currentItem(){return fe(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return fe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return fe(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return fe(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let i=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r),addBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(r),removeBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(r)});var vd=_`
132
+ `;function xd(r,e){let{authenticationRequired:t,session:o}=w.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var cn=class extends gr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ka=class r extends Tt{static build(e){return new r(w,e)}constructor(e,t){super(),this.store=e,this.cache=new Ue,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new z,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new z(500),this.apiProvider=t??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ve.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ve.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>xd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,t){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:t}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Jr(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return pc(w.getState().session,...e)}},eo=Ka.build();var Nt=class extends Event{constructor(e,t,o,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=i??!1}};var to=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:i,callbackRef:a}of o){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Nt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(t);a===void 0&&i.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),i.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ee=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},V=class extends ge{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=eo,this.contextRoot=new to}render(){return $`
133
133
  <slot></slot>
134
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>yd.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};V.elementDefinitions={};V.styles=vd;ee([S()],V.prototype,"baseUrl",void 0);ee([S()],V.prototype,"tenantId",void 0);ee([S()],V.prototype,"apiIntegrationIdentifier",void 0);ee([S()],V.prototype,"apiIntegrationAppVersion",void 0);ee([S()],V.prototype,"uiLocale",void 0);ee([he(null)],V.prototype,"availableUiLocales",void 0);ee([he(null)],V.prototype,"metadataConfiguration",void 0);ee([S({type:Boolean})],V.prototype,"editorMode",void 0);ee([S({type:Boolean})],V.prototype,"noCustom",void 0);ee([S({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],V.prototype,"noCustomComponent",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],V.prototype,"noCustomCode",void 0);ee([S({type:Boolean})],V.prototype,"withManualResources",void 0);ee([S({type:Boolean})],V.prototype,"navigatorOnline",void 0);ee([S({type:Boolean})],V.prototype,"forcedOffline",void 0);ee([S({type:Boolean})],V.prototype,"authenticationRequired",void 0);ee([he([])],V.prototype,"messageContexts",void 0);ee([he(void 0)],V.prototype,"session",void 0);var Sd={"ft-app-context":V};oe(Sd);var ln=class extends X{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o,i){super(!1,t),this.converter=e,this._mapId=o,this._metadataFilters=i,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(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return we((t=(e=w.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,t,o){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))}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.metadataFilters),()=>this.fetchPages(this.mapId,this.metadataFilters,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters))}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 getFilteredTocNodes(e){return(await this.getEnrichedToc(e)).filteredTocNodes}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var o;return(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var o,i;let a=this.getMapNow(t);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(t))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,t){let o=await this.getEnrichedToc(t);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,t){let o=await this.getEnrichedToc(t);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,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}async getTopicMetadataValue(e,t){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==t)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,o,i){let a=this.getNavigationData(e,t,o),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),l=new URL(s,this.api.tenantBaseUrl);if(a.page!=null&&l.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&l.searchParams.set("tocId",a.tocId),a.section!=null&&l.searchParams.set("section",a.section),i&&a.metadataFilters){let d=Te.serializeValueFilters(a.metadataFilters);d&&l.searchParams.set(k.VALUE_FILTERS,d)}return l.href}getLinkWithFilter(e,t,o){return this.getLink(e,t,o,!0)}getNavigationData(e,t,o,i){var a,s;e=e||"root";let l=this.getEnrichedTocNow(i),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:t&&d&&d.number!==t?t:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,t,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,t,o,i)}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(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=w.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let o=this.getTocNodeNow(e,t);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,t);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,t);return i}isFeatureAccessible(e,{session:t}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ye.FEEDBACK:return we(t??[],B.FEEDBACK_USER);case Ye.RATING:return we(t??[],B.RATING_USER);case Ye.PRINT:return we(t??[],B.PRINT_USER);case Ye.BOOKMARK:return!!t?.sessionAuthenticated;case Ye.COLLECTIONS:return we(t??[],B.COLLECTION_USER);case Ye.PERSONAL_BOOKS:return we(t??[],B.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var dn=class r extends ln{static async build(e){return new r(new Xo,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let o=await this.api.getMap(e,t);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t,o){return await this.getMap(o),t?.length?this.api.getFilteredPages(e,o,t):this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,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 Eh="topicPivot";function Ed(r,e){let t=new URL(r);return e?.values.forEach(o=>{t.searchParams.append(Eh,o)}),t.href}var un=class r{static build(e,t){return new r(pd(e.trim()||"context"),t??dn.build)}loaded(){return Ir(()=>this._loaded)}constructor(e,t,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new z(10),this.analyticsEventsService=i??new yr,this.initService(t)}async initService(e){this.service=await e();let{mapId:t,metadataFilters:o}=this.store.getState();return this.service.mapId=t,this.service.metadataFilters=o,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 setFilters(e){re(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return mt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:t}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!t&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,t){var o,i;let a=await this.awaitService();if(t)return a.getPage(t,this.getTranslationSettings());if(!e)return a.getPageByTocId("root",this.getTranslationSettings());let s=this.store.getState().filteredTocNodes[e],l=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(e))!=null;return s&&s.reason!=="ACCESS_RIGHTS_FILTER"&&!l?a.getPageByTocId((i=s.closestParent)!==null&&i!==void 0?i:"root",this.getTranslationSettings()):a.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,t){var o,i,a,s,l;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:t.rootTocId;if(!t.topics.includes(d)){if(e!="root"&&!t.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Jo(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(Qe.requestedTopicNotFound))}return(l=(s=t.topics[0])!==null&&s!==void 0?s:t.hiddenTopics[0])!==null&&l!==void 0?l:"root"}return d}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())}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()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromFilter(e,t){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:l,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:l?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,t)}async fetchDataFromFilter(){var e,t,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(t=this.service)===null||t===void 0?void 0:t.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof pe))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,t,o,i,a,s,l;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(t=this.service)===null||t===void 0?void 0:t.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof pe))throw d&&this.setTranslationError(!0),(l=this.errorHandler)===null||l===void 0||l.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(t=>this.store.actions.configuration(t))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,t;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);if(o!==void 0&&o.length>0){let i=await((t=this.service)===null||t===void 0?void 0:t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Qe.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=w.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Xt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await mt(()=>{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(!((i=(o=(t=d?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[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())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}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 t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.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 t;let o=await((t=this.service)===null||t===void 0?void 0:t.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()}async getAccurateNavigationData(e,t,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,t?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,i).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(Qe.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var t,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Xt.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=ci(a);if(s){let l=this.store.getState().visibleTopics[0],d=(t=this.store.getState().configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata;if(d&&l){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(l,d));s=Ed(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var t;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=w.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(t=l.untranslatedTitle)!==null&&t!==void 0?t:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:So.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,t){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=w.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(t.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...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 x;return{tocId:b.tocId,title:(x=b.untranslatedTitle)!==null&&x!==void 0?x:b.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let t=e.split("-");return t.length===2?{languageCode:t[0],countryCode:t[1]}:{languageCode:t[0],countryCode:""}}};var pn=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},fn=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},hn=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},gn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},mn=class extends Event{constructor(){super("ft-reader-map-not-found")}},yn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},bn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},vn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Cd=_`
135
- `;var ro;(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ro||(ro={}));var Ch={setRequest:(r,e)=>{r.request=e.payload}},wd=r=>Le.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Ch});var xn=class extends X{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((t,o)=>t.key.localeCompare(o.key))}};var Sn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},En=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Cn=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o},composed:!0,bubbles:!0})}},oo=class r extends Event{constructor(){super(r.eventName)}};oo.eventName="search-context-clear-all-filters";var wh=r=>r.request.virtualField===bt.TITLE_ONLY&&r.request.scope===Jt.DOCUMENTS,Oh=r=>r.request.keywordMatch==ot.MANDATORY,no=class r extends Tt{static build(e,t){return new r(wd(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Yo(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==ro.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(we(w.getState().session,B.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.localesDebouncer=new z(10),this.searchDebouncer=new z(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=w.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new z(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=w.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=t??new xn,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new ct(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new ct(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new ct(w,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),w.addEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(w.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),w.removeEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return w.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=fe(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let i=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=l=>i.some(d=>d.lang==l);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((t=eo.store.getState().localesConfiguration)===null||t===void 0)&&t.searchLanguageSetsUiLanguage)&&e&&eo.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:Re(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let i=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:bt.TITLE_ONLY,scope:Jt.DOCUMENTS},!0):this.updateSearchRequest({virtualField:bt.EVERYWHERE,scope:Jt.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return wh(this.store.getState())}get keywordMatch(){return Oh(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new oo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(i=>i!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let t=new Set(this.store.getState().propagatedFacets);t.add(e),this.store.actions.propagatedFacets([...t])}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.dateFilter),...t.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.rangeFilter),...t.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,i,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(ro.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=tt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof pe||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=tt(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof pe)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var qa=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Qa=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Od=Symbol("registerInterval"),Za=Symbol("registerAttempts"),Ah=40,Rh=Q(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Za]=0,this.tryToRegisterToContext(),this[Od]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Za]>Ah?window.clearInterval(this[Od]):(this[Za]++,this.dispatchEvent(new Qa(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return qa([H()],e.prototype,"stateManager",void 0),qa([H({hasChanged:Ee})],e.prototype,"neededSearchRequests",void 0),qa([S()],e.prototype,"searchRegistrationId",void 0),e}),Ad=class extends Rh(ge){};function wn(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function On(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var An=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=t??new yr,this.resultsWatcher=sa(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=w.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=w.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:wn(e.metadataFilters),facets:e.metadataFilters.map(a=>On(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Be.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:wn(o.metadataFilters),facets:o.metadataFilters.map(s=>On(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Be.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:wn(o.metadataFilters),facets:o.metadataFilters.map(s=>On(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Be.MAP:return{id:e.map.mapId,title:e.map.title,type:rt.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Be.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:rt.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Be.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:rt.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case Be.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:rt.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case Be.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:rt.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=Lr(e))===null||t===void 0?void 0:t.originUrl}};var K=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},U=class extends ge{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=no.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new An(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(w)}render(){return $`
134
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>yd.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};V.elementDefinitions={};V.styles=vd;ee([S()],V.prototype,"baseUrl",void 0);ee([S()],V.prototype,"tenantId",void 0);ee([S()],V.prototype,"apiIntegrationIdentifier",void 0);ee([S()],V.prototype,"apiIntegrationAppVersion",void 0);ee([S()],V.prototype,"uiLocale",void 0);ee([he(null)],V.prototype,"availableUiLocales",void 0);ee([he(null)],V.prototype,"metadataConfiguration",void 0);ee([S({type:Boolean})],V.prototype,"editorMode",void 0);ee([S({type:Boolean})],V.prototype,"noCustom",void 0);ee([S({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],V.prototype,"noCustomComponent",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],V.prototype,"noCustomCode",void 0);ee([S({type:Boolean})],V.prototype,"withManualResources",void 0);ee([S({type:Boolean})],V.prototype,"navigatorOnline",void 0);ee([S({type:Boolean})],V.prototype,"forcedOffline",void 0);ee([S({type:Boolean})],V.prototype,"authenticationRequired",void 0);ee([he([])],V.prototype,"messageContexts",void 0);ee([he(void 0)],V.prototype,"session",void 0);var Sd={"ft-app-context":V};oe(Sd);var ln=class extends X{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o,i){super(!1,t),this.converter=e,this._mapId=o,this._metadataFilters=i,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(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return we((t=(e=w.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,t,o){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))}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.metadataFilters),()=>this.fetchPages(this.mapId,this.metadataFilters,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters))}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 getFilteredTocNodes(e){var t;return(t=(await this.getEnrichedToc(e)).filteredTocNodes)!==null&&t!==void 0?t:{}}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var o;return(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var o,i;let a=this.getMapNow(t);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(t))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,t){let o=await this.getEnrichedToc(t);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,t){let o=await this.getEnrichedToc(t);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,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}async getTopicMetadataValue(e,t){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==t)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,o,i){let a=this.getNavigationData(e,t,o),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),l=new URL(s,this.api.tenantBaseUrl);if(a.page!=null&&l.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&l.searchParams.set("tocId",a.tocId),a.section!=null&&l.searchParams.set("section",a.section),i&&a.metadataFilters){let d=Te.serializeValueFilters(a.metadataFilters);d&&l.searchParams.set(k.VALUE_FILTERS,d)}return l.href}getLinkWithFilter(e,t,o){return this.getLink(e,t,o,!0)}getNavigationData(e,t,o,i){var a,s;e=e||"root";let l=this.getEnrichedTocNow(i),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:t&&d&&d.number!==t?t:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,t,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,t,o,i)}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(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=w.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let o=this.getTocNodeNow(e,t);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,t);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,t);return i}isFeatureAccessible(e,{session:t}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ye.FEEDBACK:return we(t??[],B.FEEDBACK_USER);case Ye.RATING:return we(t??[],B.RATING_USER);case Ye.PRINT:return we(t??[],B.PRINT_USER);case Ye.BOOKMARK:return!!t?.sessionAuthenticated;case Ye.COLLECTIONS:return we(t??[],B.COLLECTION_USER);case Ye.PERSONAL_BOOKS:return we(t??[],B.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var dn=class r extends ln{static async build(e){return new r(new Xo,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let o=await this.api.getMap(e,t);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t,o){return await this.getMap(o),t?.length?this.api.getFilteredPages(e,o,t):this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,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 Ch="topicPivot";function Ed(r,e){let t=new URL(r);return e?.values.forEach(o=>{t.searchParams.append(Ch,o)}),t.href}var un=class r{static build(e,t){return new r(pd(e.trim()||"context"),t??dn.build)}loaded(){return Ir(()=>this._loaded)}constructor(e,t,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new z(10),this.analyticsEventsService=i??new yr,this.initService(t)}async initService(e){this.service=await e();let{mapId:t,metadataFilters:o}=this.store.getState();return this.service.mapId=t,this.service.metadataFilters=o,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 setFilters(e){re(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return mt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:t}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!t&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,t){var o,i,a;let s=await this.awaitService();if(t)return s.getPage(t,this.getTranslationSettings());if(!e)return s.getPageByTocId("root",this.getTranslationSettings());let l=(o=this.store.getState().filteredTocNodes)===null||o===void 0?void 0:o[e],d=((i=this.service)===null||i===void 0?void 0:i.getTocNodeNow(e))!=null;return l&&l.reason!=="ACCESS_RIGHTS_FILTER"&&!d?s.getPageByTocId((a=l.closestParent)!==null&&a!==void 0?a:"root",this.getTranslationSettings()):s.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,t){var o,i,a,s,l;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:t.rootTocId;if(!t.topics.includes(d)){if(e!="root"&&!t.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Jo(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(Qe.requestedTopicNotFound))}return(l=(s=t.topics[0])!==null&&s!==void 0?s:t.hiddenTopics[0])!==null&&l!==void 0?l:"root"}return d}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())}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()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromFilter(e,t){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:l,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:l?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,t)}async fetchDataFromFilter(){var e,t,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(t=this.service)===null||t===void 0?void 0:t.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof pe))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,t,o,i,a,s,l;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(t=this.service)===null||t===void 0?void 0:t.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof pe))throw d&&this.setTranslationError(!0),(l=this.errorHandler)===null||l===void 0||l.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(t=>this.store.actions.configuration(t))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,t;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);if(o!==void 0&&o.length>0){let i=await((t=this.service)===null||t===void 0?void 0:t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Qe.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=w.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Xt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await mt(()=>{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(!((i=(o=(t=d?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[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())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}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 t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.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 t;let o=await((t=this.service)===null||t===void 0?void 0:t.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()}async getAccurateNavigationData(e,t,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,t?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,i).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(Qe.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var t,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Xt.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=ci(a);if(s){let l=this.store.getState().visibleTopics[0],d=(t=this.store.getState().configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata;if(d&&l){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(l,d));s=Ed(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var t;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=w.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(t=l.untranslatedTitle)!==null&&t!==void 0?t:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:So.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,t){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=w.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(t.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...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 x;return{tocId:b.tocId,title:(x=b.untranslatedTitle)!==null&&x!==void 0?x:b.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let t=e.split("-");return t.length===2?{languageCode:t[0],countryCode:t[1]}:{languageCode:t[0],countryCode:""}}};var pn=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},fn=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},hn=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},gn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},mn=class extends Event{constructor(){super("ft-reader-map-not-found")}},yn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},bn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},vn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Cd=_`
135
+ `;var ro;(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ro||(ro={}));var wh={setRequest:(r,e)=>{r.request=e.payload}},wd=r=>Le.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:wh});var xn=class extends X{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((t,o)=>t.key.localeCompare(o.key))}};var Sn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},En=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Cn=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o},composed:!0,bubbles:!0})}},oo=class r extends Event{constructor(){super(r.eventName)}};oo.eventName="search-context-clear-all-filters";var Oh=r=>r.request.virtualField===bt.TITLE_ONLY&&r.request.scope===Jt.DOCUMENTS,Ah=r=>r.request.keywordMatch==ot.MANDATORY,no=class r extends Tt{static build(e,t){return new r(wd(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Yo(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==ro.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(we(w.getState().session,B.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.localesDebouncer=new z(10),this.searchDebouncer=new z(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=w.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new z(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=w.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=t??new xn,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new ct(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new ct(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new ct(w,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),w.addEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(w.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),w.removeEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return w.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=fe(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let i=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=l=>i.some(d=>d.lang==l);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((t=eo.store.getState().localesConfiguration)===null||t===void 0)&&t.searchLanguageSetsUiLanguage)&&e&&eo.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:Re(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let i=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:bt.TITLE_ONLY,scope:Jt.DOCUMENTS},!0):this.updateSearchRequest({virtualField:bt.EVERYWHERE,scope:Jt.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Oh(this.store.getState())}get keywordMatch(){return Ah(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new oo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(i=>i!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let t=new Set(this.store.getState().propagatedFacets);t.add(e),this.store.actions.propagatedFacets([...t])}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.dateFilter),...t.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.rangeFilter),...t.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,i,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(ro.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=tt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof pe||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=tt(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof pe)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var qa=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Qa=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Od=Symbol("registerInterval"),Za=Symbol("registerAttempts"),Rh=40,Th=Q(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Za]=0,this.tryToRegisterToContext(),this[Od]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Za]>Rh?window.clearInterval(this[Od]):(this[Za]++,this.dispatchEvent(new Qa(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return qa([H()],e.prototype,"stateManager",void 0),qa([H({hasChanged:Ee})],e.prototype,"neededSearchRequests",void 0),qa([S()],e.prototype,"searchRegistrationId",void 0),e}),Ad=class extends Th(ge){};function wn(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function On(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var An=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=t??new yr,this.resultsWatcher=sa(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=w.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=w.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:wn(e.metadataFilters),facets:e.metadataFilters.map(a=>On(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Be.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:wn(o.metadataFilters),facets:o.metadataFilters.map(s=>On(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Be.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:wn(o.metadataFilters),facets:o.metadataFilters.map(s=>On(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Be.MAP:return{id:e.map.mapId,title:e.map.title,type:rt.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Be.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:rt.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Be.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:rt.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case Be.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:rt.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case Be.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:rt.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=Lr(e))===null||t===void 0?void 0:t.originUrl}};var K=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},U=class extends ge{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=no.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new An(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(w)}render(){return $`
136
136
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
137
137
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
138
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new En(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Cn(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){if(e.stopPropagation(),e.detail.registrationId==this.registrationId){let t=e.composedPath()[0];this.register(t)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Sn(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};U.elementDefinitions={};U.styles=Cd;K([M({store:w.name})],U.prototype,"session",void 0);K([S()],U.prototype,"query",void 0);K([S()],U.prototype,"contentLocale",void 0);K([ie()],U.prototype,"pageSize",void 0);K([S({type:Boolean})],U.prototype,"searchInDocumentTitlesOnly",void 0);K([S()],U.prototype,"keywordMatch",void 0);K([S()],U.prototype,"scope",void 0);K([S()],U.prototype,"virtualField",void 0);K([S()],U.prototype,"registrationId",void 0);K([S({type:Boolean})],U.prototype,"ignoreEmptyQuery",void 0);K([S({type:Boolean})],U.prototype,"applyStickyFilters",void 0);K([M({store:w.name})],U.prototype,"openExternalDocumentInNewTab",void 0);K([he([])],U.prototype,"filters",void 0);K([S()],U.prototype,"sortId",void 0);K([he([])],U.prototype,"sort",void 0);K([he({})],U.prototype,"otherQueryParams",void 0);K([M({store:"search"})],U.prototype,"request",void 0);K([M({store:"search"})],U.prototype,"paging",void 0);K([M({store:"search",selector:r=>r.spellcheck})],U.prototype,"spellcheckAutocorrect",void 0);K([M({store:w.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],U.prototype,"_appIntegrationInfoReady",void 0);K([S({attribute:!1})],U.prototype,"searchServiceProvider",void 0);var Rd={"ft-search-context":U};oe(Rd);var ce=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ya=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},j=class extends ge{constructor(){super(),this.metadataFilters=[],this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new z(5),this.navigationDebouncer=new z(10),this.mapLoadedEventDebouncer=new z(50),this.addStore(w)}render(){return $`
138
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new En(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Cn(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var t;if(e.stopPropagation(),((t=e.detail)===null||t===void 0?void 0:t.registrationId)==this.registrationId){let o=e.composedPath()[0];this.register(o)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Sn(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};U.elementDefinitions={};U.styles=Cd;K([M({store:w.name})],U.prototype,"session",void 0);K([S()],U.prototype,"query",void 0);K([S()],U.prototype,"contentLocale",void 0);K([ie()],U.prototype,"pageSize",void 0);K([S({type:Boolean})],U.prototype,"searchInDocumentTitlesOnly",void 0);K([S()],U.prototype,"keywordMatch",void 0);K([S()],U.prototype,"scope",void 0);K([S()],U.prototype,"virtualField",void 0);K([S()],U.prototype,"registrationId",void 0);K([S({type:Boolean})],U.prototype,"ignoreEmptyQuery",void 0);K([S({type:Boolean})],U.prototype,"applyStickyFilters",void 0);K([M({store:w.name})],U.prototype,"openExternalDocumentInNewTab",void 0);K([he([])],U.prototype,"filters",void 0);K([S()],U.prototype,"sortId",void 0);K([he([])],U.prototype,"sort",void 0);K([he({})],U.prototype,"otherQueryParams",void 0);K([M({store:"search"})],U.prototype,"request",void 0);K([M({store:"search"})],U.prototype,"paging",void 0);K([M({store:"search",selector:r=>r.spellcheck})],U.prototype,"spellcheckAutocorrect",void 0);K([M({store:w.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],U.prototype,"_appIntegrationInfoReady",void 0);K([S({attribute:!1})],U.prototype,"searchServiceProvider",void 0);var Rd={"ft-search-context":U};oe(Rd);var ce=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ya=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},j=class extends ge{constructor(){super(),this.metadataFilters=[],this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new z(5),this.navigationDebouncer=new z(10),this.mapLoadedEventDebouncer=new z(50),this.addStore(w)}render(){return $`
139
139
  ${this.importStyleIfNeeded()}
140
140
  <ft-toc-filtering-search-context
141
141
  registrationId="reader-toc-filtering"
@@ -148,7 +148,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
148
148
  <style>
149
149
  @import "${o}"
150
150
  </style>
151
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=un.build(this.id||Xn(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.mapId]}},...this.metadataFilters]}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}window.FluidTopicsReaderService=new Ya(this.stateManager)}),w.addEventListener(ve.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),w.addEventListener(ve.eventName,this.updateConfiguration)}update(e){var t;super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery);let o=e.has("metadataFilters")&&e.get("metadataFilters")!=null;o&&this.stateManager.setFilters((t=this.metadataFilters)!==null&&t!==void 0?t:[]),e.has("session")?this.reload():o?this.stateManager.reloadFromFilter(this.section,this.page):["tocId","section","page","mapId","topicPivot"].some(i=>e.has(i))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new hn(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new fn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new vn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new yn):t.status===403?this.dispatchEvent(new bn):t.status===404?this.dispatchEvent(new mn):this.dispatchEvent(new gn(e))}reloadBookmarks(){Ha.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new pn(this.map,this.toc))})}};j.elementDefinitions={"ft-toc-filtering-search-context":U};j.styles=ud;ce([M({store:w.name})],j.prototype,"baseUrl",void 0);ce([M({store:w.name})],j.prototype,"session",void 0);ce([S()],j.prototype,"mapId",void 0);ce([S()],j.prototype,"tocId",void 0);ce([S()],j.prototype,"section",void 0);ce([S()],j.prototype,"topicPivot",void 0);ce([S()],j.prototype,"searchInDocumentQuery",void 0);ce([M({store:"reader",converter:yo([]),attribute:!0})],j.prototype,"metadataFilters",void 0);ce([ie({min:1})],j.prototype,"page",void 0);ce([M({store:"reader"})],j.prototype,"map",void 0);ce([M({store:"reader"})],j.prototype,"toc",void 0);ce([M({store:"reader"})],j.prototype,"visibleTopics",void 0);ce([M({store:"reader"})],j.prototype,"currentPage",void 0);ce([M({store:"reader"})],j.prototype,"scrollTarget",void 0);ce([S({attribute:!1})],j.prototype,"readerServiceProvider",void 0);ce([Me("ft-toc-filtering-search-context")],j.prototype,"tocFilteringContext",void 0);var Td={"ft-reader-context":j};oe(Td);var Th={position:n.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Id=_`
151
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=un.build(this.id||Xn(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.mapId]}},...this.metadataFilters]}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}window.FluidTopicsReaderService=new Ya(this.stateManager)}),w.addEventListener(ve.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),w.addEventListener(ve.eventName,this.updateConfiguration)}update(e){var t;super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery);let o=e.has("metadataFilters")&&e.get("metadataFilters")!=null;o&&this.stateManager.setFilters((t=this.metadataFilters)!==null&&t!==void 0?t:[]),e.has("session")?this.reload():o?this.stateManager.reloadFromFilter(this.section,this.page):["tocId","section","page","mapId","topicPivot"].some(i=>e.has(i))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new hn(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new fn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new vn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new yn):t.status===403?this.dispatchEvent(new bn):t.status===404?this.dispatchEvent(new mn):this.dispatchEvent(new gn(e))}reloadBookmarks(){Ha.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new pn(this.map,this.toc))})}};j.elementDefinitions={"ft-toc-filtering-search-context":U};j.styles=ud;ce([M({store:w.name})],j.prototype,"baseUrl",void 0);ce([M({store:w.name})],j.prototype,"session",void 0);ce([S()],j.prototype,"mapId",void 0);ce([S()],j.prototype,"tocId",void 0);ce([S()],j.prototype,"section",void 0);ce([S()],j.prototype,"topicPivot",void 0);ce([S()],j.prototype,"searchInDocumentQuery",void 0);ce([M({store:"reader",converter:yo([]),attribute:!0})],j.prototype,"metadataFilters",void 0);ce([ie({min:1})],j.prototype,"page",void 0);ce([M({store:"reader"})],j.prototype,"map",void 0);ce([M({store:"reader"})],j.prototype,"toc",void 0);ce([M({store:"reader"})],j.prototype,"visibleTopics",void 0);ce([M({store:"reader"})],j.prototype,"currentPage",void 0);ce([M({store:"reader"})],j.prototype,"scrollTarget",void 0);ce([S({attribute:!1})],j.prototype,"readerServiceProvider",void 0);ce([Me("ft-toc-filtering-search-context")],j.prototype,"tocFilteringContext",void 0);var Td={"ft-reader-context":j};oe(Td);var Ih={position:n.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Id=_`
152
152
  :host {
153
153
  position: absolute;
154
154
  top: 0;
@@ -159,7 +159,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
159
159
  }
160
160
 
161
161
  .ft-watermark-container {
162
- position: ${Th.position};
162
+ position: ${Ih.position};
163
163
  top: 0;
164
164
  text-align: center;
165
165
  }
@@ -167,7 +167,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
167
167
  .ft-watermark {
168
168
  z-index: 79;
169
169
  }
170
- `;var kd=Symbol.for(""),Ih=r=>{if(r?.r===kd)return r?._$litStatic$},Ja=r=>({_$litStatic$:r,r:kd});var _d=new Map,Xa=r=>(e,...t)=>{let o=t.length,i,a,s=[],l=[],d,p=0,f=!1;for(;p<o;){for(d=e[p];p<o&&(a=t[p],(i=Ih(a))!==void 0);)d+=i+e[++p],f=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),f){let h=s.join("$$lit$$");(e=_d.get(h))===void 0&&(s.raw=s,_d.set(h,e=s)),t=l}return r(e,...t)},es=Xa($),NR=Xa(Rr),PR=Xa(Un);var Rn;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(Rn||(Rn={}));var Ld=n.extend("--ft-typography-font-family","",Eo.titleFont),Je=n.extend("--ft-typography-font-family","",Eo.contentFont),A={fontFamily:Je,fontSize:n.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:n.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:n.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:n.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:n.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:n.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Ft={fontFamily:n.extend("--ft-typography-title-font-family","",Ld),fontSize:n.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:n.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:n.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:n.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-text-decoration","",A.textDecoration,"inherit")},Mt={fontFamily:n.extend("--ft-typography-title-dense-font-family","",Ld),fontSize:n.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:n.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-dense-text-decoration","",A.textDecoration,"inherit")},Dt={fontFamily:n.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:n.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:n.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:n.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle1-text-decoration","",A.textDecoration,"inherit")},Ut={fontFamily:n.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:n.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:n.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle2-text-decoration","",A.textDecoration,"inherit")},Bt={fontFamily:n.extend("--ft-typography-body1-font-family","",Je),fontSize:n.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:n.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:n.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body1-text-decoration","",A.textDecoration,"inherit")},$t={fontFamily:n.extend("--ft-typography-body2-font-family","",Je),fontSize:n.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:n.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:n.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body2-text-decoration","",A.textDecoration,"inherit")},Ht={fontFamily:n.extend("--ft-typography-caption-font-family","",Je),fontSize:n.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:n.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:n.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:n.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-caption-text-decoration","",A.textDecoration,"inherit")},zt={fontFamily:n.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:n.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:n.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:n.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-breadcrumb-text-decoration","",A.textDecoration,"inherit")},Vt={fontFamily:n.extend("--ft-typography-overline-font-family","",Je),fontSize:n.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:n.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:n.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-overline-text-decoration","",A.textDecoration,"inherit")},Wt={fontFamily:n.extend("--ft-typography-button-font-family","",Je),fontSize:n.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:n.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:n.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-button-text-decoration","",A.textDecoration,"inherit")},Nd=_`
170
+ `;var kd=Symbol.for(""),_h=r=>{if(r?.r===kd)return r?._$litStatic$},Ja=r=>({_$litStatic$:r,r:kd});var _d=new Map,Xa=r=>(e,...t)=>{let o=t.length,i,a,s=[],l=[],d,p=0,f=!1;for(;p<o;){for(d=e[p];p<o&&(a=t[p],(i=_h(a))!==void 0);)d+=i+e[++p],f=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),f){let h=s.join("$$lit$$");(e=_d.get(h))===void 0&&(s.raw=s,_d.set(h,e=s)),t=l}return r(e,...t)},es=Xa($),BR=Xa(Rr),$R=Xa(Un);var Rn;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(Rn||(Rn={}));var Ld=n.extend("--ft-typography-font-family","",Eo.titleFont),Je=n.extend("--ft-typography-font-family","",Eo.contentFont),A={fontFamily:Je,fontSize:n.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:n.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:n.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:n.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:n.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:n.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Ft={fontFamily:n.extend("--ft-typography-title-font-family","",Ld),fontSize:n.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:n.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:n.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:n.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-text-decoration","",A.textDecoration,"inherit")},Mt={fontFamily:n.extend("--ft-typography-title-dense-font-family","",Ld),fontSize:n.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:n.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-dense-text-decoration","",A.textDecoration,"inherit")},Dt={fontFamily:n.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:n.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:n.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:n.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle1-text-decoration","",A.textDecoration,"inherit")},Ut={fontFamily:n.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:n.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:n.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle2-text-decoration","",A.textDecoration,"inherit")},Bt={fontFamily:n.extend("--ft-typography-body1-font-family","",Je),fontSize:n.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:n.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:n.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body1-text-decoration","",A.textDecoration,"inherit")},$t={fontFamily:n.extend("--ft-typography-body2-font-family","",Je),fontSize:n.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:n.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:n.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body2-text-decoration","",A.textDecoration,"inherit")},Ht={fontFamily:n.extend("--ft-typography-caption-font-family","",Je),fontSize:n.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:n.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:n.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:n.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-caption-text-decoration","",A.textDecoration,"inherit")},zt={fontFamily:n.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:n.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:n.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:n.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-breadcrumb-text-decoration","",A.textDecoration,"inherit")},Vt={fontFamily:n.extend("--ft-typography-overline-font-family","",Je),fontSize:n.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:n.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:n.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-overline-text-decoration","",A.textDecoration,"inherit")},Wt={fontFamily:n.extend("--ft-typography-button-font-family","",Je),fontSize:n.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:n.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:n.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:n.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-button-text-decoration","",A.textDecoration,"inherit")},Pd=_`
171
171
  .ft-typography--title {
172
172
  font-family: ${Ft.fontFamily};
173
173
  font-size: ${Ft.fontSize};
@@ -177,7 +177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
177
177
  text-transform: ${Ft.textTransform};
178
178
  text-decoration: ${Ft.textDecoration};
179
179
  }
180
- `,Pd=_`
180
+ `,Nd=_`
181
181
  .ft-typography--title-dense {
182
182
  font-family: ${Mt.fontFamily};
183
183
  font-size: ${Mt.fontSize};
@@ -280,7 +280,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
280
280
  </${Ja(this.element)}>
281
281
  `:es`
282
282
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
283
- `}};Gt.styles=[Nd,Pd,Fd,Md,Tn,Dd,Ud,Bd,$d,Hd,zd];Vd([S()],Gt.prototype,"element",void 0);Vd([S()],Gt.prototype,"variant",void 0);var Wd={"ft-typography":Gt};oe(Wd);var In=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ne=class extends Y{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,t,o;return this.watermark?$`
283
+ `}};Gt.styles=[Pd,Nd,Fd,Md,Tn,Dd,Ud,Bd,$d,Hd,zd];Vd([S()],Gt.prototype,"element",void 0);Vd([S()],Gt.prototype,"variant",void 0);var Wd={"ft-typography":Gt};oe(Wd);var In=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Pe=class extends Y{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,t,o;return this.watermark?$`
284
284
  <style>
285
285
  .ft-watermark {
286
286
  height: ${this.height}px;
@@ -299,7 +299,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
299
299
  </text>
300
300
  </svg>
301
301
  </div>
302
- `:D}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ne.styles=[Id,Tn];In([Me(".ft-watermark")],Ne.prototype,"svg",void 0);In([S({attribute:!1})],Ne.prototype,"watermark",void 0);In([S({attribute:!1})],Ne.prototype,"heightReference",void 0);In([H()],Ne.prototype,"height",void 0);var Gd={"ft-content-watermark":Ne};oe(Gd);var Oe=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},te=class extends hr{constructor(){super(...arguments),this.renderTopic=()=>$`
302
+ `:D}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Pe.styles=[Id,Tn];In([Me(".ft-watermark")],Pe.prototype,"svg",void 0);In([S({attribute:!1})],Pe.prototype,"watermark",void 0);In([S({attribute:!1})],Pe.prototype,"heightReference",void 0);In([H()],Pe.prototype,"height",void 0);var Gd={"ft-content-watermark":Pe};oe(Gd);var Oe=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},te=class extends hr{constructor(){super(...arguments),this.renderTopic=()=>$`
303
303
  <ft-reader-topic-title></ft-reader-topic-title>
304
304
  <ft-reader-topic-content></ft-reader-topic-content>
305
305
  `,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,t)=>this.renderTopicInContext(e,t),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new z(50),this.visibleTopicsDebouncer=new z(50)}render(){var e,t;let o=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return $`
@@ -328,7 +328,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
328
328
  headingStartLevel="${this.headingStartLevel}">
329
329
  ${this.renderTopic(e,t)}
330
330
  </ft-reader-topic-context>
331
- `}getScrollTarget(){var e,t,o;if(this.disableContextInteractions)return null;let i=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId);return!((o=this.scrollTarget)===null||o===void 0)&&o.tocId&&(!i||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var t;return(t=this.stateManager)===null||t===void 0?void 0:t.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var t;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setVisibleTopics(e.detail.items)}),(t=this.stateManager)===null||t===void 0||t.store.dispatchEvent(new Event(Qe.visibleTopicChange))}onScrollDone(){var e,t;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((t=this.stateManager)===null||t===void 0||t.scrollDone())}};te.elementDefinitions={"ft-infinite-scroll":G,"ft-content-watermark":Ne};te.styles=cd;Oe([S()],te.prototype,"renderTopic",void 0);Oe([S({type:Boolean})],te.prototype,"disableContextInteractions",void 0);Oe([ie()],te.prototype,"headingLevelsShift",void 0);Oe([ie()],te.prototype,"headingStartLevel",void 0);Oe([M()],te.prototype,"currentPage",void 0);Oe([M()],te.prototype,"scrollTarget",void 0);Oe([M()],te.prototype,"visibleTopics",void 0);Oe([M({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderBeforeFirst",void 0);Oe([M({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderAfterLast",void 0);Oe([M()],te.prototype,"mapId",void 0);Oe([Me(".ft-reader-content")],te.prototype,"contentContainer",void 0);Oe([M({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.watermark}})],te.prototype,"watermark",void 0);var jd={"ft-reader-content":te};oe(jd);})();
331
+ `}getScrollTarget(){var e,t,o;if(this.disableContextInteractions)return null;let i=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId);return!((o=this.scrollTarget)===null||o===void 0)&&o.tocId&&(!i||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var t;return(t=this.stateManager)===null||t===void 0?void 0:t.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var t;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setVisibleTopics(e.detail.items)}),(t=this.stateManager)===null||t===void 0||t.store.dispatchEvent(new Event(Qe.visibleTopicChange))}onScrollDone(){var e,t;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((t=this.stateManager)===null||t===void 0||t.scrollDone())}};te.elementDefinitions={"ft-infinite-scroll":G,"ft-content-watermark":Pe};te.styles=cd;Oe([S()],te.prototype,"renderTopic",void 0);Oe([S({type:Boolean})],te.prototype,"disableContextInteractions",void 0);Oe([ie()],te.prototype,"headingLevelsShift",void 0);Oe([ie()],te.prototype,"headingStartLevel",void 0);Oe([M()],te.prototype,"currentPage",void 0);Oe([M()],te.prototype,"scrollTarget",void 0);Oe([M()],te.prototype,"visibleTopics",void 0);Oe([M({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderBeforeFirst",void 0);Oe([M({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderAfterLast",void 0);Oe([M()],te.prototype,"mapId",void 0);Oe([Me(".ft-reader-content")],te.prototype,"contentContainer",void 0);Oe([M({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.watermark}})],te.prototype,"watermark",void 0);var jd={"ft-reader-content":te};oe(jd);})();
332
332
  /*! Bundled license information:
333
333
 
334
334
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: