@fluid-topics/ft-viewer 2.2.33 → 2.2.35

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 sh=Object.defineProperty;var G=(t,e)=>{for(var r in e)sh(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(b,y){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" 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 C=y.prototype.attributeChangedCallback,I=new Set(y.observedAttributes||[]);g(y,I,C);let B={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(b,B),this._definitionsByClass.set(y,B);let ee=r.call(o,b);ee||(ee=h(b),e.call(o,b,ee)),this===window.customElements&&(s.set(y,B),B.standInClass=ee);let me=this._awaitingUpgrade.get(b);if(me){this._awaitingUpgrade.delete(b);for(let X of me)a.delete(X),E(X,B,!0)}let F=this._whenDefinedPromises.get(b);return F!==void 0&&(F.resolve(y),this._whenDefinedPromises.delete(b)),y}upgrade(){A.push(this),o.upgrade.apply(o,arguments),A.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let y=this._getDefinition(b);if(y!==void 0)return Promise.resolve(y.elementClass);let C=this._whenDefinedPromises.get(b);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(b,C)),C.promise}_upgradeWhenDefined(b,y,C){let I=this._awaitingUpgrade.get(y);I||this._awaitingUpgrade.set(y,I=new Set),C?I.add(b):I.delete(b)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),n.set(y,C),y},window.HTMLElement.prototype=t.prototype;let p=b=>b===document||b instanceof ShadowRoot,m=b=>{let y=b.getRootNode();if(!p(y)){let C=A[A.length-1];if(C instanceof CustomElementRegistry)return C;y=C.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=m(C)||window.customElements,B=I._getDefinition(b);return B?E(C,B):a.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(b,y,C)=>{if(y.size===0||C===void 0)return;let I=b.prototype.setAttribute;I&&(b.prototype.setAttribute=function(me,F){let X=me.toLowerCase();if(y.has(X)){let Ee=this.getAttribute(X);I.call(this,X,F),C.call(this,X,Ee,F)}else I.call(this,X,F)});let B=b.prototype.removeAttribute;B&&(b.prototype.removeAttribute=function(me){let F=me.toLowerCase();if(y.has(F)){let X=this.getAttribute(F);B.call(this,F),C.call(this,F,X,null)}else B.call(this,F)});let ee=b.prototype.toggleAttribute;ee&&(b.prototype.toggleAttribute=function(me,F){let X=me.toLowerCase();if(y.has(X)){let Ee=this.getAttribute(X);ee.call(this,X,F);let Tt=this.getAttribute(X);C.call(this,X,Ee,Tt)}else ee.call(this,X,F)})},v=b=>{let y=Object.getPrototypeOf(b);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(b,window.HTMLElement):v(y)},E=(b,y,C=!1)=>{Object.setPrototypeOf(b,y.elementClass.prototype),n.set(b,y),d=b;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(I=>{b.hasAttribute(I)&&y.attributeChangedCallback.call(b,I,null,b.getAttribute(I))}),C&&y.connectedCallback&&b.isConnected&&y.connectedCallback.call(b)},L=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let y=L.apply(this,arguments);return b.customElements&&(y.customElements=b.customElements),y};let A=[document],N=(b,y,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):b.prototype)[y];b.prototype[y]=function(){A.push(this);let B=I.apply(C||this,arguments);return B!==void 0&&l.set(B,this),A.pop(),B}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let $=(b,y)=>{let C=Object.getOwnPropertyDescriptor(b.prototype,y);Object.defineProperty(b.prototype,y,{...C,set(I){A.push(this),C.set.call(this,I),A.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,y=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...me){let F=y.call(this,...me);return b.set(F,this),F},C.forEach(me=>{let F=window.ElementInternals.prototype,X=F[me];F[me]=function(...Ee){let Tt=b.get(this);if(n.get(Tt).formAssociated===!0)return X?.call(this,...Ee);throw new DOMException(`Failed to execute ${X} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class B{constructor(F){let X=new Map;F.forEach((Ee,Tt)=>{let Ma=Ee.getAttribute("name"),Cc=X.get(Ma)||[];this[+Tt]=Ee,Cc.push(Ee),X.set(Ma,Cc)}),this.length=F.length,X.forEach((Ee,Tt)=>{Ee&&(Ee.length===1?this[Tt]=Ee[0]:this[Tt]=new I(Ee))})}namedItem(F){return this[F]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let me=ee.get.call(this,[]),F=[];for(let X of me){let Ee=n.get(X);(!Ee||Ee.formAssociated===!0)&&F.push(X)}return new B(F)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var Za={};G(Za,{CSSResult:()=>no,LitElement:()=>Ht,ReactiveElement:()=>ct,_$LE:()=>xh,_$LH:()=>Ga,adoptStyles:()=>Uo,css:()=>w,defaultConverter:()=>ao,getCompatibleStyle:()=>Fi,html:()=>x,isServer:()=>jy,mathml:()=>Wa,noChange:()=>we,notEqual:()=>Vo,nothing:()=>_,render:()=>ja,supportsAdoptingStyleSheets:()=>$o,svg:()=>jo,unsafeCSS:()=>Vt});var Mi=globalThis,$o=Mi.ShadowRoot&&(Mi.ShadyCSS===void 0||Mi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fa=Symbol(),Ec=new WeakMap,no=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Fa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if($o&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Ec.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ec.set(r,e))}return e}toString(){return this.cssText}},Vt=t=>new no(typeof t=="string"?t:t+"",void 0,Fa),w=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new no(r,t,Fa)},Uo=(t,e)=>{if($o)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Mi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Fi=$o?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return Vt(r)})(t):t;var{is:lh,defineProperty:ch,getOwnPropertyDescriptor:dh,getOwnPropertyNames:uh,getOwnPropertySymbols:ph,getPrototypeOf:fh}=Object,$i=globalThis,wc=$i.trustedTypes,hh=wc?wc.emptyScript:"",mh=$i.reactiveElementPolyfillSupport,Bo=(t,e)=>t,ao={toAttribute(t,e){switch(e){case Boolean:t=t?hh:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Vo=(t,e)=>!lh(t,e),Oc={attribute:!0,type:String,converter:ao,reflect:!1,useDefault:!1,hasChanged:Vo};Symbol.metadata??=Symbol("metadata"),$i.litPropertyMetadata??=new WeakMap;var ct=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Oc){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&ch(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=dh(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Oc}static _$Ei(){if(this.hasOwnProperty(Bo("elementProperties")))return;let e=fh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Bo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bo("properties"))){let r=this.properties,o=[...uh(r),...ph(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Fi(n))}else e!==void 0&&r.push(Fi(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Uo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:ao).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ao;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Vo)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[Bo("elementProperties")]=new Map,ct[Bo("finalized")]=new Map,mh?.({ReactiveElement:ct}),($i.reactiveElementVersions??=[]).push("2.1.2");var Ua=globalThis,Ac=t=>t,Ui=Ua.trustedTypes,_c=Ui?Ui.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ba="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Va="?"+zt,gh=`<${Va}>`,wr=document,Ho=()=>wr.createComment(""),Wo=t=>t===null||typeof t!="object"&&typeof t!="function",za=Array.isArray,Pc=t=>za(t)||typeof t?.[Symbol.iterator]=="function",$a=`[
2
- \f\r]`,zo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rc=/-->/g,Tc=/>/g,Cr=RegExp(`>|${$a}(?:([^\\s"'>=/]+)(${$a}*=${$a}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ic=/'/g,Lc=/"/g,Nc=/^(?:script|style|textarea|title)$/i,Ha=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Ha(1),jo=Ha(2),Wa=Ha(3),we=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),kc=new WeakMap,Er=wr.createTreeWalker(wr,129);function Dc(t,e){if(!za(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return _c!==void 0?_c.createHTML(e):e}var Mc=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=zo;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===zo?m[1]==="!--"?s=Rc:m[1]!==void 0?s=Tc:m[2]!==void 0?(Nc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Cr):m[3]!==void 0&&(s=Cr):s===Cr?m[0]===">"?(s=n??zo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,p=m[1],s=m[3]===void 0?Cr:m[3]==='"'?Lc:Ic):s===Lc||s===Ic?s=Cr:s===Rc||s===Tc?s=zo:(s=Cr,n=void 0);let v=s===Cr&&t[l+1].startsWith("/>")?" ":"";a+=s===zo?d+gh:h>=0?(o.push(p),d.slice(0,h)+Ba+d.slice(h)+zt+v):d+zt+(h===-2?l:v)}return[Dc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Go=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,m]=Mc(e,r);if(this.el=t.createElement(p,o),Er.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Er.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Ba)){let g=m[s++],v=n.getAttribute(h).split(zt),E=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:E[2],strings:v,ctor:E[1]==="."?Vi:E[1]==="?"?zi:E[1]==="@"?Hi:Ar}),n.removeAttribute(h)}else h.startsWith(zt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Nc.test(n.tagName)){let h=n.textContent.split(zt),g=h.length-1;if(g>0){n.textContent=Ui?Ui.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Ho()),Er.nextNode(),d.push({type:2,index:++a});n.append(h[g],Ho())}}}else if(n.nodeType===8)if(n.data===Va)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(zt,h+1))!==-1;)d.push({type:7,index:a}),h+=zt.length-1}a++}}static createElement(e,r){let o=wr.createElement("template");return o.innerHTML=e,o}};function Or(t,e,r=t,o){if(e===we)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Wo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Or(t,n._$AS(t,e.values),n,o)),e}var Bi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??wr).importNode(r,!0);Er.currentNode=n;let a=Er.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new so(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Wi(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Er.nextNode(),s++)}return Er.currentNode=wr,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},so=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Or(this,e,r),Wo(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==we&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Pc(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!==_&&Wo(this._$AH)?this._$AA.nextSibling.data=e:this.T(wr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Go.createElement(Dc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Bi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=kc.get(e.strings);return r===void 0&&kc.set(e.strings,r=new Go(e)),r}k(e){za(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(Ho()),this.O(Ho()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=Ac(e).nextSibling;Ac(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ar=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Or(this,e,r,0),s=!Wo(e)||e!==this._$AH&&e!==we,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=Or(this,l[o+d],r,d),p===we&&(p=this._$AH[d]),s||=!Wo(p)||p!==this._$AH[d],p===_?e=_:e!==_&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Vi=class extends Ar{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},zi=class extends Ar{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Hi=class extends Ar{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Or(this,e,r,0)??_)===we)return;let o=this._$AH,n=e===_&&o!==_||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==_&&(o===_||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Wi=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Or(this,e)}},Ga={M:Ba,P:zt,A:Va,C:1,L:Mc,R:Bi,D:Pc,V:Or,I:so,H:Ar,N:zi,U:Hi,B:Vi,F:Wi},yh=Ua.litHtmlPolyfillSupport;yh?.(Go,so),(Ua.litHtmlVersions??=[]).push("3.3.3");var ja=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new so(e.insertBefore(Ho(),a),a,void 0,r??{})}return n._$AI(t),n};var Ka=globalThis,Ht=class extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ja(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return we}};Ht._$litElement$=!0,Ht.finalized=!0,Ka.litElementHydrateSupport?.({LitElement:Ht});var bh=Ka.litElementPolyfillSupport;bh?.({LitElement:Ht});var xh={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Ka.litElementVersions??=[]).push("4.2.2");var jy=!1;var Ya={};G(Ya,{customElement:()=>vh,eventOptions:()=>Gi,property:()=>f,query:()=>M,queryAll:()=>qa,queryAssignedElements:()=>Ko,queryAssignedNodes:()=>Zo,queryAsync:()=>Eh,standardProperty:()=>Fc,state:()=>T});var vh=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Sh={attribute:!0,type:String,converter:ao,reflect:!1,hasChanged:Vo},Fc=(t=Sh,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+o)};function f(t){return(e,r)=>typeof r=="object"?Fc(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return f({...t,state:!0,attribute:!1})}function Gi(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var xt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function M(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return xt(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return xt(r,o,{get(){return a(this)}})}}var Ch;function qa(t){return(e,r)=>xt(e,r,{get(){return(this.renderRoot??(Ch??=document.createDocumentFragment())).querySelectorAll(t)}})}function Eh(t){return(e,r)=>xt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Ko(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return xt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Zo(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return xt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Xa={};G(Xa,{repeat:()=>Ke});var It={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},et=t=>(...e)=>({_$litDirective$:t,values:e}),dt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:wh}=Ga,$c=t=>t;var Bc=t=>t.strings===void 0,Uc=()=>document.createComment(""),lo=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(Uc(),n),s=o.insertBefore(Uc(),n);r=new wh(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=$c(d).nextSibling;$c(o).insertBefore(d,n),d=p}}}return r},lr=(t,e,r=t)=>(t._$AI(e,r),t),Oh={},Vc=(t,e=Oh)=>t._$AH=e,zc=t=>t._$AH,ji=t=>{t._$AR(),t._$AA.remove()};var Hc=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},Ke=et(class extends dt{constructor(t){if(super(t),t.type!==It.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=zc(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,v=0,E=a.length-1;for(;h<=g&&v<=E;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=lr(n[h],a[v]),h++,v++;else if(l[g]===s[E])d[E]=lr(n[g],a[E]),g--,E--;else if(l[h]===s[E])d[E]=lr(n[h],a[E]),lo(t,d[E+1],n[h]),h++,E--;else if(l[g]===s[v])d[v]=lr(n[g],a[v]),lo(t,n[h],n[g]),g--,v++;else if(p===void 0&&(p=Hc(s,v,E),m=Hc(l,h,g)),p.has(l[h]))if(p.has(l[g])){let L=m.get(s[v]),A=L!==void 0?n[L]:null;if(A===null){let N=lo(t,n[h]);lr(N,a[v]),d[v]=N}else d[v]=lr(A,a[v]),lo(t,n[h],A),n[L]=null;v++}else ji(n[g]),g--;else ji(n[h]),h++;for(;v<=E;){let L=lo(t,d[E+1]);lr(L,a[v]),d[v++]=L}for(;h<=g;){let L=n[h++];L!==null&&ji(L)}return this.ut=s,Vc(t,d),we}});var Ja={};G(Ja,{classMap:()=>oe});var oe=et(class extends dt{constructor(t){if(super(t),t.type!==It.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return we}});var Qa={};G(Qa,{styleMap:()=>_h});var Wc="important",Ah=" !"+Wc,_h=et(class extends dt{constructor(t){if(super(t),t.type!==It.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Ah);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?Wc:""):r[o]=n}}return we}});var es={};G(es,{UnsafeHTMLDirective:()=>co,unsafeHTML:()=>qo});var co=class extends dt{constructor(e){if(super(e),this.it=_,e.type!==It.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===we)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};co.directiveName="unsafeHTML",co.resultType=1;var qo=et(co);var ts={};G(ts,{splitBreadcrumbForMenu:()=>Rh});function Rh(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(r,1),n=t.slice(o*-1);return e+o>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var cs={};G(cs,{CacheRegistry:()=>kt,ClearCacheEvent:()=>ti});var rs={};G(rs,{CancelablePromise:()=>Ki,CanceledPromiseError:()=>_r,cancelable:()=>Yo});var _r=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Ki=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new _r("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new _r("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Yo=t=>new Ki((e,r)=>t.then(e).catch(r));var ls={};G(ls,{FtNotificationEvent:()=>Lt,PostResizeEvent:()=>ss,PreResizeEvent:()=>as,WithEventBus:()=>Gt,withEventBus:()=>Xi});var ns={};G(ns,{applyMixinOnce:()=>pe,customElements:()=>K,dateReviver:()=>Ph,deepCopy:()=>tt,deepEqual:()=>ze,delay:()=>Zi,eventPathContainsMatchingElement:()=>Jo,everyDeep:()=>kh,flatDeep:()=>Zc,forEachDeep:()=>qc,getComposedPathTo:()=>is,groupBy:()=>Dh,hasChanged:()=>ut,ignoreComposingEvents:()=>Wt,last:()=>Qo,minmax:()=>Rr,parseDate:()=>qi,randomId:()=>ei,someDeep:()=>Yc,unslotText:()=>Yi,waitFor:()=>Kc,waitUntil:()=>Lh});var os={};G(os,{customElement:()=>Xo,dateProperty:()=>Ih,isNumber:()=>jc,jsonProperty:()=>Pe,jsonPropertyConverter:()=>Gc,numberProperty:()=>vt,optionalNumberProperty:()=>Th});var Xo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Gc=t=>({fromAttribute:e=>{if(e==null)return tt(t);try{return JSON.parse(e)}catch{return tt(t)}},toAttribute:e=>JSON.stringify(e)});function Pe(t,e){return f({type:Object,converter:Gc(t),hasChanged:ut,...e??{}})}function Th(t){return vt(t)}function vt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return jc(e)?Rr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function jc(t){return!isNaN(parseFloat(t))}function Ih(t){return f({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Zi=t=>new Promise(e=>setTimeout(e,t));async function Lh(t,e=10,r=2e4){await Kc(async()=>await t()||void 0,e,r)}async function Kc(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await Zi(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Zc(t,e){return t.flatMap(r=>[r,...Zc(e(r),e)])}function qc(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Yc(t,e,r){let o=!1;return qc(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function kh(t,e,r){return!Yc(t,e,(o,n,a,s)=>!r(o,n,a,s))}function Ph(...t){return(e,r)=>t.includes(e)?qi(r):r}function qi(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function Nh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!ze(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!ze(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!ze(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ze(t,e){try{return Nh(t,e)}catch{return!1}}function ut(t,e){return!ze(t,e)}function Jo(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Rr(t,e,r){return Math.min(Math.max(t,e),r)}function Qo(t){return t[t.length-1]}function Yi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Yi(e)).join(""):t?.textContent||""}function is(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function tt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function pe(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function Wt(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function K(t){for(let[e,r]of Object.entries(t))Xo(e)(r)}function Dh(t,e){var r,o;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[o=n(s)])!==null&&r!==void 0?r:a[o]=[]).push(s);return a}var Lt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},as=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ss=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Xi=pe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Gt=class extends Xi(Object){};var ti=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},kt=class extends Gt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new ti(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new ti([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=Yo(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var ys={};G(ys,{ClusteringHelper:()=>cr,formatHierarchicalValues:()=>gs});var ms={};G(ms,{accessBreadcrumb:()=>zh,accessResult:()=>ho,accessResultId:()=>hs,accessResultUrl:()=>ri,enrichReaderUrl:()=>fs});var ps={};G(ps,{SearchPlaceConverter:()=>jt,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>Md,serializeRequest:()=>Bh});var Mh=t=>typeof t=="object"&&t!=null;var Fh=t=>typeof t=="number",Ji=t=>typeof t=="string",us=t=>Mh(t)&&Ji(t.endpoint)&&Ji(t.method)&&Ji(t.statusText)&&Ji(t.body)&&Fh(t.status),Xc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xc||(Xc={}));var Jc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jc||(Jc={}));var Qc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qc||(Qc={}));var ed;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ed||(ed={}));var td;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(td||(td={}));var rd;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rd||(rd={}));var od;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(od||(od={}));var id;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(id||(id={}));var nd;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(nd||(nd={}));var ad;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ad||(ad={}));var sd;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(sd||(sd={}));var ld;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(ld||(ld={}));var cd;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cd||(cd={}));var dd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(dd||(dd={}));var ud;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ud||(ud={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var pd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(pd||(pd={}));var uo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(uo||(uo={}));var fd;(function(t){t.ASC="ASC",t.DESC="DESC"})(fd||(fd={}));var hd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(hd||(hd={}));var ds;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ds||(ds={}));var Sd=t=>Object.keys(ds).includes(t);var md;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(md||(md={}));var Qi;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Qi||(Qi={}));var gd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(gd||(gd={}));var po;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(po||(po={}));var Cd=t=>Object.keys(po).includes(t);var yd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yd||(yd={}));var bd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bd||(bd={}));var xd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(xd||(xd={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var pt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(pt||(pt={}));var vd;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(vd||(vd={}));var Ed;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ed||(Ed={}));var wd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wd||(wd={}));var Od;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Od||(Od={}));var Ad;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ad||(Ad={}));var _d;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_d||(_d={}));var Rd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Rd||(Rd={}));var Td;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Td||(Td={}));var Id;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Id||(Id={}));var Ld;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ld||(Ld={}));var kd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(kd||(kd={}));var en;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(en||(en={}));var $h={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function Pd(t,e){return t===e||($h[t]??[]).some(r=>Pd(r,e))}function fo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>Pd(o,e))}function Nd(t,...e){return t==null?!1:e.some(r=>fo(t,r))}function Uh(t){return`"${t}"`}function Dd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Bh(t,e){return new jt(t).serialize(e)}var z;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(z||(z={}));var Vh=new Set(Object.values(z));function Md(t){return Vh.has(t)}var jt=class t{constructor(e,r=20,o=!1,n="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(z.LOCALE,e.contentLocale):g.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(z.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(z.VALUE_FILTERS,v);let E=t.serializeNegativeValueFilters(e.metadataFilters);E&&g.append(z.NEGATIVE_VALUE_FILTERS,E);let L=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let b=L.map(y=>{var C;return`${y.key}~${(C=y.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(z.DATE_FILTERS,b)}let A=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let b=A.map(y=>{var C,I;return`${y.key}~${(C=y.rangeFilter)===null||C===void 0?void 0:C.from}_${(I=y.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");g.append(z.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(z.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let b in N)g.append(b,N[b]);let $=new Array;return g.forEach((b,y)=>{$.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI($.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch($){console.warn("Could not decode search request query params, fallback on raw value",$)}let p=new URLSearchParams(e),m=(o=p.get(z.LOCALE))!==null&&o!==void 0?o:void 0,h=((n=p.get(z.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=p.get(z.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(a=p.get(z.SCOPE))!==null&&a!==void 0?a:"default",E=+((s=p.get(z.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),L=p.get(z.KEYWORD_MATCH),A=L?L.toUpperCase()===uo.MANDATORY?uo.MANDATORY:uo.OPTIONAL:void 0,N={};for(let $ of p.keys())Md($)||(N[$]=p.get($));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some($=>$.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=p.get(z.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:Sd(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:Rr(1,isNaN(E)?this.defaultPerPage:E,1e3)},keywordMatch:A,otherQueryParams:N}}parseCompatFilters(e){var r,o,n,a,s,l,d;let p=[];return e.has(z.FILTERS)&&(p=t.parseValueFilters((r=e.get(z.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(z.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(z.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(z.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(z.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(z.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Dd).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:po[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}static superEscapeFilters(e){for(let[r,o,n]of t.filtersEscapeMapping)e=e.replaceAll(o,n);return e}static unescapeFilterValue(e){for(let[r,o,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Cd(e))return[{key:"ft:lastEdition",dateFilter:{type:po[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static serializeValueFilter(e){var r,o;let n=((o=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&o!==void 0?o:[]).map(a=>t.escapeFilters(a)).map(a=>Uh(Dd(a))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let o=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let o=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[z.LOCALE,z.FILTERS,z.VALUE_FILTERS,z.NEGATIVE_VALUE_FILTERS,z.DATE_FILTERS,z.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(z.LOCALE),r!==void 0&&o.searchParams.append(z.LOCALE,r),o.toString()}};jt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function ho(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function hs(t){var e,r,o,n,a,s,l,d,p;return(p=(d=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(o=t?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function ri(t,e){var r,o,n,a,s,l,d,p,m;return(m=(p=(d=(l=fs((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:fs((o=t?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&m!==void 0?m:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function zh(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function fs(t,e){if(e&&t){let r=URL.parse(t),o=jt.serializeValueFilters(e);if(o&&r?.searchParams.append(z.VALUE_FILTERS,o),r)return r.toString()}return t}function gs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var cr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=ho(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(gs(l)),s.push(gs(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(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=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(E=>E.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,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var bs={};G(bs,{Debouncer:()=>Ne});var Ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Cs={};G(Cs,{designSystemVariables:()=>S});var Ss={};G(Ss,{DesignSystemFamily:()=>oi,DesignSystemSize:()=>ii,FtCssVariableFactory:()=>i,badge:()=>nm,banner:()=>im,button:()=>Gh,card:()=>Kh,chart:()=>Sm,checkbox:()=>Xh,chip:()=>tm,chipChoice:()=>em,chipGroup:()=>rm,collapsible:()=>xm,combobox:()=>ym,dateRangePicker:()=>Am,drawer:()=>pm,eventCard:()=>Zh,floatingMenu:()=>gm,foundation:()=>c,link:()=>om,modal:()=>dm,notice:()=>Em,notification:()=>wm,pageDesigner:()=>Cm,pageFooter:()=>lm,pageHeader:()=>sm,pageLayout:()=>cm,popover:()=>bm,radio:()=>Jh,reorderableList:()=>um,resolveFamilyClass:()=>xs,resolveSizeClass:()=>vs,semantic:()=>u,setVariable:()=>O,switch_:()=>vm,table:()=>Qh,tabs:()=>fm,textArea:()=>mm,textInput:()=>hm,titleBreadcrumb:()=>am,toc:()=>Yh,toggle:()=>jh,tooltip:()=>Om,treeList:()=>qh,typographies:()=>Hh,typographyBody1Medium:()=>zd,typographyBody1Regular:()=>Vd,typographyBody1Semibold:()=>Hd,typographyBody2Medium:()=>Gd,typographyBody2MediumUnderline:()=>jd,typographyBody2Regular:()=>Wd,typographyBody2Semibold:()=>Kd,typographyCaption1Medium:()=>Zd,typographyCaption1Semibold:()=>qd,typographyCaption2Bold:()=>Jd,typographyCaption2Medium:()=>Yd,typographyCaption2Semibold:()=>Xd,typographyDisplay:()=>Fd,typographyTitle1:()=>$d,typographyTitle2:()=>Ud,typographyTitle3:()=>Bd,typographyVariants:()=>Wh});var dr=t=>typeof t=="string"?Vt(t):t,i=class{static create(e,r,o,n){let a=l=>dr(l??n),s=w`var(${dr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>O(s,l??a(n)),s.get=l=>w`var(${dr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=w`var(${dr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>O(s,l??a(n)),s.get=l=>w`var(${dr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=w`var(${dr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>w`var(${dr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function O(t,e){return dr(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Fd={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},$d={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Ud={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Bd={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Vd={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},zd={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Hd={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Wd={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Gd={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},jd={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Kd={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Zd={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},qd={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Yd={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Xd={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Jd={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Hh={display:Fd,"title-1":$d,"title-2":Ud,"title-3":Bd,"body-1-regular":Vd,"body-1-medium":zd,"body-1-semibold":Hd,"body-2-regular":Wd,"body-2-medium":Gd,"body-2-medium-underline":jd,"body-2-semibold":Kd,"caption-1-medium":Zd,"caption-1-semibold":qd,"caption-2-medium":Yd,"caption-2-semibold":Xd,"caption-2-bold":Jd},Wh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Gh={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var jh={iconSize:i.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3),width:i.create("--ftds-toggle-width","","SIZE","36px"),height:i.create("--ftds-toggle-height","","SIZE","20px")};var Kh={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var Zh={borderRadius:i.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:i.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:i.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:i.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:i.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:i.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:i.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:i.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:i.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var qh={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Yh={titleColor:i.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:i.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:i.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:i.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:i.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:i.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:i.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:i.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:i.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:i.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:i.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:i.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:i.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:i.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:i.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:i.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:i.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:i.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:i.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:i.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:i.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var Xh={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Jh={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Qh={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var em={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var tm={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var rm={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var om={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)};var im={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var nm={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var am={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var sm={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var lm={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var cm={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var dm={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var um={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:i.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var pm={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var fm={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var hm={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:i.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var mm={fieldPaddingLeft:i.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:i.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:i.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:i.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:i.extend("--ftds-text-area-resize-right","",c.spacing05)};var gm={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var ym={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var bm={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var xm={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var vm={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Sm={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var Cm={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Em={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var wm={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Om={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var Am={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var oi;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(oi||(oi={}));var ii;(function(t){t.large="large",t.medium="medium",t.small="small"})(ii||(ii={}));function xs(t){return`ftds--family-${t}`}function vs(t){return`ftds--size-${t}`}var S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Es={};G(Es,{DynamicImporter:()=>tn,dynamicImporter:()=>_m});var tn=class{async import(e){if(e)return import(e)}},_m=new tn;var Ms={};G(Ms,{computeOffsetAutoPosition:()=>Ds,computeOffsetPosition:()=>di});var eu=["top","right","bottom","left"],Qd=["start","end"],Os=eu.reduce((t,e)=>t.concat(e,e+"-"+Qd[0],e+"-"+Qd[1]),[]),Tr=Math.min,Pt=Math.max,ni=Math.round;var Nt=t=>({x:t,y:t}),Rm={left:"right",right:"left",bottom:"top",top:"bottom"};function tu(t,e,r){return Pt(t,Tr(e,r))}function mo(t,e){return typeof t=="function"?t(e):t}function Ir(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function As(t){return t==="x"?"y":"x"}function _s(t){return t==="y"?"height":"width"}function go(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Rs(t){return As(go(t))}function ru(t,e,r){r===void 0&&(r=!1);let o=Dt(t),n=Rs(t),a=_s(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ws(s)),[s,ws(s)]}function ou(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ws(t){let e=Ir(t);return Rm[e]+t.slice(e.length)}function Tm(t){var e,r,o,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(n=t.left)!=null?n:0}}function iu(t){return typeof t!="number"?Tm(t):{top:t,right:t,bottom:t,left:t}}function Lr(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function nu(t,e,r){let{reference:o,floating:n}=t,a=go(e),s=Rs(e),l=_s(s),d=Ir(e),p=a==="y",m=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:o.y-n.height};break;case"bottom":v={x:m,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}let E=Dt(e);return E&&(v[s]+=g*(E==="end"?1:-1)*(r&&p?-1:1)),v}async function au(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=mo(e,t),E=iu(v),A=l[g?h==="floating"?"reference":"floating":h],N=Lr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(A)))==null||r?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),$=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},C=Lr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:b,strategy:d}):$);return{top:(N.top-C.top+E.top)/y.y,bottom:(C.bottom-N.bottom+E.bottom)/y.y,left:(N.left-C.left+E.left)/y.x,right:(C.right-N.right+E.right)/y.x}}var Im=50,su=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:au},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=nu(p,o,d),g=o,v=0,E={};for(let L=0;L<a.length;L++){let A=a[L];if(!A)continue;let{name:N,fn:$}=A,{x:b,y,data:C,reset:I}=await $({x:m,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:E,rects:p,platform:l,elements:{reference:t,floating:e}});m=b??m,h=y??h,E[N]={...E[N],...C},I&&v<Im&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(p=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:m,y:h}=nu(p,g,d)),L=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:E}};function Lm(t,e,r){return(t?[...r.filter(n=>Dt(n)===t),...r.filter(n=>Dt(n)!==t)]:r.filter(n=>Ir(n)===n)).filter(n=>t?Dt(n)===t||(e?ou(n)!==n:!1):!0)}var lu=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=Os,autoAlignment:v=!0,...E}=mo(t,e),L=h!==void 0||g===Os?Lm(h||null,v,g):g,A=((r=s.autoPlacement)==null?void 0:r.index)||0,N=L[A];if(N==null)return{};if(l!==N)return{reset:{placement:L[0]}};let $=await d.detectOverflow(e,E),b=ru(N,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[$[Ir(N)],$[b[0]],$[b[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:y}],I=L[A+1];if(I)return{data:{index:A+1,overflows:C},reset:{placement:I}};let B=C.map(F=>{let X=Dt(F.placement);return[F.placement,X&&m?F.overflows.slice(0,2).reduce((Ee,Tt)=>Ee+Tt,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),me=((n=B.filter(F=>F[2].slice(0,Dt(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:n[0])||B[0][0];return me!==l?{data:{index:A+1,overflows:C},reset:{placement:me}}:{}}}};var km=new Set(["left","top"]);async function Pm(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Ir(r),l=Dt(r),d=go(r)==="y",p=km.has(s)?-1:1,m=a&&d?-1:1,h=mo(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof E=="number"&&(v=l==="end"?E*-1:E),d?{x:v*m,y:g*p}:{x:g*p,y:v*m}}var cu=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Pm(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},du=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:$=>{let{x:b,y}=$;return{x:b,y}}},...p}=mo(t,e),m={x:r,y:o},h=await a.detectOverflow(e,p),g=go(n),v=As(g),E=m[v],L=m[g],A=($,b)=>tu(b+h[$==="y"?"top":"left"],b,b-h[$==="y"?"bottom":"right"]);s&&(E=A(v,E)),l&&(L=A(g,L));let N=d.fn({...e,[v]:E,[g]:L});return{...N,data:{x:N.x-r,y:N.y-o,enabled:{[v]:s,[g]:l}}}}}};var uu=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=mo(t,e),d=await n.detectOverflow(e,l),p=Ir(r),m=Dt(r),h=go(r)==="y",{width:g,height:v}=o.floating,E,L;p==="top"||p==="bottom"?(E=p,L=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(L=p,E=m==="end"?"top":"bottom");let A=v-d.top-d.bottom,N=g-d.left-d.right,$=Tr(v-d[E],A),b=Tr(g-d[L],N),y=e.middlewareData.shift,C=!y,I=$,B=b;y!=null&&y.enabled.x&&(B=N),y!=null&&y.enabled.y&&(I=A),C&&!m&&(h?B=g-2*Pt(d.left,d.right):I=v-2*Pt(d.top,d.bottom)),await s({...e,availableWidth:B,availableHeight:I});let ee=await n.getDimensions(a.floating);return g!==ee.width||v!==ee.height?{reset:{rects:!0}}:{}}}};function on(){return typeof window<"u"}function Pr(t){return fu(t)?(t.nodeName||"").toLowerCase():"#document"}function Ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(fu(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fu(t){return on()?t instanceof Node||t instanceof Ze(t).Node:!1}function St(t){return on()?t instanceof Element||t instanceof Ze(t).Element:!1}function Zt(t){return on()?t instanceof HTMLElement||t instanceof Ze(t).HTMLElement:!1}function pu(t){return!on()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ze(t).ShadowRoot}function ai(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=Ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function hu(t){return/^(table|td|th)$/.test(Pr(t))}function si(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Nm=/transform|translate|scale|rotate|perspective|filter/,Dm=/paint|layout|strict|content/,kr=t=>!!t&&t!=="none",Ts;function yo(t){let e=St(t)?Ct(t):t;return kr(e.transform)||kr(e.translate)||kr(e.scale)||kr(e.rotate)||kr(e.perspective)||!nn()&&(kr(e.backdropFilter)||kr(e.filter))||Nm.test(e.willChange||"")||Dm.test(e.contain||"")}function mu(t){let e=ur(t);for(;Zt(e)&&!bo(e);){if(yo(e))return e;if(si(e))return null;e=ur(e)}return null}function nn(){return Ts==null&&(Ts=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ts}function bo(t){return/^(html|body|#document)$/.test(Pr(t))}function Ct(t){return Ze(t).getComputedStyle(t)}function li(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ur(t){if(Pr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||pu(t)&&t.host||Kt(t);return pu(e)?e.host:e}function gu(t){let e=ur(t);return bo(e)?(t.ownerDocument||t).body:Zt(e)&&ai(e)?e:gu(e)}function rn(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=gu(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ze(n);if(a){let l=an(s);return e.concat(s,s.visualViewport||[],ai(n)?n:[],l&&r?rn(l):[])}else return e.concat(n,rn(n,[],r))}function an(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xu(t){let e=Ct(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Zt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=ni(r)!==a||ni(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function vu(t){return St(t)?t:t.contextElement}function xo(t){let e=vu(t);if(!Zt(e))return Nt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=xu(e),s=(a?ni(r.width):r.width)/o,l=(a?ni(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Mm=Nt(0);function Su(t){let e=Ze(t);return!nn()||!e.visualViewport?Mm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fm(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ze(t)}function ci(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=vu(t),s=Nt(1);e&&(o?St(o)&&(s=xo(o)):s=xo(t));let l=Fm(a,r,o)?Su(a):Nt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&o){let g=Ze(a),v=St(o)?Ze(o):o,E=g,L=an(E);for(;L&&v!==E;){let A=xo(L),N=L.getBoundingClientRect(),$=Ct(L),b=N.left+(L.clientLeft+parseFloat($.paddingLeft))*A.x,y=N.top+(L.clientTop+parseFloat($.paddingTop))*A.y;d*=A.x,p*=A.y,m*=A.x,h*=A.y,d+=b,p+=y,E=Ze(L),L=an(E)}}return Lr({width:m,height:h,x:d,y:p})}function sn(t,e){let r=li(t).scrollLeft;return e?e.left+r:ci(Kt(t)).left+r}function Cu(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-sn(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function $m(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=Kt(o),l=e?si(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=Nt(1),m=Nt(0),h=Zt(o);if((h||!a)&&((Pr(o)!=="body"||ai(s))&&(d=li(o)),h)){let v=ci(o);p=xo(o),m.x=v.x+o.clientLeft,m.y=v.y+o.clientTop}let g=s&&!h&&!a?Cu(s,d):Nt(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function Um(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bm(t){let e=li(t),r=t.ownerDocument.body,o=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+sn(t),s=-e.scrollTop;return Ct(r).direction==="rtl"&&(a+=Pt(t.clientWidth,r.clientWidth)-o),{width:o,height:n,x:a,y:s}}var Vm=25;function zm(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=Ze(t),a=Kt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,m=0;if(s){let g=!nn()||e==="fixed";o?g||(p=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,m=s.offsetTop))}if(sn(a)<=0){let g=a.ownerDocument,v=g.body,E=getComputedStyle(v),L=g.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,A=Math.abs(a.clientWidth-v.clientWidth-L),N=getComputedStyle(a).scrollbarGutter==="stable both-edges"?A/2:A;N<=Vm&&(l-=N)}return{width:l,height:d,x:p,y:m}}function Hm(t,e){let r=ci(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=xo(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function yu(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=zm(t,r,e);else if(e==="document")o=Bm(Kt(t));else if(St(e))o=Hm(e,r);else{let n=Su(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Lr(o)}function Wm(t,e){let r=e.get(t);if(r)return r;let o=rn(t,[],!1).filter(l=>St(l)&&Pr(l)!=="body"),n=null,a=Ct(t).position==="fixed",s=a?ur(t):t;for(;St(s)&&!bo(s);){let l=Ct(s),d=yo(s),p=n?n.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):n=l,s=ur(s)}return e.set(t,o),o}function Gm(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?si(e)?[]:Wm(e,this._c):[].concat(r),o],l=yu(e,s[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=yu(e,s[g],n);d=Pt(v.top,d),p=Tr(v.right,p),m=Tr(v.bottom,m),h=Pt(v.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function jm(t){let{width:e,height:r}=xu(t);return{width:e,height:r}}function Km(t,e,r){let o=Zt(e),n=Kt(e),a=r==="fixed",s=ci(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Nt(0);if((o||!a)&&((Pr(e)!=="body"||ai(n))&&(l=li(e)),o)){let g=ci(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&n&&(d.x=sn(n));let p=n&&!o&&!a?Cu(n,l):Nt(0),m=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:s.width,height:s.height}}function Is(t){return Ct(t).position==="static"}function bu(t,e){if(!Zt(t)||Ct(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function Eu(t,e){let r=Ze(t);if(si(t))return r;if(!Zt(t)){let n=ur(t);for(;n&&!bo(n);){if(St(n)&&!Is(n))return n;n=ur(n)}return r}let o=bu(t,e);for(;o&&hu(o)&&Is(o);)o=bu(o,e);return o&&bo(o)&&Is(o)&&!yo(o)?r:o||mu(t)||r}var Zm=async function(t){let e=this.getOffsetParent||Eu,r=this.getDimensions,o=await r(t.floating);return{reference:Km(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function qm(t){return Ct(t).direction==="rtl"}var vo={convertOffsetParentRelativeRectToViewportRelativeRect:$m,getDocumentElement:Kt,getClippingRect:Gm,getOffsetParent:Eu,getElementRects:Zm,getClientRects:Um,getDimensions:jm,getScale:xo,isElement:St,isRTL:qm};var wu=cu,Ls=lu,Ou=du;var Au=uu;var ks=(t,e,r)=>{let o=new Map,n=r??{},a={...vo,...n.platform,_c:o};return su(t,e,{...n,platform:a})};function Ns(t){return Ym(t)}function Ps(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ym(t){for(let e=t;e;e=Ps(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ps(t);e;e=Ps(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||yo(r)||e.tagName==="BODY"))return e}return null}async function di(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},ks(t,e,{strategy:o.strategy,platform:{...vo,getOffsetParent:n=>vo.getOffsetParent(n,Ns)},middleware:[Ou({crossAxis:!0}),Ls({allowedPlacements:[o.placement]})]})}async function Ds(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,ks(t,e,{placement:l,strategy:n,platform:{...vo,getOffsetParent:p=>vo.getOffsetParent(p,Ns)},middleware:[wu(s??4),Ls({allowedPlacements:o}),Au({apply({availableHeight:p,availableWidth:m,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,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Fs={};G(Fs,{isSlotEmptyOrWithoutContent:()=>Xm});var Xm=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Hs={};G(Hs,{FtdsBase:()=>zs,toFtdsBase:()=>Pu});var Vs={};G(Vs,{ExportpartsUpdatedEvent:()=>Nr,FtLitElement:()=>D});var $s={};G($s,{ScopedRegistryLitElement:()=>ui});var ui=class extends Ht{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Uo(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){Xo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Bs={};G(Bs,{shadowQuerySelector:()=>Us,shadowQuerySelectorAll:()=>Jm});function Us(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Jm(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var So=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Iu,_u=Symbol("constructorPrototype"),Ru=Symbol("constructorName"),Lu=Symbol("exportpartsDebouncer"),Tu=Symbol("dynamicDependenciesLoaded"),Nr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Nr.eventName="exportparts-updated";var D=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Iu]=new Ne(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Lu].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ru]=this.constructor.name,this[_u]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ru]&&Object.setPrototypeOf(this,this[_u])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[Tu]||(r[Tu]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Nr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Nr.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 Nr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=Us(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=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 m=new Set;for(let g of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let v=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],E=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],L=[...v,...E].filter(d).map(A=>A.trim());for(let A of L)m.add(A)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Iu=Lu;So([f()],D.prototype,"exportpartsPrefix",void 0);So([Pe([])],D.prototype,"exportpartsPrefixes",void 0);So([f({reflect:!0})],D.prototype,"exportparts",void 0);So([f()],D.prototype,"customStylesheet",void 0);So([f()],D.prototype,"elementToFocus",void 0);So([T()],D.prototype,"useAdoptedStyleSheets",void 0);var ku=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pu=pe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ii.medium,this.family=oi.neutral}getDesignSystemBaseClasses(){return{[xs(this.family)]:!0,[vs(this.size)]:!0}}}return ku([f()],e.prototype,"size",void 0),ku([f()],e.prototype,"family",void 0),e}),zs=class extends Pu(D){};var Nu={};var js={};G(js,{highlightHtml:()=>Gs,highlightHtmlColorCssVariable:()=>Du,highlightHtmlStyles:()=>eg});var Dr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,o(m)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var pi=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Dr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,m=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,m),e.value=h+g,e.nodes.forEach((v,E)=>{E>=l&&(e.nodes[E].start>0&&E!==l&&(e.nodes[E].start-=m),e.nodes[E].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let m=p.index;if(s!==0)for(let h=1;h<s;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let m=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,m,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,m,g=>r(g,l,a.value.substring(p,m),d),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,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&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=Dr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ws(t){let e=new pi(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var Qm=Ws,Du=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),eg=w`
1
+ "use strict";(()=>{var ch=Object.defineProperty;var G=(t,e)=>{for(var r in e)ch(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(b,y){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" 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 C=y.prototype.attributeChangedCallback,I=new Set(y.observedAttributes||[]);g(y,I,C);let B={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(b,B),this._definitionsByClass.set(y,B);let ee=r.call(o,b);ee||(ee=h(b),e.call(o,b,ee)),this===window.customElements&&(s.set(y,B),B.standInClass=ee);let me=this._awaitingUpgrade.get(b);if(me){this._awaitingUpgrade.delete(b);for(let X of me)a.delete(X),w(X,B,!0)}let F=this._whenDefinedPromises.get(b);return F!==void 0&&(F.resolve(y),this._whenDefinedPromises.delete(b)),y}upgrade(){A.push(this),o.upgrade.apply(o,arguments),A.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let y=this._getDefinition(b);if(y!==void 0)return Promise.resolve(y.elementClass);let C=this._whenDefinedPromises.get(b);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(b,C)),C.promise}_upgradeWhenDefined(b,y,C){let I=this._awaitingUpgrade.get(y);I||this._awaitingUpgrade.set(y,I=new Set),C?I.add(b):I.delete(b)}};let d;window.HTMLElement=function(){let y=d;if(y)return d=void 0,y;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),n.set(y,C),y},window.HTMLElement.prototype=t.prototype;let p=b=>b===document||b instanceof ShadowRoot,m=b=>{let y=b.getRootNode();if(!p(y)){let C=A[A.length-1];if(C instanceof CustomElementRegistry)return C;y=C.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=m(C)||window.customElements,B=I._getDefinition(b);return B?w(C,B):a.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(b,y,C)=>{if(y.size===0||C===void 0)return;let I=b.prototype.setAttribute;I&&(b.prototype.setAttribute=function(me,F){let X=me.toLowerCase();if(y.has(X)){let we=this.getAttribute(X);I.call(this,X,F),C.call(this,X,we,F)}else I.call(this,X,F)});let B=b.prototype.removeAttribute;B&&(b.prototype.removeAttribute=function(me){let F=me.toLowerCase();if(y.has(F)){let X=this.getAttribute(F);B.call(this,F),C.call(this,F,X,null)}else B.call(this,F)});let ee=b.prototype.toggleAttribute;ee&&(b.prototype.toggleAttribute=function(me,F){let X=me.toLowerCase();if(y.has(X)){let we=this.getAttribute(X);ee.call(this,X,F);let It=this.getAttribute(X);C.call(this,X,we,It)}else ee.call(this,X,F)})},v=b=>{let y=Object.getPrototypeOf(b);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(b,window.HTMLElement):v(y)},w=(b,y,C=!1)=>{Object.setPrototypeOf(b,y.elementClass.prototype),n.set(b,y),d=b;try{new y.elementClass}catch{v(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(I=>{b.hasAttribute(I)&&y.attributeChangedCallback.call(b,I,null,b.getAttribute(I))}),C&&y.connectedCallback&&b.isConnected&&y.connectedCallback.call(b)},L=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let y=L.apply(this,arguments);return b.customElements&&(y.customElements=b.customElements),y};let A=[document],N=(b,y,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):b.prototype)[y];b.prototype[y]=function(){A.push(this);let B=I.apply(C||this,arguments);return B!==void 0&&l.set(B,this),A.pop(),B}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let $=(b,y)=>{let C=Object.getOwnPropertyDescriptor(b.prototype,y);Object.defineProperty(b.prototype,y,{...C,set(I){A.push(this),C.set.call(this,I),A.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,y=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...me){let F=y.call(this,...me);return b.set(F,this),F},C.forEach(me=>{let F=window.ElementInternals.prototype,X=F[me];F[me]=function(...we){let It=b.get(this);if(n.get(It).formAssociated===!0)return X?.call(this,...we);throw new DOMException(`Failed to execute ${X} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class B{constructor(F){let X=new Map;F.forEach((we,It)=>{let $a=we.getAttribute("name"),Ec=X.get($a)||[];this[+It]=we,Ec.push(we),X.set($a,Ec)}),this.length=F.length,X.forEach((we,It)=>{we&&(we.length===1?this[It]=we[0]:this[It]=new I(we))})}namedItem(F){return this[F]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let me=ee.get.call(this,[]),F=[];for(let X of me){let we=n.get(X);(!we||we.formAssociated===!0)&&F.push(X)}return new B(F)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var Ya={};G(Ya,{CSSResult:()=>no,LitElement:()=>Wt,ReactiveElement:()=>dt,_$LE:()=>Sh,_$LH:()=>Ka,adoptStyles:()=>Bo,css:()=>E,defaultConverter:()=>ao,getCompatibleStyle:()=>Ui,html:()=>x,isServer:()=>Zy,mathml:()=>ja,noChange:()=>Ee,notEqual:()=>zo,nothing:()=>_,render:()=>Za,supportsAdoptingStyleSheets:()=>Uo,svg:()=>Ko,unsafeCSS:()=>zt});var $i=globalThis,Uo=$i.ShadowRoot&&($i.ShadyCSS===void 0||$i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ua=Symbol(),Oc=new WeakMap,no=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ua)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Uo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Oc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Oc.set(r,e))}return e}toString(){return this.cssText}},zt=t=>new no(typeof t=="string"?t:t+"",void 0,Ua),E=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new no(r,t,Ua)},Bo=(t,e)=>{if(Uo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=$i.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Ui=Uo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return zt(r)})(t):t;var{is:dh,defineProperty:uh,getOwnPropertyDescriptor:ph,getOwnPropertyNames:fh,getOwnPropertySymbols:hh,getPrototypeOf:mh}=Object,Bi=globalThis,Ac=Bi.trustedTypes,gh=Ac?Ac.emptyScript:"",yh=Bi.reactiveElementPolyfillSupport,Vo=(t,e)=>t,ao={toAttribute(t,e){switch(e){case Boolean:t=t?gh:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},zo=(t,e)=>!dh(t,e),_c={attribute:!0,type:String,converter:ao,reflect:!1,useDefault:!1,hasChanged:zo};Symbol.metadata??=Symbol("metadata"),Bi.litPropertyMetadata??=new WeakMap;var dt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=_c){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&uh(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=ph(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_c}static _$Ei(){if(this.hasOwnProperty(Vo("elementProperties")))return;let e=mh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Vo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vo("properties"))){let r=this.properties,o=[...fh(r),...hh(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Ui(n))}else e!==void 0&&r.push(Ui(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:ao).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ao;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??zo)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Vo("elementProperties")]=new Map,dt[Vo("finalized")]=new Map,yh?.({ReactiveElement:dt}),(Bi.reactiveElementVersions??=[]).push("2.1.2");var Va=globalThis,Rc=t=>t,Vi=Va.trustedTypes,Tc=Vi?Vi.createPolicy("lit-html",{createHTML:t=>t}):void 0,za="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Ha="?"+Ht,bh=`<${Ha}>`,Er=document,Wo=()=>Er.createComment(""),Go=t=>t===null||typeof t!="object"&&typeof t!="function",Wa=Array.isArray,Dc=t=>Wa(t)||typeof t?.[Symbol.iterator]=="function",Ba=`[
2
+ \f\r]`,Ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ic=/-->/g,Lc=/>/g,Cr=RegExp(`>|${Ba}(?:([^\\s"'>=/]+)(${Ba}*=${Ba}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),kc=/'/g,Pc=/"/g,Mc=/^(?:script|style|textarea|title)$/i,Ga=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Ga(1),Ko=Ga(2),ja=Ga(3),Ee=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Nc=new WeakMap,wr=Er.createTreeWalker(Er,129);function Fc(t,e){if(!Wa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tc!==void 0?Tc.createHTML(e):e}var $c=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Ho;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===Ho?m[1]==="!--"?s=Ic:m[1]!==void 0?s=Lc:m[2]!==void 0?(Mc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Cr):m[3]!==void 0&&(s=Cr):s===Cr?m[0]===">"?(s=n??Ho,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,p=m[1],s=m[3]===void 0?Cr:m[3]==='"'?Pc:kc):s===Pc||s===kc?s=Cr:s===Ic||s===Lc?s=Ho:(s=Cr,n=void 0);let v=s===Cr&&t[l+1].startsWith("/>")?" ":"";a+=s===Ho?d+bh:h>=0?(o.push(p),d.slice(0,h)+za+d.slice(h)+Ht+v):d+Ht+(h===-2?l:v)}return[Fc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},jo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,m]=$c(e,r);if(this.el=t.createElement(p,o),wr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=wr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(za)){let g=m[s++],v=n.getAttribute(h).split(Ht),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:w[2],strings:v,ctor:w[1]==="."?Hi:w[1]==="?"?Wi:w[1]==="@"?Gi:Ar}),n.removeAttribute(h)}else h.startsWith(Ht)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Mc.test(n.tagName)){let h=n.textContent.split(Ht),g=h.length-1;if(g>0){n.textContent=Vi?Vi.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Wo()),wr.nextNode(),d.push({type:2,index:++a});n.append(h[g],Wo())}}}else if(n.nodeType===8)if(n.data===Ha)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Ht,h+1))!==-1;)d.push({type:7,index:a}),h+=Ht.length-1}a++}}static createElement(e,r){let o=Er.createElement("template");return o.innerHTML=e,o}};function Or(t,e,r=t,o){if(e===Ee)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Go(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Or(t,n._$AS(t,e.values),n,o)),e}var zi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Er).importNode(r,!0);wr.currentNode=n;let a=wr.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new so(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new ji(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=wr.nextNode(),s++)}return wr.currentNode=Er,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},so=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Or(this,e,r),Go(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dc(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!==_&&Go(this._$AH)?this._$AA.nextSibling.data=e:this.T(Er.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=jo.createElement(Fc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new zi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Nc.get(e.strings);return r===void 0&&Nc.set(e.strings,r=new jo(e)),r}k(e){Wa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(Wo()),this.O(Wo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=Rc(e).nextSibling;Rc(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ar=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=_}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Or(this,e,r,0),s=!Go(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=Or(this,l[o+d],r,d),p===Ee&&(p=this._$AH[d]),s||=!Go(p)||p!==this._$AH[d],p===_?e=_:e!==_&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Hi=class extends Ar{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},Wi=class extends Ar{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Gi=class extends Ar{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Or(this,e,r,0)??_)===Ee)return;let o=this._$AH,n=e===_&&o!==_||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==_&&(o===_||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ji=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Or(this,e)}},Ka={M:za,P:Ht,A:Ha,C:1,L:$c,R:zi,D:Dc,V:Or,I:so,H:Ar,N:Wi,U:Gi,B:Hi,F:ji},xh=Va.litHtmlPolyfillSupport;xh?.(jo,so),(Va.litHtmlVersions??=[]).push("3.3.3");var Za=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new so(e.insertBefore(Wo(),a),a,void 0,r??{})}return n._$AI(t),n};var qa=globalThis,Wt=class extends dt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Za(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Wt._$litElement$=!0,Wt.finalized=!0,qa.litElementHydrateSupport?.({LitElement:Wt});var vh=qa.litElementPolyfillSupport;vh?.({LitElement:Wt});var Sh={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(qa.litElementVersions??=[]).push("4.2.2");var Zy=!1;var Ja={};G(Ja,{customElement:()=>Ch,eventOptions:()=>Ki,property:()=>f,query:()=>M,queryAll:()=>Xa,queryAssignedElements:()=>Zo,queryAssignedNodes:()=>qo,queryAsync:()=>Oh,standardProperty:()=>Uc,state:()=>T});var Ch=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var wh={attribute:!0,type:String,converter:ao,reflect:!1,hasChanged:zo},Uc=(t=wh,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+o)};function f(t){return(e,r)=>typeof r=="object"?Uc(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return f({...t,state:!0,attribute:!1})}function Ki(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var vt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function M(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return vt(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return vt(r,o,{get(){return a(this)}})}}var Eh;function Xa(t){return(e,r)=>vt(e,r,{get(){return(this.renderRoot??(Eh??=document.createDocumentFragment())).querySelectorAll(t)}})}function Oh(t){return(e,r)=>vt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Zo(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function qo(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Qa={};G(Qa,{repeat:()=>Ke});var Lt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},et=t=>(...e)=>({_$litDirective$:t,values:e}),ut=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Ah}=Ka,Bc=t=>t;var zc=t=>t.strings===void 0,Vc=()=>document.createComment(""),lo=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(Vc(),n),s=o.insertBefore(Vc(),n);r=new Ah(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=Bc(d).nextSibling;Bc(o).insertBefore(d,n),d=p}}}return r},cr=(t,e,r=t)=>(t._$AI(e,r),t),_h={},Hc=(t,e=_h)=>t._$AH=e,Wc=t=>t._$AH,Zi=t=>{t._$AR(),t._$AA.remove()};var Gc=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},Ke=et(class extends ut{constructor(t){if(super(t),t.type!==Lt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=Wc(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,v=0,w=a.length-1;for(;h<=g&&v<=w;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=cr(n[h],a[v]),h++,v++;else if(l[g]===s[w])d[w]=cr(n[g],a[w]),g--,w--;else if(l[h]===s[w])d[w]=cr(n[h],a[w]),lo(t,d[w+1],n[h]),h++,w--;else if(l[g]===s[v])d[v]=cr(n[g],a[v]),lo(t,n[h],n[g]),g--,v++;else if(p===void 0&&(p=Gc(s,v,w),m=Gc(l,h,g)),p.has(l[h]))if(p.has(l[g])){let L=m.get(s[v]),A=L!==void 0?n[L]:null;if(A===null){let N=lo(t,n[h]);cr(N,a[v]),d[v]=N}else d[v]=cr(A,a[v]),lo(t,n[h],A),n[L]=null;v++}else Zi(n[g]),g--;else Zi(n[h]),h++;for(;v<=w;){let L=lo(t,d[w+1]);cr(L,a[v]),d[v++]=L}for(;h<=g;){let L=n[h++];L!==null&&Zi(L)}return this.ut=s,Hc(t,d),Ee}});var es={};G(es,{classMap:()=>oe});var oe=et(class extends ut{constructor(t){if(super(t),t.type!==Lt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return Ee}});var ts={};G(ts,{styleMap:()=>Th});var jc="important",Rh=" !"+jc,Th=et(class extends ut{constructor(t){if(super(t),t.type!==Lt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Rh);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?jc:""):r[o]=n}}return Ee}});var rs={};G(rs,{UnsafeHTMLDirective:()=>co,unsafeHTML:()=>Yo});var co=class extends ut{constructor(e){if(super(e),this.it=_,e.type!==Lt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};co.directiveName="unsafeHTML",co.resultType=1;var Yo=et(co);var os={};G(os,{splitBreadcrumbForMenu:()=>Ih});function Ih(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(r,1),n=t.slice(o*-1);return e+o>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var us={};G(us,{CacheRegistry:()=>Pt,ClearCacheEvent:()=>oi});var is={};G(is,{CancelablePromise:()=>qi,CanceledPromiseError:()=>_r,cancelable:()=>Xo});var _r=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},qi=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new _r("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new _r("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Xo=t=>new qi((e,r)=>t.then(e).catch(r));var ds={};G(ds,{FtContextRegistrationEvent:()=>ri,FtNotificationEvent:()=>kt,PostResizeEvent:()=>cs,PreResizeEvent:()=>ls,WithEventBus:()=>jt,withEventBus:()=>Qi});var ss={};G(ss,{AbstractRegistry:()=>uo,applyMixinOnce:()=>pe,customElements:()=>K,dateReviver:()=>Dh,deepCopy:()=>tt,deepEqual:()=>ze,delay:()=>Yi,eventPathContainsMatchingElement:()=>Qo,everyDeep:()=>Nh,flatDeep:()=>Yc,forEachDeep:()=>Xc,getComposedPathTo:()=>as,groupBy:()=>Fh,hasChanged:()=>pt,ignoreComposingEvents:()=>Gt,last:()=>ei,minmax:()=>Rr,parseDate:()=>Xi,randomId:()=>ti,someDeep:()=>Jc,unslotText:()=>Ji,waitFor:()=>qc,waitUntil:()=>Ph});var ns={};G(ns,{customElement:()=>Jo,dateProperty:()=>kh,isNumber:()=>Zc,jsonProperty:()=>Pe,jsonPropertyConverter:()=>Kc,numberProperty:()=>St,optionalNumberProperty:()=>Lh});var Jo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Kc=t=>({fromAttribute:e=>{if(e==null)return tt(t);try{return JSON.parse(e)}catch{return tt(t)}},toAttribute:e=>JSON.stringify(e)});function Pe(t,e){return f({type:Object,converter:Kc(t),hasChanged:pt,...e??{}})}function Lh(t){return St(t)}function St(t){return f({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Zc(e)?Rr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Zc(t){return!isNaN(parseFloat(t))}function kh(t){return f({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Yi=t=>new Promise(e=>setTimeout(e,t));async function Ph(t,e=10,r=2e4){await qc(async()=>await t()||void 0,e,r)}async function qc(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await Yi(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Yc(t,e){return t.flatMap(r=>[r,...Yc(e(r),e)])}function Xc(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Jc(t,e,r){let o=!1;return Xc(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function Nh(t,e,r){return!Jc(t,e,(o,n,a,s)=>!r(o,n,a,s))}function Dh(...t){return(e,r)=>t.includes(e)?Xi(r):r}function Xi(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function Mh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!ze(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!ze(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!ze(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ze(t,e){try{return Mh(t,e)}catch{return!1}}function pt(t,e){return!ze(t,e)}function Qo(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Rr(t,e,r){return Math.min(Math.max(t,e),r)}function ei(t){return t[t.length-1]}function Ji(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Ji(e)).join(""):t?.textContent||""}function as(t){let e=[],r=o=>{o.stopPropagation(),e=o.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function tt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ti(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function pe(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function Gt(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function K(t){for(let[e,r]of Object.entries(t))Jo(e)(r)}function Fh(t,e){var r,o;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[o=n(s)])!==null&&r!==void 0?r:a[o]=[]).push(s);return a}var uo=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var kt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ls=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},cs=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Qi=pe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),jt=class extends Qi(Object){},ri=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var oi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Pt=class extends jt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new oi(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new oi([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return r=r??n.loader,n.status="LOADING",n.promise=Xo(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var xs={};G(xs,{ClusteringHelper:()=>dr,formatHierarchicalValues:()=>bs});var ys={};G(ys,{accessBreadcrumb:()=>Wh,accessResult:()=>mo,accessResultId:()=>gs,accessResultUrl:()=>ii,enrichReaderUrl:()=>ms});var hs={};G(hs,{SearchPlaceConverter:()=>Kt,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>$d,serializeRequest:()=>zh});var $h=t=>typeof t=="object"&&t!=null;var Uh=t=>typeof t=="number",en=t=>typeof t=="string",fs=t=>$h(t)&&en(t.endpoint)&&en(t.method)&&en(t.statusText)&&en(t.body)&&Uh(t.status),Qc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Qc||(Qc={}));var ed;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ed||(ed={}));var td;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(td||(td={}));var rd;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rd||(rd={}));var od;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(od||(od={}));var id;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(id||(id={}));var nd;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(nd||(nd={}));var ad;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(ad||(ad={}));var sd;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(sd||(sd={}));var ld;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ld||(ld={}));var cd;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(cd||(cd={}));var dd;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dd||(dd={}));var ud;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ud||(ud={}));var pd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pd||(pd={}));var fd;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fd||(fd={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var hd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(hd||(hd={}));var po;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(po||(po={}));var md;(function(t){t.ASC="ASC",t.DESC="DESC"})(md||(md={}));var gd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(gd||(gd={}));var ps;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ps||(ps={}));var wd=t=>Object.keys(ps).includes(t);var yd;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(yd||(yd={}));var tn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(tn||(tn={}));var bd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bd||(bd={}));var fo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(fo||(fo={}));var Ed=t=>Object.keys(fo).includes(t);var xd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(xd||(xd={}));var vd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(vd||(vd={}));var Sd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Sd||(Sd={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var ft;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ft||(ft={}));var Cd;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Cd||(Cd={}));var Od;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Od||(Od={}));var Ad;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ad||(Ad={}));var _d;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(_d||(_d={}));var Rd;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Rd||(Rd={}));var Td;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Td||(Td={}));var Id;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Id||(Id={}));var Ld;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ld||(Ld={}));var kd;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(kd||(kd={}));var Pd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pd||(Pd={}));var Nd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Nd||(Nd={}));var rn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(rn||(rn={}));var Bh={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function Dd(t,e){return t===e||(Bh[t]??[]).some(r=>Dd(r,e))}function ho(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>Dd(o,e))}function Md(t,...e){return t==null?!1:e.some(r=>ho(t,r))}function Vh(t){return`"${t}"`}function Fd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zh(t,e){return new Kt(t).serialize(e)}var z;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(z||(z={}));var Hh=new Set(Object.values(z));function $d(t){return Hh.has(t)}var Kt=class t{constructor(e,r=20,o=!1,n="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,m,h;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(z.LOCALE,e.contentLocale):g.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(z.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(z.VALUE_FILTERS,v);let w=t.serializeNegativeValueFilters(e.metadataFilters);w&&g.append(z.NEGATIVE_VALUE_FILTERS,w);let L=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let b=L.map(y=>{var C;return`${y.key}~${(C=y.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(z.DATE_FILTERS,b)}let A=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let b=A.map(y=>{var C,I;return`${y.key}~${(C=y.rangeFilter)===null||C===void 0?void 0:C.from}_${(I=y.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");g.append(z.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(z.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let b in N)g.append(b,N[b]);let $=new Array;return g.forEach((b,y)=>{$.push(this.encodeQueryString(y)+"="+this.encodeQueryString(b))}),encodeURI($.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch($){console.warn("Could not decode search request query params, fallback on raw value",$)}let p=new URLSearchParams(e),m=(o=p.get(z.LOCALE))!==null&&o!==void 0?o:void 0,h=((n=p.get(z.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=p.get(z.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(a=p.get(z.SCOPE))!==null&&a!==void 0?a:"default",w=+((s=p.get(z.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),L=p.get(z.KEYWORD_MATCH),A=L?L.toUpperCase()===po.MANDATORY?po.MANDATORY:po.OPTIONAL:void 0,N={};for(let $ of p.keys())$d($)||(N[$]=p.get($));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some($=>$.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=p.get(z.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:wd(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:Rr(1,isNaN(w)?this.defaultPerPage:w,1e3)},keywordMatch:A,otherQueryParams:N}}parseCompatFilters(e){var r,o,n,a,s,l,d;let p=[];return e.has(z.FILTERS)&&(p=t.parseValueFilters((r=e.get(z.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(z.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(z.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(z.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(z.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(z.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Fd).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:fo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}static superEscapeFilters(e){for(let[r,o,n]of t.filtersEscapeMapping)e=e.replaceAll(o,n);return e}static unescapeFilterValue(e){for(let[r,o,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Ed(e))return[{key:"ft:lastEdition",dateFilter:{type:fo[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static serializeValueFilter(e){var r,o;let n=((o=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&o!==void 0?o:[]).map(a=>t.escapeFilters(a)).map(a=>Vh(Fd(a))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let o=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let o=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(o.length>0)return o.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[z.LOCALE,z.FILTERS,z.VALUE_FILTERS,z.NEGATIVE_VALUE_FILTERS,z.DATE_FILTERS,z.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(z.LOCALE),r!==void 0&&o.searchParams.append(z.LOCALE,r),o.toString()}};Kt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function mo(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function gs(t){var e,r,o,n,a,s,l,d,p;return(p=(d=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(o=t?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function ii(t,e){var r,o,n,a,s,l,d,p,m;return(m=(p=(d=(l=ms((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:ms((o=t?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&m!==void 0?m:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Wh(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function ms(t,e){if(e&&t){let r=URL.parse(t),o=Kt.serializeValueFilters(e);if(o&&r?.searchParams.append(z.VALUE_FILTERS,o),r)return r.toString()}return t}function bs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var dr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=mo(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(bs(l)),s.push(bs(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(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=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(w=>w.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,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var vs={};G(vs,{Debouncer:()=>Ne});var Ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Es={};G(Es,{designSystemVariables:()=>S});var ws={};G(ws,{DesignSystemFamily:()=>ni,DesignSystemSize:()=>ai,FtCssVariableFactory:()=>i,badge:()=>sm,banner:()=>am,button:()=>Kh,card:()=>qh,chart:()=>wm,checkbox:()=>Qh,chip:()=>om,chipChoice:()=>rm,chipGroup:()=>im,collapsible:()=>Sm,combobox:()=>xm,dateRangePicker:()=>Rm,drawer:()=>hm,eventCard:()=>Yh,floatingMenu:()=>bm,foundation:()=>c,link:()=>nm,modal:()=>pm,notice:()=>Om,notification:()=>Am,pageDesigner:()=>Em,pageFooter:()=>dm,pageHeader:()=>cm,pageLayout:()=>um,popover:()=>vm,radio:()=>em,reorderableList:()=>fm,resolveFamilyClass:()=>Ss,resolveSizeClass:()=>Cs,semantic:()=>u,setVariable:()=>O,switch_:()=>Cm,table:()=>tm,tabs:()=>mm,textArea:()=>ym,textInput:()=>gm,titleBreadcrumb:()=>lm,toc:()=>Jh,toggle:()=>Zh,tooltip:()=>_m,treeList:()=>Xh,typographies:()=>Gh,typographyBody1Medium:()=>Wd,typographyBody1Regular:()=>Hd,typographyBody1Semibold:()=>Gd,typographyBody2Medium:()=>Kd,typographyBody2MediumUnderline:()=>Zd,typographyBody2Regular:()=>jd,typographyBody2Semibold:()=>qd,typographyCaption1Medium:()=>Yd,typographyCaption1Semibold:()=>Xd,typographyCaption2Bold:()=>eu,typographyCaption2Medium:()=>Jd,typographyCaption2Semibold:()=>Qd,typographyDisplay:()=>Ud,typographyTitle1:()=>Bd,typographyTitle2:()=>Vd,typographyTitle3:()=>zd,typographyVariants:()=>jh});var ur=t=>typeof t=="string"?zt(t):t,i=class{static create(e,r,o,n){let a=l=>ur(l??n),s=E`var(${ur(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>O(s,l??a(n)),s.get=l=>E`var(${ur(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=E`var(${ur(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>O(s,l??a(n)),s.get=l=>E`var(${ur(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=E`var(${ur(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>E`var(${ur(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function O(t,e){return ur(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ud={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Bd={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Vd={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},zd={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Hd={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Wd={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Gd={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},jd={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Kd={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Zd={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},qd={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Yd={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Xd={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Jd={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Qd={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},eu={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Gh={display:Ud,"title-1":Bd,"title-2":Vd,"title-3":zd,"body-1-regular":Hd,"body-1-medium":Wd,"body-1-semibold":Gd,"body-2-regular":jd,"body-2-medium":Kd,"body-2-medium-underline":Zd,"body-2-semibold":qd,"caption-1-medium":Yd,"caption-1-semibold":Xd,"caption-2-medium":Jd,"caption-2-semibold":Qd,"caption-2-bold":eu},jh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Kh={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Zh={iconSize:i.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3),width:i.create("--ftds-toggle-width","","SIZE","36px"),height:i.create("--ftds-toggle-height","","SIZE","20px")};var qh={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var Yh={borderRadius:i.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:i.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:i.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:i.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:i.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:i.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:i.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:i.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:i.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Xh={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Jh={titleColor:i.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:i.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:i.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:i.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:i.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:i.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:i.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:i.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:i.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:i.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:i.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:i.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:i.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:i.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:i.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:i.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:i.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:i.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:i.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:i.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:i.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:i.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:i.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var Qh={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var em={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var tm={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var rm={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var om={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var im={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var nm={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)};var am={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var sm={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var lm={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var cm={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var dm={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var um={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var pm={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var fm={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:i.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var hm={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var mm={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var gm={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:i.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var ym={fieldPaddingLeft:i.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:i.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:i.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:i.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:i.extend("--ftds-text-area-resize-right","",c.spacing05)};var bm={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var xm={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var vm={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Sm={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Cm={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var wm={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var Em={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Om={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var Am={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var _m={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var Rm={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var ni;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ni||(ni={}));var ai;(function(t){t.large="large",t.medium="medium",t.small="small"})(ai||(ai={}));function Ss(t){return`ftds--family-${t}`}function Cs(t){return`ftds--size-${t}`}var S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Os={};G(Os,{DynamicImporter:()=>on,dynamicImporter:()=>Tm});var on=class{async import(e){if(e)return import(e)}},Tm=new on;var $s={};G($s,{computeOffsetAutoPosition:()=>Fs,computeOffsetPosition:()=>pi});var ru=["top","right","bottom","left"],tu=["start","end"],_s=ru.reduce((t,e)=>t.concat(e,e+"-"+tu[0],e+"-"+tu[1]),[]),Tr=Math.min,Nt=Math.max,si=Math.round;var Dt=t=>({x:t,y:t}),Im={left:"right",right:"left",bottom:"top",top:"bottom"};function ou(t,e,r){return Nt(t,Tr(e,r))}function go(t,e){return typeof t=="function"?t(e):t}function Ir(t){return t.split("-")[0]}function Mt(t){return t.split("-")[1]}function Rs(t){return t==="x"?"y":"x"}function Ts(t){return t==="y"?"height":"width"}function yo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Is(t){return Rs(yo(t))}function iu(t,e,r){r===void 0&&(r=!1);let o=Mt(t),n=Is(t),a=Ts(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=As(s)),[s,As(s)]}function nu(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function As(t){let e=Ir(t);return Im[e]+t.slice(e.length)}function Lm(t){var e,r,o,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(n=t.left)!=null?n:0}}function au(t){return typeof t!="number"?Lm(t):{top:t,right:t,bottom:t,left:t}}function Lr(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function su(t,e,r){let{reference:o,floating:n}=t,a=yo(e),s=Is(e),l=Ts(s),d=Ir(e),p=a==="y",m=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:o.y-n.height};break;case"bottom":v={x:m,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}let w=Mt(e);return w&&(v[s]+=g*(w==="end"?1:-1)*(r&&p?-1:1)),v}async function lu(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=go(e,t),w=au(v),A=l[g?h==="floating"?"reference":"floating":h],N=Lr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(A)))==null||r?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),$=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},C=Lr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:b,strategy:d}):$);return{top:(N.top-C.top+w.top)/y.y,bottom:(C.bottom-N.bottom+w.bottom)/y.y,left:(N.left-C.left+w.left)/y.x,right:(C.right-N.right+w.right)/y.x}}var km=50,cu=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:lu},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=su(p,o,d),g=o,v=0,w={};for(let L=0;L<a.length;L++){let A=a[L];if(!A)continue;let{name:N,fn:$}=A,{x:b,y,data:C,reset:I}=await $({x:m,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:w,rects:p,platform:l,elements:{reference:t,floating:e}});m=b??m,h=y??h,w[N]={...w[N],...C},I&&v<km&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(p=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:m,y:h}=su(p,g,d)),L=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:w}};function Pm(t,e,r){return(t?[...r.filter(n=>Mt(n)===t),...r.filter(n=>Mt(n)!==t)]:r.filter(n=>Ir(n)===n)).filter(n=>t?Mt(n)===t||(e?nu(n)!==n:!1):!0)}var du=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=_s,autoAlignment:v=!0,...w}=go(t,e),L=h!==void 0||g===_s?Pm(h||null,v,g):g,A=((r=s.autoPlacement)==null?void 0:r.index)||0,N=L[A];if(N==null)return{};if(l!==N)return{reset:{placement:L[0]}};let $=await d.detectOverflow(e,w),b=iu(N,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),y=[$[Ir(N)],$[b[0]],$[b[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:y}],I=L[A+1];if(I)return{data:{index:A+1,overflows:C},reset:{placement:I}};let B=C.map(F=>{let X=Mt(F.placement);return[F.placement,X&&m?F.overflows.slice(0,2).reduce((we,It)=>we+It,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),me=((n=B.filter(F=>F[2].slice(0,Mt(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:n[0])||B[0][0];return me!==l?{data:{index:A+1,overflows:C},reset:{placement:me}}:{}}}};var Nm=new Set(["left","top"]);async function Dm(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Ir(r),l=Mt(r),d=yo(r)==="y",p=Nm.has(s)?-1:1,m=a&&d?-1:1,h=go(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(v=l==="end"?w*-1:w),d?{x:v*m,y:g*p}:{x:g*p,y:v*m}}var uu=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Dm(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},pu=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:$=>{let{x:b,y}=$;return{x:b,y}}},...p}=go(t,e),m={x:r,y:o},h=await a.detectOverflow(e,p),g=yo(n),v=Rs(g),w=m[v],L=m[g],A=($,b)=>ou(b+h[$==="y"?"top":"left"],b,b-h[$==="y"?"bottom":"right"]);s&&(w=A(v,w)),l&&(L=A(g,L));let N=d.fn({...e,[v]:w,[g]:L});return{...N,data:{x:N.x-r,y:N.y-o,enabled:{[v]:s,[g]:l}}}}}};var fu=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=go(t,e),d=await n.detectOverflow(e,l),p=Ir(r),m=Mt(r),h=yo(r)==="y",{width:g,height:v}=o.floating,w,L;p==="top"||p==="bottom"?(w=p,L=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(L=p,w=m==="end"?"top":"bottom");let A=v-d.top-d.bottom,N=g-d.left-d.right,$=Tr(v-d[w],A),b=Tr(g-d[L],N),y=e.middlewareData.shift,C=!y,I=$,B=b;y!=null&&y.enabled.x&&(B=N),y!=null&&y.enabled.y&&(I=A),C&&!m&&(h?B=g-2*Nt(d.left,d.right):I=v-2*Nt(d.top,d.bottom)),await s({...e,availableWidth:B,availableHeight:I});let ee=await n.getDimensions(a.floating);return g!==ee.width||v!==ee.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function Pr(t){return mu(t)?(t.nodeName||"").toLowerCase():"#document"}function Ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Zt(t){var e;return(e=(mu(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mu(t){return an()?t instanceof Node||t instanceof Ze(t).Node:!1}function Ct(t){return an()?t instanceof Element||t instanceof Ze(t).Element:!1}function qt(t){return an()?t instanceof HTMLElement||t instanceof Ze(t).HTMLElement:!1}function hu(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ze(t).ShadowRoot}function li(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=wt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function gu(t){return/^(table|td|th)$/.test(Pr(t))}function ci(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Mm=/transform|translate|scale|rotate|perspective|filter/,Fm=/paint|layout|strict|content/,kr=t=>!!t&&t!=="none",Ls;function bo(t){let e=Ct(t)?wt(t):t;return kr(e.transform)||kr(e.translate)||kr(e.scale)||kr(e.rotate)||kr(e.perspective)||!sn()&&(kr(e.backdropFilter)||kr(e.filter))||Mm.test(e.willChange||"")||Fm.test(e.contain||"")}function yu(t){let e=pr(t);for(;qt(e)&&!xo(e);){if(bo(e))return e;if(ci(e))return null;e=pr(e)}return null}function sn(){return Ls==null&&(Ls=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ls}function xo(t){return/^(html|body|#document)$/.test(Pr(t))}function wt(t){return Ze(t).getComputedStyle(t)}function di(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pr(t){if(Pr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hu(t)&&t.host||Zt(t);return hu(e)?e.host:e}function bu(t){let e=pr(t);return xo(e)?(t.ownerDocument||t).body:qt(e)&&li(e)?e:bu(e)}function nn(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=bu(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ze(n);if(a){let l=ln(s);return e.concat(s,s.visualViewport||[],li(n)?n:[],l&&r?nn(l):[])}else return e.concat(n,nn(n,[],r))}function ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Su(t){let e=wt(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=qt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=si(r)!==a||si(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function Cu(t){return Ct(t)?t:t.contextElement}function vo(t){let e=Cu(t);if(!qt(e))return Dt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=Su(e),s=(a?si(r.width):r.width)/o,l=(a?si(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var $m=Dt(0);function wu(t){let e=Ze(t);return!sn()||!e.visualViewport?$m:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Um(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ze(t)}function ui(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Cu(t),s=Dt(1);e&&(o?Ct(o)&&(s=vo(o)):s=vo(t));let l=Um(a,r,o)?wu(a):Dt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&o){let g=Ze(a),v=Ct(o)?Ze(o):o,w=g,L=ln(w);for(;L&&v!==w;){let A=vo(L),N=L.getBoundingClientRect(),$=wt(L),b=N.left+(L.clientLeft+parseFloat($.paddingLeft))*A.x,y=N.top+(L.clientTop+parseFloat($.paddingTop))*A.y;d*=A.x,p*=A.y,m*=A.x,h*=A.y,d+=b,p+=y,w=Ze(L),L=ln(w)}}return Lr({width:m,height:h,x:d,y:p})}function cn(t,e){let r=di(t).scrollLeft;return e?e.left+r:ui(Zt(t)).left+r}function Eu(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-cn(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function Bm(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=Zt(o),l=e?ci(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=Dt(1),m=Dt(0),h=qt(o);if((h||!a)&&((Pr(o)!=="body"||li(s))&&(d=di(o)),h)){let v=ui(o);p=vo(o),m.x=v.x+o.clientLeft,m.y=v.y+o.clientTop}let g=s&&!h&&!a?Eu(s,d):Dt(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function Vm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function zm(t){let e=di(t),r=t.ownerDocument.body,o=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+cn(t),s=-e.scrollTop;return wt(r).direction==="rtl"&&(a+=Nt(t.clientWidth,r.clientWidth)-o),{width:o,height:n,x:a,y:s}}var Hm=25;function Wm(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=Ze(t),a=Zt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,m=0;if(s){let g=!sn()||e==="fixed";o?g||(p=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,m=s.offsetTop))}if(cn(a)<=0){let g=a.ownerDocument,v=g.body,w=getComputedStyle(v),L=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(a.clientWidth-v.clientWidth-L),N=getComputedStyle(a).scrollbarGutter==="stable both-edges"?A/2:A;N<=Hm&&(l-=N)}return{width:l,height:d,x:p,y:m}}function Gm(t,e){let r=ui(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=vo(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function xu(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=Wm(t,r,e);else if(e==="document")o=zm(Zt(t));else if(Ct(e))o=Gm(e,r);else{let n=wu(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Lr(o)}function jm(t,e){let r=e.get(t);if(r)return r;let o=nn(t,[],!1).filter(l=>Ct(l)&&Pr(l)!=="body"),n=null,a=wt(t).position==="fixed",s=a?pr(t):t;for(;Ct(s)&&!xo(s);){let l=wt(s),d=bo(s),p=n?n.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):n=l,s=pr(s)}return e.set(t,o),o}function Km(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?ci(e)?[]:jm(e,this._c):[].concat(r),o],l=xu(e,s[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=xu(e,s[g],n);d=Nt(v.top,d),p=Tr(v.right,p),m=Tr(v.bottom,m),h=Nt(v.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function Zm(t){let{width:e,height:r}=Su(t);return{width:e,height:r}}function qm(t,e,r){let o=qt(e),n=Zt(e),a=r==="fixed",s=ui(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Dt(0);if((o||!a)&&((Pr(e)!=="body"||li(n))&&(l=di(e)),o)){let g=ui(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&n&&(d.x=cn(n));let p=n&&!o&&!a?Eu(n,l):Dt(0),m=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:s.width,height:s.height}}function ks(t){return wt(t).position==="static"}function vu(t,e){if(!qt(t)||wt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Zt(t)===r&&(r=r.ownerDocument.body),r}function Ou(t,e){let r=Ze(t);if(ci(t))return r;if(!qt(t)){let n=pr(t);for(;n&&!xo(n);){if(Ct(n)&&!ks(n))return n;n=pr(n)}return r}let o=vu(t,e);for(;o&&gu(o)&&ks(o);)o=vu(o,e);return o&&xo(o)&&ks(o)&&!bo(o)?r:o||yu(t)||r}var Ym=async function(t){let e=this.getOffsetParent||Ou,r=this.getDimensions,o=await r(t.floating);return{reference:qm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xm(t){return wt(t).direction==="rtl"}var So={convertOffsetParentRelativeRectToViewportRelativeRect:Bm,getDocumentElement:Zt,getClippingRect:Km,getOffsetParent:Ou,getElementRects:Ym,getClientRects:Vm,getDimensions:Zm,getScale:vo,isElement:Ct,isRTL:Xm};var Au=uu,Ps=du,_u=pu;var Ru=fu;var Ns=(t,e,r)=>{let o=new Map,n=r??{},a={...So,...n.platform,_c:o};return cu(t,e,{...n,platform:a})};function Ms(t){return Jm(t)}function Ds(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Jm(t){for(let e=t;e;e=Ds(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ds(t);e;e=Ds(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||bo(r)||e.tagName==="BODY"))return e}return null}async function pi(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Ns(t,e,{strategy:o.strategy,platform:{...So,getOffsetParent:n=>So.getOffsetParent(n,Ms)},middleware:[_u({crossAxis:!0}),Ps({allowedPlacements:[o.placement]})]})}async function Fs(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,Ns(t,e,{placement:l,strategy:n,platform:{...So,getOffsetParent:p=>So.getOffsetParent(p,Ms)},middleware:[Au(s??4),Ps({allowedPlacements:o}),Ru({apply({availableHeight:p,availableWidth:m,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,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Us={};G(Us,{isSlotEmptyOrWithoutContent:()=>Qm});var Qm=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Gs={};G(Gs,{FtdsBase:()=>Ws,toFtdsBase:()=>Du});var Hs={};G(Hs,{ExportpartsUpdatedEvent:()=>Nr,FtLitElement:()=>D});var Bs={};G(Bs,{ScopedRegistryLitElement:()=>fi});var fi=class extends Wt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Bo(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){Jo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var zs={};G(zs,{shadowQuerySelector:()=>Vs,shadowQuerySelectorAll:()=>eg});function Vs(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function eg(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var Co=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ku,Tu=Symbol("constructorPrototype"),Iu=Symbol("constructorName"),Pu=Symbol("exportpartsDebouncer"),Lu=Symbol("dynamicDependenciesLoaded"),Nr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Nr.eventName="exportparts-updated";var D=class extends fi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ku]=new Ne(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Pu].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Iu]=this.constructor.name,this[Tu]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Iu]&&Object.setPrototypeOf(this,this[Tu])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[Lu]||(r[Lu]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Nr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Nr.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 Nr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=Vs(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=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 m=new Set;for(let g of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let v=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],w=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],L=[...v,...w].filter(d).map(A=>A.trim());for(let A of L)m.add(A)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};ku=Pu;Co([f()],D.prototype,"exportpartsPrefix",void 0);Co([Pe([])],D.prototype,"exportpartsPrefixes",void 0);Co([f({reflect:!0})],D.prototype,"exportparts",void 0);Co([f()],D.prototype,"customStylesheet",void 0);Co([f()],D.prototype,"elementToFocus",void 0);Co([T()],D.prototype,"useAdoptedStyleSheets",void 0);var Nu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Du=pe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ai.medium,this.family=ni.neutral}getDesignSystemBaseClasses(){return{[Ss(this.family)]:!0,[Cs(this.size)]:!0}}}return Nu([f()],e.prototype,"size",void 0),Nu([f()],e.prototype,"family",void 0),e}),Ws=class extends Du(D){};var Mu={};var Zs={};G(Zs,{highlightHtml:()=>Ks,highlightHtmlColorCssVariable:()=>Fu,highlightHtmlStyles:()=>rg});var Dr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,o(m)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var hi=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return Dr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,m=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,m),e.value=h+g,e.nodes.forEach((v,w)=>{w>=l&&(e.nodes[w].start>0&&w!==l&&(e.nodes[w].start-=m),e.nodes[w].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let m=p.index;if(s!==0)for(let h=1;h<s;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let m=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,m,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,m,g=>r(g,l,a.value.substring(p,m),d),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,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&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=Dr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function js(t){let e=new hi(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var tg=js,Fu=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),rg=E`
5
5
  .highlight-html-match {
6
- background: ${Du};
6
+ background: ${Fu};
7
7
  }
8
- `;function Gs(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Qm(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Zs={};G(Zs,{noTextInputDefaultClearButton:()=>Ks,noTextSelect:()=>qt,safariEllipsisFix:()=>fi,wordWrap:()=>tg});var qt=w`
8
+ `;function Ks(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new tg(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ys={};G(Ys,{noTextInputDefaultClearButton:()=>qs,noTextSelect:()=>Yt,safariEllipsisFix:()=>mi,wordWrap:()=>og});var Yt=E`
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:i.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,tg=w`
17
+ `,og=E`
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:i.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,fi=w`
29
+ `,mi=E`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,Ks=w`
40
+ `,qs=E`
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 Mu={};var qs={};G(qs,{ParametrizedLabelResolver:()=>hi});var hi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var gl={};G(gl,{FtCommandQueue:()=>mi,FtLitElementRedux:()=>ye,FtReduxStore:()=>Xt,FtStateManager:()=>$r,ReduxWatcher:()=>Tn,clearAllStores:()=>Yg,isFtReduxStore:()=>Co,redux:()=>Z,reduxEventListener:()=>ft,reduxReactive:()=>Ys,watch:()=>Xg,withRedux:()=>Fu});var Ys=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Z=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:ut,attribute:!1,...e};f(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},ft=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var mi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Co(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var gi=Symbol("internalReduxEventsUnsubscribers"),pr=Symbol("internalStoresUnsubscribers"),Mr=Symbol("internalStores"),Fu=pe(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Mr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Mr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Mr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Mr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Mr].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[pr].has(s.store):this[pr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d,p;this[pr].set(s,l.subscribe(()=>this.updateFromStores())),this[gi].set(s,[]),Co(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,h)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((m,h)=>{if(typeof this[h]=="function"&&(!m.store||l.name===m.store)){let g=v=>this[h](v);l.addEventListener(m.eventName,g),this[gi].get(s).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[pr].has(s)&&this[pr].get(s)(),this[pr].delete(s),(l=this[gi].get(s))===null||l===void 0||l.forEach(d=>d()),this[gi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pr,r=Mr,o=gi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ye=class extends Fu(D){};function Le(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var rg=typeof Symbol=="function"&&Symbol.observable||"@@observable",$u=rg,Xs=()=>Math.random().toString(36).substring(7).split("").join("."),og={INIT:`@@redux/INIT${Xs()}`,REPLACE:`@@redux/REPLACE${Xs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xs()}`},ln=og;function cn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Js(t,e,r){if(typeof t!="function")throw new Error(Le(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Le(1));return r(Js)(t,e)}let o=t,n=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((A,N)=>{s.set(N,A)}))}function m(){if(d)throw new Error(Le(3));return n}function h(A){if(typeof A!="function")throw new Error(Le(4));if(d)throw new Error(Le(5));let N=!0;p();let $=l++;return s.set($,A),function(){if(N){if(d)throw new Error(Le(6));N=!1,p(),s.delete($),a=null}}}function g(A){if(!cn(A))throw new Error(Le(7));if(typeof A.type>"u")throw new Error(Le(8));if(typeof A.type!="string")throw new Error(Le(17));if(d)throw new Error(Le(9));try{d=!0,n=o(n,A)}finally{d=!1}return(a=s).forEach($=>{$()}),A}function v(A){if(typeof A!="function")throw new Error(Le(10));o=A,g({type:ln.REPLACE})}function E(){let A=h;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(Le(11));function $(){let y=N;y.next&&y.next(m())}return $(),{unsubscribe:A($)}},[$u](){return this}}}return g({type:ln.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[$u]:E}}function ig(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:ln.INIT})>"u")throw new Error(Le(12));if(typeof r(void 0,{type:ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Qs(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let o=Object.keys(r),n,a;try{ig(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,m={};for(let h=0;h<o.length;h++){let g=o[h],v=r[g],E=l[g],L=v(E,d);if(typeof L>"u"){let A=d&&d.type;throw new Error(Le(14))}m[g]=L,p=p||L!==E}return p=p||o.length!==Object.keys(l).length,p?m:l}}function yi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function Uu(...t){return e=>(r,o)=>{let n=e(r,o),a=()=>{throw new Error(Le(15))},s={getState:n.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=yi(...l)(n.dispatch),{...n,dispatch:a}}}function Bu(t){return cn(t)&&"type"in t&&typeof t.type=="string"}var qu=Symbol.for("immer-nothing"),Vu=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var rt=Object,wo=rt.getPrototypeOf,fn="constructor",xn="prototype",ol="configurable",hn="enumerable",un="writable",bi="value",Mt=t=>!!t&&!!t[De];function ot(t){return t?Yu(t)||Sn(t)||!!t[Vu]||!!t[fn]?.[Vu]||Cn(t)||En(t):!1}var ng=rt[xn][fn].toString(),zu=new WeakMap;function Yu(t){if(!t||!ul(t))return!1;let e=wo(t);if(e===null||e===rt[xn])return!0;let r=rt.hasOwnProperty.call(e,fn)&&e[fn];if(r===Object)return!0;if(!Eo(r))return!1;let o=zu.get(r);return o===void 0&&(o=Function.toString.call(r),zu.set(r,o)),o===ng}function vn(t,e,r=!0){Si(t)===0?(r?Reflect.ownKeys(t):rt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((o,n)=>e(n,o,t))}function Si(t){let e=t[De];return e?e.type_:Sn(t)?1:Cn(t)?2:En(t)?3:0}var el=(t,e,r=Si(t))=>r===2?t.has(e):rt[xn].hasOwnProperty.call(t,e),il=(t,e,r=Si(t))=>r===2?t.get(e):t[e],mn=(t,e,r,o=Si(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function ag(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Sn=Array.isArray,Cn=t=>t instanceof Map,En=t=>t instanceof Set,ul=t=>typeof t=="object",Eo=t=>typeof t=="function",tl=t=>typeof t=="boolean";function sg(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Yt=t=>t.copy_||t.base_;var pl=t=>t.modified_?t.copy_:t.base_;function nl(t,e){if(Cn(t))return new Map(t);if(En(t))return new Set(t);if(Sn(t))return Array[xn].slice.call(t);let r=Yu(t);if(e===!0||e==="class_only"&&!r){let o=rt.getOwnPropertyDescriptors(t);delete o[De];let n=Reflect.ownKeys(o);for(let a=0;a<n.length;a++){let s=n[a],l=o[s];l[un]===!1&&(l[un]=!0,l[ol]=!0),(l.get||l.set)&&(o[s]={[ol]:!0,[un]:!0,[hn]:l[hn],[bi]:t[s]})}return rt.create(wo(t),o)}else{let o=wo(t);if(o!==null&&r)return{...t};let n=rt.create(o);return rt.assign(n,t)}}function wn(t,e=!1){return On(t)||Mt(t)||!ot(t)||(Si(t)>1&&rt.defineProperties(t,{set:dn,add:dn,clear:dn,delete:dn}),rt.freeze(t),e&&vn(t,(r,o)=>{wn(o,!0)},!1)),t}function lg(){Et(2)}var dn={[bi]:lg};function On(t){return t===null||!ul(t)?!0:rt.isFrozen(t)}var gn="MapSet",al="Patches",Hu="ArrayMethods",Xu={};function Fr(t){let e=Xu[t];return e||Et(0,t),e}var Wu=t=>!!Xu[t];var xi,Ju=()=>xi,cg=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wu(gn)?Fr(gn):void 0,arrayMethodsPlugin_:Wu(Hu)?Fr(Hu):void 0});function Gu(t,e){e&&(t.patchPlugin_=Fr(al),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function sl(t){ll(t),t.drafts_.forEach(dg),t.drafts_=null}function ll(t){t===xi&&(xi=t.parent_)}var ju=t=>xi=cg(xi,t);function dg(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ku(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(sl(e),Et(4)),ot(t)&&(t=Zu(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Zu(e,r);return ug(e,t,!0),sl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==qu?t:void 0}function Zu(t,e){if(On(e))return e;let r=e[De];if(!r)return yn(e,t.handledSet_,t);if(!An(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:o}=r;if(o)for(;o.length>0;)o.pop()(t);tp(r,t)}return r.copy_}function ug(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&wn(e,r)}function Qu(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var An=(t,e)=>t.scope_===e,pg=[];function ep(t,e,r,o){let n=Yt(t),a=t.type_;if(o!==void 0&&il(n,o,a)===e){mn(n,o,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;vn(n,(d,p)=>{if(Mt(p)){let m=l.get(p)||[];m.push(d),l.set(p,m)}})}let s=t.draftLocations_.get(e)??pg;for(let l of s)mn(n,l,r,a)}function fg(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!An(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=pl(a);ep(t,a.draft_??a,s,r),tp(a,n)})}function tp(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let n=o.getPath(t);n&&o.generatePatches_(t,n,e)}Qu(t)}}function hg(t,e,r){let{scope_:o}=t;if(Mt(r)){let n=r[De];An(n,o)&&n.callbacks_.push(function(){pn(t);let s=pl(n);ep(t,r,s,e)})}else ot(r)&&t.callbacks_.push(function(){let a=Yt(t);t.type_===3?a.has(r)&&yn(r,o.handledSet_,o):il(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&yn(il(t.copy_,e,t.type_),o.handledSet_,o)})}function yn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Mt(t)||e.has(t)||!ot(t)||On(t)||(e.add(t),vn(t,(o,n)=>{if(Mt(n)){let a=n[De];if(An(a,r)){let s=pl(a);mn(t,o,s,t.type_),Qu(a)}}else ot(n)&&yn(n,e,r)})),t}function mg(t,e){let r=Sn(t),o={type_:r?1:0,scope_:e?e.scope_:Ju(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=o,a=bn;r&&(n=[o],a=vi);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return o.draft_=l,o.revoke_=s,[l,o]}var bn={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,o=t.type_===1&&typeof e=="string";if(o&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Yt(t);if(!el(n,e,t.type_))return yg(t,n,e);let a=n[e];if(t.finalized_||!ot(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&sg(e))return a;if(a===rl(t.base_,e)||gg(t,e,a)){pn(t);let s=t.type_===1?+e:e,l=dl(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Yt(t)},ownKeys(t){return Reflect.ownKeys(Yt(t))},set(t,e,r){let o=rp(Yt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let n=rl(Yt(t),e),a=n?.[De];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(ag(r,n)&&(r!==void 0||el(t.base_,e,t.type_)))return!0;pn(t),cl(t)}return t.copy_[e]===r&&(r!==void 0||el(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),hg(t,e,r)),!0},deleteProperty(t,e){return pn(t),rl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),cl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Yt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[un]:!0,[ol]:t.type_!==1||e!=="length",[hn]:o[hn],[bi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return wo(t.base_)},setPrototypeOf(){Et(12)}},vi={};for(let t in bn){let e=bn[t];vi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}vi.deleteProperty=function(t,e){return vi.set.call(this,t,e,void 0)};vi.set=function(t,e,r){return bn.set.call(this,t[0],e,r,t[0])};function rl(t,e){let r=t[De];return(r?Yt(r):t)[e]}function gg(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ot(r)||r[De]?!1:t.baseRefs_.has(r)}function yg(t,e,r){let o=rp(e,r);return o?bi in o?o[bi]:o.get?.call(t.draft_):void 0}function rp(t,e){if(!(e in t))return;let r=wo(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=wo(r)}}function cl(t){t.modified_||(t.modified_=!0,t.parent_&&cl(t.parent_))}function pn(t){t.copy_||(t.assigned_=new Map,t.copy_=nl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var bg=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(Eo(e)&&!Eo(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,m=>r.call(this,m,...p))}}Eo(r)||Et(6),o!==void 0&&!Eo(o)&&Et(7);let n;if(ot(e)){let a=ju(this),s=dl(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?sl(a):ll(a)}return Gu(a,o),Ku(n,a)}else if(!e||!ul(e)){if(n=r(e),n===void 0&&(n=e),n===qu&&(n=void 0),this.autoFreeze_&&wn(n,!0),o){let a=[],s=[];Fr(al).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),o(a,s)}return n}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(Eo(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,n;return[this.produce(e,r,(s,l)=>{o=s,n=l}),o,n]},tl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),tl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),tl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ot(t)||Et(8),Mt(t)&&(t=op(t));let e=ju(this),r=dl(e,t,void 0);return r[De].isManual_=!0,ll(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&Et(9);let{scope_:o}=r;return Gu(o,e),Ku(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let o=Fr(al).applyPatches_;return Mt(t)?o(t,e):this.produce(t,n=>o(n,e))}};function dl(t,e,r,o){let[n,a]=Cn(e)?Fr(gn).proxyMap_(e,r):En(e)?Fr(gn).proxySet_(e,r):mg(e,r);return(r?.scope_??Ju()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?fg(r,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),n}function op(t){return Mt(t)||Et(10,t),ip(t)}function ip(t){if(!ot(t)||On(t))return t;let e=t[De],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=nl(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=nl(t,!0);return vn(r,(n,a)=>{mn(r,n,ip(a))},o),e&&(e.finalized_=!1),r}var xg=globalThis.Iterator,KC=typeof xg?.from=="function";var vg=new bg,fl=vg.produce;function np(t){return({dispatch:r,getState:o})=>n=>a=>typeof a=="function"?a(r,o,t):n(a)}var ap=np(),sp=np;var Sg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yi:yi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Cg=t=>t&&typeof t.match=="function";function fr(t,e){function r(...o){if(e){let n=e(...o);if(!n)throw new Error(Ft(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:o[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=o=>Bu(o)&&o.type===t,r}var pp=class Ci extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Ci.prototype)}static get[Symbol.species](){return Ci}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Ci(...e[0].concat(this)):new Ci(...e.concat(this))}};function lp(t){return ot(t)?fl(t,()=>{}):t}function _n(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Eg(t){return typeof t=="boolean"}var wg=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new pp;return r&&(Eg(r)?s.push(ap):s.push(sp(r.extraArgument))),s},Og="RTK_autoBatch";var cp=t=>e=>{setTimeout(e,t)},Ag=(t,e)=>r=>{let o=!1,n,a,s=()=>{o||(o=!0,cancelAnimationFrame(n),clearTimeout(a),r())};n=t(s),a=setTimeout(s,e)},_g=(t={type:"raf"})=>e=>(...r)=>{let o=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Ag(window.requestAnimationFrame,100):cp(10):t.type==="callback"?t.queueNotification:cp(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},o,{subscribe(m){let h=()=>n&&m(),g=o.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[Og],a=!n,a&&(s||(s=!0,d(p))),o.dispatch(m)}finally{n=!0}}})},Rg=t=>function(r){let{autoBatch:o=!0}=r??{},n=new pp(t);return o&&n.push(_g(typeof o=="object"?o:void 0)),n};function fp(t){let e=wg(),{reducer:r=void 0,middleware:o,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(cn(r))d=Qs(r);else throw new Error(Ft(1));let p;typeof o=="function"?p=o(e):p=e();let m=yi;n&&(m=Sg({trace:!1,...typeof n=="object"&&n}));let h=Uu(...p),g=Rg(h),v=typeof l=="function"?l(g):g(),E=m(...v);return Js(d,s,E)}function hp(t){let e={},r=[],o,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ft(28));if(l in e)throw new Error(Ft(29));return e[l]=s,n},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&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return o=a,n}};return t(n),[e,r,o]}function Tg(t){return typeof t=="function"}function Ig(t,e){let[r,o,n]=hp(e),a;if(Tg(t))a=()=>lp(t());else{let l=lp(t);a=()=>l}function s(l=a(),d){let p=[r[d.type],...o.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return p.filter(m=>!!m).length===0&&(p=[n]),p.reduce((m,h)=>{if(h)if(Mt(m)){let g=h(m,d);return g===void 0?m:g}else{if(ot(m))return fl(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw new Error(Ft(9))}return g}}return m},l)}return s.getInitialState=a,s}var Lg=(t,e)=>Cg(t)?t.match(e):t(e);function kg(...t){return e=>t.some(r=>Lg(r,e))}var Pg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ng=(t=21)=>{let e="",r=t;for(;r--;)e+=Pg[Math.random()*64|0];return e},Dg=["name","message","stack","code"],hl=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},dp=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Mg=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Dg)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},up="External signal was aborted",Fg=(()=>{function t(e,r,o){let n=fr(e+"/fulfilled",(d,p,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:p,requestStatus:"fulfilled"}})),a=fr(e+"/pending",(d,p,m)=>({payload:void 0,meta:{...m||{},arg:p,requestId:d,requestStatus:"pending"}})),s=fr(e+"/rejected",(d,p,m,h,g)=>({payload:h,error:(o&&o.serializeError||Mg)(d||"Rejected"),meta:{...g||{},arg:m,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(m,h,g)=>{let v=o?.idGenerator?o.idGenerator(d):Ng(),E=new AbortController,L,A;function N(b){A=b,E.abort()}p&&(p.aborted?N(up):p.addEventListener("abort",()=>N(up),{once:!0}));let $=(async function(){let b;try{let y=o?.condition?.(d,{getState:h,extra:g});if(Ug(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(E.signal.aborted)throw{name:"AbortError",message:A||"Aborted"};let C=new Promise((I,B)=>{L=()=>{B({name:"AbortError",message:A||"Aborted"})},E.signal.addEventListener("abort",L,{once:!0})});m(a(v,d,o?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),b=await Promise.race([C,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:E.signal,abort:N,rejectWithValue:((I,B)=>new hl(I,B)),fulfillWithValue:((I,B)=>new dp(I,B))})).then(I=>{if(I instanceof hl)throw I;return I instanceof dp?n(I.payload,v,d,I.meta):n(I,v,d)})])}catch(y){b=y instanceof hl?s(null,v,d,y.payload,y.meta):s(y,v,d)}finally{L&&E.signal.removeEventListener("abort",L)}return o&&!o.dispatchConditionRejection&&s.match(b)&&b.meta.condition||m(b),b})();return Object.assign($,{abort:N,requestId:v,arg:d,unwrap(){return $.then($g)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:kg(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function $g(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ug(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var mp=Symbol.for("rtk-slice-createasyncthunk"),tE={[mp]:Fg};function Bg(t,e){return`${t}/${e}`}function Vg({creators:t}={}){let e=t?.asyncThunk?.[mp];return function(o){let{name:n,reducerPath:a=n}=o;if(!n)throw new Error(Ft(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(Hg()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,y){let C=typeof b=="string"?b:b.type;if(!C)throw new Error(Ft(12));if(C in d.sliceCaseReducersByType)throw new Error(Ft(13));return d.sliceCaseReducersByType[C]=y,p},addMatcher(b,y){return d.sliceMatchers.push({matcher:b,reducer:y}),p},exposeAction(b,y){return d.actionCreators[b]=y,p},exposeCaseReducer(b,y){return d.sliceCaseReducersByName[b]=y,p}};l.forEach(b=>{let y=s[b],C={reducerName:b,type:Bg(n,b),createNotation:typeof o.reducers=="function"};Gg(y)?Kg(C,y,p,e):Wg(C,y,p)});function m(){let[b={},y=[],C=void 0]=typeof o.extraReducers=="function"?hp(o.extraReducers):[o.extraReducers],I={...b,...d.sliceCaseReducersByType};return Ig(o.initialState,B=>{for(let ee in I)B.addCase(ee,I[ee]);for(let ee of d.sliceMatchers)B.addMatcher(ee.matcher,ee.reducer);for(let ee of y)B.addMatcher(ee.matcher,ee.reducer);C&&B.addDefaultCase(C)})}let h=b=>b,g=new Map,v=new WeakMap,E;function L(b,y){return E||(E=m()),E(b,y)}function A(){return E||(E=m()),E.getInitialState()}function N(b,y=!1){function C(B){let ee=B[b];return typeof ee>"u"&&y&&(ee=_n(v,C,A)),ee}function I(B=h){return _n(_n(g,y,()=>new WeakMap),B,()=>{let ee={};for(let[me,F]of Object.entries(o.selectors??{}))ee[me]=zg(F,B,()=>_n(v,B,A),y);return ee})}return{reducerPath:b,getSelectors:I,get selectors(){return I(C)},selectSlice:C}}let $={name:n,reducer:L,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:A,...N(a),injectInto(b,{reducerPath:y,...C}={}){let I=y??a;return b.inject({reducerPath:I,reducer:L},C),{...$,...N(I,!0)}}};return $}}function zg(t,e,r,o){function n(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var gp=Vg();function Hg(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Wg({type:t,reducerName:e,createNotation:r},o,n){let a,s;if("reducer"in o){if(r&&!jg(o))throw new Error(Ft(17));a=o.reducer,s=o.prepare}else a=o;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?fr(t,s):fr(t))}function Gg(t){return t._reducerDefinitionType==="asyncThunk"}function jg(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Kg({type:t,reducerName:e},r,o,n){if(!n)throw new Error(Ft(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:m}=r,h=n(t,a,m);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||Rn,pending:l||Rn,rejected:d||Rn,settled:p||Rn})}function Rn(){}var yp="listener",bp="completed",xp="cancelled",rE=`task-${xp}`,oE=`task-${bp}`,iE=`${yp}-${xp}`,nE=`${yp}-${bp}`;var{assign:vp}=Object;var ml="listenerMiddleware";var Zg=vp(fr(`${ml}/add`),{withTypes:()=>Zg}),aE=fr(`${ml}/removeAll`),qg=vp(fr(`${ml}/remove`),{withTypes:()=>qg});function Ft(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Xt=class t extends Gt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Co(a))return a;if(n==null)return;let s=gp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=fp({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=tt(s.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,o,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new mi,this.injectInto=(s,l)=>this.reduxSlice.injectInto(s,l),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let p=l,m=s[p];return m?(...h)=>{let g=m(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{let g=p,v=this.getState()[g];ze(v,h)||this.setState({[g]:a(h)})}}}),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 Yg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Co(e)&&e.clear()}var Tn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);ut(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Xg(t,e,r){return new Tn(t,e,r).watch()}var $r=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var xl={};G(xl,{scrollHelper:()=>Jg});var yl,In=new Map,bl=class{lock(e,r){if(r){let o=In.get(r);if(o==null||o===e)return In.set(r,e),r}}release(e,r){r&&In.get(r)===e&&In.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of is(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Rr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(yl=window.FluidTopicsScrollHelper)!==null&&yl!==void 0?yl:new bl;var Jg=window.FluidTopicsScrollHelper;var Sl={};G(Sl,{toFtFormComponent:()=>Ur});var vl=Symbol("elementInternals"),Ur=pe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[vl].form}constructor(...o){super(o),this[vl]=this.attachInternals()}setFormValue(o){this[vl].setFormValue(o)}}return e});var Cl={};G(Cl,{DateFormatter:()=>Br});var Br=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var wl={};G(wl,{ALL_KEYS_VALUE:()=>El,SameWindowStorageEvent:()=>Oo});var El="__all__",Oo=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==El}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Oo(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Oo(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Oo(El))}});var Al={};G(Al,{FocusMainContentEvent:()=>Ol});var Ol=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Sp={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Qg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function ey(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Qg);document.addEventListener("click",ey);var Cp=w`
47
+ `;var $u={};var Xs={};G(Xs,{ParametrizedLabelResolver:()=>gi});var gi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var bl={};G(bl,{FtCommandQueue:()=>yi,FtLitElementRedux:()=>ye,FtReduxStore:()=>Jt,FtStateManager:()=>$r,ReduxWatcher:()=>Ln,clearAllStores:()=>Jg,isFtReduxStore:()=>wo,redux:()=>Z,reduxEventListener:()=>ht,reduxReactive:()=>Js,watch:()=>Qg,withRedux:()=>Uu});var Js=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Z=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:pt,attribute:!1,...e};f(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},ht=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var yi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function wo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var bi=Symbol("internalReduxEventsUnsubscribers"),fr=Symbol("internalStoresUnsubscribers"),Mr=Symbol("internalStores"),Uu=pe(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Mr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Mr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Mr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Mr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Mr].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[fr].has(s.store):this[fr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d,p;this[fr].set(s,l.subscribe(()=>this.updateFromStores())),this[bi].set(s,[]),wo(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,h)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((m,h)=>{if(typeof this[h]=="function"&&(!m.store||l.name===m.store)){let g=v=>this[h](v);l.addEventListener(m.eventName,g),this[bi].get(s).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[fr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[fr].has(s)&&this[fr].get(s)(),this[fr].delete(s),(l=this[bi].get(s))===null||l===void 0||l.forEach(d=>d()),this[bi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=fr,r=Mr,o=bi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ye=class extends Uu(D){};function Le(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var ig=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bu=ig,Qs=()=>Math.random().toString(36).substring(7).split("").join("."),ng={INIT:`@@redux/INIT${Qs()}`,REPLACE:`@@redux/REPLACE${Qs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qs()}`},dn=ng;function un(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function el(t,e,r){if(typeof t!="function")throw new Error(Le(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Le(1));return r(el)(t,e)}let o=t,n=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((A,N)=>{s.set(N,A)}))}function m(){if(d)throw new Error(Le(3));return n}function h(A){if(typeof A!="function")throw new Error(Le(4));if(d)throw new Error(Le(5));let N=!0;p();let $=l++;return s.set($,A),function(){if(N){if(d)throw new Error(Le(6));N=!1,p(),s.delete($),a=null}}}function g(A){if(!un(A))throw new Error(Le(7));if(typeof A.type>"u")throw new Error(Le(8));if(typeof A.type!="string")throw new Error(Le(17));if(d)throw new Error(Le(9));try{d=!0,n=o(n,A)}finally{d=!1}return(a=s).forEach($=>{$()}),A}function v(A){if(typeof A!="function")throw new Error(Le(10));o=A,g({type:dn.REPLACE})}function w(){let A=h;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(Le(11));function $(){let y=N;y.next&&y.next(m())}return $(),{unsubscribe:A($)}},[Bu](){return this}}}return g({type:dn.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Bu]:w}}function ag(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:dn.INIT})>"u")throw new Error(Le(12));if(typeof r(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function tl(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let o=Object.keys(r),n,a;try{ag(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,m={};for(let h=0;h<o.length;h++){let g=o[h],v=r[g],w=l[g],L=v(w,d);if(typeof L>"u"){let A=d&&d.type;throw new Error(Le(14))}m[g]=L,p=p||L!==w}return p=p||o.length!==Object.keys(l).length,p?m:l}}function xi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...o)=>e(r(...o)))}function Vu(...t){return e=>(r,o)=>{let n=e(r,o),a=()=>{throw new Error(Le(15))},s={getState:n.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=xi(...l)(n.dispatch),{...n,dispatch:a}}}function zu(t){return un(t)&&"type"in t&&typeof t.type=="string"}var Xu=Symbol.for("immer-nothing"),Hu=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var rt=Object,Oo=rt.getPrototypeOf,mn="constructor",Sn="prototype",nl="configurable",gn="enumerable",fn="writable",vi="value",Ft=t=>!!t&&!!t[De];function ot(t){return t?Ju(t)||wn(t)||!!t[Hu]||!!t[mn]?.[Hu]||En(t)||On(t):!1}var sg=rt[Sn][mn].toString(),Wu=new WeakMap;function Ju(t){if(!t||!fl(t))return!1;let e=Oo(t);if(e===null||e===rt[Sn])return!0;let r=rt.hasOwnProperty.call(e,mn)&&e[mn];if(r===Object)return!0;if(!Eo(r))return!1;let o=Wu.get(r);return o===void 0&&(o=Function.toString.call(r),Wu.set(r,o)),o===sg}function Cn(t,e,r=!0){wi(t)===0?(r?Reflect.ownKeys(t):rt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((o,n)=>e(n,o,t))}function wi(t){let e=t[De];return e?e.type_:wn(t)?1:En(t)?2:On(t)?3:0}var rl=(t,e,r=wi(t))=>r===2?t.has(e):rt[Sn].hasOwnProperty.call(t,e),al=(t,e,r=wi(t))=>r===2?t.get(e):t[e],yn=(t,e,r,o=wi(t))=>{o===2?t.set(e,r):o===3?t.add(r):t[e]=r};function lg(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var wn=Array.isArray,En=t=>t instanceof Map,On=t=>t instanceof Set,fl=t=>typeof t=="object",Eo=t=>typeof t=="function",ol=t=>typeof t=="boolean";function cg(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Xt=t=>t.copy_||t.base_;var hl=t=>t.modified_?t.copy_:t.base_;function sl(t,e){if(En(t))return new Map(t);if(On(t))return new Set(t);if(wn(t))return Array[Sn].slice.call(t);let r=Ju(t);if(e===!0||e==="class_only"&&!r){let o=rt.getOwnPropertyDescriptors(t);delete o[De];let n=Reflect.ownKeys(o);for(let a=0;a<n.length;a++){let s=n[a],l=o[s];l[fn]===!1&&(l[fn]=!0,l[nl]=!0),(l.get||l.set)&&(o[s]={[nl]:!0,[fn]:!0,[gn]:l[gn],[vi]:t[s]})}return rt.create(Oo(t),o)}else{let o=Oo(t);if(o!==null&&r)return{...t};let n=rt.create(o);return rt.assign(n,t)}}function An(t,e=!1){return _n(t)||Ft(t)||!ot(t)||(wi(t)>1&&rt.defineProperties(t,{set:pn,add:pn,clear:pn,delete:pn}),rt.freeze(t),e&&Cn(t,(r,o)=>{An(o,!0)},!1)),t}function dg(){Et(2)}var pn={[vi]:dg};function _n(t){return t===null||!fl(t)?!0:rt.isFrozen(t)}var bn="MapSet",ll="Patches",Gu="ArrayMethods",Qu={};function Fr(t){let e=Qu[t];return e||Et(0,t),e}var ju=t=>!!Qu[t];var Si,ep=()=>Si,ug=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ju(bn)?Fr(bn):void 0,arrayMethodsPlugin_:ju(Gu)?Fr(Gu):void 0});function Ku(t,e){e&&(t.patchPlugin_=Fr(ll),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function cl(t){dl(t),t.drafts_.forEach(pg),t.drafts_=null}function dl(t){t===Si&&(Si=t.parent_)}var Zu=t=>Si=ug(Si,t);function pg(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function qu(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(cl(e),Et(4)),ot(t)&&(t=Yu(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Yu(e,r);return fg(e,t,!0),cl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xu?t:void 0}function Yu(t,e){if(_n(e))return e;let r=e[De];if(!r)return xn(e,t.handledSet_,t);if(!Rn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:o}=r;if(o)for(;o.length>0;)o.pop()(t);op(r,t)}return r.copy_}function fg(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&An(e,r)}function tp(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Rn=(t,e)=>t.scope_===e,hg=[];function rp(t,e,r,o){let n=Xt(t),a=t.type_;if(o!==void 0&&al(n,o,a)===e){yn(n,o,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;Cn(n,(d,p)=>{if(Ft(p)){let m=l.get(p)||[];m.push(d),l.set(p,m)}})}let s=t.draftLocations_.get(e)??hg;for(let l of s)yn(n,l,r,a)}function mg(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!Rn(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=hl(a);rp(t,a.draft_??a,s,r),op(a,n)})}function op(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let n=o.getPath(t);n&&o.generatePatches_(t,n,e)}tp(t)}}function gg(t,e,r){let{scope_:o}=t;if(Ft(r)){let n=r[De];Rn(n,o)&&n.callbacks_.push(function(){hn(t);let s=hl(n);rp(t,r,s,e)})}else ot(r)&&t.callbacks_.push(function(){let a=Xt(t);t.type_===3?a.has(r)&&xn(r,o.handledSet_,o):al(a,e,t.type_)===r&&o.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&xn(al(t.copy_,e,t.type_),o.handledSet_,o)})}function xn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ft(t)||e.has(t)||!ot(t)||_n(t)||(e.add(t),Cn(t,(o,n)=>{if(Ft(n)){let a=n[De];if(Rn(a,r)){let s=hl(a);yn(t,o,s,t.type_),tp(a)}}else ot(n)&&xn(n,e,r)})),t}function yg(t,e){let r=wn(t),o={type_:r?1:0,scope_:e?e.scope_:ep(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=o,a=vn;r&&(n=[o],a=Ci);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return o.draft_=l,o.revoke_=s,[l,o]}var vn={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,o=t.type_===1&&typeof e=="string";if(o&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Xt(t);if(!rl(n,e,t.type_))return xg(t,n,e);let a=n[e];if(t.finalized_||!ot(a)||o&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&cg(e))return a;if(a===il(t.base_,e)||bg(t,e,a)){hn(t);let s=t.type_===1?+e:e,l=pl(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Xt(t)},ownKeys(t){return Reflect.ownKeys(Xt(t))},set(t,e,r){let o=ip(Xt(t),e);if(o?.set)return o.set.call(t.draft_,r),!0;if(!t.modified_){let n=il(Xt(t),e),a=n?.[De];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(lg(r,n)&&(r!==void 0||rl(t.base_,e,t.type_)))return!0;hn(t),ul(t)}return t.copy_[e]===r&&(r!==void 0||rl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),gg(t,e,r)),!0},deleteProperty(t,e){return hn(t),il(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ul(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Xt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{[fn]:!0,[nl]:t.type_!==1||e!=="length",[gn]:o[gn],[vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return Oo(t.base_)},setPrototypeOf(){Et(12)}},Ci={};for(let t in vn){let e=vn[t];Ci[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ci.deleteProperty=function(t,e){return Ci.set.call(this,t,e,void 0)};Ci.set=function(t,e,r){return vn.set.call(this,t[0],e,r,t[0])};function il(t,e){let r=t[De];return(r?Xt(r):t)[e]}function bg(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ot(r)||r[De]?!1:t.baseRefs_.has(r)}function xg(t,e,r){let o=ip(e,r);return o?vi in o?o[vi]:o.get?.call(t.draft_):void 0}function ip(t,e){if(!(e in t))return;let r=Oo(t);for(;r;){let o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Oo(r)}}function ul(t){t.modified_||(t.modified_=!0,t.parent_&&ul(t.parent_))}function hn(t){t.copy_||(t.assigned_=new Map,t.copy_=sl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var vg=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,o)=>{if(Eo(e)&&!Eo(r)){let a=r;r=e;let s=this;return function(d=a,...p){return s.produce(d,m=>r.call(this,m,...p))}}Eo(r)||Et(6),o!==void 0&&!Eo(o)&&Et(7);let n;if(ot(e)){let a=Zu(this),s=pl(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?cl(a):dl(a)}return Ku(a,o),qu(n,a)}else if(!e||!fl(e)){if(n=r(e),n===void 0&&(n=e),n===Xu&&(n=void 0),this.autoFreeze_&&An(n,!0),o){let a=[],s=[];Fr(ll).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),o(a,s)}return n}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(Eo(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,n;return[this.produce(e,r,(s,l)=>{o=s,n=l}),o,n]},ol(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ol(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ol(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ot(t)||Et(8),Ft(t)&&(t=np(t));let e=Zu(this),r=pl(e,t,void 0);return r[De].isManual_=!0,dl(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&Et(9);let{scope_:o}=r;return Ku(o,e),qu(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let o=Fr(ll).applyPatches_;return Ft(t)?o(t,e):this.produce(t,n=>o(n,e))}};function pl(t,e,r,o){let[n,a]=En(e)?Fr(bn).proxyMap_(e,r):On(e)?Fr(bn).proxySet_(e,r):yg(e,r);return(r?.scope_??ep()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=o,r&&o!==void 0?mg(r,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),n}function np(t){return Ft(t)||Et(10,t),ap(t)}function ap(t){if(!ot(t)||_n(t))return t;let e=t[De],r,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=sl(t,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else r=sl(t,!0);return Cn(r,(n,a)=>{yn(r,n,ap(a))},o),e&&(e.finalized_=!1),r}var Sg=globalThis.Iterator,qC=typeof Sg?.from=="function";var Cg=new vg,ml=Cg.produce;function sp(t){return({dispatch:r,getState:o})=>n=>a=>typeof a=="function"?a(r,o,t):n(a)}var lp=sp(),cp=sp;var wg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xi:xi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Eg=t=>t&&typeof t.match=="function";function hr(t,e){function r(...o){if(e){let n=e(...o);if(!n)throw new Error($t(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:o[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=o=>zu(o)&&o.type===t,r}var hp=class Ei extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Ei.prototype)}static get[Symbol.species](){return Ei}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Ei(...e[0].concat(this)):new Ei(...e.concat(this))}};function dp(t){return ot(t)?ml(t,()=>{}):t}function Tn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Og(t){return typeof t=="boolean"}var Ag=()=>function(e){let{thunk:r=!0,immutableCheck:o=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new hp;return r&&(Og(r)?s.push(lp):s.push(cp(r.extraArgument))),s},_g="RTK_autoBatch";var up=t=>e=>{setTimeout(e,t)},Rg=(t,e)=>r=>{let o=!1,n,a,s=()=>{o||(o=!0,cancelAnimationFrame(n),clearTimeout(a),r())};n=t(s),a=setTimeout(s,e)},Tg=(t={type:"raf"})=>e=>(...r)=>{let o=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Rg(window.requestAnimationFrame,100):up(10):t.type==="callback"?t.queueNotification:up(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},o,{subscribe(m){let h=()=>n&&m(),g=o.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[_g],a=!n,a&&(s||(s=!0,d(p))),o.dispatch(m)}finally{n=!0}}})},Ig=t=>function(r){let{autoBatch:o=!0}=r??{},n=new hp(t);return o&&n.push(Tg(typeof o=="object"?o:void 0)),n};function mp(t){let e=Ag(),{reducer:r=void 0,middleware:o,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(un(r))d=tl(r);else throw new Error($t(1));let p;typeof o=="function"?p=o(e):p=e();let m=xi;n&&(m=wg({trace:!1,...typeof n=="object"&&n}));let h=Vu(...p),g=Ig(h),v=typeof l=="function"?l(g):g(),w=m(...v);return el(d,s,w)}function gp(t){let e={},r=[],o,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error($t(28));if(l in e)throw new Error($t(29));return e[l]=s,n},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&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return o=a,n}};return t(n),[e,r,o]}function Lg(t){return typeof t=="function"}function kg(t,e){let[r,o,n]=gp(e),a;if(Lg(t))a=()=>dp(t());else{let l=dp(t);a=()=>l}function s(l=a(),d){let p=[r[d.type],...o.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return p.filter(m=>!!m).length===0&&(p=[n]),p.reduce((m,h)=>{if(h)if(Ft(m)){let g=h(m,d);return g===void 0?m:g}else{if(ot(m))return ml(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw new Error($t(9))}return g}}return m},l)}return s.getInitialState=a,s}var Pg=(t,e)=>Eg(t)?t.match(e):t(e);function Ng(...t){return e=>t.some(r=>Pg(r,e))}var Dg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mg=(t=21)=>{let e="",r=t;for(;r--;)e+=Dg[Math.random()*64|0];return e},Fg=["name","message","stack","code"],gl=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},pp=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},$g=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Fg)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fp="External signal was aborted",Ug=(()=>{function t(e,r,o){let n=hr(e+"/fulfilled",(d,p,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:p,requestStatus:"fulfilled"}})),a=hr(e+"/pending",(d,p,m)=>({payload:void 0,meta:{...m||{},arg:p,requestId:d,requestStatus:"pending"}})),s=hr(e+"/rejected",(d,p,m,h,g)=>({payload:h,error:(o&&o.serializeError||$g)(d||"Rejected"),meta:{...g||{},arg:m,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(m,h,g)=>{let v=o?.idGenerator?o.idGenerator(d):Mg(),w=new AbortController,L,A;function N(b){A=b,w.abort()}p&&(p.aborted?N(fp):p.addEventListener("abort",()=>N(fp),{once:!0}));let $=(async function(){let b;try{let y=o?.condition?.(d,{getState:h,extra:g});if(Vg(y)&&(y=await y),y===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(w.signal.aborted)throw{name:"AbortError",message:A||"Aborted"};let C=new Promise((I,B)=>{L=()=>{B({name:"AbortError",message:A||"Aborted"})},w.signal.addEventListener("abort",L,{once:!0})});m(a(v,d,o?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),b=await Promise.race([C,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:w.signal,abort:N,rejectWithValue:((I,B)=>new gl(I,B)),fulfillWithValue:((I,B)=>new pp(I,B))})).then(I=>{if(I instanceof gl)throw I;return I instanceof pp?n(I.payload,v,d,I.meta):n(I,v,d)})])}catch(y){b=y instanceof gl?s(null,v,d,y.payload,y.meta):s(y,v,d)}finally{L&&w.signal.removeEventListener("abort",L)}return o&&!o.dispatchConditionRejection&&s.match(b)&&b.meta.condition||m(b),b})();return Object.assign($,{abort:N,requestId:v,arg:d,unwrap(){return $.then(Bg)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:Ng(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Bg(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Vg(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yp=Symbol.for("rtk-slice-createasyncthunk"),ow={[yp]:Ug};function zg(t,e){return`${t}/${e}`}function Hg({creators:t}={}){let e=t?.asyncThunk?.[yp];return function(o){let{name:n,reducerPath:a=n}=o;if(!n)throw new Error($t(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(Gg()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,y){let C=typeof b=="string"?b:b.type;if(!C)throw new Error($t(12));if(C in d.sliceCaseReducersByType)throw new Error($t(13));return d.sliceCaseReducersByType[C]=y,p},addMatcher(b,y){return d.sliceMatchers.push({matcher:b,reducer:y}),p},exposeAction(b,y){return d.actionCreators[b]=y,p},exposeCaseReducer(b,y){return d.sliceCaseReducersByName[b]=y,p}};l.forEach(b=>{let y=s[b],C={reducerName:b,type:zg(n,b),createNotation:typeof o.reducers=="function"};Kg(y)?qg(C,y,p,e):jg(C,y,p)});function m(){let[b={},y=[],C=void 0]=typeof o.extraReducers=="function"?gp(o.extraReducers):[o.extraReducers],I={...b,...d.sliceCaseReducersByType};return kg(o.initialState,B=>{for(let ee in I)B.addCase(ee,I[ee]);for(let ee of d.sliceMatchers)B.addMatcher(ee.matcher,ee.reducer);for(let ee of y)B.addMatcher(ee.matcher,ee.reducer);C&&B.addDefaultCase(C)})}let h=b=>b,g=new Map,v=new WeakMap,w;function L(b,y){return w||(w=m()),w(b,y)}function A(){return w||(w=m()),w.getInitialState()}function N(b,y=!1){function C(B){let ee=B[b];return typeof ee>"u"&&y&&(ee=Tn(v,C,A)),ee}function I(B=h){return Tn(Tn(g,y,()=>new WeakMap),B,()=>{let ee={};for(let[me,F]of Object.entries(o.selectors??{}))ee[me]=Wg(F,B,()=>Tn(v,B,A),y);return ee})}return{reducerPath:b,getSelectors:I,get selectors(){return I(C)},selectSlice:C}}let $={name:n,reducer:L,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:A,...N(a),injectInto(b,{reducerPath:y,...C}={}){let I=y??a;return b.inject({reducerPath:I,reducer:L},C),{...$,...N(I,!0)}}};return $}}function Wg(t,e,r,o){function n(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var bp=Hg();function Gg(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function jg({type:t,reducerName:e,createNotation:r},o,n){let a,s;if("reducer"in o){if(r&&!Zg(o))throw new Error($t(17));a=o.reducer,s=o.prepare}else a=o;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?hr(t,s):hr(t))}function Kg(t){return t._reducerDefinitionType==="asyncThunk"}function Zg(t){return t._reducerDefinitionType==="reducerWithPrepare"}function qg({type:t,reducerName:e},r,o,n){if(!n)throw new Error($t(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:m}=r,h=n(t,a,m);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||In,pending:l||In,rejected:d||In,settled:p||In})}function In(){}var xp="listener",vp="completed",Sp="cancelled",iw=`task-${Sp}`,nw=`task-${vp}`,aw=`${xp}-${Sp}`,sw=`${xp}-${vp}`;var{assign:Cp}=Object;var yl="listenerMiddleware";var Yg=Cp(hr(`${yl}/add`),{withTypes:()=>Yg}),lw=hr(`${yl}/removeAll`),Xg=Cp(hr(`${yl}/remove`),{withTypes:()=>Xg});function $t(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var Jt=class t extends jt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(wo(a))return a;if(n==null)return;let s=bp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=mp({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=tt(s.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,o,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new yi,this.injectInto=(s,l)=>this.reduxSlice.injectInto(s,l),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let p=l,m=s[p];return m?(...h)=>{let g=m(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{let g=p,v=this.getState()[g];ze(v,h)||this.setState({[g]:a(h)})}}}),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 Jg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))wo(e)&&e.clear()}var Ln=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);pt(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Qg(t,e,r){return new Ln(t,e,r).watch()}var $r=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Sl={};G(Sl,{scrollHelper:()=>ey});var xl,kn=new Map,vl=class{lock(e,r){if(r){let o=kn.get(r);if(o==null||o===e)return kn.set(r,e),r}}release(e,r){r&&kn.get(r)===e&&kn.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of as(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Rr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(xl=window.FluidTopicsScrollHelper)!==null&&xl!==void 0?xl:new vl;var ey=window.FluidTopicsScrollHelper;var wl={};G(wl,{toFtFormComponent:()=>Ur});var Cl=Symbol("elementInternals"),Ur=pe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Cl].form}constructor(...o){super(o),this[Cl]=this.attachInternals()}setFormValue(o){this[Cl].setFormValue(o)}}return e});var El={};G(El,{DateFormatter:()=>Br});var Br=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Al={};G(Al,{ALL_KEYS_VALUE:()=>Ol,SameWindowStorageEvent:()=>Ao});var Ol="__all__",Ao=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ol}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Ao(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Ao(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Ao(Ol))}});var Rl={};G(Rl,{FocusMainContentEvent:()=>_l});var _l=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var wp={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function ty(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function ry(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",ty);document.addEventListener("click",ry);var Ep=E`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var _l={};G(_l,{withAriaNotification:()=>ry});var ty={checkVisibility:!0},ry=pe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,n){let{checkVisibility:a}={...ty,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Lt({type:"aria",message:o})))},20)}}return e});var Tl={};G(Tl,{withConditionalVisibility:()=>Rl});var Ep=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Rl(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,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(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Ep([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Ep([T()],e.prototype,"isVisible",void 0),e}var Ll={};G(Ll,{FormController:()=>Il});function oy(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Il=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=oy(r),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,r){if(this.data[e]===r)return;let o={...this.data};o[e]=r,this.data=o,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var o,n;let a=(n=(o=this.config[e]).validator)===null||n===void 0?void 0:n.call(o,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,o,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=us(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var kl={};G(kl,{MetadataValueLocalizer:()=>Ao});var Ao=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};function Pl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Ln(t,e,r){return t?e(t):r?.(t)}var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Vr||(Vr={}));var hr;(function(t){t.default="default",t.warning="warning",t.error="error"})(hr||(hr={}));var Nl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var GE=pe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Vr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=hr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Vr.blur||this.validateOn===Vr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==hr.default&&this.validateOn===Vr.blurWithStatusResolutionOnInput||this.validateOn===Vr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Pl(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Pl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Nl(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return x`
71
+ `;var Tl={};G(Tl,{withAriaNotification:()=>iy});var oy={checkVisibility:!0},iy=pe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,n){let{checkVisibility:a}={...oy,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new kt({type:"aria",message:o})))},20)}}return e});var Ll={};G(Ll,{withConditionalVisibility:()=>Il});var Op=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Il(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,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(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Op([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Op([T()],e.prototype,"isVisible",void 0),e}var Pl={};G(Pl,{FormController:()=>kl});function ny(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var kl=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=ny(r),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,r){if(this.data[e]===r)return;let o={...this.data};o[e]=r,this.data=o,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var o,n;let a=(n=(o=this.config[e]).validator)===null||n===void 0?void 0:n.call(o,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,o,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=fs(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Nl={};G(Nl,{MetadataValueLocalizer:()=>_o});var _o=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};function Dl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Pn(t,e,r){return t?e(t):r?.(t)}var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Vr||(Vr={}));var mr;(function(t){t.default="default",t.warning="warning",t.error="error"})(mr||(mr={}));var Ml=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var Kw=pe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Vr.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=mr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Vr.blur||this.validateOn===Vr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==mr.default&&this.validateOn===Vr.blurWithStatusResolutionOnInput||this.validateOn===Vr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Dl(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Dl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ml(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return x`
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
  ${Ke(this.errorMessages,o=>x`
@@ -77,16 +77,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
77
77
  ${Ke(this.warningMessages,o=>x`
78
78
  <li>${o}</li>
79
79
  `)}
80
- ${Ln(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>x`
80
+ ${Pn(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>x`
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?hr.error:this.warningMessages.length?hr.warning:hr.default}}return Re([f()],e.prototype,"warningRules",void 0),Re([f()],e.prototype,"errorRules",void 0),Re([f()],e.prototype,"validateOn",void 0),Re([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Re([f()],e.prototype,"label",void 0),Re([f({type:Boolean})],e.prototype,"hideLabel",void 0),Re([f()],e.prototype,"name",void 0),Re([f({type:Boolean})],e.prototype,"disabled",void 0),Re([f()],e.prototype,"helperText",void 0),Re([f()],e.prototype,"forceStatus",void 0),Re([f({reflect:!0})],e.prototype,"value",void 0),Re([T()],e.prototype,"errorMessages",void 0),Re([T()],e.prototype,"warningMessages",void 0),Re([T()],e.prototype,"status",void 0),Re([T()],e.prototype,"focused",void 0),Re([T()],e.prototype,"additionalWarningRules",void 0),Re([T()],e.prototype,"additionalErrorRules",void 0),Re([T()],e.prototype,"forceErrorMessages",void 0),e});var Ei=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Ei(o,e);return!0},kn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},wp=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),sy(e)}};function ny(t){this._$AN!==void 0?(kn(this),this._$AM=t,wp(this)):this._$AM=t}function ay(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)Ei(o[a],!1),kn(o[a]);else o!=null&&(Ei(o,!1),kn(o));else Ei(this,t)}var sy=t=>{t.type==It.CHILD&&(t._$AP??=ay,t._$AQ??=ny)},_o=class extends dt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),wp(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ei(this,e),kn(this))}setValue(e){if(Bc(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Dl=class extends _o{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return we}update(e){return this.part=e,this.ensureFocusTrap(e.element),we}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.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 r=this.getChildren(e);for(let o=0;o<r.length;o++){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ct&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)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}},vw=et(Dl);var Op;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Op||(Op={}));var ly={sm:640,md:768,lg:1024,xl:1280},Ml=class extends _o{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,o,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),a=o??(()=>_);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:ly[e]}},ww=et(Ml);var cy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fl=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Ap(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new Fl({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,cy([Pe({})],r.prototype,"configuredAnalyticsActions",void 0),r}var wi=class t{static isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}static getShadowRoots(e){let r=[],o=e.getRootNode();for(;t.isShadowRoot(o);)r.push(o),o=o.host.getRootNode();return r}static compareDeepPosition(e,r){if(e===r)return 0;let o=t.getShadowRoots(e),n=t.getShadowRoots(r),a=o.findIndex(p=>n.includes(p)),s=a<0?-1:n.findIndex(p=>p===o[a]),l=a===0||o.length===0?e:o[(a<0?o.length:a)-1].host,d=s===0||n.length===0?r:n[(s<0?n.length:s)-1].host;return l===d?l===e?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_CONTAINS:l.compareDocumentPosition(d)}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};var $l=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Ul)return!1;let r=wi.getDeepActiveElement();if(!r)return!0;let o=wi.compareDeepPosition(r,e);return(o&(Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))!==0?!1:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(o&Node.DOCUMENT_POSITION_CONTAINS)===0||(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}};window.FluidTopicsFocusHelper=$l;var Bl,Vl,zl,Hl,zr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((zl=(Vl=(Bl=window.safari)===null||Bl===void 0?void 0:Bl.pushNotification)===null||Vl===void 0?void 0:Vl.toString())!==null&&zl!==void 0?zl:"")==="[object SafariRemoteNotification]",Ul="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Hl=window.ftGlobals)!==null&&Hl!==void 0?Hl:{lit:Za,litDecorators:Ya,litRepeat:Xa,litClassMap:Ja,litStyleMap:Qa,litUnsafeHTML:es,wcUtils:{...ts,...cs,...rs,...ys,...Cl,...bs,...os,...Cs,...ls,...Ms,...Al,...Sp,...xl,...Fs,...Ss,...Hs,...Sl,...Vs,..._l,...Tl,...Nu,...ns,...js,...kl,...Es,...Zs,...Cp,...Mu,...qs,...gl,...wl,...$s,...Bs,...ps,...ms,...Ll,isSafari:zr,isTouchScreen:Ul,setVariable:O}};var Jt=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}};var Ro=class{constructor(e,r,o,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=o,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Jt(this.context,this.host,this.t,this.subscribe))}};var Pn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let o=r||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:o}]of this.subscriptions)r(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,r,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Wl=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},To=class extends Pn{constructor(e,r,o){super(r.context!==void 0?r.initialValue:o),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Jt(this.context,l,s,!0)));n.stopPropagation()},this.host=e,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Wl(this.context,this.host))}};var Oi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=r;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Jt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(r),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)}};function Ai({context:t}){return(e,r)=>{let o=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return o.get(this).setValue(n),e.set.call(this,n)},init(n){return o.set(this,new To(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{o.set(s,new To(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){o.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){o.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function _i({context:t,subscribe:e}){return(r,o)=>{typeof o=="object"?o.addInitializer((function(){new Ro(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new Ro(n,{context:t,callback:a=>{n[o]=a},subscribe:e})}))}}var dy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gl="asset-viewer-state-manager",$t=pe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(o){super.willUpdate(o),o.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}}return dy([_i({context:Gl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),e});var uy={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Nn=t=>Xt.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:uy});var py="ft-app-info",it=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};it.eventName="authentication-change";var Hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Hr.eventName="ui-locale-changed";var fy={session:(t,e)=>{ze(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new it(e.payload)),0))}},k=Xt.get({name:py,reducers:fy,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 Dn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rp=pe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Br.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Dn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Dn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Dn([Z({store:k.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Dn([Z({store:k.name})],e.prototype,"uiLocale",void 0),e});var Ut=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=k.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=k.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var Io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ut.await()}};var ke=class extends Io{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new kt,this.cache=e?n.commonCache:new kt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var Mn=class extends ke{async listMySearches(){let{session:e}=k.getState();return fo(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Fn=class extends ke{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var $n=class extends ke{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=k.getState().session;return!!e?.sessionAuthenticated}};var Un=class extends ke{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=k.getState().session;return!!e?.sessionAuthenticated}};var hy="ft-user-assets",my={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(pt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:n}=e.payload;Kl(t,r,[...jl(t,r),n]),Tp(t,r,1,o),Ip(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Kl(t,r,jl(t,r).map(n=>n.id===o.id?o:n)),Ip(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;Kl(t,r,jl(t,r).filter(a=>a.id!==n)),Tp(t,r,-1,o)}},Lp={[pt.SEARCHES]:"savedSearches",[pt.BOOKMARKS]:"bookmarks",[pt.BOOKS]:void 0,[pt.COLLECTIONS]:void 0},jl=(t,e)=>{var r;let o=Lp[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Kl=(t,e,r)=>{let o=Lp[e];o&&(t[o]=r)},Tp=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===pt.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},Ip=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},He=Xt.get({name:hy,reducers:my,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(pt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Zl=class{constructor(e=new $n,r=new Un){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fn,this.savedSearchesService=new Mn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();ze((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),He.actions.clearAssetCount(),He.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),He.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),He.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();He.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();He.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&He.getState().assetCounts.allAsset[e]!==r.count&&He.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&He.getState().assetCounts.bookmarkByMap[e]!==r.count&&He.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(He.getState().assetCounts.bookmarkByMap).length!==0;e===pt.BOOKMARKS&&r&&He.actions.clearBookmarkCountByMap(),He.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;He.actions.bookmarks(r)}}},gy=new Zl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gy);var ql=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ql;var kp,Lo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},yy=Symbol("clearAfterUnitTest"),Bn=class extends Xi(ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[kp]=()=>{this.defaultMessages={},this.cache=new kt,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};ze(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new hi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof _r)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Lo({loadedContexts:e})),this.dispatchEvent(new Lo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Lo({loadedContexts:[e]})),this.dispatchEvent(new Lo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Zi(0).then(()=>o()).catch(()=>null)))}};kp=yy;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ko=window.FluidTopicsI18nService,Vn=window.FluidTopicsCustomI18nService;var Yl=class{highlightHtml(e,r,o){Gs(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Yl;var Xl=class{isDate(e){var r,o,n,a;return(a=(o=((n=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a,s;if(e==null)return"";try{return Br.format(e,(o=r?.locale)!==null&&o!==void 0?o:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Xl;var Ri=class{static get(e,r,{baseUrl:o,localesConfiguration:n,availableContentLocales:a}=k.getState()){var s;if(!r||a.length>0&&!a.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new jt(o,e??20,n?.allLanguagesAllowed,r,a)}};var Jl=class{urlToSearchRequest(e){return Ri.get().parse(e)}searchRequestToUrl(e){return Ri.get().serialize(e)}};window.FluidTopicsUrlService=new Jl;var Wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Wr.eventName="before-location-change";var Gr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Gr.eventName="change";var Ql=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Pp=new Ql;var zn=class t extends Gt{static build(){return new t(window.history,Pp,()=>window.location,!1)}constructor(e,r,o,n){var a,s;super(),this.history=e,this.historyStorage=r,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(n)}setCurrentState(e,r=!1){let o=r&&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),ze(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Gr(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[a,s,l])=>{let d=new Wr(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=r(),m={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(n,[m,s,m.href]),this.setCurrentState(m,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(Wr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Wr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Gr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Gr.eventName,e)}currentItem(){return tt(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 tt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return tt(r.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 tt(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 r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Hn=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let o=JSON.stringify(r);window.localStorage.setItem(e,o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:o,storageArea:window.localStorage}))}get(e){var r,o;if(!this.isAuthenticated())return(o=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&o!==void 0?o:void 0}addStoreListener(e,r){let o=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(o),window.addEventListener("storage",o)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Np=w`
85
- `;function Dp(t,e){let{authenticationRequired:r,session:o}=k.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Wn=class extends Io{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var ec=class t extends $r{static build(e){return new t(k,e)}constructor(e,r){super(),this.store=e,this.cache=new kt,this.withManualResources=!0,this.userLocaleService=new Wn,this.cleanSessionDebouncer=new Ne,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ne(500),this.apiProvider=r??(()=>Ut.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(it.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(it.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>Dp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.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,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Hr(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 Nd(k.getState().session,...e)}},mr=ec.build();var Te=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends ye{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=mr,this.contextRoot=new Oi}render(){return x`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?mr.error:this.warningMessages.length?mr.warning:mr.default}}return Re([f()],e.prototype,"warningRules",void 0),Re([f()],e.prototype,"errorRules",void 0),Re([f()],e.prototype,"validateOn",void 0),Re([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Re([f()],e.prototype,"label",void 0),Re([f({type:Boolean})],e.prototype,"hideLabel",void 0),Re([f()],e.prototype,"name",void 0),Re([f({type:Boolean})],e.prototype,"disabled",void 0),Re([f()],e.prototype,"helperText",void 0),Re([f()],e.prototype,"forceStatus",void 0),Re([f({reflect:!0})],e.prototype,"value",void 0),Re([T()],e.prototype,"errorMessages",void 0),Re([T()],e.prototype,"warningMessages",void 0),Re([T()],e.prototype,"status",void 0),Re([T()],e.prototype,"focused",void 0),Re([T()],e.prototype,"additionalWarningRules",void 0),Re([T()],e.prototype,"additionalErrorRules",void 0),Re([T()],e.prototype,"forceErrorMessages",void 0),e});var Oi=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Oi(o,e);return!0},Nn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Ap=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),cy(e)}};function sy(t){this._$AN!==void 0?(Nn(this),this._$AM=t,Ap(this)):this._$AM=t}function ly(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)Oi(o[a],!1),Nn(o[a]);else o!=null&&(Oi(o,!1),Nn(o));else Oi(this,t)}var cy=t=>{t.type==Lt.CHILD&&(t._$AP??=ly,t._$AQ??=sy)},Ro=class extends ut{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),Ap(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Oi(this,e),Nn(this))}setValue(e){if(zc(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Fl=class extends Ro{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),Ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.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 r=this.getChildren(e);for(let o=0;o<r.length;o++){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let o=r.length-1;o>=0;o--){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof dt&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)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}},CE=et(Fl);var _p;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(_p||(_p={}));var dy={sm:640,md:768,lg:1024,xl:1280},$l=class extends Ro{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,o,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),a=o??(()=>_);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:dy[e]}},AE=et($l);var uy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ul=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Rp(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new Ul({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,uy([Pe({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Ai=class t{static isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}static getShadowRoots(e){let r=[],o=e.getRootNode();for(;t.isShadowRoot(o);)r.push(o),o=o.host.getRootNode();return r}static compareDeepPosition(e,r){if(e===r)return 0;let o=t.getShadowRoots(e),n=t.getShadowRoots(r),a=o.findIndex(p=>n.includes(p)),s=a<0?-1:n.findIndex(p=>p===o[a]),l=a===0||o.length===0?e:o[(a<0?o.length:a)-1].host,d=s===0||n.length===0?r:n[(s<0?n.length:s)-1].host;return l===d?l===e?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_CONTAINS:l.compareDocumentPosition(d)}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};var Bl=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Vl)return!1;let r=Ai.getDeepActiveElement();if(!r)return!0;let o=Ai.compareDeepPosition(r,e);return(o&(Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))!==0?!1:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(o&Node.DOCUMENT_POSITION_CONTAINS)===0||(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}};window.FluidTopicsFocusHelper=Bl;var zl,Hl,Wl,Gl,zr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Wl=(Hl=(zl=window.safari)===null||zl===void 0?void 0:zl.pushNotification)===null||Hl===void 0?void 0:Hl.toString())!==null&&Wl!==void 0?Wl:"")==="[object SafariRemoteNotification]",Vl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Gl=window.ftGlobals)!==null&&Gl!==void 0?Gl:{lit:Ya,litDecorators:Ja,litRepeat:Qa,litClassMap:es,litStyleMap:ts,litUnsafeHTML:rs,wcUtils:{...os,...us,...is,...xs,...El,...vs,...ns,...Es,...ds,...$s,...Rl,...wp,...Sl,...Us,...ws,...Gs,...wl,...Hs,...Tl,...Ll,...Mu,...ss,...Zs,...Nl,...Os,...Ys,...Ep,...$u,...Xs,...bl,...Al,...Bs,...zs,...hs,...ys,...Pl,isSafari:zr,isTouchScreen:Vl,setVariable:O}};var Qt=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}};var To=class{constructor(e,r,o,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=o,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Qt(this.context,this.host,this.t,this.subscribe))}};var Dn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let o=r||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:o}]of this.subscriptions)r(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,r,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var jl=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},Io=class extends Dn{constructor(e,r,o){super(r.context!==void 0?r.initialValue:o),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Qt(this.context,l,s,!0)));n.stopPropagation()},this.host=e,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new jl(this.context,this.host))}};var _i=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=r;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Qt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(r),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)}};function Ri({context:t}){return(e,r)=>{let o=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return o.get(this).setValue(n),e.set.call(this,n)},init(n){return o.set(this,new Io(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{o.set(s,new Io(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){o.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){o.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Ti({context:t,subscribe:e}){return(r,o)=>{typeof o=="object"?o.addInitializer((function(){new To(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new To(n,{context:t,callback:a=>{n[o]=a},subscribe:e})}))}}var py=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Kl="asset-viewer-state-manager",Ut=pe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(o){super.willUpdate(o),o.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}}return py([Ti({context:Kl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),e});var fy={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Mn=t=>Jt.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:fy});var hy="ft-app-info",it=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};it.eventName="authentication-change";var Hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Hr.eventName="ui-locale-changed";var my={session:(t,e)=>{ze(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new it(e.payload)),0))}},k=Jt.get({name:hy,reducers:my,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 Fn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ip=pe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Br.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Fn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Fn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Fn([Z({store:k.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Fn([Z({store:k.name})],e.prototype,"uiLocale",void 0),e});var Bt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=k.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=k.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var Lo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var ke=class extends Lo{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new Pt,this.cache=e?n.commonCache:new Pt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var $n=class extends ke{async listMySearches(){let{session:e}=k.getState();return ho(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Un=class extends ke{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Bn=class extends ke{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=k.getState().session;return!!e?.sessionAuthenticated}};var Vn=class extends ke{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=k.getState().session;return!!e?.sessionAuthenticated}};var gy="ft-user-assets",yy={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ft).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:n}=e.payload;ql(t,r,[...Zl(t,r),n]),Lp(t,r,1,o),kp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;ql(t,r,Zl(t,r).map(n=>n.id===o.id?o:n)),kp(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;ql(t,r,Zl(t,r).filter(a=>a.id!==n)),Lp(t,r,-1,o)}},Pp={[ft.SEARCHES]:"savedSearches",[ft.BOOKMARKS]:"bookmarks",[ft.BOOKS]:void 0,[ft.COLLECTIONS]:void 0},Zl=(t,e)=>{var r;let o=Pp[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},ql=(t,e,r)=>{let o=Pp[e];o&&(t[o]=r)},Lp=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ft.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},kp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},He=Jt.get({name:gy,reducers:yy,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ft).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yl=class{constructor(e=new Bn,r=new Vn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Un,this.savedSearchesService=new $n,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();ze((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),He.actions.clearAssetCount(),He.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),He.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),He.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();He.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();He.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&He.getState().assetCounts.allAsset[e]!==r.count&&He.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&He.getState().assetCounts.bookmarkByMap[e]!==r.count&&He.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(He.getState().assetCounts.bookmarkByMap).length!==0;e===ft.BOOKMARKS&&r&&He.actions.clearBookmarkCountByMap(),He.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;He.actions.bookmarks(r)}}},by=new Yl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=by);var Xl=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xl;var Np,ko=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xy=Symbol("clearAfterUnitTest"),zn=class extends Qi(ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Np]=()=>{this.defaultMessages={},this.cache=new Pt,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};ze(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new gi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof _r)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ko({loadedContexts:e})),this.dispatchEvent(new ko({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ko({loadedContexts:[e]})),this.dispatchEvent(new ko({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Yi(0).then(()=>o()).catch(()=>null)))}};Np=xy;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Po=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var Jl=class{highlightHtml(e,r,o){Ks(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Jl;var Ql=class{isDate(e){var r,o,n,a;return(a=(o=((n=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a,s;if(e==null)return"";try{return Br.format(e,(o=r?.locale)!==null&&o!==void 0?o:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ql;var Ii=class{static get(e,r,{baseUrl:o,localesConfiguration:n,availableContentLocales:a}=k.getState()){var s;if(!r||a.length>0&&!a.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new Kt(o,e??20,n?.allLanguagesAllowed,r,a)}};var ec=class{urlToSearchRequest(e){return Ii.get().parse(e)}searchRequestToUrl(e){return Ii.get().serialize(e)}};window.FluidTopicsUrlService=new ec;var Wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Wr.eventName="before-location-change";var Gr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Gr.eventName="change";var tc=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Dp=new tc;var Wn=class t extends jt{static build(){return new t(window.history,Dp,()=>window.location,!1)}constructor(e,r,o,n){var a,s;super(),this.history=e,this.historyStorage=r,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(n)}setCurrentState(e,r=!1){let o=r&&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),ze(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Gr(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[a,s,l])=>{let d=new Wr(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=r(),m={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(n,[m,s,m.href]),this.setCurrentState(m,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(Wr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Wr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Gr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Gr.eventName,e)}currentItem(){return tt(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 tt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return tt(r.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 tt(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 r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Wn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Gn=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let o=JSON.stringify(r);window.localStorage.setItem(e,o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:o,storageArea:window.localStorage}))}get(e){var r,o;if(!this.isAuthenticated())return(o=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&o!==void 0?o:void 0}addStoreListener(e,r){let o=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(o),window.addEventListener("storage",o)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Mp=E`
85
+ `;function Fp(t,e){let{authenticationRequired:r,session:o}=k.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var jn=class extends Lo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var rc=class t extends $r{static build(e){return new t(k,e)}constructor(e,r){super(),this.store=e,this.cache=new Pt,this.withManualResources=!0,this.userLocaleService=new jn,this.knownContexts=new uo,this.knownCustomComponents=new uo,this.cleanSessionDebouncer=new Ne,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ne(500),this.apiProvider=r??(()=>Bt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(it.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(it.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>Fp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.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,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Hr(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 Md(k.getState().session,...e)}},nt=rc.build();var Te=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends ye{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=nt,this.contextRoot=new _i}render(){return x`
86
86
  <slot></slot>
87
- `}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 r;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=>ko.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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ae.elementDefinitions={};ae.styles=Np;Te([f()],ae.prototype,"baseUrl",void 0);Te([f()],ae.prototype,"tenantId",void 0);Te([f()],ae.prototype,"apiIntegrationIdentifier",void 0);Te([f()],ae.prototype,"apiIntegrationAppVersion",void 0);Te([f()],ae.prototype,"uiLocale",void 0);Te([Pe(null)],ae.prototype,"availableUiLocales",void 0);Te([Pe(null)],ae.prototype,"metadataConfiguration",void 0);Te([f({type:Boolean})],ae.prototype,"editorMode",void 0);Te([f({type:Boolean})],ae.prototype,"noCustom",void 0);Te([f({type:Boolean})],ae.prototype,"openExternalDocumentInNewTab",void 0);Te([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ae.prototype,"noCustomComponent",void 0);Te([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ae.prototype,"noCustomCode",void 0);Te([f({type:Boolean})],ae.prototype,"withManualResources",void 0);Te([f({type:Boolean})],ae.prototype,"navigatorOnline",void 0);Te([f({type:Boolean})],ae.prototype,"forcedOffline",void 0);Te([f({type:Boolean})],ae.prototype,"authenticationRequired",void 0);Te([Pe([])],ae.prototype,"messageContexts",void 0);Te([Pe(void 0)],ae.prototype,"session",void 0);var Mp={"ft-app-context":ae};K(Mp);var Po=class extends $r{constructor(e,r){super(),this.store=e,this.service=r,k.addEventListener(it.eventName,()=>{r.clearCache(),this.clear()})}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var gr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(gr||(gr={}));var Fp;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(Fp||(Fp={}));var jr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:tt(e),composed:!0,bubbles:!0})}};jr.eventName="ft-viewer-loaded";var Gn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Gn.eventName="ft-viewer-not-found";var jn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};jn.eventName="ft-viewer-unauthorized";var Kn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Kn.eventName="ft-viewer-forbidden";var Zn=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e,composed:!0,bubbles:!0})}};Zn.eventName="ft-viewer-load-error";function qn(t,e){let r=e;r.status===401?t.dispatchEvent(new jn):r.status===403?t.dispatchEvent(new Kn):r.status===404?t.dispatchEvent(new Gn):t.dispatchEvent(new Zn(e))}var Yn=class extends ke{getAsset(e,r,o){let n={[gr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[gr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[gr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[o])}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Xn=class t extends Po{static build(e){return new t(Nn(e),new Yn)}constructor(e,r){super(e,r),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:o}=this.store.getState();if(e&&r&&o){let n=await this.service.getAsset(e,r,o);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,o){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(o),await this.reload(),this.store.getState()}};var Ti=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qt=class extends ye{constructor(){super(...arguments),this.viewerStateManager=Xn.build(this.id||ei(6))}render(){return x`
87
+ `}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 r;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=>Po.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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ae.elementDefinitions={};ae.styles=Mp;Te([f()],ae.prototype,"baseUrl",void 0);Te([f()],ae.prototype,"tenantId",void 0);Te([f()],ae.prototype,"apiIntegrationIdentifier",void 0);Te([f()],ae.prototype,"apiIntegrationAppVersion",void 0);Te([f()],ae.prototype,"uiLocale",void 0);Te([Pe(null)],ae.prototype,"availableUiLocales",void 0);Te([Pe(null)],ae.prototype,"metadataConfiguration",void 0);Te([f({type:Boolean})],ae.prototype,"editorMode",void 0);Te([f({type:Boolean})],ae.prototype,"noCustom",void 0);Te([f({type:Boolean})],ae.prototype,"openExternalDocumentInNewTab",void 0);Te([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ae.prototype,"noCustomComponent",void 0);Te([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ae.prototype,"noCustomCode",void 0);Te([f({type:Boolean})],ae.prototype,"withManualResources",void 0);Te([f({type:Boolean})],ae.prototype,"navigatorOnline",void 0);Te([f({type:Boolean})],ae.prototype,"forcedOffline",void 0);Te([f({type:Boolean})],ae.prototype,"authenticationRequired",void 0);Te([Pe([])],ae.prototype,"messageContexts",void 0);Te([Pe(void 0)],ae.prototype,"session",void 0);var $p={"ft-app-context":ae};K($p);var No=class extends $r{constructor(e,r){super(),this.store=e,this.service=r,k.addEventListener(it.eventName,()=>{r.clearCache(),this.clear()})}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var gr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(gr||(gr={}));var Up;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(Up||(Up={}));var jr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:tt(e),composed:!0,bubbles:!0})}};jr.eventName="ft-viewer-loaded";var Kn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Kn.eventName="ft-viewer-not-found";var Zn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Zn.eventName="ft-viewer-unauthorized";var qn=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};qn.eventName="ft-viewer-forbidden";var Yn=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e,composed:!0,bubbles:!0})}};Yn.eventName="ft-viewer-load-error";function Xn(t,e){let r=e;r.status===401?t.dispatchEvent(new Zn):r.status===403?t.dispatchEvent(new qn):r.status===404?t.dispatchEvent(new Kn):t.dispatchEvent(new Yn(e))}var Jn=class extends ke{getAsset(e,r,o){let n={[gr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[gr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[gr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[o])}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Qn=class t extends No{static build(e){return new t(Mn(e),new Jn)}constructor(e,r){super(e,r),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:o}=this.store.getState();if(e&&r&&o){let n=await this.service.getAsset(e,r,o);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,o){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(o),await this.reload(),this.store.getState()}};var Li=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},er=class extends ye{constructor(){super(...arguments),this.viewerStateManager=Qn.build(this.id||ti(6))}render(){return x`
88
88
  <slot></slot>
89
- `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new jr(e))}catch(e){qn(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(k),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}};Ti([f()],Qt.prototype,"documentId",void 0);Ti([f()],Qt.prototype,"assetId",void 0);Ti([f()],Qt.prototype,"origin",void 0);Ti([Ai({context:Gl})],Qt.prototype,"viewerStateManager",void 0);Ti([ft({eventName:it.eventName})],Qt.prototype,"onAuthenticationChange",null);var qe=class extends ye{};var by={position:i.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},$p=w`
89
+ `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new jr(e))}catch(e){Xn(this,e)}}connectedCallback(){super.connectedCallback(),nt.knownContexts.register(this),this.addStore(k),this.load()}disconnectedCallback(){super.disconnectedCallback(),nt.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}};Li([f()],er.prototype,"documentId",void 0);Li([f()],er.prototype,"assetId",void 0);Li([f()],er.prototype,"origin",void 0);Li([Ri({context:Kl})],er.prototype,"viewerStateManager",void 0);Li([ht({eventName:it.eventName})],er.prototype,"onAuthenticationChange",null);var qe=class extends ye{};var vy={position:i.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Bp=E`
90
90
  :host {
91
91
  position: absolute;
92
92
  top: 0;
@@ -97,7 +97,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
97
97
  }
98
98
 
99
99
  .ft-watermark-container {
100
- position: ${by.position};
100
+ position: ${vy.position};
101
101
  top: 0;
102
102
  text-align: center;
103
103
  }
@@ -105,18 +105,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
105
105
  .ft-watermark {
106
106
  z-index: 79;
107
107
  }
108
- `;var Bp=Symbol.for(""),xy=t=>{if(t?.r===Bp)return t?._$litStatic$},tc=t=>({_$litStatic$:t,r:Bp});var Up=new Map,rc=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],d,p=0,m=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(n=xy(a))!==void 0);)d+=n+e[++p],m=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),m){let h=s.join("$$lit$$");(e=Up.get(h))===void 0&&(s.raw=s,Up.set(h,e=s)),r=l}return t(e,...r)},oc=rc(x),zR=rc(jo),HR=rc(Wa);var J;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(J||(J={}));var Vp=i.extend("--ft-typography-font-family","",S.titleFont),rr=i.extend("--ft-typography-font-family","",S.contentFont),P={fontFamily:rr,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:i.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},er={fontFamily:i.extend("--ft-typography-title-font-family","",Vp),fontSize:i.extend("--ft-typography-title-font-size","",P.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",P.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",P.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-title-text-decoration","",P.textDecoration,"inherit")},tr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Vp),fontSize:i.extend("--ft-typography-title-dense-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",P.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",P.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-title-dense-text-decoration","",P.textDecoration,"inherit")},Kr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",rr),fontSize:i.extend("--ft-typography-subtitle1-font-size","",P.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",P.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",P.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",P.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-subtitle1-text-decoration","",P.textDecoration,"inherit")},Zr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",rr),fontSize:i.extend("--ft-typography-subtitle2-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",P.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",P.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-subtitle2-text-decoration","",P.textDecoration,"inherit")},nt={fontFamily:i.extend("--ft-typography-body1-font-family","",rr),fontSize:i.extend("--ft-typography-body1-font-size","",P.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",P.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",P.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-body1-text-decoration","",P.textDecoration,"inherit")},at={fontFamily:i.extend("--ft-typography-body2-font-family","",rr),fontSize:i.extend("--ft-typography-body2-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",P.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",P.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-body2-text-decoration","",P.textDecoration,"inherit")},Ye={fontFamily:i.extend("--ft-typography-caption-font-family","",rr),fontSize:i.extend("--ft-typography-caption-font-size","",P.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",P.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",P.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-caption-text-decoration","",P.textDecoration,"inherit")},qr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",rr),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",P.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",P.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",P.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-breadcrumb-text-decoration","",P.textDecoration,"inherit")},Yr={fontFamily:i.extend("--ft-typography-overline-font-family","",rr),fontSize:i.extend("--ft-typography-overline-font-size","",P.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",P.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",P.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",P.textTransform,"uppercase"),textDecoration:i.extend("--ft-typography-overline-text-decoration","",P.textDecoration,"inherit")},Me={fontFamily:i.extend("--ft-typography-button-font-family","",rr),fontSize:i.extend("--ft-typography-button-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",P.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",P.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",P.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",P.textTransform,"uppercase"),textDecoration:i.extend("--ft-typography-button-text-decoration","",P.textDecoration,"inherit")},zp=w`
108
+ `;var zp=Symbol.for(""),Sy=t=>{if(t?.r===zp)return t?._$litStatic$},oc=t=>({_$litStatic$:t,r:zp});var Vp=new Map,ic=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],d,p=0,m=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(n=Sy(a))!==void 0);)d+=n+e[++p],m=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),m){let h=s.join("$$lit$$");(e=Vp.get(h))===void 0&&(s.raw=s,Vp.set(h,e=s)),r=l}return t(e,...r)},nc=ic(x),WR=ic(Ko),GR=ic(ja);var J;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(J||(J={}));var Hp=i.extend("--ft-typography-font-family","",S.titleFont),or=i.extend("--ft-typography-font-family","",S.contentFont),P={fontFamily:or,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:i.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},tr={fontFamily:i.extend("--ft-typography-title-font-family","",Hp),fontSize:i.extend("--ft-typography-title-font-size","",P.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",P.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",P.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-title-text-decoration","",P.textDecoration,"inherit")},rr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Hp),fontSize:i.extend("--ft-typography-title-dense-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",P.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",P.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-title-dense-text-decoration","",P.textDecoration,"inherit")},Kr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",or),fontSize:i.extend("--ft-typography-subtitle1-font-size","",P.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",P.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",P.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",P.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-subtitle1-text-decoration","",P.textDecoration,"inherit")},Zr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",or),fontSize:i.extend("--ft-typography-subtitle2-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",P.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",P.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-subtitle2-text-decoration","",P.textDecoration,"inherit")},at={fontFamily:i.extend("--ft-typography-body1-font-family","",or),fontSize:i.extend("--ft-typography-body1-font-size","",P.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",P.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",P.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-body1-text-decoration","",P.textDecoration,"inherit")},st={fontFamily:i.extend("--ft-typography-body2-font-family","",or),fontSize:i.extend("--ft-typography-body2-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",P.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",P.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-body2-text-decoration","",P.textDecoration,"inherit")},Ye={fontFamily:i.extend("--ft-typography-caption-font-family","",or),fontSize:i.extend("--ft-typography-caption-font-size","",P.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",P.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",P.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-caption-text-decoration","",P.textDecoration,"inherit")},qr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",or),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",P.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",P.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",P.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",P.textTransform,"inherit"),textDecoration:i.extend("--ft-typography-breadcrumb-text-decoration","",P.textDecoration,"inherit")},Yr={fontFamily:i.extend("--ft-typography-overline-font-family","",or),fontSize:i.extend("--ft-typography-overline-font-size","",P.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",P.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",P.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",P.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",P.textTransform,"uppercase"),textDecoration:i.extend("--ft-typography-overline-text-decoration","",P.textDecoration,"inherit")},Me={fontFamily:i.extend("--ft-typography-button-font-family","",or),fontSize:i.extend("--ft-typography-button-font-size","",P.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",P.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",P.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",P.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",P.textTransform,"uppercase"),textDecoration:i.extend("--ft-typography-button-text-decoration","",P.textDecoration,"inherit")},Wp=E`
109
109
  .ft-typography--title {
110
- font-family: ${er.fontFamily};
111
- font-size: ${er.fontSize};
112
- font-weight: ${er.fontWeight};
113
- letter-spacing: ${er.letterSpacing};
114
- line-height: ${er.lineHeight};
115
- text-transform: ${er.textTransform};
116
- text-decoration: ${er.textDecoration};
117
- }
118
- `,Hp=w`
119
- .ft-typography--title-dense {
120
110
  font-family: ${tr.fontFamily};
121
111
  font-size: ${tr.fontSize};
122
112
  font-weight: ${tr.fontWeight};
@@ -125,7 +115,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
125
115
  text-transform: ${tr.textTransform};
126
116
  text-decoration: ${tr.textDecoration};
127
117
  }
128
- `,Wp=w`
118
+ `,Gp=E`
119
+ .ft-typography--title-dense {
120
+ font-family: ${rr.fontFamily};
121
+ font-size: ${rr.fontSize};
122
+ font-weight: ${rr.fontWeight};
123
+ letter-spacing: ${rr.letterSpacing};
124
+ line-height: ${rr.lineHeight};
125
+ text-transform: ${rr.textTransform};
126
+ text-decoration: ${rr.textDecoration};
127
+ }
128
+ `,jp=E`
129
129
  .ft-typography--subtitle1 {
130
130
  font-family: ${Kr.fontFamily};
131
131
  font-size: ${Kr.fontSize};
@@ -135,7 +135,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
135
135
  text-transform: ${Kr.textTransform};
136
136
  text-decoration: ${Kr.textDecoration};
137
137
  }
138
- `,Gp=w`
138
+ `,Kp=E`
139
139
  .ft-typography--subtitle2 {
140
140
  font-family: ${Zr.fontFamily};
141
141
  font-size: ${Zr.fontSize};
@@ -146,18 +146,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
146
146
  text-decoration: ${Zr.textDecoration};
147
147
  }
148
148
 
149
- `,yr=w`
149
+ `,yr=E`
150
150
  .ft-typography--body1 {
151
- font-family: ${nt.fontFamily};
152
- font-size: ${nt.fontSize};
153
- font-weight: ${nt.fontWeight};
154
- letter-spacing: ${nt.letterSpacing};
155
- line-height: ${nt.lineHeight};
156
- text-transform: ${nt.textTransform};
157
- text-decoration: ${nt.textDecoration};
158
- }
159
- `,jp=w`
160
- .ft-typography--body2 {
161
151
  font-family: ${at.fontFamily};
162
152
  font-size: ${at.fontSize};
163
153
  font-weight: ${at.fontWeight};
@@ -166,7 +156,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
166
156
  text-transform: ${at.textTransform};
167
157
  text-decoration: ${at.textDecoration};
168
158
  }
169
- `,Jn=w`
159
+ `,Zp=E`
160
+ .ft-typography--body2 {
161
+ font-family: ${st.fontFamily};
162
+ font-size: ${st.fontSize};
163
+ font-weight: ${st.fontWeight};
164
+ letter-spacing: ${st.letterSpacing};
165
+ line-height: ${st.lineHeight};
166
+ text-transform: ${st.textTransform};
167
+ text-decoration: ${st.textDecoration};
168
+ }
169
+ `,ea=E`
170
170
  .ft-typography--caption {
171
171
  font-family: ${Ye.fontFamily};
172
172
  font-size: ${Ye.fontSize};
@@ -176,7 +176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
176
176
  text-transform: ${Ye.textTransform};
177
177
  text-decoration: ${Ye.textDecoration};
178
178
  }
179
- `,Kp=w`
179
+ `,qp=E`
180
180
  .ft-typography--breadcrumb {
181
181
  font-family: ${qr.fontFamily};
182
182
  font-size: ${qr.fontSize};
@@ -186,7 +186,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
186
186
  text-transform: ${qr.textTransform};
187
187
  text-decoration: ${qr.textDecoration};
188
188
  }
189
- `,Zp=w`
189
+ `,Yp=E`
190
190
  .ft-typography--overline {
191
191
  font-family: ${Yr.fontFamily};
192
192
  font-size: ${Yr.fontSize};
@@ -196,7 +196,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
196
196
  text-transform: ${Yr.textTransform};
197
197
  text-decoration: ${Yr.textDecoration};
198
198
  }
199
- `,qp=w`
199
+ `,Xp=E`
200
200
  .ft-typography--button {
201
201
  font-family: ${Me.fontFamily};
202
202
  font-size: ${Me.fontSize};
@@ -206,19 +206,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
206
206
  text-transform: ${Me.textTransform};
207
207
  text-decoration: ${Me.textDecoration};
208
208
  }
209
- `,Yp=w`
209
+ `,Jp=E`
210
210
  .ft-typography {
211
211
  vertical-align: inherit;
212
212
  }
213
- `;var Xp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends D{constructor(){super(...arguments),this.variant=J.body1}render(){return this.element?oc`
214
- <${tc(this.element)}
213
+ `;var Qp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends D{constructor(){super(...arguments),this.variant=J.body1}render(){return this.element?nc`
214
+ <${oc(this.element)}
215
215
  part="text"
216
216
  class="ft-typography ft-typography--${this.variant}">
217
217
  <slot></slot>
218
- </${tc(this.element)}>
219
- `:oc`
218
+ </${oc(this.element)}>
219
+ `:nc`
220
220
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
221
- `}};Y.styles=[zp,Hp,Wp,Gp,yr,jp,Jn,Kp,Zp,qp,Yp];Xp([f()],Y.prototype,"element",void 0);Xp([f()],Y.prototype,"variant",void 0);var Jp={"ft-typography":Y};K(Jp);var Qn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wt=class extends D{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,o;return this.watermark?x`
221
+ `}};Y.styles=[Wp,Gp,jp,Kp,yr,Zp,ea,qp,Yp,Xp,Jp];Qp([f()],Y.prototype,"element",void 0);Qp([f()],Y.prototype,"variant",void 0);var ef={"ft-typography":Y};K(ef);var ta=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ot=class extends D{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,o;return this.watermark?x`
222
222
  <style>
223
223
  .ft-watermark {
224
224
  height: ${this.height}px;
@@ -233,11 +233,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
233
233
  transform="rotate(-45)"
234
234
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
235
235
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
236
- ${Ke(((o=this.watermark)===null||o===void 0?void 0:o.text)||[],n=>jo`<tspan x="0" dy="1.2em">${n}</tspan>`)}
236
+ ${Ke(((o=this.watermark)===null||o===void 0?void 0:o.text)||[],n=>Ko`<tspan x="0" dy="1.2em">${n}</tspan>`)}
237
237
  </text>
238
238
  </svg>
239
239
  </div>
240
- `:_}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};wt.styles=[$p,yr];Qn([M(".ft-watermark")],wt.prototype,"svg",void 0);Qn([f({attribute:!1})],wt.prototype,"watermark",void 0);Qn([f({attribute:!1})],wt.prototype,"heightReference",void 0);Qn([T()],wt.prototype,"height",void 0);var Qp={"ft-content-watermark":wt};K(Qp);var st=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},be=class extends Rl(qe){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
240
+ `:_}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ot.styles=[Bp,yr];ta([M(".ft-watermark")],Ot.prototype,"svg",void 0);ta([f({attribute:!1})],Ot.prototype,"watermark",void 0);ta([f({attribute:!1})],Ot.prototype,"heightReference",void 0);ta([T()],Ot.prototype,"height",void 0);var tf={"ft-content-watermark":Ot};K(tf);var lt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},be=class extends Il(qe){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
241
241
  ${this.renderContent()}
242
242
  <ft-content-watermark part="watermark"
243
243
  .watermark=${this.watermark}
@@ -252,7 +252,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
252
252
  alt="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
253
253
  @load=${this.onImageLoad}>
254
254
  `:x`
255
- ${qo(this.svgContent)}
255
+ ${Yo(this.svgContent)}
256
256
  `}
257
257
 
258
258
  </div>
@@ -260,11 +260,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
260
260
  </div>
261
261
  `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,r=this.clientHeight/this.clientWidth;return e>r?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return x`
262
262
  <video src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}" controls></video>
263
- `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Ut.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return x`
263
+ `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Bt.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return x`
264
264
  <iframe src="${e}"
265
265
  title="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
266
266
  ></iframe>
267
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(o=this.viewerStateManager)===null||o===void 0||o.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,o,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,o,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:p,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${p}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)&&((n=Ut.get())===null||n===void 0||n.fetch((a=this.descriptor)===null||a===void 0?void 0:a.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};be.elementDefinitions={"ft-content-watermark":wt};be.styles=w`
267
+ `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(o=this.viewerStateManager)===null||o===void 0||o.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,o,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,o,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:p,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${p}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)&&((n=Bt.get())===null||n===void 0||n.fetch((a=this.descriptor)===null||a===void 0?void 0:a.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};be.elementDefinitions={"ft-content-watermark":Ot};be.styles=E`
268
268
  :host {
269
269
  display: block;
270
270
  min-height: 100px;
@@ -306,23 +306,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
306
306
  max-height: 100%;
307
307
  border: none;
308
308
  }
309
- `;st([Z({store:"viewer"})],be.prototype,"descriptor",void 0);st([T()],be.prototype,"viewerType",void 0);st([T()],be.prototype,"inlineSvgAllowed",void 0);st([Z({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],be.prototype,"zoom",void 0);st([Z({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],be.prototype,"rotation",void 0);st([Z({store:"viewer"})],be.prototype,"watermark",void 0);st([M("img")],be.prototype,"image",void 0);st([M("svg")],be.prototype,"svg",void 0);st([M(".image-viewer")],be.prototype,"imageViewer",void 0);st([M(".image-container")],be.prototype,"imageContainer",void 0);st([T()],be.prototype,"imageHeight",void 0);st([T()],be.prototype,"imageWidth",void 0);st([T()],be.prototype,"svgContent",void 0);var ea=class extends $t(be){};var vy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},or=class extends qe{render(){return this.filename?x`
309
+ `;lt([Z({store:"viewer"})],be.prototype,"descriptor",void 0);lt([T()],be.prototype,"viewerType",void 0);lt([T()],be.prototype,"inlineSvgAllowed",void 0);lt([Z({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],be.prototype,"zoom",void 0);lt([Z({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],be.prototype,"rotation",void 0);lt([Z({store:"viewer"})],be.prototype,"watermark",void 0);lt([M("img")],be.prototype,"image",void 0);lt([M("svg")],be.prototype,"svg",void 0);lt([M(".image-viewer")],be.prototype,"imageViewer",void 0);lt([M(".image-container")],be.prototype,"imageContainer",void 0);lt([T()],be.prototype,"imageHeight",void 0);lt([T()],be.prototype,"imageWidth",void 0);lt([T()],be.prototype,"svgContent",void 0);var ra=class extends Ut(be){};var Cy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ir=class extends qe{render(){return this.filename?x`
310
310
  <ft-typography variant="${J.body1}" part="filename">
311
311
  ${this.filename}
312
312
  </ft-typography>
313
- `:_}};or.elementDefinitions={"ft-typography":Y};or.styles=w`
313
+ `:_}};ir.elementDefinitions={"ft-typography":Y};ir.styles=E`
314
314
  [part="filename"]::part(text) {
315
315
  margin: unset;
316
316
  }
317
- `;vy([Z({store:"viewer",selector:({descriptor:t})=>t?.filename})],or.prototype,"filename",void 0);var ta=class extends $t(or){};var Sy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xr=class extends qe{render(){return this.displayName?x`
317
+ `;Cy([Z({store:"viewer",selector:({descriptor:t})=>t?.filename})],ir.prototype,"filename",void 0);var oa=class extends Ut(ir){};var wy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xr=class extends qe{render(){return this.displayName?x`
318
318
  <ft-typography variant="${J.title}" part="display-name" element="h2">
319
319
  ${this.displayName}
320
320
  </ft-typography>
321
- `:_}};Xr.elementDefinitions={"ft-typography":Y};Xr.styles=w`
321
+ `:_}};Xr.elementDefinitions={"ft-typography":Y};Xr.styles=E`
322
322
  [part="display-name"]::part(text) {
323
323
  margin: unset;
324
324
  }
325
- `;Sy([Z({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Xr.prototype,"displayName",void 0);var ra=class extends $t(Xr){};var Se={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ef=[w`
325
+ `;wy([Z({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Xr.prototype,"displayName",void 0);var ia=class extends Ut(Xr){};var Se={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rf=[E`
326
326
  :host, i.ft-icon {
327
327
  display: inline-flex;
328
328
  align-items: center;
@@ -370,31 +370,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
370
370
  .ft-icon--material {
371
371
  font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
372
372
  }
373
- `,qt];var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var ir;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ir||(ir={}));var R;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(R||(R={}));var ic=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]),Cy=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function oa(t,e){var r,o,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=Cy.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(o=ic.get(l))!==null&&o!==void 0?o:ic.get(e))!==null&&n!==void 0?n:ic.get(s))!==null&&a!==void 0?a:R.UNKNOWN}var nc={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Ii=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return x`
373
+ `,Yt];var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var nr;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(nr||(nr={}));var R;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(R||(R={}));var ac=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]),Ey=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function na(t,e){var r,o,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=Ey.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(o=ac.get(l))!==null&&o!==void 0?o:ac.get(e))!==null&&n!==void 0?n:ac.get(s))!==null&&a!==void 0?a:R.UNKNOWN}var sc={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var ki=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return x`
374
374
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
375
- ${qo(this.resolvedIcon)}
375
+ ${Yo(this.resolvedIcon)}
376
376
  <slot ?hidden=${r}></slot>
377
377
  </i>
378
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case Fe.file_format:this.resolvedIcon=(e=R[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Fe.material:this.resolvedIcon=this.value||_;break;default:this.resolvedIcon=(r=ir[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=ef;Ii([f()],te.prototype,"variant",void 0);Ii([f()],te.prototype,"value",void 0);Ii([f({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);Ii([T()],te.prototype,"resolvedIcon",void 0);Ii([M("slot")],te.prototype,"slottedContent",void 0);var tf={"ft-icon":te};K(tf);var rf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nr=class extends qe{render(){var e,r;return this.mimeType?x`
378
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.getTextContent();switch(this.variant){case Fe.file_format:this.resolvedIcon=(e=R[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Fe.material:this.resolvedIcon=this.value||_;break;default:this.resolvedIcon=(r=nr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=rf;ki([f()],te.prototype,"variant",void 0);ki([f()],te.prototype,"value",void 0);ki([f({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);ki([T()],te.prototype,"resolvedIcon",void 0);ki([M("slot")],te.prototype,"slottedContent",void 0);var of={"ft-icon":te};K(of);var nf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ar=class extends qe{render(){var e,r;return this.mimeType?x`
379
379
  <ft-icon part="icon"
380
380
  variant="${Fe.file_format}"
381
- value="${oa(this.mimeType,Qo((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
382
- `:_}};nr.elementDefinitions={"ft-icon":te};rf([Z({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],nr.prototype,"mimeType",void 0);rf([Z({store:"viewer",selector:({descriptor:t})=>t?.filename})],nr.prototype,"filename",void 0);var ia=class extends $t(nr){};var Ey=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ar=class extends qe{render(){return this.documentTitle?x`
381
+ value="${na(this.mimeType,ei((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
382
+ `:_}};ar.elementDefinitions={"ft-icon":te};nf([Z({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],ar.prototype,"mimeType",void 0);nf([Z({store:"viewer",selector:({descriptor:t})=>t?.filename})],ar.prototype,"filename",void 0);var aa=class extends Ut(ar){};var Oy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},sr=class extends qe{render(){return this.documentTitle?x`
383
383
  <ft-typography variant="${J.title}" part="title" element="h1">
384
384
  ${this.documentTitle}
385
385
  </ft-typography>
386
- `:_}};ar.elementDefinitions={"ft-typography":Y};ar.styles=w`
386
+ `:_}};sr.elementDefinitions={"ft-typography":Y};sr.styles=E`
387
387
  [part="title"]::part(text) {
388
388
  margin: unset;
389
389
  }
390
- `;Ey([Z({store:"viewer",selector:({document:t})=>t?.title})],ar.prototype,"documentTitle",void 0);var na=class extends $t(ar){};var of;(function(t){t.RATING="RATING"})(of||(of={}));var sr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(sr||(sr={}));var br;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(br||(br={}));var aa=class extends ke{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}clearAttachments(e){this.cache.clear(`${e}-attachments`)}getAttachmentDownloadLink(e,r){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(r).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,r,o){return this.api.rateDocument(e,r,o)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,o){return this.api.sendDocumentFeedback(e,r,o)}isFeatureAccessible(e,{session:r}){switch(e){case br.FEEDBACK:return fo(r??[],fe.FEEDBACK_USER);case br.RATING:return fo(r??[],fe.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var sa=class t extends Po{static build(e){return new t(Nn(e),new aa)}constructor(e,r,o){super(e,r),this.store=e,this.service=r,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,e.actions.origin(gr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:o}=this.store.getState();if(o){let[n]=await Promise.all([this.service.getDocument(o),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:en.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let a=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(r=n.description)!==null&&r!==void 0?r:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:a}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:r}=this.store.getState();r&&mr.userHasAnyRole("RATING_USER")&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}async fetchRelatives(){var e;let{document:r,configuration:o}=this.store.getState(),n=r?.metadata.filter(a=>a.key==o?.relativePivotMetadata).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((e=this.service)===null||e===void 0?void 0:e.getRelativesForDocument(o.relativePivotMetadata,n)),s=a?.results.flatMap(l=>l.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(sr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let{relatives:o,documentId:n}=this.store.getState();if(o){let a=o.find(l=>hs(l)==n),s=(r=(e=k.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new cr(o,a,this.metadataForSwitchToRelatives,s)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var r;this.store.getState().relatives==null&&await this.fetchRelatives();let o=cr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return ri(o)}onUdAttachmentsUpdate(){var e;let{documentId:r}=this.store.getState();r&&((e=this.service)===null||e===void 0||e.clearAttachments(r),this.store.dispatchEvent(new Event(sr.udAttachmentsUpdate)))}};var nf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ac="ud-viewer-state-manager",Xe=pe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(o.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),o.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(s=o.get("neededUdvRequests"))!==null&&s!==void 0?s:[]),(a=this.viewerStateManager)===null||a===void 0||a.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(o){this.clearStateManager(),this.viewerStateManager=o,this.addStore(o.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(o){o&&(o.registerComponent(this,this.neededUdvRequests),this.addStore(o.store,"viewer"))}unregisterFromUdvStateManager(o){o&&(o.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return nf([_i({context:ac,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),nf([T({hasChanged:ut})],e.prototype,"neededUdvRequests",void 0),e});var la=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xr=class extends ye{constructor(){super(...arguments),this.viewerStateManager=sa.build(this.id||ei(6))}render(){return x`
390
+ `;Oy([Z({store:"viewer",selector:({document:t})=>t?.title})],sr.prototype,"documentTitle",void 0);var sa=class extends Ut(sr){};var af;(function(t){t.RATING="RATING"})(af||(af={}));var lr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(lr||(lr={}));var br;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(br||(br={}));var la=class extends ke{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}clearAttachments(e){this.cache.clear(`${e}-attachments`)}getAttachmentDownloadLink(e,r){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(r).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,r,o){return this.api.rateDocument(e,r,o)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,o){return this.api.sendDocumentFeedback(e,r,o)}isFeatureAccessible(e,{session:r}){switch(e){case br.FEEDBACK:return ho(r??[],fe.FEEDBACK_USER);case br.RATING:return ho(r??[],fe.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var ca=class t extends No{static build(e){return new t(Mn(e),new la)}constructor(e,r,o){super(e,r),this.store=e,this.service=r,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,e.actions.origin(gr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:o}=this.store.getState();if(o){let[n]=await Promise.all([this.service.getDocument(o),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:rn.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let a=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(r=n.description)!==null&&r!==void 0?r:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:a}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:r}=this.store.getState();r&&nt.userHasAnyRole("RATING_USER")&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}async fetchRelatives(){var e;let{document:r,configuration:o}=this.store.getState(),n=r?.metadata.filter(a=>a.key==o?.relativePivotMetadata).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((e=this.service)===null||e===void 0?void 0:e.getRelativesForDocument(o.relativePivotMetadata,n)),s=a?.results.flatMap(l=>l.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(lr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let{relatives:o,documentId:n}=this.store.getState();if(o){let a=o.find(l=>gs(l)==n),s=(r=(e=k.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new dr(o,a,this.metadataForSwitchToRelatives,s)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var r;this.store.getState().relatives==null&&await this.fetchRelatives();let o=dr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return ii(o)}onUdAttachmentsUpdate(){var e;let{documentId:r}=this.store.getState();r&&((e=this.service)===null||e===void 0||e.clearAttachments(r),this.store.dispatchEvent(new Event(lr.udAttachmentsUpdate)))}};var sf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lc="ud-viewer-state-manager",Xe=pe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(o.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),o.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(s=o.get("neededUdvRequests"))!==null&&s!==void 0?s:[]),(a=this.viewerStateManager)===null||a===void 0||a.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(o){this.clearStateManager(),this.viewerStateManager=o,this.addStore(o.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(o){o&&(o.registerComponent(this,this.neededUdvRequests),this.addStore(o.store,"viewer"))}unregisterFromUdvStateManager(o){o&&(o.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return sf([Ti({context:lc,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),sf([T({hasChanged:pt})],e.prototype,"neededUdvRequests",void 0),e});var da=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xr=class extends ye{constructor(){super(...arguments),this.viewerStateManager=ca.build(this.id||ti(6))}render(){return x`
391
391
  <slot></slot>
392
- `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new jr(e))}catch(e){qn(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(k),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=k.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){mr===null||mr===void 0||mr.stopReloadDebouncer();let o=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);o?window.location.assign(o):window.location.reload()}}};la([f()],xr.prototype,"documentId",void 0);la([Ai({context:ac})],xr.prototype,"viewerStateManager",void 0);la([ft({eventName:it.eventName})],xr.prototype,"onAuthenticationChange",null);la([ft({store:k.name,eventName:Hr.eventName})],xr.prototype,"reactToUiLocaleChanged",null);var ca=class extends Xe(be){};var da=class extends Xe(or){};var ua=class extends Xe(ar){};var pa=class extends Xe(nr){};var ht=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Vn:ko}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var sc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},No=new sc;var wy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ki=Symbol("i18nAttributes"),af=Symbol("i18nListAttributes"),Pi=Symbol("i18nProperties"),fa=Symbol("i18nContexts"),Li=Symbol("i18nUnsubs"),mt=pe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Vn:ko}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(No.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[ki])===null||s===void 0||s.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[af])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(a){var s;(s=this[Pi])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[fa].set(d,{isCustomContext:l}),this[Li].has(d)||this[Li].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[fa].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[fa].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Li].forEach(a=>a()),this[Li].clear()}}return e=fa,r=Li,wy([f({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),ha=class extends mt(D){},ma=class extends mt(ye){};var ga=(t,e)=>(r,o)=>{var n,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:o};r[Pi]=(a=r[Pi])!==null&&a!==void 0?a:new Map,r[Pi].set(o,s)};var sf=w`
393
- `;var Do=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gt=class extends ma{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:_:x`
392
+ `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new jr(e))}catch(e){Xn(this,e)}}connectedCallback(){super.connectedCallback(),nt.knownContexts.register(this),this.addStore(k),this.load()}disconnectedCallback(){super.disconnectedCallback(),nt.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=k.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){nt===null||nt===void 0||nt.stopReloadDebouncer();let o=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);o?window.location.assign(o):window.location.reload()}}};da([f()],xr.prototype,"documentId",void 0);da([Ri({context:lc})],xr.prototype,"viewerStateManager",void 0);da([ht({eventName:it.eventName})],xr.prototype,"onAuthenticationChange",null);da([ht({store:k.name,eventName:Hr.eventName})],xr.prototype,"reactToUiLocaleChanged",null);var ua=class extends Xe(be){};var pa=class extends Xe(ir){};var fa=class extends Xe(sr){};var ha=class extends Xe(ar){};var mt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hn:Po}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var cc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Do=new cc;var Ay=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ni=Symbol("i18nAttributes"),lf=Symbol("i18nListAttributes"),Di=Symbol("i18nProperties"),ma=Symbol("i18nContexts"),Pi=Symbol("i18nUnsubs"),gt=pe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Hn:Po}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Do.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Ni])===null||s===void 0||s.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[lf])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>p(m,h,v))})}updateI18nProperties(a){var s;(s=this[Di])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ma].set(d,{isCustomContext:l}),this[Pi].has(d)||this[Pi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ma].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ma].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Pi].forEach(a=>a()),this[Pi].clear()}}return e=ma,r=Pi,Ay([f({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),ga=class extends gt(D){},ya=class extends gt(ye){};var ba=(t,e)=>(r,o)=>{var n,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:o};r[Di]=(a=r[Di])!==null&&a!==void 0?a:new Map,r[Di].set(o,s)};var cf=E`
393
+ `;var Mo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yt=class extends ya{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:_:x`
394
394
  <span class="ft-i18n">
395
395
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
396
396
  </span>
397
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};gt.elementDefinitions={};gt.styles=sf;Do([Z()],gt.prototype,"editorMode",void 0);Do([f()],gt.prototype,"context",void 0);Do([f()],gt.prototype,"key",void 0);Do([Pe([])],gt.prototype,"args",void 0);Do([f()],gt.prototype,"defaultMessage",void 0);Do([T()],gt.prototype,"editorMessage",void 0);var lf={"ft-i18n":gt};K(lf);var cf={itemsGap:i.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var ya;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(ya||(ya={}));var df;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(df||(df={}));var Oy=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},lc=Symbol("registerInterval"),dc=pe(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[lc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[lc]):this.dispatchEvent(new cc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=lc,Oy([T()],r.prototype,"stateManager",void 0),r}),uf=class extends dc(ye){};var uc=ht.build("designedReaderAttachments"),pf={download:"Download \u201C{0}\u201D"};var ff=i.extend("--ft-ripple-color","",S.colorContent),re={color:ff,backgroundColor:i.extend("--ft-ripple-background-color","",ff),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},hf=i.extend("--ft-ripple-color","",S.colorPrimary),mf={color:hf,backgroundColor:i.extend("--ft-ripple-background-color","",hf)},gf=i.extend("--ft-ripple-color","",S.colorSecondary),yf={color:gf,backgroundColor:i.extend("--ft-ripple-background-color","",gf)},bf=w`
397
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};yt.elementDefinitions={};yt.styles=cf;Mo([Z()],yt.prototype,"editorMode",void 0);Mo([f()],yt.prototype,"context",void 0);Mo([f()],yt.prototype,"key",void 0);Mo([Pe([])],yt.prototype,"args",void 0);Mo([f()],yt.prototype,"defaultMessage",void 0);Mo([T()],yt.prototype,"editorMessage",void 0);var df={"ft-i18n":yt};K(df);var uf={itemsGap:i.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var xa;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(xa||(xa={}));var pf;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(pf||(pf={}));var _y=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},uc=class extends ri{constructor(e){super("register-ft-reader-component",e)}},dc=Symbol("registerInterval"),pc=pe(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[dc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[dc]):this.dispatchEvent(new uc({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dc,_y([T()],r.prototype,"stateManager",void 0),r}),ff=class extends pc(ye){};var fc=mt.build("designedReaderAttachments"),hf={download:"Download \u201C{0}\u201D"};var mf=i.extend("--ft-ripple-color","",S.colorContent),re={color:mf,backgroundColor:i.extend("--ft-ripple-background-color","",mf),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},gf=i.extend("--ft-ripple-color","",S.colorPrimary),yf={color:gf,backgroundColor:i.extend("--ft-ripple-background-color","",gf)},bf=i.extend("--ft-ripple-color","",S.colorSecondary),xf={color:bf,backgroundColor:i.extend("--ft-ripple-background-color","",bf)},vf=E`
398
398
  :host {
399
399
  display: contents;
400
400
  }
@@ -449,19 +449,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
449
449
  }
450
450
 
451
451
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
452
- background-color: ${yf.backgroundColor};
452
+ background-color: ${xf.backgroundColor};
453
453
  }
454
454
 
455
455
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
456
- background-color: ${yf.color};
456
+ background-color: ${xf.color};
457
457
  }
458
458
 
459
459
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
460
- background-color: ${mf.backgroundColor};
460
+ background-color: ${yf.backgroundColor};
461
461
  }
462
462
 
463
463
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
464
- background-color: ${mf.color};
464
+ background-color: ${yf.color};
465
465
  }
466
466
 
467
467
  .ft-ripple .ft-ripple--background {
@@ -517,9 +517,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
517
517
  <div class="ft-ripple--background"></div>
518
518
  <div class="ft-ripple--effect"></div>
519
519
  </div>
520
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=bf;Je([f({type:Boolean})],j.prototype,"primary",void 0);Je([f({type:Boolean})],j.prototype,"secondary",void 0);Je([f({type:Boolean})],j.prototype,"unbounded",void 0);Je([f({type:Boolean})],j.prototype,"activated",void 0);Je([f({type:Boolean})],j.prototype,"selected",void 0);Je([f({type:Boolean})],j.prototype,"disabled",void 0);Je([T()],j.prototype,"hovered",void 0);Je([T()],j.prototype,"focused",void 0);Je([T()],j.prototype,"pressed",void 0);Je([T()],j.prototype,"rippling",void 0);Je([T()],j.prototype,"originX",void 0);Je([T()],j.prototype,"originY",void 0);Je([M(".ft-ripple")],j.prototype,"ripple",void 0);Je([M(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);var xf={"ft-ripple":j};K(xf);var ba=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ay={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Ot=class extends Ap(ye,Ay){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return x`
520
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=vf;Je([f({type:Boolean})],j.prototype,"primary",void 0);Je([f({type:Boolean})],j.prototype,"secondary",void 0);Je([f({type:Boolean})],j.prototype,"unbounded",void 0);Je([f({type:Boolean})],j.prototype,"activated",void 0);Je([f({type:Boolean})],j.prototype,"selected",void 0);Je([f({type:Boolean})],j.prototype,"disabled",void 0);Je([T()],j.prototype,"hovered",void 0);Je([T()],j.prototype,"focused",void 0);Je([T()],j.prototype,"pressed",void 0);Je([T()],j.prototype,"rippling",void 0);Je([T()],j.prototype,"originX",void 0);Je([T()],j.prototype,"originY",void 0);Je([M(".ft-ripple")],j.prototype,"ripple",void 0);Je([M(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);var Sf={"ft-ripple":j};K(Sf);var va=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ry={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},At=class extends Rp(ye,Ry){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return x`
521
521
  <div part="container" class="${oe(e)}">
522
- ${Ke(this.attachments,r=>r.id,r=>{var o;let n=oa(r.mimeType,Qo(r.file.split(".")));return x`
522
+ ${Ke(this.attachments,r=>r.id,r=>{var o;let n=na(r.mimeType,ei(r.file.split(".")));return x`
523
523
  <div part="attachment">
524
524
  <a part="viewer-link" href="${this.getAttachmentViewerLink(r)}"
525
525
  aria-label="${this.getAttachmentAriaLabel(r)}"
@@ -528,7 +528,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
528
528
  <ft-icon part="file-format-icon"
529
529
  variant="file-format"
530
530
  value="${n}"
531
- style="color: ${(o=nc[n])!==null&&o!==void 0?o:nc[R.UNKNOWN]}"></ft-icon>
531
+ style="color: ${(o=sc[n])!==null&&o!==void 0?o:sc[R.UNKNOWN]}"></ft-icon>
532
532
  <ft-typography part="name" variant="${J.body2}">${r.name}</ft-typography>
533
533
  </a>
534
534
  ${r.externalLink?_:x`
@@ -544,7 +544,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
544
544
  </div>
545
545
  `})}
546
546
  </div>
547
- `}return _}getAttachmentAriaLabel(e){var r;let o=e.name,n=e.file;if(o===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return o+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Ot.elementDefinitions={"ft-icon":te,"ft-ripple":j,"ft-typography":Y};ba([f({type:Boolean})],Ot.prototype,"hideFileFormatIcon",void 0);ba([f({type:Boolean})],Ot.prototype,"hideFilename",void 0);ba([f({type:Boolean})],Ot.prototype,"hideDownloadIcon",void 0);ba([T()],Ot.prototype,"attachments",void 0);function xa(t){return w`
547
+ `}return _}getAttachmentAriaLabel(e){var r;let o=e.name,n=e.file;if(o===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return o+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};At.elementDefinitions={"ft-icon":te,"ft-ripple":j,"ft-typography":Y};va([f({type:Boolean})],At.prototype,"hideFileFormatIcon",void 0);va([f({type:Boolean})],At.prototype,"hideFilename",void 0);va([f({type:Boolean})],At.prototype,"hideDownloadIcon",void 0);va([T()],At.prototype,"attachments",void 0);function Sa(t){return E`
548
548
  [part="container"] {
549
549
  display: flex;
550
550
  flex-direction: column;
@@ -611,7 +611,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
611
611
  .hide-download-icon [part="download-link"] {
612
612
  display: none;
613
613
  }
614
- `}var vf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jr=class extends dc(mt(Ot)){constructor(){super(),this.addI18nContext(uc,pf)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return uc.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Jr.styles=xa(cf);vf([Z({store:"reader"})],Jr.prototype,"map",void 0);vf([ft({eventName:ya.mapAttachmentsUpdate})],Jr.prototype,"updateAttachments",null);var Sf={"ft-reader-attachments":Jr};K(Sf);var Cf={itemsGap:i.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Mo=ht.build("designedUdViewer"),Ef={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var wf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qr=class extends Xe(mt(Ot)){constructor(){super(),this.addI18nContext(Mo,Ef)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Mo.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Qr.styles=xa(Cf);wf([Z({store:"viewer"})],Qr.prototype,"document",void 0);wf([ft({eventName:sr.udAttachmentsUpdate})],Qr.prototype,"updateAttachments",null);var va=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},Sa=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Ni={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Of=w`
614
+ `}var Cf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jr=class extends pc(gt(At)){constructor(){super(),this.addI18nContext(fc,hf)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return fc.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Jr.styles=Sa(uf);Cf([Z({store:"reader"})],Jr.prototype,"map",void 0);Cf([ht({eventName:xa.mapAttachmentsUpdate})],Jr.prototype,"updateAttachments",null);var wf={"ft-reader-attachments":Jr};K(wf);var Ef={itemsGap:i.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Fo=mt.build("designedUdViewer"),Of={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var Af=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qr=class extends Xe(gt(At)){constructor(){super(),this.addI18nContext(Fo,Of)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Fo.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Qr.styles=Sa(Ef);Af([Z({store:"viewer"})],Qr.prototype,"document",void 0);Af([ht({eventName:lr.udAttachmentsUpdate})],Qr.prototype,"updateAttachments",null);var Ca=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},wa=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Mi={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},_f=E`
615
615
  .ft-tooltip--container {
616
616
  display: block;
617
617
  }
@@ -629,20 +629,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
629
629
  box-sizing: border-box;
630
630
  overflow: hidden;
631
631
  width: max-content;
632
- max-width: ${Ni.maxWidth};
632
+ max-width: ${Mi.maxWidth};
633
633
  text-align: center;
634
- padding: ${Ni.distance};
634
+ padding: ${Mi.distance};
635
635
  }
636
636
 
637
637
  .ft-tooltip--content {
638
638
  padding: 4px 8px;
639
- border-radius: ${Ni.borderRadiusS};
640
- background-color: ${Ni.backgroundColor};
641
- color: ${Ni.color};
639
+ border-radius: ${Mi.borderRadiusS};
640
+ background-color: ${Mi.backgroundColor};
641
+ color: ${Mi.color};
642
642
  position: relative;
643
643
  word-break: break-word;
644
644
  }
645
- `;var pc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?No.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},_y=new pc;var Af=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:ut,converter:No,...e}),r[ki]=(n=r[ki])!==null&&n!==void 0?n:new Map,r[ki].set(o,t??{})};var At=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends ha{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ne,this.revealDebouncer=new Ne,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return x`
645
+ `;var hc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Do.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ty=new hc;var Rf=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:pt,converter:Do,...e}),r[Ni]=(n=r[Ni])!==null&&n!==void 0?n:new Map,r[Ni].set(o,t??{})};var _t=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends ga{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ne,this.revealDebouncer=new Ne,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return x`
646
646
  <div part="container"
647
647
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
648
648
  <slot part="slot"></slot>
@@ -657,7 +657,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
657
657
  </div>
658
658
  </div>
659
659
  </div>
660
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&di(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Jo(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":Y};he.styles=Of;At([Af()],he.prototype,"text",void 0);At([f({type:Boolean})],he.prototype,"manual",void 0);At([f({type:Boolean})],he.prototype,"inline",void 0);At([vt()],he.prototype,"delay",void 0);At([f()],he.prototype,"position",void 0);At([Pe([])],he.prototype,"ignoreMatchingElements",void 0);At([Zo()],he.prototype,"slotNodes",void 0);At([M(".ft-tooltip--container")],he.prototype,"container",void 0);At([M(".ft-tooltip")],he.prototype,"tooltip",void 0);At([M(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);At([T()],he.prototype,"visible",void 0);var _f={"ft-tooltip":he};K(_f);var eo={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Rf=w`
660
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&pi(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Qo(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":Y};he.styles=_f;_t([Rf()],he.prototype,"text",void 0);_t([f({type:Boolean})],he.prototype,"manual",void 0);_t([f({type:Boolean})],he.prototype,"inline",void 0);_t([St()],he.prototype,"delay",void 0);_t([f()],he.prototype,"position",void 0);_t([Pe([])],he.prototype,"ignoreMatchingElements",void 0);_t([qo()],he.prototype,"slotNodes",void 0);_t([M(".ft-tooltip--container")],he.prototype,"container",void 0);_t([M(".ft-tooltip")],he.prototype,"tooltip",void 0);_t([M(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);_t([T()],he.prototype,"visible",void 0);var Tf={"ft-tooltip":he};K(Tf);var eo={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},If=E`
661
661
  :host {
662
662
  line-height: 0;
663
663
  }
@@ -733,7 +733,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
733
733
  <div></div>
734
734
  <div></div>
735
735
  </div>
736
- `}};to.styles=Rf;var Tf={"ft-loader":to};K(Tf);var yt=t=>t??_;var If=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:If,fontSize:i.extend("--ft-button-font-size","",Me.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",If),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Lf=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),fc={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:Lf,rippleColor:i.extend("--ft-button-primary-ripple-color","",Lf)},_t={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},kf=w`
736
+ `}};to.styles=If;var Lf={"ft-loader":to};K(Lf);var bt=t=>t??_;var kf=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:kf,fontSize:i.extend("--ft-button-font-size","",Me.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",kf),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Pf=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),mc={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:Pf,rippleColor:i.extend("--ft-button-primary-ripple-color","",Pf)},Rt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},Nf=E`
737
737
  :host {
738
738
  display: inline-block;
739
739
  max-width: 100%;
@@ -812,9 +812,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
812
812
  }
813
813
 
814
814
  &.ft-button--primary {
815
- background-color: ${fc.backgroundColor};
816
- --button-internal-color: ${fc.color};
817
- ${O(re.color,fc.rippleColor)};
815
+ background-color: ${mc.backgroundColor};
816
+ --button-internal-color: ${mc.color};
817
+ ${O(re.color,mc.rippleColor)};
818
818
  }
819
819
 
820
820
  &.ft-button--outlined {
@@ -823,27 +823,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
823
823
  }
824
824
 
825
825
  &.ft-button--dense {
826
- padding: ${_t.verticalPadding} ${_t.horizontalPadding};
827
- border-radius: ${_t.borderRadius};
828
- ${O(re.borderRadius,_t.borderRadius)};
826
+ padding: ${Rt.verticalPadding} ${Rt.horizontalPadding};
827
+ border-radius: ${Rt.borderRadius};
828
+ ${O(re.borderRadius,Rt.borderRadius)};
829
829
 
830
830
  .ft-button--label {
831
- margin: 0 ${_t.iconPadding};
831
+ margin: 0 ${Rt.iconPadding};
832
832
  }
833
833
  }
834
834
 
835
835
  &.ft-button--dense.ft-button--outlined {
836
- padding: calc(${_t.verticalPadding} - 1px) calc(${_t.horizontalPadding} - 1px);
836
+ padding: calc(${Rt.verticalPadding} - 1px) calc(${Rt.horizontalPadding} - 1px);
837
837
  }
838
838
 
839
839
  &.ft-button--round {
840
840
  border-radius: calc(var(--button-internal-line-height) / 2 + ${Q.verticalPadding});
841
- ${O(re.borderRadius,w`calc(var(--button-internal-line-height) / 2 + ${Q.verticalPadding})`)};
841
+ ${O(re.borderRadius,E`calc(var(--button-internal-line-height) / 2 + ${Q.verticalPadding})`)};
842
842
  }
843
843
 
844
844
  &.ft-button--round.ft-button--dense {
845
- border-radius: calc(var(--button-internal-line-height) / 2 + ${_t.verticalPadding});
846
- ${O(re.borderRadius,w`calc(var(--button-internal-line-height) / 2 + ${_t.verticalPadding})`)};
845
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Rt.verticalPadding});
846
+ ${O(re.borderRadius,E`calc(var(--button-internal-line-height) / 2 + ${Rt.verticalPadding})`)};
847
847
  }
848
848
 
849
849
  &.ft-button--no-text {
@@ -854,7 +854,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
854
854
  padding: ${Q.verticalPadding};
855
855
 
856
856
  &.ft-button--dense {
857
- padding: ${_t.verticalPadding};
857
+ padding: ${Rt.verticalPadding};
858
858
  }
859
859
 
860
860
  &.ft-button--outlined {
@@ -862,7 +862,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
862
862
  }
863
863
 
864
864
  &.ft-button--outlined.ft-button--dense {
865
- padding: calc(${_t.verticalPadding} - 1px);
865
+ padding: calc(${Rt.verticalPadding} - 1px);
866
866
  }
867
867
  }
868
868
 
@@ -892,17 +892,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
892
892
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
893
893
  part="button"
894
894
  class="${oe(this.buttonClasses)}"
895
- aria-label="${yt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
895
+ aria-label="${bt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
896
896
  ?disabled=${this.isDisabled()}>
897
897
  ${a}
898
898
  </a>
899
899
  `:x`
900
900
  <button part="button"
901
901
  class="${oe(this.buttonClasses)}"
902
- aria-label="${yt((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
903
- aria-haspopup="${yt(this.ariaHasPopup)}"
904
- aria-pressed="${yt(this.ariaPressed)}"
905
- aria-expanded="${yt(this.ariaExpanded)}"
902
+ aria-label="${bt((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
903
+ aria-haspopup="${bt(this.ariaHasPopup)}"
904
+ aria-pressed="${bt(this.ariaPressed)}"
905
+ aria-expanded="${bt(this.ariaExpanded)}"
906
906
  ?disabled=${this.isDisabled()}>
907
907
  ${a}
908
908
  </button>
@@ -917,7 +917,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
917
917
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
918
918
  `:x`
919
919
  <slot part="icon" name="icon"></slot>
920
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};V.elementDefinitions={"ft-ripple":j,"ft-tooltip":he,"ft-icon":te,"ft-loader":to,"ft-typography":Y};V.styles=[fi,kf,qt];V.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:V.labelsObserver.unobserve(e.target)}});ne([f({type:Boolean})],V.prototype,"primary",void 0);ne([f({type:Boolean})],V.prototype,"outlined",void 0);ne([f({type:Boolean})],V.prototype,"dense",void 0);ne([f({type:Boolean})],V.prototype,"round",void 0);ne([f({type:Boolean})],V.prototype,"disabled",void 0);ne([f()],V.prototype,"icon",void 0);ne([f()],V.prototype,"iconVariant",void 0);ne([f({type:Boolean})],V.prototype,"trailingIcon",void 0);ne([f()],V.prototype,"label",void 0);ne([f()],V.prototype,"type",void 0);ne([f()],V.prototype,"href",void 0);ne([f()],V.prototype,"target",void 0);ne([f({type:Boolean})],V.prototype,"loading",void 0);ne([f({attribute:"aria-label"})],V.prototype,"ariaLabel",void 0);ne([f()],V.prototype,"ariaHasPopup",void 0);ne([f({attribute:"aria-pressed"})],V.prototype,"ariaPressed",void 0);ne([f({attribute:"aria-expanded"})],V.prototype,"ariaExpanded",void 0);ne([f()],V.prototype,"tooltipPosition",void 0);ne([f({type:Boolean})],V.prototype,"hideTooltip",void 0);ne([f({type:Boolean})],V.prototype,"forceTooltip",void 0);ne([f({type:Boolean})],V.prototype,"activated",void 0);ne([M(".ft-button")],V.prototype,"button",void 0);ne([M(".ft-button--label")],V.prototype,"labelContainer",void 0);ne([T()],V.prototype,"hasTextContent",void 0);ne([M(".ft-button--label slot")],V.prototype,"slottedContent",void 0);ne([M("[part=tooltip]")],V.prototype,"tooltip",void 0);var Pf={"ft-button":V};K(Pf);var ge={textColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",Me.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",S.colorPrimary)};var Oe={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Nf=w`
920
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};V.elementDefinitions={"ft-ripple":j,"ft-tooltip":he,"ft-icon":te,"ft-loader":to,"ft-typography":Y};V.styles=[mi,Nf,Yt];V.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:V.labelsObserver.unobserve(e.target)}});ne([f({type:Boolean})],V.prototype,"primary",void 0);ne([f({type:Boolean})],V.prototype,"outlined",void 0);ne([f({type:Boolean})],V.prototype,"dense",void 0);ne([f({type:Boolean})],V.prototype,"round",void 0);ne([f({type:Boolean})],V.prototype,"disabled",void 0);ne([f()],V.prototype,"icon",void 0);ne([f()],V.prototype,"iconVariant",void 0);ne([f({type:Boolean})],V.prototype,"trailingIcon",void 0);ne([f()],V.prototype,"label",void 0);ne([f()],V.prototype,"type",void 0);ne([f()],V.prototype,"href",void 0);ne([f()],V.prototype,"target",void 0);ne([f({type:Boolean})],V.prototype,"loading",void 0);ne([f({attribute:"aria-label"})],V.prototype,"ariaLabel",void 0);ne([f()],V.prototype,"ariaHasPopup",void 0);ne([f({attribute:"aria-pressed"})],V.prototype,"ariaPressed",void 0);ne([f({attribute:"aria-expanded"})],V.prototype,"ariaExpanded",void 0);ne([f()],V.prototype,"tooltipPosition",void 0);ne([f({type:Boolean})],V.prototype,"hideTooltip",void 0);ne([f({type:Boolean})],V.prototype,"forceTooltip",void 0);ne([f({type:Boolean})],V.prototype,"activated",void 0);ne([M(".ft-button")],V.prototype,"button",void 0);ne([M(".ft-button--label")],V.prototype,"labelContainer",void 0);ne([T()],V.prototype,"hasTextContent",void 0);ne([M(".ft-button--label slot")],V.prototype,"slottedContent",void 0);ne([M("[part=tooltip]")],V.prototype,"tooltip",void 0);var Df={"ft-button":V};K(Df);var ge={textColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",Me.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",S.colorPrimary)};var Oe={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Mf=E`
921
921
  .ft-switch-option {
922
922
  position: relative;
923
923
  display: inline-block;
@@ -1005,7 +1005,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1005
1005
  .ft-switch-option--selected ft-icon {
1006
1006
  color: ${ge.selectedTextColor};
1007
1007
  }
1008
- `;var Rt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hc=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},mc=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},xe=class extends D{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new mc(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(x`
1008
+ `;var Tt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gc=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},yc=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},xe=class extends D{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new yc(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(x`
1009
1009
  <label part="label" for="input" class="${oe(e)}"
1010
1010
  @click=${this.onChange}>
1011
1011
  <div class="ft-switch-option--content">
@@ -1027,16 +1027,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1027
1027
  position="${this.tooltipPosition}">
1028
1028
  ${e}
1029
1029
  </ft-tooltip>
1030
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new hc(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1030
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new gc(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1031
1031
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1032
- `:_}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};xe.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-tooltip":he,"ft-icon":te};xe.styles=[fi,Nf];Rt([f()],xe.prototype,"value",void 0);Rt([f()],xe.prototype,"icon",void 0);Rt([f()],xe.prototype,"iconVariant",void 0);Rt([f()],xe.prototype,"label",void 0);Rt([f()],xe.prototype,"tooltipPosition",void 0);Rt([f({type:Boolean,reflect:!0})],xe.prototype,"selected",void 0);Rt([f({type:Boolean})],xe.prototype,"trailingIcon",void 0);Rt([f({type:Boolean})],xe.prototype,"unselectable",void 0);Rt([M(".ft-switch-option--content slot")],xe.prototype,"slottedContent",void 0);Rt([M(".ft-switch-option--input")],xe.prototype,"input",void 0);Rt([T()],xe.prototype,"isFocused",void 0);var ro=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},We=class extends D{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return x`
1032
+ `:_}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};xe.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-tooltip":he,"ft-icon":te};xe.styles=[mi,Mf];Tt([f()],xe.prototype,"value",void 0);Tt([f()],xe.prototype,"icon",void 0);Tt([f()],xe.prototype,"iconVariant",void 0);Tt([f()],xe.prototype,"label",void 0);Tt([f()],xe.prototype,"tooltipPosition",void 0);Tt([f({type:Boolean,reflect:!0})],xe.prototype,"selected",void 0);Tt([f({type:Boolean})],xe.prototype,"trailingIcon",void 0);Tt([f({type:Boolean})],xe.prototype,"unselectable",void 0);Tt([M(".ft-switch-option--content slot")],xe.prototype,"slottedContent",void 0);Tt([M(".ft-switch-option--input")],xe.prototype,"input",void 0);Tt([T()],xe.prototype,"isFocused",void 0);var ro=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},We=class extends D{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return x`
1033
1033
  <div @keydown=${this.onKeyDown} tabindex="-1" class="${oe(e)}" role="radiogroup" aria-label="${this.label}">
1034
1034
  <slot @slotchange=${this.onSlotchange}
1035
1035
  @option-change=${this.onOptionChangeByScript}
1036
1036
  @option-change-by-user=${this.onOptionChangeByUser}
1037
1037
  ></slot>
1038
1038
  </div>
1039
- `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof xe&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new gc((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};We.elementDefinitions={};We.styles=w`
1039
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof xe&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new bc((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};We.elementDefinitions={};We.styles=E`
1040
1040
  :host {
1041
1041
  display: inline-block;
1042
1042
  }
@@ -1070,7 +1070,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1070
1070
  --switch-internal-vertical-padding: 2px;
1071
1071
  --switch-internal-horizontal-padding: 4px;
1072
1072
  }
1073
- `;ro([f({type:Boolean})],We.prototype,"dense",void 0);ro([f({type:Boolean})],We.prototype,"unselectable",void 0);ro([f()],We.prototype,"label",void 0);ro([M(".ft-switch slot")],We.prototype,"slottedContent",void 0);ro([T()],We.prototype,"selectedOption",void 0);ro([T()],We.prototype,"displayFocusWhenUsingKeyboard",void 0);ro([M(".ft-switch")],We.prototype,"ftSwitchDiv",void 0);var Df={"ft-switch":We,"ft-switch-option":xe};K(Df);function Ca(t){return w`
1073
+ `;ro([f({type:Boolean})],We.prototype,"dense",void 0);ro([f({type:Boolean})],We.prototype,"unselectable",void 0);ro([f()],We.prototype,"label",void 0);ro([M(".ft-switch slot")],We.prototype,"slottedContent",void 0);ro([T()],We.prototype,"selectedOption",void 0);ro([T()],We.prototype,"displayFocusWhenUsingKeyboard",void 0);ro([M(".ft-switch")],We.prototype,"ftSwitchDiv",void 0);var Ff={"ft-switch":We,"ft-switch-option":xe};K(Ff);function Ea(t){return E`
1074
1074
  [part="container"] {
1075
1075
  box-sizing: border-box;
1076
1076
  display: flex;
@@ -1129,7 +1129,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1129
1129
  [part="buttons-container"] {
1130
1130
  align-self: flex-end;
1131
1131
  }
1132
- `}var Ea={feedbackInputMinWidth:i.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:i.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:i.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:i.external(er.fontSize,"Typography"),sectionTitleFontSize:i.external(tr.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var H={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},Mf=w`
1132
+ `}var Oa={feedbackInputMinWidth:i.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:i.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:i.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:i.external(tr.fontSize,"Typography"),sectionTitleFontSize:i.external(rr.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var H={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},$f=E`
1133
1133
  .ft-input-label {
1134
1134
  position: absolute;
1135
1135
  inset: 0;
@@ -1223,7 +1223,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1223
1223
  border-radius: ${H.borderRadius};
1224
1224
  top: calc((${Ye.lineHeight} / -2) + 2px);
1225
1225
  }
1226
- `;var ie={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system")},Ff=w`
1226
+ `;var ie={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system")},Uf=E`
1227
1227
  *:focus {
1228
1228
  outline: none;
1229
1229
  }
@@ -1269,8 +1269,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1269
1269
  align-self: stretch;
1270
1270
  resize: none;
1271
1271
 
1272
- ${O(nt.fontSize,ie.fontSize)};
1273
- ${O(nt.lineHeight,ie.fontSize)};
1272
+ ${O(at.fontSize,ie.fontSize)};
1273
+ ${O(at.lineHeight,ie.fontSize)};
1274
1274
  color: ${ie.colorOnSurface};
1275
1275
 
1276
1276
  padding: 0 ${ie.horizontalSpacing};
@@ -1323,7 +1323,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1323
1323
  position: absolute;
1324
1324
  bottom: 0;
1325
1325
  }
1326
- `;var $f={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system")},Uf=w`
1326
+ `;var Bf={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system")},Vf=E`
1327
1327
  :host {
1328
1328
  display: block;
1329
1329
  }
@@ -1334,18 +1334,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1334
1334
 
1335
1335
  ft-icon {
1336
1336
  transform: rotate(-45deg);
1337
- color: ${$f.colorOutline};
1337
+ color: ${Bf.colorOutline};
1338
1338
  }
1339
1339
 
1340
1340
  .ft-resizer--dragging ft-icon,
1341
1341
  .ft-resizer:hover ft-icon,
1342
1342
  [role="button"][aria-pressed="true"] ft-icon{
1343
- color: ${$f.colorOnSurfaceMedium};
1343
+ color: ${Bf.colorOnSurfaceMedium};
1344
1344
  }
1345
- `;var Bt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wa=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Ie=class extends D{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return x`
1345
+ `;var Vt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Aa=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Ie=class extends D{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return x`
1346
1346
  <style>
1347
1347
  .ft-resizer {
1348
- cursor: ${Vt(this.cursor)}
1348
+ cursor: ${zt(this.cursor)}
1349
1349
  }
1350
1350
  </style>
1351
1351
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -1357,16 +1357,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1357
1357
  @keydown=${this.initKeydownPress}>
1358
1358
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
1359
1359
  </div>
1360
- `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new wa(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new wa(o,n))}};Ie.elementDefinitions={"ft-icon":te};Ie.styles=[qt,Uf];Bt([f({type:Number})],Ie.prototype,"initialWidth",void 0);Bt([f({type:Number})],Ie.prototype,"initialHeight",void 0);Bt([f()],Ie.prototype,"icon",void 0);Bt([f()],Ie.prototype,"iconVariant",void 0);Bt([f()],Ie.prototype,"cursor",void 0);Bt([f()],Ie.prototype,"ariaLabel",void 0);Bt([T()],Ie.prototype,"dragging",void 0);Bt([T()],Ie.prototype,"isAriaPressed",void 0);Bt([Gi({passive:!0})],Ie.prototype,"initDragFromMouse",null);Bt([Gi({passive:!0})],Ie.prototype,"initDragFromTouch",null);var Bf={"ft-resizer":Ie};K(Bf);var Vf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oo=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1360
+ `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new Aa(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new Aa(o,n))}};Ie.elementDefinitions={"ft-icon":te};Ie.styles=[Yt,Vf];Vt([f({type:Number})],Ie.prototype,"initialWidth",void 0);Vt([f({type:Number})],Ie.prototype,"initialHeight",void 0);Vt([f()],Ie.prototype,"icon",void 0);Vt([f()],Ie.prototype,"iconVariant",void 0);Vt([f()],Ie.prototype,"cursor",void 0);Vt([f()],Ie.prototype,"ariaLabel",void 0);Vt([T()],Ie.prototype,"dragging",void 0);Vt([T()],Ie.prototype,"isAriaPressed",void 0);Vt([Ki({passive:!0})],Ie.prototype,"initDragFromMouse",null);Vt([Ki({passive:!0})],Ie.prototype,"initDragFromTouch",null);var zf={"ft-resizer":Ie};K(zf);var Hf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oo=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1361
1361
  <div class="${oe(this.inputLabelClasses)}">
1362
- ${Ln(this.text,()=>x`
1362
+ ${Pn(this.text,()=>x`
1363
1363
  <div class="ft-input-label--text ft-typography--caption">
1364
1364
  <label class="ft-input-label--floating-text">${this.text}</label>
1365
1365
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1366
1366
  </div>
1367
1367
  `)}
1368
1368
  </div>
1369
- `}};oo.elementDefinitions={};Vf([f({type:String})],oo.prototype,"text",void 0);Vf([f({type:Boolean})],oo.prototype,"raised",void 0);var yc=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lt=class extends oo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};lt.elementDefinitions={};lt.styles=[Jn,Mf];yc([f({type:Boolean})],lt.prototype,"outlined",void 0);yc([f({type:Boolean})],lt.prototype,"error",void 0);yc([f({type:Boolean})],lt.prototype,"disabled",void 0);var zf={"ft-input-label":lt};K(zf);var bt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends Ur(D){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return x`
1369
+ `}};oo.elementDefinitions={};Hf([f({type:String})],oo.prototype,"text",void 0);Hf([f({type:Boolean})],oo.prototype,"raised",void 0);var xc=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ct=class extends oo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};ct.elementDefinitions={};ct.styles=[ea,$f];xc([f({type:Boolean})],ct.prototype,"outlined",void 0);xc([f({type:Boolean})],ct.prototype,"error",void 0);xc([f({type:Boolean})],ct.prototype,"disabled",void 0);var Wf={"ft-input-label":ct};K(Wf);var xt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends Ur(D){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return x`
1370
1370
  <style>
1371
1371
  .ft-text-area--main-panel {
1372
1372
  height: calc(4 * ${ie.verticalSpacing} + ${ie.labelSize} + ${ie.fontSize} + ${this.height}px);
@@ -1411,7 +1411,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1411
1411
  ${this.helper}
1412
1412
  </ft-typography>`:void 0}
1413
1413
  </div>
1414
- `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};Ce.elementDefinitions={"ft-input-label":lt,"ft-resizer":Ie,"ft-ripple":j,"ft-typography":Y};Ce.styles=[yr,Ff];bt([f({type:String})],Ce.prototype,"label",void 0);bt([f({reflect:!0})],Ce.prototype,"value",void 0);bt([f({type:String})],Ce.prototype,"helper",void 0);bt([f({type:Boolean})],Ce.prototype,"outlined",void 0);bt([f({type:Boolean})],Ce.prototype,"disabled",void 0);bt([f({type:Boolean})],Ce.prototype,"error",void 0);bt([vt({reflect:!0})],Ce.prototype,"height",void 0);bt([vt()],Ce.prototype,"maxHeight",void 0);bt([M("textarea")],Ce.prototype,"textarea",void 0);bt([T()],Ce.prototype,"focused",void 0);bt([Wt()],Ce.prototype,"onKeyDown",null);bt([Wt()],Ce.prototype,"liveUpdateValueFromInputField",null);var Hf={"ft-text-area":Ce};K(Hf);var se=ht.build("integratedFeedbackComponent"),Wf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var Oa=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Aa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},_a=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var W={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:i.external(S.colorOutline,"Design system"),elevation02:i.external(S.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},Gf=w`
1414
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};Ce.elementDefinitions={"ft-input-label":ct,"ft-resizer":Ie,"ft-ripple":j,"ft-typography":Y};Ce.styles=[yr,Uf];xt([f({type:String})],Ce.prototype,"label",void 0);xt([f({reflect:!0})],Ce.prototype,"value",void 0);xt([f({type:String})],Ce.prototype,"helper",void 0);xt([f({type:Boolean})],Ce.prototype,"outlined",void 0);xt([f({type:Boolean})],Ce.prototype,"disabled",void 0);xt([f({type:Boolean})],Ce.prototype,"error",void 0);xt([St({reflect:!0})],Ce.prototype,"height",void 0);xt([St()],Ce.prototype,"maxHeight",void 0);xt([M("textarea")],Ce.prototype,"textarea",void 0);xt([T()],Ce.prototype,"focused",void 0);xt([Gt()],Ce.prototype,"onKeyDown",null);xt([Gt()],Ce.prototype,"liveUpdateValueFromInputField",null);var Gf={"ft-text-area":Ce};K(Gf);var se=mt.build("integratedFeedbackComponent"),jf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var _a=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Ra=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ta=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var W={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:i.external(S.colorOutline,"Design system"),elevation02:i.external(S.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},Kf=E`
1415
1415
  *:focus {
1416
1416
  outline: none;
1417
1417
  }
@@ -1446,8 +1446,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1446
1446
  overflow: hidden;
1447
1447
  padding: 0 ${W.horizontalSpacing};
1448
1448
 
1449
- ${O(nt.fontSize,W.fontSize)};
1450
- ${O(nt.lineHeight,W.fontSize)};
1449
+ ${O(at.fontSize,W.fontSize)};
1450
+ ${O(at.lineHeight,W.fontSize)};
1451
1451
  }
1452
1452
 
1453
1453
  .ft-text-field--input-panel ft-ripple {
@@ -1570,7 +1570,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1570
1570
  .ft-text-field--with-password ft-icon:hover {
1571
1571
  cursor: pointer;
1572
1572
  }
1573
- `;var jf=w`
1573
+ `;var Zf=E`
1574
1574
  .ft-text-field-suggestion--suggestion {
1575
1575
  position: relative;
1576
1576
  padding: 8px 16px;
@@ -1616,7 +1616,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1616
1616
  slot {
1617
1617
  pointer-events: none;
1618
1618
  }
1619
- `;var io=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bc=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},xc=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},Ge=class extends D{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1619
+ `;var io=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},vc=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Sc=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},Ge=class extends D{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1620
1620
  <div class="${oe(e)}">
1621
1621
  <div
1622
1622
  class="ft-text-field-suggestion--suggestion"
@@ -1636,7 +1636,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1636
1636
  </ft-typography>
1637
1637
  </div>
1638
1638
  ${this.removable?x`
1639
- <ft-button icon="${ir.CLOSE}"
1639
+ <ft-button icon="${nr.CLOSE}"
1640
1640
  part="remove-button"
1641
1641
  class="ft-text-field-suggestion--remove"
1642
1642
  round
@@ -1648,7 +1648,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1648
1648
  </ft-button>
1649
1649
  `:_}
1650
1650
  </div>
1651
- `}focus(e,r){var o,n;r&&this.removable?(o=this.removeButton)===null||o===void 0||o.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var r;(r=e?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var e,r;return(r=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new bc(this.getValue()))}removeSuggestion(){this.dispatchEvent(new xc(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};Ge.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-button":V};Ge.styles=jf;io([f()],Ge.prototype,"value",void 0);io([f()],Ge.prototype,"helper",void 0);io([f({type:Boolean})],Ge.prototype,"removable",void 0);io([f()],Ge.prototype,"removeButtonLabel",void 0);io([M(".ft-text-field-suggestion--suggestion")],Ge.prototype,"suggestion",void 0);io([M(".ft-text-field-suggestion--remove")],Ge.prototype,"removeButton",void 0);io([Zo()],Ge.prototype,"assignedNodes",void 0);var q=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},U=class extends Ur(D){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ir.EYE_SLASH,this.passwordRevealedIcon=ir.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1651
+ `}focus(e,r){var o,n;r&&this.removable?(o=this.removeButton)===null||o===void 0||o.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var r;(r=e?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var e,r;return(r=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new vc(this.getValue()))}removeSuggestion(){this.dispatchEvent(new Sc(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};Ge.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-button":V};Ge.styles=Zf;io([f()],Ge.prototype,"value",void 0);io([f()],Ge.prototype,"helper",void 0);io([f({type:Boolean})],Ge.prototype,"removable",void 0);io([f()],Ge.prototype,"removeButtonLabel",void 0);io([M(".ft-text-field-suggestion--suggestion")],Ge.prototype,"suggestion",void 0);io([M(".ft-text-field-suggestion--remove")],Ge.prototype,"removeButton",void 0);io([qo()],Ge.prototype,"assignedNodes",void 0);var q=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},U=class extends Ur(D){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=nr.EYE_SLASH,this.passwordRevealedIcon=nr.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1652
1652
  <div class="${oe(r)}">
1653
1653
  <div class="ft-text-field--main-panel"
1654
1654
  @keydown=${this.handleKeyboardNavigation}
@@ -1668,12 +1668,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1668
1668
  </ft-typography>
1669
1669
  `:_}
1670
1670
  <input type="${this.resolveInputType()}"
1671
- name="${yt(this.name)}"
1672
- maxlength="${yt(this.maxLength||void 0)}"
1671
+ name="${bt(this.name)}"
1672
+ maxlength="${bt(this.maxLength||void 0)}"
1673
1673
  aria-label="${this.label}"
1674
- aria-describedby="${yt(this.helper?"helper":void 0)}"
1674
+ aria-describedby="${bt(this.helper?"helper":void 0)}"
1675
1675
  aria-invalid="${this.error}"
1676
- autocomplete="${yt(this.autocomplete)}"
1676
+ autocomplete="${bt(this.autocomplete)}"
1677
1677
  class="ft-typography--body1 ft-text-field--input"
1678
1678
  part="input"
1679
1679
  ?disabled=${this.disabled}
@@ -1732,7 +1732,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1732
1732
  .variant=${this.iconVariant}
1733
1733
  .value=${this.icon}
1734
1734
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1735
- `:_}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=Yo(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Oa(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Aa(e))):this.dispatchEvent(new _a(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r,o;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),a;e.key==="ArrowDown"?a=n<this.visibleSuggestions.length-1?n+1:0:a=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[a])===null||r===void 0||r.focus(void 0,(o=this.visibleSuggestions[n])===null||o===void 0?void 0:o.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];Ds(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};U.elementDefinitions={"ft-input-label":lt,"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-text-field-suggestion":Ge};U.styles=[yr,Ks,Gf];q([f()],U.prototype,"label",void 0);q([f({noAccessor:!0})],U.prototype,"value",null);q([T()],U.prototype,"dispatchedValue",void 0);q([f()],U.prototype,"helper",void 0);q([f()],U.prototype,"suggestionsHelper",void 0);q([f({type:Boolean})],U.prototype,"outlined",void 0);q([f({type:Boolean})],U.prototype,"disabled",void 0);q([f({type:Boolean})],U.prototype,"error",void 0);q([f({type:Boolean})],U.prototype,"fixedMenuPosition",void 0);q([f()],U.prototype,"prefix",void 0);q([f()],U.prototype,"icon",void 0);q([f()],U.prototype,"name",void 0);q([f()],U.prototype,"type",void 0);q([f()],U.prototype,"passwordHiddenIcon",void 0);q([f()],U.prototype,"passwordRevealedIcon",void 0);q([f()],U.prototype,"iconVariant",void 0);q([f({type:Boolean})],U.prototype,"filterSuggestions",void 0);q([vt()],U.prototype,"maxLength",void 0);q([f({type:Boolean})],U.prototype,"password",void 0);q([f({type:String})],U.prototype,"autocomplete",void 0);q([f({attribute:!1})],U.prototype,"suggestionsProvider",void 0);q([f({type:Boolean})],U.prototype,"hideCurrentValueSuggestion",void 0);q([T()],U.prototype,"focused",void 0);q([T()],U.prototype,"inputValid",void 0);q([T()],U.prototype,"hidePassword",void 0);q([T()],U.prototype,"hideSuggestions",void 0);q([T()],U.prototype,"visibleSuggestions",void 0);q([T()],U.prototype,"providedSuggestions",void 0);q([M(".ft-text-field--main-panel")],U.prototype,"mainPanel",void 0);q([M(".ft-text-field--input")],U.prototype,"input",void 0);q([M(".ft-text-field-suggestion--new-value")],U.prototype,"newValueSuggestion",void 0);q([M(".ft-text-field--suggestions")],U.prototype,"suggestionsContainer",void 0);q([qa("ft-text-field-suggestion")],U.prototype,"providedSuggestionsInDom",void 0);q([Ko({selector:"ft-text-field-suggestion"})],U.prototype,"slottedSuggestions",void 0);q([Wt()],U.prototype,"handleInput",null);q([Wt()],U.prototype,"catchComposingEvents",null);var Kf={"ft-text-field":U,"ft-text-field-suggestion":Ge};K(Kf);var Ra=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Ae=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends mt(ye){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(se,Wf),this.addStore(k)}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:_e.NO_RATING}get ratingValue(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,r;let o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?qi(o):o}render(){return!this.canAccessFeedback&&!this.canRateThisContent?_:x`
1735
+ `:_}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=Xo(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new _a(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Ra(e))):this.dispatchEvent(new Ta(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r,o;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),a;e.key==="ArrowDown"?a=n<this.visibleSuggestions.length-1?n+1:0:a=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[a])===null||r===void 0||r.focus(void 0,(o=this.visibleSuggestions[n])===null||o===void 0?void 0:o.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];Fs(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};U.elementDefinitions={"ft-input-label":ct,"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-text-field-suggestion":Ge};U.styles=[yr,qs,Kf];q([f()],U.prototype,"label",void 0);q([f({noAccessor:!0})],U.prototype,"value",null);q([T()],U.prototype,"dispatchedValue",void 0);q([f()],U.prototype,"helper",void 0);q([f()],U.prototype,"suggestionsHelper",void 0);q([f({type:Boolean})],U.prototype,"outlined",void 0);q([f({type:Boolean})],U.prototype,"disabled",void 0);q([f({type:Boolean})],U.prototype,"error",void 0);q([f({type:Boolean})],U.prototype,"fixedMenuPosition",void 0);q([f()],U.prototype,"prefix",void 0);q([f()],U.prototype,"icon",void 0);q([f()],U.prototype,"name",void 0);q([f()],U.prototype,"type",void 0);q([f()],U.prototype,"passwordHiddenIcon",void 0);q([f()],U.prototype,"passwordRevealedIcon",void 0);q([f()],U.prototype,"iconVariant",void 0);q([f({type:Boolean})],U.prototype,"filterSuggestions",void 0);q([St()],U.prototype,"maxLength",void 0);q([f({type:Boolean})],U.prototype,"password",void 0);q([f({type:String})],U.prototype,"autocomplete",void 0);q([f({attribute:!1})],U.prototype,"suggestionsProvider",void 0);q([f({type:Boolean})],U.prototype,"hideCurrentValueSuggestion",void 0);q([T()],U.prototype,"focused",void 0);q([T()],U.prototype,"inputValid",void 0);q([T()],U.prototype,"hidePassword",void 0);q([T()],U.prototype,"hideSuggestions",void 0);q([T()],U.prototype,"visibleSuggestions",void 0);q([T()],U.prototype,"providedSuggestions",void 0);q([M(".ft-text-field--main-panel")],U.prototype,"mainPanel",void 0);q([M(".ft-text-field--input")],U.prototype,"input",void 0);q([M(".ft-text-field-suggestion--new-value")],U.prototype,"newValueSuggestion",void 0);q([M(".ft-text-field--suggestions")],U.prototype,"suggestionsContainer",void 0);q([Xa("ft-text-field-suggestion")],U.prototype,"providedSuggestionsInDom",void 0);q([Zo({selector:"ft-text-field-suggestion"})],U.prototype,"slottedSuggestions",void 0);q([Gt()],U.prototype,"handleInput",null);q([Gt()],U.prototype,"catchComposingEvents",null);var qf={"ft-text-field":U,"ft-text-field-suggestion":Ge};K(qf);var Ia=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Ae=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends gt(ye){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(se,jf),this.addStore(k)}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:_e.NO_RATING}get ratingValue(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,r;let o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?Xi(o):o}render(){return!this.canAccessFeedback&&!this.canRateThisContent?_:x`
1736
1736
  <div part="container">
1737
1737
  ${this.hideTitle?_:x`
1738
1738
  <ft-typography variant="${J.title}" part="main-title">
@@ -1841,7 +1841,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1841
1841
  ${l}
1842
1842
  </div>
1843
1843
  </form>
1844
- `}return _}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Ra({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};le.elementDefinitions={"ft-button":V,"ft-typography":Y,"ft-switch":We,"ft-switch-option":xe,"ft-text-area":Ce,"ft-text-field":U};Ae([f({type:Boolean})],le.prototype,"hideTitle",void 0);Ae([f({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Ae([f()],le.prototype,"iconVariant",void 0);Ae([f()],le.prototype,"emptyStarIcon",void 0);Ae([f()],le.prototype,"filledStarIcon",void 0);Ae([f()],le.prototype,"emptyLikeIcon",void 0);Ae([f()],le.prototype,"filledLikeIcon",void 0);Ae([f()],le.prototype,"emptyDislikeIcon",void 0);Ae([f()],le.prototype,"filledDislikeIcon",void 0);Ae([f({type:Boolean})],le.prototype,"canAccessFeedback",void 0);Ae([f({type:Boolean})],le.prototype,"canRateThisContent",void 0);Ae([f({attribute:!1})],le.prototype,"i18nProperties",void 0);Ae([f({attribute:!1})],le.prototype,"ratingSummary",void 0);Ae([f()],le.prototype,"configuration",void 0);Ae([f()],le.prototype,"feedbackMailLinkBuilder",void 0);Ae([Z({store:k.name})],le.prototype,"session",void 0);Ae([M("[part='feedback-input']")],le.prototype,"feedbackInput",void 0);Ae([T()],le.prototype,"from",void 0);Ae([T()],le.prototype,"feedbackMessage",void 0);var Di=class extends le{};Di.styles=Ca(Ea);var vc=ht.build("inDesignerFeedbackComponent"),Zf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ta=ht.fromGwt("server");var Ia=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,o,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,r;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1844
+ `}return _}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Ia({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};le.elementDefinitions={"ft-button":V,"ft-typography":Y,"ft-switch":We,"ft-switch-option":xe,"ft-text-area":Ce,"ft-text-field":U};Ae([f({type:Boolean})],le.prototype,"hideTitle",void 0);Ae([f({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Ae([f()],le.prototype,"iconVariant",void 0);Ae([f()],le.prototype,"emptyStarIcon",void 0);Ae([f()],le.prototype,"filledStarIcon",void 0);Ae([f()],le.prototype,"emptyLikeIcon",void 0);Ae([f()],le.prototype,"filledLikeIcon",void 0);Ae([f()],le.prototype,"emptyDislikeIcon",void 0);Ae([f()],le.prototype,"filledDislikeIcon",void 0);Ae([f({type:Boolean})],le.prototype,"canAccessFeedback",void 0);Ae([f({type:Boolean})],le.prototype,"canRateThisContent",void 0);Ae([f({attribute:!1})],le.prototype,"i18nProperties",void 0);Ae([f({attribute:!1})],le.prototype,"ratingSummary",void 0);Ae([f()],le.prototype,"configuration",void 0);Ae([f()],le.prototype,"feedbackMailLinkBuilder",void 0);Ae([Z({store:k.name})],le.prototype,"session",void 0);Ae([M("[part='feedback-input']")],le.prototype,"feedbackInput",void 0);Ae([T()],le.prototype,"from",void 0);Ae([T()],le.prototype,"feedbackMessage",void 0);var Fi=class extends le{};Fi.styles=Ea(Oa);var Cc=mt.build("inDesignerFeedbackComponent"),Yf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var La=mt.fromGwt("server");var ka=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,o,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,r;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1845
1845
  ${this.bodyMetadata}
1846
1846
  ${this.url}
1847
1847
  _________________________________________________________________
@@ -1849,7 +1849,7 @@ _________________________________________________________________
1849
1849
  ${e??""}
1850
1850
 
1851
1851
  _________________________________________________________________
1852
- ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var $e=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends Xe(mt(qe)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(br.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(br.RATING,{session:this.session}))&&this.configuredRatingType!=_e.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}constructor(e=new Hn){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Ia,this.i18nProperties={feedbackMainTitle:se.properties.viewerFeedbackMainTitle(),ratingSectionTitle:se.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:se.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:se.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-viewer-document-feedback-guest-rating-"+((r=this.document)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Ne(500),this.addStore(k)}render(){return x`
1852
+ ${La.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var $e=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends Xe(gt(qe)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(br.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(br.RATING,{session:this.session}))&&this.configuredRatingType!=_e.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}constructor(e=new Gn){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ka,this.i18nProperties={feedbackMainTitle:se.properties.viewerFeedbackMainTitle(),ratingSectionTitle:se.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:se.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:se.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-viewer-document-feedback-guest-rating-"+((r=this.document)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Ne(500),this.addStore(k)}render(){return x`
1853
1853
  <ft-viewer-feedback
1854
1854
  ?hideTitle=${this.hideTitle}
1855
1855
  iconVariant="${this.iconVariant}"
@@ -1870,7 +1870,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1870
1870
  @mailer-feedback=${this.onMailerFeedbackSent}
1871
1871
  @open-more-options=${this.openMoreOptions}
1872
1872
  ></ft-viewer-feedback>
1873
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(vc,Zf),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((o=(r=this.session)===null||r===void 0?void 0:r.profile)===null||o===void 0?void 0:o.userId)!=null),["session","document"].some(a=>e.has(a))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,o,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((o=this.service)===null||o===void 0?void 0:o.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Lt({type:"error",message:se.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Lt({type:"info",message:vc.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new Lt({type:"info",message:se.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Lt({type:"error",message:se.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Sa)}openMoreOptions(){var e,r;this.dispatchEvent(new va({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||_e.NO_RATING,ratingValue:(r=this.ratingSummary)===null||r===void 0?void 0:r.rating}))}};ce.styles=Ca(Ea);ce.elementDefinitions={"ft-viewer-feedback":Di};ce.storedRatingIfAuthenticated=(t,e)=>{var r,o;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(o=e.ratingSummary)!==null&&o!==void 0?o:t.documentRating};$e([Z({store:k.name})],ce.prototype,"session",void 0);$e([Z({store:"viewer"})],ce.prototype,"document",void 0);$e([Z({store:k.name})],ce.prototype,"editorMode",void 0);$e([Z({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);$e([Z({store:"viewer",selector:ce.storedRatingIfAuthenticated})],ce.prototype,"ratingSummary",void 0);$e([f({type:Boolean})],ce.prototype,"hideTitle",void 0);$e([f()],ce.prototype,"iconVariant",void 0);$e([f()],ce.prototype,"emptyStarIcon",void 0);$e([f()],ce.prototype,"filledStarIcon",void 0);$e([f()],ce.prototype,"emptyLikeIcon",void 0);$e([f()],ce.prototype,"filledLikeIcon",void 0);$e([f()],ce.prototype,"emptyDislikeIcon",void 0);$e([f()],ce.prototype,"filledDislikeIcon",void 0);$e([M("ft-viewer-feedback")],ce.prototype,"viewerFeedback",void 0);$e([ga(Ta.properties["mail.file_feedback.subject"](t=>{var e,r;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((r=t.document)===null||r===void 0?void 0:r.filename)||"Filename"]}))],ce.prototype,"mailSubject",void 0);$e([Z({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ce.prototype,"displayName",void 0);var La=class extends Xe(ye){};var qf=w`
1873
+ `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Cc,Yf),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((o=(r=this.session)===null||r===void 0?void 0:r.profile)===null||o===void 0?void 0:o.userId)!=null),["session","document"].some(a=>e.has(a))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,o,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((o=this.service)===null||o===void 0?void 0:o.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new kt({type:"error",message:se.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new kt({type:"info",message:Cc.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new kt({type:"info",message:se.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new kt({type:"error",message:se.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new wa)}openMoreOptions(){var e,r;this.dispatchEvent(new Ca({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||_e.NO_RATING,ratingValue:(r=this.ratingSummary)===null||r===void 0?void 0:r.rating}))}};ce.styles=Ea(Oa);ce.elementDefinitions={"ft-viewer-feedback":Fi};ce.storedRatingIfAuthenticated=(t,e)=>{var r,o;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(o=e.ratingSummary)!==null&&o!==void 0?o:t.documentRating};$e([Z({store:k.name})],ce.prototype,"session",void 0);$e([Z({store:"viewer"})],ce.prototype,"document",void 0);$e([Z({store:k.name})],ce.prototype,"editorMode",void 0);$e([Z({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);$e([Z({store:"viewer",selector:ce.storedRatingIfAuthenticated})],ce.prototype,"ratingSummary",void 0);$e([f({type:Boolean})],ce.prototype,"hideTitle",void 0);$e([f()],ce.prototype,"iconVariant",void 0);$e([f()],ce.prototype,"emptyStarIcon",void 0);$e([f()],ce.prototype,"filledStarIcon",void 0);$e([f()],ce.prototype,"emptyLikeIcon",void 0);$e([f()],ce.prototype,"filledLikeIcon",void 0);$e([f()],ce.prototype,"emptyDislikeIcon",void 0);$e([f()],ce.prototype,"filledDislikeIcon",void 0);$e([M("ft-viewer-feedback")],ce.prototype,"viewerFeedback",void 0);$e([ba(La.properties["mail.file_feedback.subject"](t=>{var e,r;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((r=t.document)===null||r===void 0?void 0:r.filename)||"Filename"]}))],ce.prototype,"mailSubject",void 0);$e([Z({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ce.prototype,"displayName",void 0);var Pa=class extends Xe(ye){};var Xf=E`
1874
1874
  :host {
1875
1875
  display: inline-block;
1876
1876
  }
@@ -1890,7 +1890,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1890
1890
  all: unset;
1891
1891
  position: relative;
1892
1892
  }
1893
- `;var Yf=i.extend("--ft-chip-color","",S.colorOnSurface),Qe={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Yf,fontSize:i.extend("--ft-chip-font-size","",at.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",at.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Yf),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Xf=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Sc={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Xf,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Xf)},Jf={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Qf=[qt,w`
1893
+ `;var Jf=i.extend("--ft-chip-color","",S.colorOnSurface),Qe={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Jf,fontSize:i.extend("--ft-chip-font-size","",st.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",st.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Jf),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Qf=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),wc={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Qf,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Qf)},eh={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},th=[Yt,E`
1894
1894
  :host {
1895
1895
  display: inline-block;
1896
1896
  max-width: 100%;
@@ -1918,7 +1918,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1918
1918
  border: 1px solid ${Qe.borderColor};
1919
1919
  color: ${Qe.color};
1920
1920
  ${O(re.color,Qe.rippleColor)};
1921
- border-radius: var(${Vt(Qe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1921
+ border-radius: var(${zt(Qe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1922
1922
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1923
1923
  background-color: ${Qe.backgroundColor};
1924
1924
  line-height: var(--chip-internal-content-height);
@@ -1930,13 +1930,13 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1930
1930
 
1931
1931
  .ft-chip--dense {
1932
1932
  --chip-internal-icon-padding: 3px;
1933
- --chip-internal-vertical-padding: ${Jf.verticalPadding};
1934
- --chip-internal-horizontal-padding: ${Jf.horizontalPadding};
1933
+ --chip-internal-vertical-padding: ${eh.verticalPadding};
1934
+ --chip-internal-horizontal-padding: ${eh.horizontalPadding};
1935
1935
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1936
1936
  }
1937
1937
 
1938
1938
  .ft-chip--no-content {
1939
- --chip-internal-horizontal-padding: ${Qe.horizontalPadding.get(w`var(--chip-internal-vertical-padding)`)};
1939
+ --chip-internal-horizontal-padding: ${Qe.horizontalPadding.get(E`var(--chip-internal-vertical-padding)`)};
1940
1940
  }
1941
1941
 
1942
1942
  .ft-chip--disabled {
@@ -1949,9 +1949,9 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1949
1949
  .ft-chip--highlighted {
1950
1950
  border: none;
1951
1951
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1952
- background-color: ${Sc.backgroundColor};
1953
- ${O(re.color,Sc.rippleColor)};
1954
- color: ${Sc.color};
1952
+ background-color: ${wc.backgroundColor};
1953
+ ${O(re.color,wc.rippleColor)};
1954
+ color: ${wc.color};
1955
1955
  }
1956
1956
 
1957
1957
  .ft-chip--clickable {
@@ -1992,9 +1992,9 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1992
1992
  vertical-align: bottom;
1993
1993
  display: block;
1994
1994
  margin: 0 var(--chip-internal-horizontal-padding);
1995
- ${O(at.fontSize,"var(--chip-internal-font-size)")};
1996
- ${O(at.fontWeight,"var(--chip-internal-font-weight)")};
1997
- ${O(at.lineHeight,"var(--chip-internal-content-height)")};
1995
+ ${O(st.fontSize,"var(--chip-internal-font-size)")};
1996
+ ${O(st.fontWeight,"var(--chip-internal-font-weight)")};
1997
+ ${O(st.lineHeight,"var(--chip-internal-content-height)")};
1998
1998
  }
1999
1999
 
2000
2000
  .ft-chip--safari-fix .ft-chip--label {
@@ -2030,7 +2030,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2030
2030
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2031
2031
  order: -1;
2032
2032
  }
2033
- `];var Ue=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ka=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends D{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":zr};return x`
2033
+ `];var Ue=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Na=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends D{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":zr};return x`
2034
2034
  <div class="${oe(r)}"
2035
2035
  aria-label="${this.labelOnIconOnly?_:this.getLabel()}"
2036
2036
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -2058,7 +2058,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2058
2058
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2059
2059
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
2060
2060
  </div>
2061
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ka))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ka))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Yi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-button":V};de.styles=Qf;Ue([f({type:Boolean})],de.prototype,"highlighted",void 0);Ue([f({type:Boolean})],de.prototype,"removable",void 0);Ue([f({type:Boolean})],de.prototype,"disabled",void 0);Ue([f({type:Boolean})],de.prototype,"clickable",void 0);Ue([f({type:Boolean})],de.prototype,"iconClickable",void 0);Ue([f({type:Boolean})],de.prototype,"dense",void 0);Ue([f({type:Boolean})],de.prototype,"multiLine",void 0);Ue([f()],de.prototype,"label",void 0);Ue([f()],de.prototype,"iconLabel",void 0);Ue([f({type:Boolean})],de.prototype,"hideIconTooltip",void 0);Ue([f({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);Ue([f()],de.prototype,"icon",void 0);Ue([f()],de.prototype,"iconVariant",void 0);Ue([f({type:Boolean})],de.prototype,"trailingIcon",void 0);Ue([f()],de.prototype,"typographyVariant",void 0);Ue([M("ft-typography slot")],de.prototype,"slottedContent",void 0);var eh={"ft-chip":de};K(eh);var Ry={iconColor:i.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},th=w`
2061
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Na))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Na))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Ji(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":j,"ft-typography":Y,"ft-icon":te,"ft-button":V};de.styles=th;Ue([f({type:Boolean})],de.prototype,"highlighted",void 0);Ue([f({type:Boolean})],de.prototype,"removable",void 0);Ue([f({type:Boolean})],de.prototype,"disabled",void 0);Ue([f({type:Boolean})],de.prototype,"clickable",void 0);Ue([f({type:Boolean})],de.prototype,"iconClickable",void 0);Ue([f({type:Boolean})],de.prototype,"dense",void 0);Ue([f({type:Boolean})],de.prototype,"multiLine",void 0);Ue([f()],de.prototype,"label",void 0);Ue([f()],de.prototype,"iconLabel",void 0);Ue([f({type:Boolean})],de.prototype,"hideIconTooltip",void 0);Ue([f({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);Ue([f()],de.prototype,"icon",void 0);Ue([f()],de.prototype,"iconVariant",void 0);Ue([f({type:Boolean})],de.prototype,"trailingIcon",void 0);Ue([f()],de.prototype,"typographyVariant",void 0);Ue([M("ft-typography slot")],de.prototype,"slottedContent",void 0);var rh={"ft-chip":de};K(rh);var Iy={iconColor:i.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},oh=E`
2062
2062
  .ft-floating-menu-item {
2063
2063
  cursor: pointer;
2064
2064
  display: flex;
@@ -2078,7 +2078,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2078
2078
  }
2079
2079
 
2080
2080
  .ft-floating-menu-item ft-icon {
2081
- color: ${Ry.iconColor};
2081
+ color: ${Iy.iconColor};
2082
2082
  margin-left: 0;
2083
2083
  flex-shrink: 0;
2084
2084
  flex-grow: 0;
@@ -2093,7 +2093,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2093
2093
  word-break: break-word;
2094
2094
  hyphens: auto;
2095
2095
  }
2096
- `;var Fo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pa=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Be=class extends D{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return x`
2096
+ `;var $o=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Da=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Be=class extends D{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return x`
2097
2097
  <div class="${oe(this.floatingClasses)}"
2098
2098
  tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
2099
2099
  aria-disabled="${this.disabled}"
@@ -2109,7 +2109,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2109
2109
  <slot></slot>
2110
2110
  </ft-typography>
2111
2111
  </div>
2112
- `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Pa(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Pa(this.value)))}};Be.elementDefinitions={"ft-icon":te,"ft-ripple":j,"ft-typography":Y};Be.styles=th;Fo([f()],Be.prototype,"iconVariant",void 0);Fo([f()],Be.prototype,"icon",void 0);Fo([f()],Be.prototype,"value",void 0);Fo([f({type:Boolean})],Be.prototype,"notFocusable",void 0);Fo([f({type:Boolean})],Be.prototype,"disabled",void 0);Fo([Wt()],Be.prototype,"onKeyDown",null);var vr={zIndex:i.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:i.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:i.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:i.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:i.external(S.colorSurface,"Design system"),menuElevation:i.external(S.elevation02,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system")},rh=w`
2112
+ `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Da(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Da(this.value)))}};Be.elementDefinitions={"ft-icon":te,"ft-ripple":j,"ft-typography":Y};Be.styles=oh;$o([f()],Be.prototype,"iconVariant",void 0);$o([f()],Be.prototype,"icon",void 0);$o([f()],Be.prototype,"value",void 0);$o([f({type:Boolean})],Be.prototype,"notFocusable",void 0);$o([f({type:Boolean})],Be.prototype,"disabled",void 0);$o([Gt()],Be.prototype,"onKeyDown",null);var vr={zIndex:i.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:i.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:i.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:i.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:i.external(S.colorSurface,"Design system"),menuElevation:i.external(S.elevation02,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system")},ih=E`
2113
2113
  .ft-floating-menu {
2114
2114
  color: ${vr.textColor};
2115
2115
  display: contents;
@@ -2140,7 +2140,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2140
2140
  .ft-floating-menu--open .ft-floating-menu--options {
2141
2141
  display: block;
2142
2142
  }
2143
- `;var Ve=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Na=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Da=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ue=class extends D{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Fe.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new Na(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return x`
2143
+ `;var Ve=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ma=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Fa=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ue=class extends D{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Fe.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new Ma(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return x`
2144
2144
  <div part="container" class="${oe(e)}" @keydown=${this.onKeyDown}>
2145
2145
  <slot name="toggle"
2146
2146
  part="toggle"
@@ -2171,7 +2171,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2171
2171
  </div>
2172
2172
  </div>
2173
2173
  </div>
2174
- `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Da(e.detail)),this.closeMenu()}onContentClick(e){Jo(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await di(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};ue.elementDefinitions={"ft-floating-menu-item":Be,"ft-button":V};ue.styles=rh;Ve([f()],ue.prototype,"horizontalAlignment",void 0);Ve([f()],ue.prototype,"verticalAlignment",void 0);Ve([Pe([])],ue.prototype,"closeMenuMatchers",void 0);Ve([f({type:Boolean})],ue.prototype,"primary",void 0);Ve([f()],ue.prototype,"label",void 0);Ve([f()],ue.prototype,"tooltipPosition",void 0);Ve([f()],ue.prototype,"icon",void 0);Ve([f()],ue.prototype,"iconVariant",void 0);Ve([f()],ue.prototype,"text",void 0);Ve([f({type:Boolean})],ue.prototype,"disabled",void 0);Ve([T()],ue.prototype,"menuOpen",void 0);Ve([T()],ue.prototype,"forceMenuOpen",void 0);Ve([M(".ft-floating-menu")],ue.prototype,"container",void 0);Ve([M(".ft-floating-menu--wrapper")],ue.prototype,"menuWrapper",void 0);Ve([M("#actions-button")],ue.prototype,"actionButton",void 0);Ve([Ko({slot:"toggle"})],ue.prototype,"customToggle",void 0);var Ty={color:i.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},oh=w`
2174
+ `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Fa(e.detail)),this.closeMenu()}onContentClick(e){Qo(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await pi(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};ue.elementDefinitions={"ft-floating-menu-item":Be,"ft-button":V};ue.styles=ih;Ve([f()],ue.prototype,"horizontalAlignment",void 0);Ve([f()],ue.prototype,"verticalAlignment",void 0);Ve([Pe([])],ue.prototype,"closeMenuMatchers",void 0);Ve([f({type:Boolean})],ue.prototype,"primary",void 0);Ve([f()],ue.prototype,"label",void 0);Ve([f()],ue.prototype,"tooltipPosition",void 0);Ve([f()],ue.prototype,"icon",void 0);Ve([f()],ue.prototype,"iconVariant",void 0);Ve([f()],ue.prototype,"text",void 0);Ve([f({type:Boolean})],ue.prototype,"disabled",void 0);Ve([T()],ue.prototype,"menuOpen",void 0);Ve([T()],ue.prototype,"forceMenuOpen",void 0);Ve([M(".ft-floating-menu")],ue.prototype,"container",void 0);Ve([M(".ft-floating-menu--wrapper")],ue.prototype,"menuWrapper",void 0);Ve([M("#actions-button")],ue.prototype,"actionButton",void 0);Ve([Zo({slot:"toggle"})],ue.prototype,"customToggle",void 0);var Ly={color:i.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},nh=E`
2175
2175
  .ft-floating-menu-label {
2176
2176
  padding: 4px 8px;
2177
2177
  }
@@ -2182,7 +2182,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2182
2182
  width: max-content;
2183
2183
  text-overflow: ellipsis;
2184
2184
  overflow: hidden;
2185
- color: ${Ty.color}
2185
+ color: ${Ly.color}
2186
2186
  }
2187
2187
  `;var Sr=class extends D{render(){return x`
2188
2188
  <div class="ft-floating-menu-label">
@@ -2190,7 +2190,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2190
2190
  <slot></slot>
2191
2191
  </ft-typography>
2192
2192
  </div>
2193
- `}};Sr.elementDefinitions={"ft-typography":Y};Sr.styles=oh;var ih={"ft-floating-menu":ue,"ft-floating-menu-item":Be,"ft-floating-menu-label":Sr};K(ih);function Iy(t){var e;return((e=ho(t))===null||e===void 0?void 0:e.openMode)===Qi.EXTERNAL}function nh(t,e){return Iy(t)?ho(t).originUrl:ri(t,e)}var je=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends Rp(mt(La)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,o,n,a,s;return this.metadata?this.metadata.label:(s=(a=(o=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&a!==void 0?a:(n=this.relatives.find(l=>l.metadata.value))===null||n===void 0?void 0:n.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Mo)}willUpdate(e){var r,o,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.viewerStateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?cr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Ao((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,o,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.document)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2193
+ `}};Sr.elementDefinitions={"ft-typography":Y};Sr.styles=nh;var ah={"ft-floating-menu":ue,"ft-floating-menu-item":Be,"ft-floating-menu-label":Sr};K(ah);function ky(t){var e;return((e=mo(t))===null||e===void 0?void 0:e.openMode)===tn.EXTERNAL}function sh(t,e){return ky(t)?mo(t).originUrl:ii(t,e)}var je=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends Ip(gt(Pa)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,o,n,a,s;return this.metadata?this.metadata.label:(s=(a=(o=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&a!==void 0?a:(n=this.relatives.find(l=>l.metadata.value))===null||n===void 0?void 0:n.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Fo)}willUpdate(e){var r,o,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.viewerStateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?dr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new _o((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,o,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.document)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2194
2194
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
2195
2195
  ${this.hideIfEmpty()}
2196
2196
  `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?x`
@@ -2207,7 +2207,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2207
2207
  ${Ke(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2208
2208
  </ft-floating-menu>
2209
2209
  </div>
2210
- `}renderRelativeItem(e,r){var o,n;let a=this.translateValues&&(n=new Ao((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&n!==void 0?n:r,s=nh(e);return x`
2210
+ `}renderRelativeItem(e,r){var o,n;let a=this.translateValues&&(n=new _o((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&n!==void 0?n:r,s=sh(e);return x`
2211
2211
  <a part="relative-item-link"
2212
2212
  href="${s}" >
2213
2213
  <ft-ripple part="relative-item-ripple"></ft-ripple>
@@ -2240,7 +2240,7 @@ ${Ta.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2240
2240
  text="${p}">
2241
2241
  ${m}
2242
2242
  </ft-tooltip>
2243
- `}};ve.elementDefinitions={"ft-chip":de,"ft-floating-menu":ue,"ft-floating-menu-item":Be,"ft-floating-menu-label":Sr,"ft-ripple":j,"ft-tooltip":he};ve.styles=qf;je([f(),Ys()],ve.prototype,"key",void 0);je([f({type:Boolean})],ve.prototype,"multiLine",void 0);je([f({type:Boolean})],ve.prototype,"useForSwitchingToRelatives",void 0);je([f({type:Boolean})],ve.prototype,"displayLabel",void 0);je([vt()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);je([f({type:Boolean})],ve.prototype,"forceTooltip",void 0);je([f({attribute:!1})],ve.prototype,"editorMode",void 0);je([f({type:Boolean})],ve.prototype,"translateValues",void 0);je([Z({store:"viewer",selector:(t,e)=>{var r,o;return(o=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(n=>n.key===e.key)}})],ve.prototype,"metadata",void 0);je([T()],ve.prototype,"flatMetadata",void 0);je([Z({store:"viewer"})],ve.prototype,"document",void 0);je([T()],ve.prototype,"relatives",void 0);je([Z({store:k.name})],ve.prototype,"availableContentLocales",void 0);je([ga(Mo.properties.itemWithNoValueForSwitchToRelatives())],ve.prototype,"noValueMessage",void 0);je([ft({eventName:sr.clusteringHelperCreated})],ve.prototype,"updateRelatives",null);var ah={"ft-asset-viewer-content":ea,"ft-asset-viewer-context":Qt,"ft-asset-viewer-document-title":na,"ft-asset-viewer-filename":ta,"ft-asset-viewer-mime-type-icon":ia,"ft-asset-viewer-title":ra,"ft-ud-viewer-attachments":Qr,"ft-ud-viewer-content":ca,"ft-ud-viewer-context":xr,"ft-ud-viewer-filename":da,"ft-ud-viewer-metadata":ve,"ft-ud-viewer-mime-type-icon":pa,"ft-ud-viewer-title":ua,"ft-ud-viewer-feedback":ce};K(ah);})();
2243
+ `}};ve.elementDefinitions={"ft-chip":de,"ft-floating-menu":ue,"ft-floating-menu-item":Be,"ft-floating-menu-label":Sr,"ft-ripple":j,"ft-tooltip":he};ve.styles=Xf;je([f(),Js()],ve.prototype,"key",void 0);je([f({type:Boolean})],ve.prototype,"multiLine",void 0);je([f({type:Boolean})],ve.prototype,"useForSwitchingToRelatives",void 0);je([f({type:Boolean})],ve.prototype,"displayLabel",void 0);je([St()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);je([f({type:Boolean})],ve.prototype,"forceTooltip",void 0);je([f({attribute:!1})],ve.prototype,"editorMode",void 0);je([f({type:Boolean})],ve.prototype,"translateValues",void 0);je([Z({store:"viewer",selector:(t,e)=>{var r,o;return(o=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(n=>n.key===e.key)}})],ve.prototype,"metadata",void 0);je([T()],ve.prototype,"flatMetadata",void 0);je([Z({store:"viewer"})],ve.prototype,"document",void 0);je([T()],ve.prototype,"relatives",void 0);je([Z({store:k.name})],ve.prototype,"availableContentLocales",void 0);je([ba(Fo.properties.itemWithNoValueForSwitchToRelatives())],ve.prototype,"noValueMessage",void 0);je([ht({eventName:lr.clusteringHelperCreated})],ve.prototype,"updateRelatives",null);var lh={"ft-asset-viewer-content":ra,"ft-asset-viewer-context":er,"ft-asset-viewer-document-title":sa,"ft-asset-viewer-filename":oa,"ft-asset-viewer-mime-type-icon":aa,"ft-asset-viewer-title":ia,"ft-ud-viewer-attachments":Qr,"ft-ud-viewer-content":ua,"ft-ud-viewer-context":xr,"ft-ud-viewer-filename":pa,"ft-ud-viewer-metadata":ve,"ft-ud-viewer-mime-type-icon":ha,"ft-ud-viewer-title":fa,"ft-ud-viewer-feedback":ce};K(lh);})();
2244
2244
  /*! Bundled license information:
2245
2245
 
2246
2246
  .store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js: