@fluid-topics/ft-viewer 2.2.4 → 2.2.6

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 Kf=Object.defineProperty;var Z=(t,e)=>{for(var r in e)Kf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(y,b){if(y=y.toLowerCase(),this._getDefinition(y)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${y}" has already been used with this registry`);if(this._definitionsByClass.get(b)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=b.prototype.attributeChangedCallback,M=new Set(b.observedAttributes||[]);g(b,M,C);let D={elementClass:b,connectedCallback:b.prototype.connectedCallback,disconnectedCallback:b.prototype.disconnectedCallback,adoptedCallback:b.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:b.formAssociated,formAssociatedCallback:b.prototype.formAssociatedCallback,formDisabledCallback:b.prototype.formDisabledCallback,formResetCallback:b.prototype.formResetCallback,formStateRestoreCallback:b.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(y,D),this._definitionsByClass.set(b,D);let P=r.call(i,y);P||(P=h(y),e.call(i,y,P)),this===window.customElements&&(s.set(b,D),D.standInClass=P);let X=this._awaitingUpgrade.get(y);if(X){this._awaitingUpgrade.delete(y);for(let z of X)a.delete(z),w(z,D,!0)}let L=this._whenDefinedPromises.get(y);return L!==void 0&&(L.resolve(b),this._whenDefinedPromises.delete(y)),b}upgrade(){E.push(this),i.upgrade.apply(i,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let b=this._getDefinition(y);if(b!==void 0)return Promise.resolve(b.elementClass);let C=this._whenDefinedPromises.get(y);return C===void 0&&(C={},C.promise=new Promise(M=>C.resolve=M),this._whenDefinedPromises.set(y,C)),C.promise}_upgradeWhenDefined(y,b,C){let M=this._awaitingUpgrade.get(b);M||this._awaitingUpgrade.set(b,M=new Set),C?M.add(y):M.delete(y)}};let d;window.HTMLElement=function(){let b=d;if(b)return d=void 0,b;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 b=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(b,this.constructor.prototype),n.set(b,C),b},window.HTMLElement.prototype=t.prototype;let u=y=>y===document||y instanceof ShadowRoot,m=y=>{let b=y.getRootNode();if(!u(b)){let C=E[E.length-1];if(C instanceof CustomElementRegistry)return C;b=C.getRootNode(),u(b)||(b=l.get(b)?.getRootNode()||document)}return b.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let M=m(C)||window.customElements,D=M._getDefinition(y);return D?w(C,D):a.set(C,M),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!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=(y,b,C)=>{if(b.size===0||C===void 0)return;let M=y.prototype.setAttribute;M&&(y.prototype.setAttribute=function(X,L){let z=X.toLowerCase();if(b.has(z)){let ue=this.getAttribute(z);M.call(this,z,L),C.call(this,z,ue,L)}else M.call(this,z,L)});let D=y.prototype.removeAttribute;D&&(y.prototype.removeAttribute=function(X){let L=X.toLowerCase();if(b.has(L)){let z=this.getAttribute(L);D.call(this,L),C.call(this,L,z,null)}else D.call(this,L)});let P=y.prototype.toggleAttribute;P&&(y.prototype.toggleAttribute=function(X,L){let z=X.toLowerCase();if(b.has(z)){let ue=this.getAttribute(z);P.call(this,z,L);let _t=this.getAttribute(z);C.call(this,z,ue,_t)}else P.call(this,z,L)})},v=y=>{let b=Object.getPrototypeOf(y);if(b!==window.HTMLElement)return b===t?Object.setPrototypeOf(y,window.HTMLElement):v(b)},w=(y,b,C=!1)=>{Object.setPrototypeOf(y,b.elementClass.prototype),n.set(y,b),d=y;try{new b.elementClass}catch{v(b.elementClass),new b.elementClass}b.attributeChangedCallback&&b.observedAttributes.forEach(M=>{y.hasAttribute(M)&&b.attributeChangedCallback.call(y,M,null,y.getAttribute(M))}),C&&b.connectedCallback&&y.isConnected&&b.connectedCallback.call(y)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let b=I.apply(this,arguments);return y.customElements&&(b.customElements=y.customElements),b};let E=[document],k=(y,b,C=void 0)=>{let M=(C?Object.getPrototypeOf(C):y.prototype)[b];y.prototype[b]=function(){E.push(this);let D=M.apply(C||this,arguments);return D!==void 0&&l.set(D,this),E.pop(),D}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");let j=(y,b)=>{let C=Object.getOwnPropertyDescriptor(y.prototype,b);Object.defineProperty(y.prototype,b,{...C,set(M){E.push(this),C.set.call(this,M),E.pop()}})};if(j(Element,"innerHTML"),j(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,b=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...X){let L=b.call(this,...X);return y.set(L,this),L},C.forEach(X=>{let L=window.ElementInternals.prototype,z=L[X];L[X]=function(...ue){let _t=y.get(this);if(n.get(_t).formAssociated===!0)return z?.call(this,...ue);throw new DOMException(`Failed to execute ${z} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(L){super(...L),this._elements=L}get value(){return this._elements.find(L=>L.checked===!0)?.value||""}}class D{constructor(L){let z=new Map;L.forEach((ue,_t)=>{let _a=ue.getAttribute("name"),lc=z.get(_a)||[];this[+_t]=ue,lc.push(ue),z.set(_a,lc)}),this.length=L.length,z.forEach((ue,_t)=>{ue&&(ue.length===1?this[_t]=ue[0]:this[_t]=new M(ue))})}namedItem(L){return this[L]}}let P=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let X=P.get.call(this,[]),L=[];for(let z of X){let ue=n.get(z);(!ue||ue.formAssociated===!0)&&L.push(z)}return new D(L)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var Ua={};Z(Ua,{CSSResult:()=>Xr,LitElement:()=>Rt,ReactiveElement:()=>nt,_$LE:()=>wc,_$LH:()=>Da,adoptStyles:()=>No,css:()=>O,defaultConverter:()=>Jr,getCompatibleStyle:()=>Pi,html:()=>x,isServer:()=>Iy,mathml:()=>Ma,noChange:()=>Ee,notEqual:()=>Do,nothing:()=>R,render:()=>$a,supportsAdoptingStyleSheets:()=>Po,svg:()=>Vo,unsafeCSS:()=>Vt});var Li=globalThis,Po=Li.ShadowRoot&&(Li.ShadyCSS===void 0||Li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ra=Symbol(),cc=new WeakMap,Xr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ra)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(Po&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=cc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&cc.set(r,e))}return e}toString(){return this.cssText}},Vt=t=>new Xr(typeof t=="string"?t:t+"",void 0,Ra),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new Xr(r,t,Ra)},No=(t,e)=>{if(Po)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Li.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Pi=Po?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Vt(r)})(t):t;var{is:Zf,defineProperty:qf,getOwnPropertyDescriptor:Yf,getOwnPropertyNames:Xf,getOwnPropertySymbols:Jf,getPrototypeOf:Qf}=Object,Ni=globalThis,dc=Ni.trustedTypes,eh=dc?dc.emptyScript:"",th=Ni.reactiveElementPolyfillSupport,Mo=(t,e)=>t,Jr={toAttribute(t,e){switch(e){case Boolean:t=t?eh: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}},Do=(t,e)=>!Zf(t,e),pc={attribute:!0,type:String,converter:Jr,reflect:!1,useDefault:!1,hasChanged:Do};Symbol.metadata??=Symbol("metadata"),Ni.litPropertyMetadata??=new WeakMap;var nt=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=pc){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 i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&qf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Yf(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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pc}static _$Ei(){if(this.hasOwnProperty(Mo("elementProperties")))return;let e=Qf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Mo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mo("properties"))){let r=this.properties,i=[...Xf(r),...Jf(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Pi(n))}else e!==void 0&&r.push(Pi(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return No(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,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Jr).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Jr;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??Do)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(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||i||(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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}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){}};nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[Mo("elementProperties")]=new Map,nt[Mo("finalized")]=new Map,th?.({ReactiveElement:nt}),(Ni.reactiveElementVersions??=[]).push("2.1.2");var Ia=globalThis,uc=t=>t,Mi=Ia.trustedTypes,fc=Mi?Mi.createPolicy("lit-html",{createHTML:t=>t}):void 0,ka="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,La="?"+zt,rh=`<${La}>`,vr=document,Fo=()=>vr.createComment(""),Uo=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,xc=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Ta=`[
2
- \f\r]`,$o=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hc=/-->/g,mc=/>/g,br=RegExp(`>|${Ta}(?:([^\\s"'>=/]+)(${Ta}*=${Ta}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gc=/'/g,yc=/"/g,vc=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Na(1),Vo=Na(2),Ma=Na(3),Ee=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),bc=new WeakMap,xr=vr.createTreeWalker(vr,129);function Sc(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fc!==void 0?fc.createHTML(e):e}var Cc=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=$o;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===$o?m[1]==="!--"?s=hc:m[1]!==void 0?s=mc:m[2]!==void 0?(vc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=br):m[3]!==void 0&&(s=br):s===br?m[0]===">"?(s=n??$o,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?br:m[3]==='"'?yc:gc):s===yc||s===gc?s=br:s===hc||s===mc?s=$o:(s=br,n=void 0);let v=s===br&&t[l+1].startsWith("/>")?" ":"";a+=s===$o?d+rh:h>=0?(i.push(u),d.slice(0,h)+ka+d.slice(h)+zt+v):d+zt+(h===-2?l:v)}return[Sc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Bo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=Cc(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=xr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(ka)){let g=m[s++],v=n.getAttribute(h).split(zt),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:w[2],strings:v,ctor:w[1]==="."?$i:w[1]==="?"?Fi:w[1]==="@"?Ui:Cr}),n.removeAttribute(h)}else h.startsWith(zt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(vc.test(n.tagName)){let h=n.textContent.split(zt),g=h.length-1;if(g>0){n.textContent=Mi?Mi.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Fo()),xr.nextNode(),d.push({type:2,index:++a});n.append(h[g],Fo())}}}else if(n.nodeType===8)if(n.data===La)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 i=vr.createElement("template");return i.innerHTML=e,i}};function Sr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Uo(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,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,i)),e}var Di=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:i}=this._$AD,n=(e?.creationScope??vr).importNode(r,!0);xr.currentNode=n;let a=xr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Qr(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new Bi(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=xr.nextNode(),s++)}return xr.currentNode=vr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Qr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,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=Sr(this,e,r),Uo(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xc(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!==R&&Uo(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Bo.createElement(Sc(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Di(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=bc.get(e.strings);return r===void 0&&bc.set(e.strings,r=new Bo(e)),r}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Fo()),this.O(Fo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=uc(e).nextSibling;uc(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Cr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Sr(this,e,r,0),s=!Uo(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=Sr(this,l[i+d],r,d),u===Ee&&(u=this._$AH[d]),s||=!Uo(u)||u!==this._$AH[d],u===R?e=R:e!==R&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},$i=class extends Cr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},Fi=class extends Cr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},Ui=class extends Cr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Sr(this,e,r,0)??R)===Ee)return;let i=this._$AH,n=e===R&&i!==R||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==R&&(i===R||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Bi=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}},Da={M:ka,P:zt,A:La,C:1,L:Cc,R:Di,D:xc,V:Sr,I:Qr,H:Cr,N:Fi,U:Ui,B:$i,F:Bi},oh=Ia.litHtmlPolyfillSupport;oh?.(Bo,Qr),(Ia.litHtmlVersions??=[]).push("3.3.3");var $a=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Qr(e.insertBefore(Fo(),a),a,void 0,r??{})}return n._$AI(t),n};var Fa=globalThis,Rt=class extends nt{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=$a(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Rt._$litElement$=!0,Rt.finalized=!0,Fa.litElementHydrateSupport?.({LitElement:Rt});var ih=Fa.litElementPolyfillSupport;ih?.({LitElement:Rt});var wc={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Fa.litElementVersions??=[]).push("4.2.2");var Iy=!1;var Va={};Z(Va,{customElement:()=>nh,eventOptions:()=>Vi,property:()=>f,query:()=>U,queryAll:()=>Ba,queryAssignedElements:()=>zo,queryAssignedNodes:()=>Ho,queryAsync:()=>lh,standardProperty:()=>Ec,state:()=>T});var nh=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var ah={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:Do},Ec=(t=ah,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="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(i==="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: "+i)};function f(t){return(e,r)=>typeof r=="object"?Ec(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return f({...t,state:!0,attribute:!1})}function Vi(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var mt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function U(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return mt(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return mt(r,i,{get(){return a(this)}})}}var sh;function Ba(t){return(e,r)=>mt(e,r,{get(){return(this.renderRoot??(sh??=document.createDocumentFragment())).querySelectorAll(t)}})}function lh(t){return(e,r)=>mt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function zo(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return mt(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 Ho(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return mt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var za={};Z(za,{repeat:()=>je});var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Je=t=>(...e)=>({_$litDirective$:t,values:e}),at=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:ch}=Da,Oc=t=>t;var _c=t=>t.strings===void 0,Ac=()=>document.createComment(""),eo=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Ac(),n),s=i.insertBefore(Ac(),n);r=new ch(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 u=Oc(d).nextSibling;Oc(i).insertBefore(d,n),d=u}}}return r},or=(t,e,r=t)=>(t._$AI(e,r),t),dh={},Rc=(t,e=dh)=>t._$AH=e,Tc=t=>t._$AH,zi=t=>{t._$AR(),t._$AA.remove()};var Ic=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},je=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(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,i]){let n=Tc(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,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]=or(n[h],a[v]),h++,v++;else if(l[g]===s[w])d[w]=or(n[g],a[w]),g--,w--;else if(l[h]===s[w])d[w]=or(n[h],a[w]),eo(t,d[w+1],n[h]),h++,w--;else if(l[g]===s[v])d[v]=or(n[g],a[v]),eo(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=Ic(s,v,w),m=Ic(l,h,g)),u.has(l[h]))if(u.has(l[g])){let I=m.get(s[v]),E=I!==void 0?n[I]:null;if(E===null){let k=eo(t,n[h]);or(k,a[v]),d[v]=k}else d[v]=or(E,a[v]),eo(t,n[h],E),n[I]=null;v++}else zi(n[g]),g--;else zi(n[h]),h++;for(;v<=w;){let I=eo(t,d[w+1]);or(I,a[v]),d[v++]=I}for(;h<=g;){let I=n[h++];I!==null&&zi(I)}return this.ut=s,Rc(t,d),Ee}});var Ha={};Z(Ha,{classMap:()=>oe});var oe=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.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(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var Wa={};Z(Wa,{styleMap:()=>uh});var kc="important",ph=" !"+kc,uh=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.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 i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}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 i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(ph);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?kc:""):r[i]=n}}return Ee}});var Ga={};Z(Ga,{UnsafeHTMLDirective:()=>to,unsafeHTML:()=>Wo});var to=class extends at{constructor(e){if(super(e),this.it=R,e.type!==Tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||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:[]}}};to.directiveName="unsafeHTML",to.resultType=1;var Wo=Je(to);var ja={};Z(ja,{splitBreadcrumbForMenu:()=>fh});function fh(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var ts={};Z(ts,{CacheRegistry:()=>kt,ClearCacheEvent:()=>qo});var Za={};Z(Za,{CancelablePromise:()=>Hi,CanceledPromiseError:()=>wr,cancelable:()=>Ka});var wr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Hi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new wr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new wr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ka=t=>new Hi((e,r)=>t.then(e).catch(r));var es={};Z(es,{FtNotificationEvent:()=>It,PostResizeEvent:()=>Qa,PreResizeEvent:()=>Ja,WithEventBus:()=>Wt,withEventBus:()=>Ki});var Xa={};Z(Xa,{applyMixinOnce:()=>fe,customElements:()=>q,dateReviver:()=>bh,deepCopy:()=>Qe,deepEqual:()=>Be,delay:()=>Wi,eventPathContainsMatchingElement:()=>jo,everyDeep:()=>yh,flatDeep:()=>Nc,forEachDeep:()=>Mc,getComposedPathTo:()=>Ya,groupBy:()=>vh,hasChanged:()=>yt,ignoreComposingEvents:()=>Ht,last:()=>Ko,minmax:()=>Er,parseDate:()=>Gi,randomId:()=>Zo,someDeep:()=>Dc,unslotText:()=>ji,waitFor:()=>Pc,waitUntil:()=>gh});var qa={};Z(qa,{customElement:()=>Go,dateProperty:()=>mh,isNumber:()=>Lc,jsonProperty:()=>Pe,numberProperty:()=>gt,optionalNumberProperty:()=>hh});var Go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Pe(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return Qe(t);try{return JSON.parse(r)}catch{return Qe(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:yt,...e??{}})}function hh(t){return gt(t)}function gt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return Lc(e)?Er(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Lc(t){return!isNaN(parseFloat(t))}function mh(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 Wi=t=>new Promise(e=>setTimeout(e,t));async function gh(t,e=10,r=2e4){await Pc(async()=>await t()||void 0,e,r)}async function Pc(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await Wi(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Nc(t,e){return t.flatMap(r=>[r,...Nc(e(r),e)])}function Mc(t,e,r){let i=(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)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function Dc(t,e,r){let i=!1;return Mc(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function yh(t,e,r){return!Dc(t,e,(i,n,a,s)=>!r(i,n,a,s))}function bh(...t){return(e,r)=>t.includes(e)?Gi(r):r}function Gi(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,i,n)=>r+i+":"+n),new Date(t)}function xh(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,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Be(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Be(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();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(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!Be(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Be(t,e){try{return xh(t,e)}catch{return!1}}function yt(t,e){return!Be(t,e)}function jo(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Er(t,e,r){return Math.min(Math.max(t,e),r)}function Ko(t){return t[t.length-1]}function ji(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>ji(e)).join(""):t?.textContent||""}function Ya(t){let e=[],r=i=>{i.stopPropagation(),e=i.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 Qe(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Zo(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function fe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Ht(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function q(t){for(let[e,r]of Object.entries(t))Go(e)(r)}function vh(t,e){var r,i;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[i=n(s)])!==null&&r!==void 0?r:a[i]=[]).push(s);return a}var It=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Ja=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Qa=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Ki=fe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Wt=class extends Ki(Object){};var qo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},kt=class extends Wt{constructor(){super(...arguments),this.content={}}register(e,r,i=!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:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new qo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new qo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){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=Ka(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var 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 ns={};Z(ns,{ClusteringHelper:()=>ir,formatHierarchicalValues:()=>is});var os={};Z(os,{accessBreadcrumb:()=>Sh,accessResult:()=>ro,accessResultId:()=>rs,accessResultUrl:()=>Yo});function ro(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function rs(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.contentId}function Yo(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.viewerUrl}function Sh(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 is(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var ir=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){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)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=ro(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];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,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(is(l)),s.push(is(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=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).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,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(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 i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.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 i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var as={};Z(as,{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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...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 i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ds={};Z(ds,{designSystemVariables:()=>S});var cs={};Z(cs,{DesignSystemFamily:()=>Xo,DesignSystemSize:()=>Jo,FtCssVariableFactory:()=>o,badge:()=>Dh,banner:()=>Mh,button:()=>Eh,card:()=>Oh,chart:()=>Jh,checkbox:()=>Rh,chip:()=>Lh,chipChoice:()=>kh,chipGroup:()=>Ph,collapsible:()=>Yh,combobox:()=>Zh,dateRangePicker:()=>im,drawer:()=>Hh,eventCard:()=>Ah,floatingMenu:()=>Kh,foundation:()=>c,link:()=>Nh,modal:()=>Vh,notice:()=>em,notification:()=>rm,pageDesigner:()=>Qh,pageFooter:()=>Uh,pageHeader:()=>Fh,pageLayout:()=>Bh,popover:()=>qh,radio:()=>Th,reorderableList:()=>zh,resolveFamilyClass:()=>ss,resolveSizeClass:()=>ls,semantic:()=>p,setVariable:()=>A,switch_:()=>Xh,table:()=>Ih,tabs:()=>Wh,textArea:()=>jh,textInput:()=>Gh,titleBreadcrumb:()=>$h,toggle:()=>tm,tooltip:()=>om,treeList:()=>_h,typographies:()=>Ch,typographyBody1Medium:()=>zc,typographyBody1Regular:()=>Vc,typographyBody1Semibold:()=>Hc,typographyBody2Medium:()=>Gc,typographyBody2MediumUnderline:()=>jc,typographyBody2Regular:()=>Wc,typographyBody2Semibold:()=>Kc,typographyCaption1Medium:()=>Zc,typographyCaption1Semibold:()=>qc,typographyCaption2Bold:()=>Jc,typographyCaption2Medium:()=>Yc,typographyCaption2Semibold:()=>Xc,typographyDisplay:()=>$c,typographyTitle1:()=>Fc,typographyTitle2:()=>Uc,typographyTitle3:()=>Bc,typographyVariants:()=>wh});var nr=t=>typeof t=="string"?Vt(t):t,o=class{static create(e,r,i,n){let a=l=>nr(l??n),s=O`var(${nr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${nr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=O`var(${nr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${nr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=O`var(${nr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>O`var(${nr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function A(t,e){return nr(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},$c={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Fc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Uc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Bc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Vc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},zc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Hc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Kc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Zc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Yc={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Xc={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Jc={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Ch={display:$c,"title-1":Fc,"title-2":Uc,"title-3":Bc,"body-1-regular":Vc,"body-1-medium":zc,"body-1-semibold":Hc,"body-2-regular":Wc,"body-2-medium":Gc,"body-2-medium-underline":jc,"body-2-semibold":Kc,"caption-1-medium":Zc,"caption-1-semibold":qc,"caption-2-medium":Yc,"caption-2-semibold":Xc,"caption-2-bold":Jc},wh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Eh={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var Oh={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Ah={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",p.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize4),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",p.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",p.backgroundGlobalSurface)};var _h={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Rh={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Th={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Ih={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var kh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Lh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var Ph={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var Nh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Mh={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var Dh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var $h={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Fh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Uh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Bh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var Vh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var zh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Hh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var Wh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Gh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var jh={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Kh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Zh={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var qh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Yh={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Xh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Jh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Qh={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var em={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var tm={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var rm={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var om={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var im={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Xo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Xo||(Xo={}));var Jo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Jo||(Jo={}));function ss(t){return`ftds--family-${t}`}function ls(t){return`ftds--size-${t}`}var S={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ps={};Z(ps,{DynamicImporter:()=>Zi,dynamicImporter:()=>nm});var Zi=class{async import(e){if(e)return import(e)}},nm=new Zi;var Es={};Z(Es,{computeOffsetAutoPosition:()=>ws,computeOffsetPosition:()=>ii});var ed=["top","right","bottom","left"],Qc=["start","end"],fs=ed.reduce((t,e)=>t.concat(e,e+"-"+Qc[0],e+"-"+Qc[1]),[]),Or=Math.min,Lt=Math.max,Qo=Math.round;var Pt=t=>({x:t,y:t}),am={left:"right",right:"left",bottom:"top",top:"bottom"};function td(t,e,r){return Lt(t,Or(e,r))}function oo(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function Nt(t){return t.split("-")[1]}function hs(t){return t==="x"?"y":"x"}function ms(t){return t==="y"?"height":"width"}function io(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function gs(t){return hs(io(t))}function rd(t,e,r){r===void 0&&(r=!1);let i=Nt(t),n=gs(t),a=ms(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=us(s)),[s,us(s)]}function od(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function us(t){let e=Ar(t);return am[e]+t.slice(e.length)}function sm(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function id(t){return typeof t!="number"?sm(t):{top:t,right:t,bottom:t,left:t}}function _r(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function nd(t,e,r){let{reference:i,floating:n}=t,a=io(e),s=gs(e),l=ms(s),d=Ar(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let w=Nt(e);return w&&(v[s]+=g*(w==="end"?1:-1)*(r&&u?-1:1)),v}async function ad(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=oo(e,t),w=id(v),E=l[g?h==="floating"?"reference":"floating":h],k=_r(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),j=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},C=_r(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:j,offsetParent:y,strategy:d}):j);return{top:(k.top-C.top+w.top)/b.y,bottom:(C.bottom-k.bottom+w.bottom)/b.y,left:(k.left-C.left+w.left)/b.x,right:(C.right-k.right+w.right)/b.x}}var lm=50,sd=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ad},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=nd(u,i,d),g=i,v=0,w={};for(let I=0;I<a.length;I++){let E=a[I];if(!E)continue;let{name:k,fn:j}=E,{x:y,y:b,data:C,reset:M}=await j({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:w,rects:u,platform:l,elements:{reference:t,floating:e}});m=y??m,h=b??h,w[k]={...w[k],...C},M&&v<lm&&(v++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(u=M.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):M.rects),{x:m,y:h}=nd(u,g,d)),I=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:w}};function cm(t,e,r){return(t?[...r.filter(n=>Nt(n)===t),...r.filter(n=>Nt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?Nt(n)===t||(e?od(n)!==n:!1):!0)}var ld=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=fs,autoAlignment:v=!0,...w}=oo(t,e),I=h!==void 0||g===fs?cm(h||null,v,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,k=I[E];if(k==null)return{};if(l!==k)return{reset:{placement:I[0]}};let j=await d.detectOverflow(e,w),y=rd(k,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),b=[j[Ar(k)],j[y[0]],j[y[1]]],C=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:b}],M=I[E+1];if(M)return{data:{index:E+1,overflows:C},reset:{placement:M}};let D=C.map(L=>{let z=Nt(L.placement);return[L.placement,z&&m?L.overflows.slice(0,2).reduce((ue,_t)=>ue+_t,0):L.overflows[0],L.overflows]}).sort((L,z)=>L[1]-z[1]),X=((n=D.filter(L=>L[2].slice(0,Nt(L[0])?2:3).every(z=>z<=0))[0])==null?void 0:n[0])||D[0][0];return X!==l?{data:{index:E+1,overflows:C},reset:{placement:X}}:{}}}};var dm=new Set(["left","top"]);async function pm(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Ar(r),l=Nt(r),d=io(r)==="y",u=dm.has(s)?-1:1,m=a&&d?-1:1,h=oo(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*u}:{x:g*u,y:v*m}}var cd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;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)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},dd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:j=>{let{x:y,y:b}=j;return{x:y,y:b}}},...u}=oo(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=io(n),v=hs(g),w=m[v],I=m[g],E=(j,y)=>td(y+h[j==="y"?"top":"left"],y,y-h[j==="y"?"bottom":"right"]);s&&(w=E(v,w)),l&&(I=E(g,I));let k=d.fn({...e,[v]:w,[g]:I});return{...k,data:{x:k.x-r,y:k.y-i,enabled:{[v]:s,[g]:l}}}}}};var pd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=oo(t,e),d=await n.detectOverflow(e,l),u=Ar(r),m=Nt(r),h=io(r)==="y",{width:g,height:v}=i.floating,w,I;u==="top"||u==="bottom"?(w=u,I=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(I=u,w=m==="end"?"top":"bottom");let E=v-d.top-d.bottom,k=g-d.left-d.right,j=Or(v-d[w],E),y=Or(g-d[I],k),b=e.middlewareData.shift,C=!b,M=j,D=y;b!=null&&b.enabled.x&&(D=k),b!=null&&b.enabled.y&&(M=E),C&&!m&&(h?D=g-2*Lt(d.left,d.right):M=v-2*Lt(d.top,d.bottom)),await s({...e,availableWidth:D,availableHeight:M});let P=await n.getDimensions(a.floating);return g!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window<"u"}function Tr(t){return fd(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(fd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fd(t){return Yi()?t instanceof Node||t instanceof Ke(t).Node:!1}function bt(t){return Yi()?t instanceof Element||t instanceof Ke(t).Element:!1}function jt(t){return Yi()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function ud(t){return!Yi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function ei(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=xt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function hd(t){return/^(table|td|th)$/.test(Tr(t))}function ti(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var um=/transform|translate|scale|rotate|perspective|filter/,fm=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",ys;function no(t){let e=bt(t)?xt(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!Xi()&&(Rr(e.backdropFilter)||Rr(e.filter))||um.test(e.willChange||"")||fm.test(e.contain||"")}function md(t){let e=ar(t);for(;jt(e)&&!ao(e);){if(no(e))return e;if(ti(e))return null;e=ar(e)}return null}function Xi(){return ys==null&&(ys=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ys}function ao(t){return/^(html|body|#document)$/.test(Tr(t))}function xt(t){return Ke(t).getComputedStyle(t)}function ri(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ar(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ud(t)&&t.host||Gt(t);return ud(e)?e.host:e}function gd(t){let e=ar(t);return ao(e)?(t.ownerDocument||t).body:jt(e)&&ei(e)?e:gd(e)}function qi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=gd(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ke(n);if(a){let l=Ji(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&r?qi(l):[])}else return e.concat(n,qi(n,[],r))}function Ji(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xd(t){let e=xt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=Qo(r)!==a||Qo(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function vd(t){return bt(t)?t:t.contextElement}function so(t){let e=vd(t);if(!jt(e))return Pt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=xd(e),s=(a?Qo(r.width):r.width)/i,l=(a?Qo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var hm=Pt(0);function Sd(t){let e=Ke(t);return!Xi()||!e.visualViewport?hm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function mm(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function oi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=vd(t),s=Pt(1);e&&(i?bt(i)&&(s=so(i)):s=so(t));let l=mm(a,r,i)?Sd(a):Pt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Ke(a),v=bt(i)?Ke(i):i,w=g,I=Ji(w);for(;I&&v!==w;){let E=so(I),k=I.getBoundingClientRect(),j=xt(I),y=k.left+(I.clientLeft+parseFloat(j.paddingLeft))*E.x,b=k.top+(I.clientTop+parseFloat(j.paddingTop))*E.y;d*=E.x,u*=E.y,m*=E.x,h*=E.y,d+=y,u+=b,w=Ke(I),I=Ji(w)}}return _r({width:m,height:h,x:d,y:u})}function Qi(t,e){let r=ri(t).scrollLeft;return e?e.left+r:oi(Gt(t)).left+r}function Cd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Qi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function gm(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=Gt(i),l=e?ti(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=Pt(1),m=Pt(0),h=jt(i);if((h||!a)&&((Tr(i)!=="body"||ei(s))&&(d=ri(i)),h)){let v=oi(i);u=so(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?Cd(s,d):Pt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function ym(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function bm(t){let e=ri(t),r=t.ownerDocument.body,i=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Qi(t),s=-e.scrollTop;return xt(r).direction==="rtl"&&(a+=Lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var xm=25;function vm(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),a=Gt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!Xi()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(Qi(a)<=0){let g=a.ownerDocument,v=g.body,w=getComputedStyle(v),I=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-I),k=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;k<=xm&&(l-=k)}return{width:l,height:d,x:u,y:m}}function Sm(t,e){let r=oi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=so(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function yd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=vm(t,r,e);else if(e==="document")i=bm(Gt(t));else if(bt(e))i=Sm(e,r);else{let n=Sd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return _r(i)}function Cm(t,e){let r=e.get(t);if(r)return r;let i=qi(t,[],!1).filter(l=>bt(l)&&Tr(l)!=="body"),n=null,a=xt(t).position==="fixed",s=a?ar(t):t;for(;bt(s)&&!ao(s);){let l=xt(s),d=no(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=ar(s)}return e.set(t,i),i}function wm(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ti(e)?[]:Cm(e,this._c):[].concat(r),i],l=yd(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=yd(e,s[g],n);d=Lt(v.top,d),u=Or(v.right,u),m=Or(v.bottom,m),h=Lt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function Em(t){let{width:e,height:r}=xd(t);return{width:e,height:r}}function Om(t,e,r){let i=jt(e),n=Gt(e),a=r==="fixed",s=oi(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Pt(0);if((i||!a)&&((Tr(e)!=="body"||ei(n))&&(l=ri(e)),i)){let g=oi(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Qi(n));let u=n&&!i&&!a?Cd(n,l):Pt(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function bs(t){return xt(t).position==="static"}function bd(t,e){if(!jt(t)||xt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Gt(t)===r&&(r=r.ownerDocument.body),r}function wd(t,e){let r=Ke(t);if(ti(t))return r;if(!jt(t)){let n=ar(t);for(;n&&!ao(n);){if(bt(n)&&!bs(n))return n;n=ar(n)}return r}let i=bd(t,e);for(;i&&hd(i)&&bs(i);)i=bd(i,e);return i&&ao(i)&&bs(i)&&!no(i)?r:i||md(t)||r}var Am=async function(t){let e=this.getOffsetParent||wd,r=this.getDimensions,i=await r(t.floating);return{reference:Om(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _m(t){return xt(t).direction==="rtl"}var lo={convertOffsetParentRelativeRectToViewportRelativeRect:gm,getDocumentElement:Gt,getClippingRect:wm,getOffsetParent:wd,getElementRects:Am,getClientRects:ym,getDimensions:Em,getScale:so,isElement:bt,isRTL:_m};var Ed=cd,xs=ld,Od=dd;var Ad=pd;var vs=(t,e,r)=>{let i=new Map,n=r??{},a={...lo,...n.platform,_c:i};return sd(t,e,{...n,platform:a})};function Cs(t){return Rm(t)}function Ss(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Rm(t){for(let e=t;e;e=Ss(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ss(t);e;e=Ss(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||no(r)||e.tagName==="BODY"))return e}return null}async function ii(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},vs(t,e,{strategy:i.strategy,platform:{...lo,getOffsetParent:n=>lo.getOffsetParent(n,Cs)},middleware:[Od({crossAxis:!0}),xs({allowedPlacements:[i.placement]})]})}async function ws(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,vs(t,e,{placement:l,strategy:n,platform:{...lo,getOffsetParent:u=>lo.getOffsetParent(u,Cs)},middleware:[Ed(s??4),xs({allowedPlacements:i}),Ad({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}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 Os={};Z(Os,{isSlotEmptyOrWithoutContent:()=>Tm});var Tm=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var ks={};Z(ks,{FtdsBase:()=>Is,toFtdsBase:()=>Pd});var Ts={};Z(Ts,{ExportpartsUpdatedEvent:()=>Ir,FtLitElement:()=>F});var As={};Z(As,{ScopedRegistryLitElement:()=>ni});var ni=class extends Rt{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},i=this.renderOptions.creationScope=this.attachShadow(r);return No(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Go(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 Rs={};Z(Rs,{shadowQuerySelector:()=>_s,shadowQuerySelectorAll:()=>Im});function _s(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Im(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var co=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Id,_d=Symbol("constructorPrototype"),Rd=Symbol("constructorName"),kd=Symbol("exportpartsDebouncer"),Td=Symbol("dynamicDependenciesLoaded"),Ir=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ir.eventName="exportparts-updated";var F=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Id]=new Ne(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[kd].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[Rd]=this.constructor.name,this[_d]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rd]&&Object.setPrototypeOf(this,this[_d])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Td]||(r[Td]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ir.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ir.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 Ir)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=_s(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],w=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],I=[...v,...w].filter(d).map(E=>E.trim());for(let E of I)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Id=kd;co([f()],F.prototype,"exportpartsPrefix",void 0);co([Pe([])],F.prototype,"exportpartsPrefixes",void 0);co([f({reflect:!0})],F.prototype,"exportparts",void 0);co([f()],F.prototype,"customStylesheet",void 0);co([f()],F.prototype,"elementToFocus",void 0);co([T()],F.prototype,"useAdoptedStyleSheets",void 0);var Ld=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Pd=fe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Jo.medium,this.family=Xo.neutral}getDesignSystemBaseClasses(){return{[ss(this.family)]:!0,[ls(this.size)]:!0}}}return Ld([f()],e.prototype,"size",void 0),Ld([f()],e.prototype,"family",void 0),e}),Is=class extends Pd(F){};var Nd={};var Ns={};Z(Ns,{highlightHtml:()=>Ps,highlightHtmlColorCssVariable:()=>Md,highlightHtmlStyles:()=>Lm});var kr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,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(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ai=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 kr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[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,i=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${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,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,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.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",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.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=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.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)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.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:i})})}matchesExclude(e){return kr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-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,i,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 u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,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)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,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 i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let 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,i=>{this.unwrapMatches(i)},i=>{let n=kr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ls(t){let e=new ai(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var km=Ls,Md=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Lm=O`
1
+ "use strict";(()=>{var Zf=Object.defineProperty;var Z=(t,e)=>{for(var r in e)Zf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(y,b){if(y=y.toLowerCase(),this._getDefinition(y)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${y}" has already been used with this registry`);if(this._definitionsByClass.get(b)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=b.prototype.attributeChangedCallback,M=new Set(b.observedAttributes||[]);g(b,M,C);let $={elementClass:b,connectedCallback:b.prototype.connectedCallback,disconnectedCallback:b.prototype.disconnectedCallback,adoptedCallback:b.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:b.formAssociated,formAssociatedCallback:b.prototype.formAssociatedCallback,formDisabledCallback:b.prototype.formDisabledCallback,formResetCallback:b.prototype.formResetCallback,formStateRestoreCallback:b.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(y,$),this._definitionsByClass.set(b,$);let N=r.call(i,y);N||(N=h(y),e.call(i,y,N)),this===window.customElements&&(s.set(b,$),$.standInClass=N);let X=this._awaitingUpgrade.get(y);if(X){this._awaitingUpgrade.delete(y);for(let z of X)a.delete(z),w(z,$,!0)}let P=this._whenDefinedPromises.get(y);return P!==void 0&&(P.resolve(b),this._whenDefinedPromises.delete(y)),b}upgrade(){E.push(this),i.upgrade.apply(i,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let b=this._getDefinition(y);if(b!==void 0)return Promise.resolve(b.elementClass);let C=this._whenDefinedPromises.get(y);return C===void 0&&(C={},C.promise=new Promise(M=>C.resolve=M),this._whenDefinedPromises.set(y,C)),C.promise}_upgradeWhenDefined(y,b,C){let M=this._awaitingUpgrade.get(b);M||this._awaitingUpgrade.set(b,M=new Set),C?M.add(y):M.delete(y)}};let d;window.HTMLElement=function(){let b=d;if(b)return d=void 0,b;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 b=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(b,this.constructor.prototype),n.set(b,C),b},window.HTMLElement.prototype=t.prototype;let u=y=>y===document||y instanceof ShadowRoot,m=y=>{let b=y.getRootNode();if(!u(b)){let C=E[E.length-1];if(C instanceof CustomElementRegistry)return C;b=C.getRootNode(),u(b)||(b=l.get(b)?.getRootNode()||document)}return b.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let M=m(C)||window.customElements,$=M._getDefinition(y);return $?w(C,$):a.set(C,M),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!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=(y,b,C)=>{if(b.size===0||C===void 0)return;let M=y.prototype.setAttribute;M&&(y.prototype.setAttribute=function(X,P){let z=X.toLowerCase();if(b.has(z)){let ue=this.getAttribute(z);M.call(this,z,P),C.call(this,z,ue,P)}else M.call(this,z,P)});let $=y.prototype.removeAttribute;$&&(y.prototype.removeAttribute=function(X){let P=X.toLowerCase();if(b.has(P)){let z=this.getAttribute(P);$.call(this,P),C.call(this,P,z,null)}else $.call(this,P)});let N=y.prototype.toggleAttribute;N&&(y.prototype.toggleAttribute=function(X,P){let z=X.toLowerCase();if(b.has(z)){let ue=this.getAttribute(z);N.call(this,z,P);let Rt=this.getAttribute(z);C.call(this,z,ue,Rt)}else N.call(this,z,P)})},v=y=>{let b=Object.getPrototypeOf(y);if(b!==window.HTMLElement)return b===t?Object.setPrototypeOf(y,window.HTMLElement):v(b)},w=(y,b,C=!1)=>{Object.setPrototypeOf(y,b.elementClass.prototype),n.set(y,b),d=y;try{new b.elementClass}catch{v(b.elementClass),new b.elementClass}b.attributeChangedCallback&&b.observedAttributes.forEach(M=>{y.hasAttribute(M)&&b.attributeChangedCallback.call(y,M,null,y.getAttribute(M))}),C&&b.connectedCallback&&y.isConnected&&b.connectedCallback.call(y)},k=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let b=k.apply(this,arguments);return y.customElements&&(b.customElements=y.customElements),b};let E=[document],L=(y,b,C=void 0)=>{let M=(C?Object.getPrototypeOf(C):y.prototype)[b];y.prototype[b]=function(){E.push(this);let $=M.apply(C||this,arguments);return $!==void 0&&l.set($,this),E.pop(),$}};L(ShadowRoot,"createElement",document),L(ShadowRoot,"importNode",document),L(Element,"insertAdjacentHTML");let j=(y,b)=>{let C=Object.getOwnPropertyDescriptor(y.prototype,b);Object.defineProperty(y.prototype,b,{...C,set(M){E.push(this),C.set.call(this,M),E.pop()}})};if(j(Element,"innerHTML"),j(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,b=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...X){let P=b.call(this,...X);return y.set(P,this),P},C.forEach(X=>{let P=window.ElementInternals.prototype,z=P[X];P[X]=function(...ue){let Rt=y.get(this);if(n.get(Rt).formAssociated===!0)return z?.call(this,...ue);throw new DOMException(`Failed to execute ${z} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(P){super(...P),this._elements=P}get value(){return this._elements.find(P=>P.checked===!0)?.value||""}}class ${constructor(P){let z=new Map;P.forEach((ue,Rt)=>{let Ta=ue.getAttribute("name"),cc=z.get(Ta)||[];this[+Rt]=ue,cc.push(ue),z.set(Ta,cc)}),this.length=P.length,z.forEach((ue,Rt)=>{ue&&(ue.length===1?this[Rt]=ue[0]:this[Rt]=new M(ue))})}namedItem(P){return this[P]}}let N=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let X=N.get.call(this,[]),P=[];for(let z of X){let ue=n.get(z);(!ue||ue.formAssociated===!0)&&P.push(z)}return new $(P)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var Va={};Z(Va,{CSSResult:()=>ro,LitElement:()=>Tt,ReactiveElement:()=>st,_$LE:()=>Ec,_$LH:()=>Fa,adoptStyles:()=>Mo,css:()=>O,defaultConverter:()=>oo,getCompatibleStyle:()=>Di,html:()=>x,isServer:()=>Ly,mathml:()=>$a,noChange:()=>Ee,notEqual:()=>Fo,nothing:()=>R,render:()=>Ua,supportsAdoptingStyleSheets:()=>Do,svg:()=>Ho,unsafeCSS:()=>Vt});var Ni=globalThis,Do=Ni.ShadowRoot&&(Ni.ShadyCSS===void 0||Ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ka=Symbol(),dc=new WeakMap,ro=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==ka)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(Do&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=dc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&dc.set(r,e))}return e}toString(){return this.cssText}},Vt=t=>new ro(typeof t=="string"?t:t+"",void 0,ka),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new ro(r,t,ka)},Mo=(t,e)=>{if(Do)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ni.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Di=Do?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Vt(r)})(t):t;var{is:qf,defineProperty:Yf,getOwnPropertyDescriptor:Xf,getOwnPropertyNames:Jf,getOwnPropertySymbols:Qf,getPrototypeOf:eh}=Object,Mi=globalThis,pc=Mi.trustedTypes,th=pc?pc.emptyScript:"",rh=Mi.reactiveElementPolyfillSupport,$o=(t,e)=>t,oo={toAttribute(t,e){switch(e){case Boolean:t=t?th: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}},Fo=(t,e)=>!qf(t,e),uc={attribute:!0,type:String,converter:oo,reflect:!1,useDefault:!1,hasChanged:Fo};Symbol.metadata??=Symbol("metadata"),Mi.litPropertyMetadata??=new WeakMap;var st=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=uc){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 i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Yf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Xf(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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??uc}static _$Ei(){if(this.hasOwnProperty($o("elementProperties")))return;let e=eh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty($o("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($o("properties"))){let r=this.properties,i=[...Jf(r),...Qf(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Di(n))}else e!==void 0&&r.push(Di(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mo(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,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:oo).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:oo;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??Fo)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(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||i||(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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}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){}};st.elementStyles=[],st.shadowRootOptions={mode:"open"},st[$o("elementProperties")]=new Map,st[$o("finalized")]=new Map,rh?.({ReactiveElement:st}),(Mi.reactiveElementVersions??=[]).push("2.1.2");var Ia=globalThis,fc=t=>t,$i=Ia.trustedTypes,hc=$i?$i.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pa="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Na="?"+zt,oh=`<${Na}>`,vr=document,Bo=()=>vr.createComment(""),Vo=t=>t===null||typeof t!="object"&&typeof t!="function",Da=Array.isArray,vc=t=>Da(t)||typeof t?.[Symbol.iterator]=="function",La=`[
2
+ \f\r]`,Uo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mc=/-->/g,gc=/>/g,br=RegExp(`>|${La}(?:([^\\s"'>=/]+)(${La}*=${La}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),yc=/'/g,bc=/"/g,Sc=/^(?:script|style|textarea|title)$/i,Ma=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Ma(1),Ho=Ma(2),$a=Ma(3),Ee=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),xc=new WeakMap,xr=vr.createTreeWalker(vr,129);function Cc(t,e){if(!Da(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hc!==void 0?hc.createHTML(e):e}var wc=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Uo;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===Uo?m[1]==="!--"?s=mc:m[1]!==void 0?s=gc:m[2]!==void 0?(Sc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=br):m[3]!==void 0&&(s=br):s===br?m[0]===">"?(s=n??Uo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?br:m[3]==='"'?bc:yc):s===bc||s===yc?s=br:s===mc||s===gc?s=Uo:(s=br,n=void 0);let v=s===br&&t[l+1].startsWith("/>")?" ":"";a+=s===Uo?d+oh:h>=0?(i.push(u),d.slice(0,h)+Pa+d.slice(h)+zt+v):d+zt+(h===-2?l:v)}return[Cc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},zo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=wc(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=xr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Pa)){let g=m[s++],v=n.getAttribute(h).split(zt),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:w[2],strings:v,ctor:w[1]==="."?Ui:w[1]==="?"?Bi:w[1]==="@"?Vi:Cr}),n.removeAttribute(h)}else h.startsWith(zt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Sc.test(n.tagName)){let h=n.textContent.split(zt),g=h.length-1;if(g>0){n.textContent=$i?$i.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Bo()),xr.nextNode(),d.push({type:2,index:++a});n.append(h[g],Bo())}}}else if(n.nodeType===8)if(n.data===Na)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 i=vr.createElement("template");return i.innerHTML=e,i}};function Sr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Vo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,i)),e}var Fi=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:i}=this._$AD,n=(e?.creationScope??vr).importNode(r,!0);xr.currentNode=n;let a=xr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new io(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new zi(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=xr.nextNode(),s++)}return xr.currentNode=vr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},io=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,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=Sr(this,e,r),Vo(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vc(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!==R&&Vo(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=zo.createElement(Cc(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Fi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=xc.get(e.strings);return r===void 0&&xc.set(e.strings,r=new zo(e)),r}k(e){Da(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Bo()),this.O(Bo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=fc(e).nextSibling;fc(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Cr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Sr(this,e,r,0),s=!Vo(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=Sr(this,l[i+d],r,d),u===Ee&&(u=this._$AH[d]),s||=!Vo(u)||u!==this._$AH[d],u===R?e=R:e!==R&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ui=class extends Cr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},Bi=class extends Cr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},Vi=class extends Cr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Sr(this,e,r,0)??R)===Ee)return;let i=this._$AH,n=e===R&&i!==R||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==R&&(i===R||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zi=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}},Fa={M:Pa,P:zt,A:Na,C:1,L:wc,R:Fi,D:vc,V:Sr,I:io,H:Cr,N:Bi,U:Vi,B:Ui,F:zi},ih=Ia.litHtmlPolyfillSupport;ih?.(zo,io),(Ia.litHtmlVersions??=[]).push("3.3.3");var Ua=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new io(e.insertBefore(Bo(),a),a,void 0,r??{})}return n._$AI(t),n};var Ba=globalThis,Tt=class extends st{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=Ua(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Tt._$litElement$=!0,Tt.finalized=!0,Ba.litElementHydrateSupport?.({LitElement:Tt});var nh=Ba.litElementPolyfillSupport;nh?.({LitElement:Tt});var Ec={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Ba.litElementVersions??=[]).push("4.2.2");var Ly=!1;var Ha={};Z(Ha,{customElement:()=>ah,eventOptions:()=>Hi,property:()=>f,query:()=>U,queryAll:()=>za,queryAssignedElements:()=>Wo,queryAssignedNodes:()=>Go,queryAsync:()=>ch,standardProperty:()=>Oc,state:()=>T});var ah=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var sh={attribute:!0,type:String,converter:oo,reflect:!1,hasChanged:Fo},Oc=(t=sh,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="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(i==="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: "+i)};function f(t){return(e,r)=>typeof r=="object"?Oc(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return f({...t,state:!0,attribute:!1})}function Hi(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var gt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function U(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return gt(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return gt(r,i,{get(){return a(this)}})}}var lh;function za(t){return(e,r)=>gt(e,r,{get(){return(this.renderRoot??(lh??=document.createDocumentFragment())).querySelectorAll(t)}})}function ch(t){return(e,r)=>gt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Wo(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return gt(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 Go(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return gt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Wa={};Z(Wa,{repeat:()=>je});var kt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qe=t=>(...e)=>({_$litDirective$:t,values:e}),lt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:dh}=Fa,Ac=t=>t;var Rc=t=>t.strings===void 0,_c=()=>document.createComment(""),no=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(_c(),n),s=i.insertBefore(_c(),n);r=new dh(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 u=Ac(d).nextSibling;Ac(i).insertBefore(d,n),d=u}}}return r},nr=(t,e,r=t)=>(t._$AI(e,r),t),ph={},Tc=(t,e=ph)=>t._$AH=e,kc=t=>t._$AH,Wi=t=>{t._$AR(),t._$AA.remove()};var Lc=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},je=Qe(class extends lt{constructor(t){if(super(t),t.type!==kt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(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,i]){let n=kc(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,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]=nr(n[h],a[v]),h++,v++;else if(l[g]===s[w])d[w]=nr(n[g],a[w]),g--,w--;else if(l[h]===s[w])d[w]=nr(n[h],a[w]),no(t,d[w+1],n[h]),h++,w--;else if(l[g]===s[v])d[v]=nr(n[g],a[v]),no(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=Lc(s,v,w),m=Lc(l,h,g)),u.has(l[h]))if(u.has(l[g])){let k=m.get(s[v]),E=k!==void 0?n[k]:null;if(E===null){let L=no(t,n[h]);nr(L,a[v]),d[v]=L}else d[v]=nr(E,a[v]),no(t,n[h],E),n[k]=null;v++}else Wi(n[g]),g--;else Wi(n[h]),h++;for(;v<=w;){let k=no(t,d[w+1]);nr(k,a[v]),d[v++]=k}for(;h<=g;){let k=n[h++];k!==null&&Wi(k)}return this.ut=s,Tc(t,d),Ee}});var Ga={};Z(Ga,{classMap:()=>oe});var oe=Qe(class extends lt{constructor(t){if(super(t),t.type!==kt.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(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var ja={};Z(ja,{styleMap:()=>fh});var Ic="important",uh=" !"+Ic,fh=Qe(class extends lt{constructor(t){if(super(t),t.type!==kt.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 i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}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 i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(uh);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Ic:""):r[i]=n}}return Ee}});var Ka={};Z(Ka,{UnsafeHTMLDirective:()=>ao,unsafeHTML:()=>jo});var ao=class extends lt{constructor(e){if(super(e),this.it=R,e.type!==kt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||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:[]}}};ao.directiveName="unsafeHTML",ao.resultType=1;var jo=Qe(ao);var Za={};Z(Za,{splitBreadcrumbForMenu:()=>hh});function hh(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var rs={};Z(rs,{CacheRegistry:()=>It,ClearCacheEvent:()=>Jo});var qa={};Z(qa,{CancelablePromise:()=>Gi,CanceledPromiseError:()=>wr,cancelable:()=>Ko});var wr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Gi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new wr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new wr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ko=t=>new Gi((e,r)=>t.then(e).catch(r));var ts={};Z(ts,{FtNotificationEvent:()=>Lt,PostResizeEvent:()=>es,PreResizeEvent:()=>Qa,WithEventBus:()=>Wt,withEventBus:()=>qi});var Ja={};Z(Ja,{applyMixinOnce:()=>fe,customElements:()=>q,dateReviver:()=>xh,deepCopy:()=>et,deepEqual:()=>Ve,delay:()=>ji,eventPathContainsMatchingElement:()=>qo,everyDeep:()=>bh,flatDeep:()=>Dc,forEachDeep:()=>Mc,getComposedPathTo:()=>Xa,groupBy:()=>Sh,hasChanged:()=>bt,ignoreComposingEvents:()=>Ht,last:()=>Yo,minmax:()=>Er,parseDate:()=>Ki,randomId:()=>Xo,someDeep:()=>$c,unslotText:()=>Zi,waitFor:()=>Nc,waitUntil:()=>yh});var Ya={};Z(Ya,{customElement:()=>Zo,dateProperty:()=>gh,isNumber:()=>Pc,jsonProperty:()=>Pe,numberProperty:()=>yt,optionalNumberProperty:()=>mh});var Zo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Pe(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return et(t);try{return JSON.parse(r)}catch{return et(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:bt,...e??{}})}function mh(t){return yt(t)}function yt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return Pc(e)?Er(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Pc(t){return!isNaN(parseFloat(t))}function gh(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 ji=t=>new Promise(e=>setTimeout(e,t));async function yh(t,e=10,r=2e4){await Nc(async()=>await t()||void 0,e,r)}async function Nc(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await ji(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Dc(t,e){return t.flatMap(r=>[r,...Dc(e(r),e)])}function Mc(t,e,r){let i=(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)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function $c(t,e,r){let i=!1;return Mc(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function bh(t,e,r){return!$c(t,e,(i,n,a,s)=>!r(i,n,a,s))}function xh(...t){return(e,r)=>t.includes(e)?Ki(r):r}function Ki(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,i,n)=>r+i+":"+n),new Date(t)}function vh(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,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ve(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ve(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();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(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!Ve(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ve(t,e){try{return vh(t,e)}catch{return!1}}function bt(t,e){return!Ve(t,e)}function qo(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Er(t,e,r){return Math.min(Math.max(t,e),r)}function Yo(t){return t[t.length-1]}function Zi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Zi(e)).join(""):t?.textContent||""}function Xa(t){let e=[],r=i=>{i.stopPropagation(),e=i.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 et(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Xo(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function fe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Ht(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function q(t){for(let[e,r]of Object.entries(t))Zo(e)(r)}function Sh(t,e){var r,i;let n=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[i=n(s)])!==null&&r!==void 0?r:a[i]=[]).push(s);return a}var Lt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Qa=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},es=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},qi=fe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Wt=class extends qi(Object){};var Jo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},It=class extends Wt{constructor(){super(...arguments),this.content={}}register(e,r,i=!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:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Jo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Jo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){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=Ko(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var 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 as={};Z(as,{ClusteringHelper:()=>ar,formatHierarchicalValues:()=>ns});var is={};Z(is,{accessBreadcrumb:()=>Ch,accessResult:()=>so,accessResultId:()=>os,accessResultUrl:()=>Qo});function so(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function os(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.contentId}function Qo(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.viewerUrl}function Ch(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 ns(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var ar=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){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)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=so(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];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,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ns(l)),s.push(ns(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=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).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,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(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 i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.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 i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var ss={};Z(ss,{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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...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 i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ps={};Z(ps,{designSystemVariables:()=>S});var ds={};Z(ds,{DesignSystemFamily:()=>ei,DesignSystemSize:()=>ti,FtCssVariableFactory:()=>o,badge:()=>$h,banner:()=>Mh,button:()=>Oh,card:()=>Ah,chart:()=>Qh,checkbox:()=>Th,chip:()=>Ph,chipChoice:()=>Ih,chipGroup:()=>Nh,collapsible:()=>Xh,combobox:()=>qh,dateRangePicker:()=>nm,drawer:()=>Wh,eventCard:()=>_h,floatingMenu:()=>Zh,foundation:()=>c,link:()=>Dh,modal:()=>zh,notice:()=>tm,notification:()=>om,pageDesigner:()=>em,pageFooter:()=>Bh,pageHeader:()=>Uh,pageLayout:()=>Vh,popover:()=>Yh,radio:()=>kh,reorderableList:()=>Hh,resolveFamilyClass:()=>ls,resolveSizeClass:()=>cs,semantic:()=>p,setVariable:()=>A,switch_:()=>Jh,table:()=>Lh,tabs:()=>Gh,textArea:()=>Kh,textInput:()=>jh,titleBreadcrumb:()=>Fh,toggle:()=>rm,tooltip:()=>im,treeList:()=>Rh,typographies:()=>wh,typographyBody1Medium:()=>Hc,typographyBody1Regular:()=>zc,typographyBody1Semibold:()=>Wc,typographyBody2Medium:()=>jc,typographyBody2MediumUnderline:()=>Kc,typographyBody2Regular:()=>Gc,typographyBody2Semibold:()=>Zc,typographyCaption1Medium:()=>qc,typographyCaption1Semibold:()=>Yc,typographyCaption2Bold:()=>Qc,typographyCaption2Medium:()=>Xc,typographyCaption2Semibold:()=>Jc,typographyDisplay:()=>Fc,typographyTitle1:()=>Uc,typographyTitle2:()=>Bc,typographyTitle3:()=>Vc,typographyVariants:()=>Eh});var sr=t=>typeof t=="string"?Vt(t):t,o=class{static create(e,r,i,n){let a=l=>sr(l??n),s=O`var(${sr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${sr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=O`var(${sr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${sr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=O`var(${sr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>O`var(${sr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function A(t,e){return sr(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Fc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Uc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Bc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Vc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},zc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Hc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Kc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Zc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Yc={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Xc={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Jc={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Qc={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},wh={display:Fc,"title-1":Uc,"title-2":Bc,"title-3":Vc,"body-1-regular":zc,"body-1-medium":Hc,"body-1-semibold":Wc,"body-2-regular":Gc,"body-2-medium":jc,"body-2-medium-underline":Kc,"body-2-semibold":Zc,"caption-1-medium":qc,"caption-1-semibold":Yc,"caption-2-medium":Xc,"caption-2-semibold":Jc,"caption-2-bold":Qc},Eh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Oh={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var Ah={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var _h={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",p.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize4),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",p.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",p.backgroundGlobalSurface)};var Rh={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Th={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var kh={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Lh={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Ih={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Ph={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var Nh={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var Dh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Mh={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var $h={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var Fh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Uh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Bh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Vh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var zh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Hh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Wh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var Gh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var jh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Kh={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Zh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var qh={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var Yh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Xh={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Jh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Qh={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var em={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var tm={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var rm={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var om={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var im={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var nm={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var ei;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ei||(ei={}));var ti;(function(t){t.large="large",t.medium="medium",t.small="small"})(ti||(ti={}));function ls(t){return`ftds--family-${t}`}function cs(t){return`ftds--size-${t}`}var S={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var us={};Z(us,{DynamicImporter:()=>Yi,dynamicImporter:()=>am});var Yi=class{async import(e){if(e)return import(e)}},am=new Yi;var Os={};Z(Os,{computeOffsetAutoPosition:()=>Es,computeOffsetPosition:()=>si});var td=["top","right","bottom","left"],ed=["start","end"],hs=td.reduce((t,e)=>t.concat(e,e+"-"+ed[0],e+"-"+ed[1]),[]),Or=Math.min,Pt=Math.max,ri=Math.round;var Nt=t=>({x:t,y:t}),sm={left:"right",right:"left",bottom:"top",top:"bottom"};function rd(t,e,r){return Pt(t,Or(e,r))}function lo(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function ms(t){return t==="x"?"y":"x"}function gs(t){return t==="y"?"height":"width"}function co(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ys(t){return ms(co(t))}function od(t,e,r){r===void 0&&(r=!1);let i=Dt(t),n=ys(t),a=gs(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=fs(s)),[s,fs(s)]}function id(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function fs(t){let e=Ar(t);return sm[e]+t.slice(e.length)}function lm(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function nd(t){return typeof t!="number"?lm(t):{top:t,right:t,bottom:t,left:t}}function _r(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ad(t,e,r){let{reference:i,floating:n}=t,a=co(e),s=ys(e),l=gs(s),d=Ar(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let w=Dt(e);return w&&(v[s]+=g*(w==="end"?1:-1)*(r&&u?-1:1)),v}async function sd(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=lo(e,t),w=nd(v),E=l[g?h==="floating"?"reference":"floating":h],L=_r(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),j=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},C=_r(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:j,offsetParent:y,strategy:d}):j);return{top:(L.top-C.top+w.top)/b.y,bottom:(C.bottom-L.bottom+w.bottom)/b.y,left:(L.left-C.left+w.left)/b.x,right:(C.right-L.right+w.right)/b.x}}var cm=50,ld=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:sd},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=ad(u,i,d),g=i,v=0,w={};for(let k=0;k<a.length;k++){let E=a[k];if(!E)continue;let{name:L,fn:j}=E,{x:y,y:b,data:C,reset:M}=await j({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:w,rects:u,platform:l,elements:{reference:t,floating:e}});m=y??m,h=b??h,w[L]={...w[L],...C},M&&v<cm&&(v++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(u=M.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):M.rects),{x:m,y:h}=ad(u,g,d)),k=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:w}};function dm(t,e,r){return(t?[...r.filter(n=>Dt(n)===t),...r.filter(n=>Dt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?Dt(n)===t||(e?id(n)!==n:!1):!0)}var cd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=hs,autoAlignment:v=!0,...w}=lo(t,e),k=h!==void 0||g===hs?dm(h||null,v,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,L=k[E];if(L==null)return{};if(l!==L)return{reset:{placement:k[0]}};let j=await d.detectOverflow(e,w),y=od(L,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),b=[j[Ar(L)],j[y[0]],j[y[1]]],C=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:b}],M=k[E+1];if(M)return{data:{index:E+1,overflows:C},reset:{placement:M}};let $=C.map(P=>{let z=Dt(P.placement);return[P.placement,z&&m?P.overflows.slice(0,2).reduce((ue,Rt)=>ue+Rt,0):P.overflows[0],P.overflows]}).sort((P,z)=>P[1]-z[1]),X=((n=$.filter(P=>P[2].slice(0,Dt(P[0])?2:3).every(z=>z<=0))[0])==null?void 0:n[0])||$[0][0];return X!==l?{data:{index:E+1,overflows:C},reset:{placement:X}}:{}}}};var pm=new Set(["left","top"]);async function um(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Ar(r),l=Dt(r),d=co(r)==="y",u=pm.has(s)?-1:1,m=a&&d?-1:1,h=lo(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*u}:{x:g*u,y:v*m}}var dd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await um(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},pd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:j=>{let{x:y,y:b}=j;return{x:y,y:b}}},...u}=lo(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=co(n),v=ms(g),w=m[v],k=m[g],E=(j,y)=>rd(y+h[j==="y"?"top":"left"],y,y-h[j==="y"?"bottom":"right"]);s&&(w=E(v,w)),l&&(k=E(g,k));let L=d.fn({...e,[v]:w,[g]:k});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[v]:s,[g]:l}}}}}};var ud=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=lo(t,e),d=await n.detectOverflow(e,l),u=Ar(r),m=Dt(r),h=co(r)==="y",{width:g,height:v}=i.floating,w,k;u==="top"||u==="bottom"?(w=u,k=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(k=u,w=m==="end"?"top":"bottom");let E=v-d.top-d.bottom,L=g-d.left-d.right,j=Or(v-d[w],E),y=Or(g-d[k],L),b=e.middlewareData.shift,C=!b,M=j,$=y;b!=null&&b.enabled.x&&($=L),b!=null&&b.enabled.y&&(M=E),C&&!m&&(h?$=g-2*Pt(d.left,d.right):M=v-2*Pt(d.top,d.bottom)),await s({...e,availableWidth:$,availableHeight:M});let N=await n.getDimensions(a.floating);return g!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Ji(){return typeof window<"u"}function Tr(t){return hd(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(hd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function hd(t){return Ji()?t instanceof Node||t instanceof Ke(t).Node:!1}function xt(t){return Ji()?t instanceof Element||t instanceof Ke(t).Element:!1}function jt(t){return Ji()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function fd(t){return!Ji()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function oi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function md(t){return/^(table|td|th)$/.test(Tr(t))}function ii(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var fm=/transform|translate|scale|rotate|perspective|filter/,hm=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",bs;function po(t){let e=xt(t)?vt(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!Qi()&&(Rr(e.backdropFilter)||Rr(e.filter))||fm.test(e.willChange||"")||hm.test(e.contain||"")}function gd(t){let e=lr(t);for(;jt(e)&&!uo(e);){if(po(e))return e;if(ii(e))return null;e=lr(e)}return null}function Qi(){return bs==null&&(bs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bs}function uo(t){return/^(html|body|#document)$/.test(Tr(t))}function vt(t){return Ke(t).getComputedStyle(t)}function ni(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lr(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||fd(t)&&t.host||Gt(t);return fd(e)?e.host:e}function yd(t){let e=lr(t);return uo(e)?(t.ownerDocument||t).body:jt(e)&&oi(e)?e:yd(e)}function Xi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=yd(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ke(n);if(a){let l=en(s);return e.concat(s,s.visualViewport||[],oi(n)?n:[],l&&r?Xi(l):[])}else return e.concat(n,Xi(n,[],r))}function en(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function vd(t){let e=vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=ri(r)!==a||ri(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Sd(t){return xt(t)?t:t.contextElement}function fo(t){let e=Sd(t);if(!jt(e))return Nt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=vd(e),s=(a?ri(r.width):r.width)/i,l=(a?ri(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 Cd(t){let e=Ke(t);return!Qi()||!e.visualViewport?mm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function gm(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function ai(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Sd(t),s=Nt(1);e&&(i?xt(i)&&(s=fo(i)):s=fo(t));let l=gm(a,r,i)?Cd(a):Nt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Ke(a),v=xt(i)?Ke(i):i,w=g,k=en(w);for(;k&&v!==w;){let E=fo(k),L=k.getBoundingClientRect(),j=vt(k),y=L.left+(k.clientLeft+parseFloat(j.paddingLeft))*E.x,b=L.top+(k.clientTop+parseFloat(j.paddingTop))*E.y;d*=E.x,u*=E.y,m*=E.x,h*=E.y,d+=y,u+=b,w=Ke(k),k=en(w)}}return _r({width:m,height:h,x:d,y:u})}function tn(t,e){let r=ni(t).scrollLeft;return e?e.left+r:ai(Gt(t)).left+r}function wd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-tn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function ym(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=Gt(i),l=e?ii(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=Nt(1),m=Nt(0),h=jt(i);if((h||!a)&&((Tr(i)!=="body"||oi(s))&&(d=ni(i)),h)){let v=ai(i);u=fo(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?wd(s,d):Nt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function bm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function xm(t){let e=ni(t),r=t.ownerDocument.body,i=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+tn(t),s=-e.scrollTop;return vt(r).direction==="rtl"&&(a+=Pt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var vm=25;function Sm(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),a=Gt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!Qi()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(tn(a)<=0){let g=a.ownerDocument,v=g.body,w=getComputedStyle(v),k=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-k),L=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;L<=vm&&(l-=L)}return{width:l,height:d,x:u,y:m}}function Cm(t,e){let r=ai(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=fo(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function bd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Sm(t,r,e);else if(e==="document")i=xm(Gt(t));else if(xt(e))i=Cm(e,r);else{let n=Cd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return _r(i)}function wm(t,e){let r=e.get(t);if(r)return r;let i=Xi(t,[],!1).filter(l=>xt(l)&&Tr(l)!=="body"),n=null,a=vt(t).position==="fixed",s=a?lr(t):t;for(;xt(s)&&!uo(s);){let l=vt(s),d=po(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=lr(s)}return e.set(t,i),i}function Em(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ii(e)?[]:wm(e,this._c):[].concat(r),i],l=bd(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=bd(e,s[g],n);d=Pt(v.top,d),u=Or(v.right,u),m=Or(v.bottom,m),h=Pt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function Om(t){let{width:e,height:r}=vd(t);return{width:e,height:r}}function Am(t,e,r){let i=jt(e),n=Gt(e),a=r==="fixed",s=ai(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Nt(0);if((i||!a)&&((Tr(e)!=="body"||oi(n))&&(l=ni(e)),i)){let g=ai(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=tn(n));let u=n&&!i&&!a?wd(n,l):Nt(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function xs(t){return vt(t).position==="static"}function xd(t,e){if(!jt(t)||vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Gt(t)===r&&(r=r.ownerDocument.body),r}function Ed(t,e){let r=Ke(t);if(ii(t))return r;if(!jt(t)){let n=lr(t);for(;n&&!uo(n);){if(xt(n)&&!xs(n))return n;n=lr(n)}return r}let i=xd(t,e);for(;i&&md(i)&&xs(i);)i=xd(i,e);return i&&uo(i)&&xs(i)&&!po(i)?r:i||gd(t)||r}var _m=async function(t){let e=this.getOffsetParent||Ed,r=this.getDimensions,i=await r(t.floating);return{reference:Am(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Rm(t){return vt(t).direction==="rtl"}var ho={convertOffsetParentRelativeRectToViewportRelativeRect:ym,getDocumentElement:Gt,getClippingRect:Em,getOffsetParent:Ed,getElementRects:_m,getClientRects:bm,getDimensions:Om,getScale:fo,isElement:xt,isRTL:Rm};var Od=dd,vs=cd,Ad=pd;var _d=ud;var Ss=(t,e,r)=>{let i=new Map,n=r??{},a={...ho,...n.platform,_c:i};return ld(t,e,{...n,platform:a})};function ws(t){return Tm(t)}function Cs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Tm(t){for(let e=t;e;e=Cs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Cs(t);e;e=Cs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||po(r)||e.tagName==="BODY"))return e}return null}async function si(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Ss(t,e,{strategy:i.strategy,platform:{...ho,getOffsetParent:n=>ho.getOffsetParent(n,ws)},middleware:[Ad({crossAxis:!0}),vs({allowedPlacements:[i.placement]})]})}async function Es(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,Ss(t,e,{placement:l,strategy:n,platform:{...ho,getOffsetParent:u=>ho.getOffsetParent(u,ws)},middleware:[Od(s??4),vs({allowedPlacements:i}),_d({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}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 As={};Z(As,{isSlotEmptyOrWithoutContent:()=>km});var km=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Is={};Z(Is,{FtdsBase:()=>Ls,toFtdsBase:()=>Nd});var ks={};Z(ks,{ExportpartsUpdatedEvent:()=>kr,FtLitElement:()=>F});var _s={};Z(_s,{ScopedRegistryLitElement:()=>li});var li=class extends Tt{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},i=this.renderOptions.creationScope=this.attachShadow(r);return Mo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Zo(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 Ts={};Z(Ts,{shadowQuerySelector:()=>Rs,shadowQuerySelectorAll:()=>Lm});function Rs(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Lm(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var mo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Ld,Rd=Symbol("constructorPrototype"),Td=Symbol("constructorName"),Id=Symbol("exportpartsDebouncer"),kd=Symbol("dynamicDependenciesLoaded"),kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};kr.eventName="exportparts-updated";var F=class extends li{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ld]=new Ne(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Id].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[Td]=this.constructor.name,this[Rd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Td]&&Object.setPrototypeOf(this,this[Rd])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[kd]||(r[kd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(kr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(kr.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 kr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Rs(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],w=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],k=[...v,...w].filter(d).map(E=>E.trim());for(let E of k)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Ld=Id;mo([f()],F.prototype,"exportpartsPrefix",void 0);mo([Pe([])],F.prototype,"exportpartsPrefixes",void 0);mo([f({reflect:!0})],F.prototype,"exportparts",void 0);mo([f()],F.prototype,"customStylesheet",void 0);mo([f()],F.prototype,"elementToFocus",void 0);mo([T()],F.prototype,"useAdoptedStyleSheets",void 0);var Pd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Nd=fe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ti.medium,this.family=ei.neutral}getDesignSystemBaseClasses(){return{[ls(this.family)]:!0,[cs(this.size)]:!0}}}return Pd([f()],e.prototype,"size",void 0),Pd([f()],e.prototype,"family",void 0),e}),Ls=class extends Nd(F){};var Dd={};var Ds={};Z(Ds,{highlightHtml:()=>Ns,highlightHtmlColorCssVariable:()=>Md,highlightHtmlStyles:()=>Pm});var Lr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,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(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ci=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 Lr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[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,i=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${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,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,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.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",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.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=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.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)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.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:i})})}matchesExclude(e){return Lr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-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,i,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 u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,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)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,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 i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let 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,i=>{this.unwrapMatches(i)},i=>{let n=Lr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ps(t){let e=new ci(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var Im=Ps,Md=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Pm=O`
5
5
  .highlight-html-match {
6
6
  background: ${Md};
7
7
  }
8
- `;function Ps(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new km(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ds={};Z(Ds,{noTextInputDefaultClearButton:()=>Ms,noTextSelect:()=>Kt,safariEllipsisFix:()=>si,wordWrap:()=>Pm});var Kt=O`
8
+ `;function Ns(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Im(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var $s={};Z($s,{noTextInputDefaultClearButton:()=>Ms,noTextSelect:()=>Kt,safariEllipsisFix:()=>di,wordWrap:()=>Nm});var Kt=O`
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:o.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,Pm=O`
17
+ `,Nm=O`
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:o.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,si=O`
29
+ `,di=O`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var Dd={};var $s={};Z($s,{ParametrizedLabelResolver:()=>li});var li=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var il={};Z(il,{FtCommandQueue:()=>ci,FtLitElementRedux:()=>be,FtReduxStore:()=>Yt,FtStateManager:()=>Nr,ReduxWatcher:()=>Sn,clearAllStores:()=>Rg,isFtReduxStore:()=>po,redux:()=>Y,reduxEventListener:()=>st,reduxReactive:()=>Fs,watch:()=>Tg,withRedux:()=>$d});var Fs=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},Y=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:yt,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},st=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var ci=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==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 po(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var di=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),$d=fe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Lr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lr].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 u=this.getStore(s.store);u&&(s.store?this[sr].has(s.store):this[sr].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[sr].set(s,l.subscribe(()=>this.updateFromStores())),this[di].set(s,[]),po(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[di].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[sr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[sr].has(s)&&this[sr].get(s)(),this[sr].delete(s),(l=this[di].get(s))===null||l===void 0||l.forEach(d=>d()),this[di].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=Lr,i=di,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),be=class extends $d(F){};function Ie(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 Nm=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fd=Nm,Us=()=>Math.random().toString(36).substring(7).split("").join("."),Mm={INIT:`@@redux/INIT${Us()}`,REPLACE:`@@redux/REPLACE${Us()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Us()}`},en=Mm;function tn(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 Bs(t,e,r){if(typeof t!="function")throw new Error(Ie(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ie(1));return r(Bs)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((E,k)=>{s.set(k,E)}))}function m(){if(d)throw new Error(Ie(3));return n}function h(E){if(typeof E!="function")throw new Error(Ie(4));if(d)throw new Error(Ie(5));let k=!0;u();let j=l++;return s.set(j,E),function(){if(k){if(d)throw new Error(Ie(6));k=!1,u(),s.delete(j),a=null}}}function g(E){if(!tn(E))throw new Error(Ie(7));if(typeof E.type>"u")throw new Error(Ie(8));if(typeof E.type!="string")throw new Error(Ie(17));if(d)throw new Error(Ie(9));try{d=!0,n=i(n,E)}finally{d=!1}return(a=s).forEach(j=>{j()}),E}function v(E){if(typeof E!="function")throw new Error(Ie(10));i=E,g({type:en.REPLACE})}function w(){let E=h;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Ie(11));function j(){let b=k;b.next&&b.next(m())}return j(),{unsubscribe:E(j)}},[Fd](){return this}}}return g({type:en.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Fd]:w}}function Dm(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:en.INIT})>"u")throw new Error(Ie(12));if(typeof r(void 0,{type:en.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function Ud(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 i=Object.keys(r),n,a;try{Dm(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],w=l[g],I=v(w,d);if(typeof I>"u"){let E=d&&d.type;throw new Error(Ie(14))}m[g]=I,u=u||I!==w}return u=u||i.length!==Object.keys(l).length,u?m:l}}function pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Bd(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(Ie(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=pi(...l)(n.dispatch),{...n,dispatch:a}}}function Vd(t){return tn(t)&&"type"in t&&typeof t.type=="string"}var Yd=Symbol.for("immer-nothing"),zd=Symbol.for("immer-draftable"),Me=Symbol.for("immer-state");function vt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,fo=et.getPrototypeOf,an="constructor",un="prototype",Ws="configurable",sn="enumerable",on="writable",ui="value",Mt=t=>!!t&&!!t[Me];function tt(t){return t?Xd(t)||hn(t)||!!t[zd]||!!t[an]?.[zd]||mn(t)||gn(t):!1}var $m=et[un][an].toString(),Hd=new WeakMap;function Xd(t){if(!t||!Js(t))return!1;let e=fo(t);if(e===null||e===et[un])return!0;let r=et.hasOwnProperty.call(e,an)&&e[an];if(r===Object)return!0;if(!uo(r))return!1;let i=Hd.get(r);return i===void 0&&(i=Function.toString.call(r),Hd.set(r,i)),i===$m}function fn(t,e,r=!0){mi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function mi(t){let e=t[Me];return e?e.type_:hn(t)?1:mn(t)?2:gn(t)?3:0}var Vs=(t,e,r=mi(t))=>r===2?t.has(e):et[un].hasOwnProperty.call(t,e),Gs=(t,e,r=mi(t))=>r===2?t.get(e):t[e],ln=(t,e,r,i=mi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Fm(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var hn=Array.isArray,mn=t=>t instanceof Map,gn=t=>t instanceof Set,Js=t=>typeof t=="object",uo=t=>typeof t=="function",zs=t=>typeof t=="boolean";function Um(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Zt=t=>t.copy_||t.base_;var Qs=t=>t.modified_?t.copy_:t.base_;function js(t,e){if(mn(t))return new Map(t);if(gn(t))return new Set(t);if(hn(t))return Array[un].slice.call(t);let r=Xd(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Me];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[on]===!1&&(l[on]=!0,l[Ws]=!0),(l.get||l.set)&&(i[s]={[Ws]:!0,[on]:!0,[sn]:l[sn],[ui]:t[s]})}return et.create(fo(t),i)}else{let i=fo(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function el(t,e=!1){return yn(t)||Mt(t)||!tt(t)||(mi(t)>1&&et.defineProperties(t,{set:rn,add:rn,clear:rn,delete:rn}),et.freeze(t),e&&fn(t,(r,i)=>{el(i,!0)},!1)),t}function Bm(){vt(2)}var rn={[ui]:Bm};function yn(t){return t===null||!Js(t)?!0:et.isFrozen(t)}var cn="MapSet",Ks="Patches",Wd="ArrayMethods",Jd={};function Pr(t){let e=Jd[t];return e||vt(0,t),e}var Gd=t=>!!Jd[t];var fi,Qd=()=>fi,Vm=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Gd(cn)?Pr(cn):void 0,arrayMethodsPlugin_:Gd(Wd)?Pr(Wd):void 0});function jd(t,e){e&&(t.patchPlugin_=Pr(Ks),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Zs(t){qs(t),t.drafts_.forEach(zm),t.drafts_=null}function qs(t){t===fi&&(fi=t.parent_)}var Kd=t=>fi=Vm(fi,t);function zm(t){let e=t[Me];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Zd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Me].modified_&&(Zs(e),vt(4)),tt(t)&&(t=qd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Me].base_,t,e)}else t=qd(e,r);return Hm(e,t,!0),Zs(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yd?t:void 0}function qd(t,e){if(yn(e))return e;let r=e[Me];if(!r)return dn(e,t.handledSet_,t);if(!bn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rp(r,t)}return r.copy_}function Hm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&el(e,r)}function ep(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var bn=(t,e)=>t.scope_===e,Wm=[];function tp(t,e,r,i){let n=Zt(t),a=t.type_;if(i!==void 0&&Gs(n,i,a)===e){ln(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;fn(n,(d,u)=>{if(Mt(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??Wm;for(let l of s)ln(n,l,r,a)}function Gm(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!bn(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=Qs(a);tp(t,a.draft_??a,s,r),rp(a,n)})}function rp(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}ep(t)}}function jm(t,e,r){let{scope_:i}=t;if(Mt(r)){let n=r[Me];bn(n,i)&&n.callbacks_.push(function(){nn(t);let s=Qs(n);tp(t,r,s,e)})}else tt(r)&&t.callbacks_.push(function(){let a=Zt(t);t.type_===3?a.has(r)&&dn(r,i.handledSet_,i):Gs(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&dn(Gs(t.copy_,e,t.type_),i.handledSet_,i)})}function dn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Mt(t)||e.has(t)||!tt(t)||yn(t)||(e.add(t),fn(t,(i,n)=>{if(Mt(n)){let a=n[Me];if(bn(a,r)){let s=Qs(a);ln(t,i,s,t.type_),ep(a)}}else tt(n)&&dn(n,e,r)})),t}function Km(t,e){let r=hn(t),i={type_:r?1:0,scope_:e?e.scope_:Qd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,a=pn;r&&(n=[i],a=hi);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var pn={get(t,e){if(e===Me)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Zt(t);if(!Vs(n,e,t.type_))return qm(t,n,e);let a=n[e];if(t.finalized_||!tt(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Um(e))return a;if(a===Hs(t.base_,e)||Zm(t,e,a)){nn(t);let s=t.type_===1?+e:e,l=Xs(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Zt(t)},ownKeys(t){return Reflect.ownKeys(Zt(t))},set(t,e,r){let i=op(Zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=Hs(Zt(t),e),a=n?.[Me];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Fm(r,n)&&(r!==void 0||Vs(t.base_,e,t.type_)))return!0;nn(t),Ys(t)}return t.copy_[e]===r&&(r!==void 0||Vs(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),jm(t,e,r)),!0},deleteProperty(t,e){return nn(t),Hs(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Ys(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[on]:!0,[Ws]:t.type_!==1||e!=="length",[sn]:i[sn],[ui]:r[e]}},defineProperty(){vt(11)},getPrototypeOf(t){return fo(t.base_)},setPrototypeOf(){vt(12)}},hi={};for(let t in pn){let e=pn[t];hi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}hi.deleteProperty=function(t,e){return hi.set.call(this,t,e,void 0)};hi.set=function(t,e,r){return pn.set.call(this,t[0],e,r,t[0])};function Hs(t,e){let r=t[Me];return(r?Zt(r):t)[e]}function Zm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Me]?!1:t.baseRefs_.has(r)}function qm(t,e,r){let i=op(e,r);return i?ui in i?i[ui]:i.get?.call(t.draft_):void 0}function op(t,e){if(!(e in t))return;let r=fo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=fo(r)}}function Ys(t){t.modified_||(t.modified_=!0,t.parent_&&Ys(t.parent_))}function nn(t){t.copy_||(t.assigned_=new Map,t.copy_=js(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Ym=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(uo(e)&&!uo(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}uo(r)||vt(6),i!==void 0&&!uo(i)&&vt(7);let n;if(tt(e)){let a=Kd(this),s=Xs(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?Zs(a):qs(a)}return jd(a,i),Zd(n,a)}else if(!e||!Js(e)){if(n=r(e),n===void 0&&(n=e),n===Yd&&(n=void 0),this.autoFreeze_&&el(n,!0),i){let a=[],s=[];Pr(Ks).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else vt(1,e)},this.produceWithPatches=(e,r)=>{if(uo(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},zs(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),zs(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),zs(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||vt(8),Mt(t)&&(t=ip(t));let e=Kd(this),r=Xs(e,t,void 0);return r[Me].isManual_=!0,qs(e),r}finishDraft(t,e){let r=t&&t[Me];(!r||!r.isManual_)&&vt(9);let{scope_:i}=r;return jd(i,e),Zd(void 0,i)}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 i=Pr(Ks).applyPatches_;return Mt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Xs(t,e,r,i){let[n,a]=mn(e)?Pr(cn).proxyMap_(e,r):gn(e)?Pr(cn).proxySet_(e,r):Km(e,r);return(r?.scope_??Qd()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?Gm(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function ip(t){return Mt(t)||vt(10,t),np(t)}function np(t){if(!tt(t)||yn(t))return t;let e=t[Me],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=js(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=js(t,!0);return fn(r,(n,a)=>{ln(r,n,np(a))},i),e&&(e.finalized_=!1),r}var Xm=globalThis.Iterator,cC=typeof Xm?.from=="function";var Jm=new Ym,tl=Jm.produce;function ap(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var sp=ap(),lp=ap;var Qm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?pi:pi.apply(null,arguments)},gC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},eg=t=>t&&typeof t.match=="function";function lr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(qt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vd(i)&&i.type===t,r}var fp=class gi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,gi.prototype)}static get[Symbol.species](){return gi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new gi(...e[0].concat(this)):new gi(...e.concat(this))}};function cp(t){return tt(t)?tl(t,()=>{}):t}function xn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function tg(t){return typeof t=="boolean"}var rg=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new fp;return r&&(tg(r)?s.push(sp):s.push(lp(r.extraArgument))),s},og="RTK_autoBatch";var dp=t=>e=>{setTimeout(e,t)},ig=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(n),s=setTimeout(n,e)},ng=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ig(window.requestAnimationFrame,100):dp(10):t.type==="callback"?t.queueNotification:dp(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.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(u))),i.dispatch(m)}finally{n=!0}}})},ag=t=>function(r){let{autoBatch:i=!0}=r??{},n=new fp(t);return i&&n.push(ng(typeof i=="object"?i:void 0)),n};function hp(t){let e=rg(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(tn(r))d=Ud(r);else throw new Error(qt(1));let u;typeof i=="function"?u=i(e):u=e();let m=pi;n&&(m=Qm({trace:!1,...typeof n=="object"&&n}));let h=Bd(...u),g=ag(h),v=typeof l=="function"?l(g):g(),w=m(...v);return Bs(d,s,w)}function mp(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(qt(28));if(l in e)throw new Error(qt(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 i=a,n}};return t(n),[e,r,i]}function sg(t){return typeof t=="function"}function lg(t,e){let[r,i,n]=mp(e),a;if(sg(t))a=()=>cp(t());else{let l=cp(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(Mt(m)){let v=h(m,d);return v===void 0?m:v}else{if(tt(m))return tl(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},l)}return s.getInitialState=a,s}var cg=(t,e)=>eg(t)?t.match(e):t(e);function dg(...t){return e=>t.some(r=>cg(r,e))}var pg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ug=(t=21)=>{let e="",r=t;for(;r--;)e+=pg[Math.random()*64|0];return e},fg=["name","message","stack","code"],rl=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},pp=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},hg=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)}},up="External signal was aborted",mg=(()=>{function t(e,r,i){let n=lr(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=lr(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=lr(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||hg)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):ug(),w=new AbortController,I,E;function k(y){E=y,w.abort()}u&&(u.aborted?k(up):u.addEventListener("abort",()=>k(up),{once:!0}));let j=(async function(){let y;try{let C=i?.condition?.(d,{getState:h,extra:g});if(yg(C)&&(C=await C),C===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let M=new Promise((D,P)=>{I=()=>{P({name:"AbortError",message:E||"Aborted"})},w.signal.addEventListener("abort",I,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),y=await Promise.race([M,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:w.signal,abort:k,rejectWithValue:((D,P)=>new rl(D,P)),fulfillWithValue:((D,P)=>new pp(D,P))})).then(D=>{if(D instanceof rl)throw D;return D instanceof pp?n(D.payload,v,d,D.meta):n(D,v,d)})])}catch(C){y=C instanceof rl?s(null,v,d,C.payload,C.meta):s(C,v,d)}finally{I&&w.signal.removeEventListener("abort",I)}return i&&!i.dispatchConditionRejection&&s.match(y)&&y.meta.condition||m(y),y})();return Object.assign(j,{abort:k,requestId:v,arg:d,unwrap(){return j.then(gg)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:dg(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function gg(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yg(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gp=Symbol.for("rtk-slice-createasyncthunk"),bC={[gp]:mg};function bg(t,e){return`${t}/${e}`}function xg({creators:t}={}){let e=t?.asyncThunk?.[gp];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(qt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(Sg()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(y,b){let C=typeof y=="string"?y:y.type;if(!C)throw new Error(qt(12));if(C in d.sliceCaseReducersByType)throw new Error(qt(13));return d.sliceCaseReducersByType[C]=b,u},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),u},exposeAction(y,b){return d.actionCreators[y]=b,u},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,u}};l.forEach(y=>{let b=s[y],C={reducerName:y,type:bg(n,y),createNotation:typeof i.reducers=="function"};wg(b)?Og(C,b,u,e):Cg(C,b,u)});function m(){let[y={},b=[],C=void 0]=typeof i.extraReducers=="function"?mp(i.extraReducers):[i.extraReducers],M={...y,...d.sliceCaseReducersByType};return lg(i.initialState,D=>{for(let P in M)D.addCase(P,M[P]);for(let P of d.sliceMatchers)D.addMatcher(P.matcher,P.reducer);for(let P of b)D.addMatcher(P.matcher,P.reducer);C&&D.addDefaultCase(C)})}let h=y=>y,g=new Map,v=new WeakMap,w;function I(y,b){return w||(w=m()),w(y,b)}function E(){return w||(w=m()),w.getInitialState()}function k(y,b=!1){function C(D){let P=D[y];return typeof P>"u"&&b&&(P=xn(v,C,E)),P}function M(D=h){let P=xn(g,b,()=>new WeakMap);return xn(P,D,()=>{let X={};for(let[L,z]of Object.entries(i.selectors??{}))X[L]=vg(z,D,()=>xn(v,D,E),b);return X})}return{reducerPath:y,getSelectors:M,get selectors(){return M(C)},selectSlice:C}}let j={name:n,reducer:I,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...k(a),injectInto(y,{reducerPath:b,...C}={}){let M=b??a;return y.inject({reducerPath:M,reducer:I},C),{...j,...k(M,!0)}}};return j}}function vg(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var yp=xg();function Sg(){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 Cg({type:t,reducerName:e,createNotation:r},i,n){let a,s;if("reducer"in i){if(r&&!Eg(i))throw new Error(qt(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?lr(t,s):lr(t))}function wg(t){return t._reducerDefinitionType==="asyncThunk"}function Eg(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Og({type:t,reducerName:e},r,i,n){if(!n)throw new Error(qt(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||vn,pending:l||vn,rejected:d||vn,settled:u||vn})}function vn(){}var bp="listener",xp="completed",vp="cancelled",xC=`task-${vp}`,vC=`task-${xp}`,SC=`${bp}-${vp}`,CC=`${bp}-${xp}`;var{assign:Sp}=Object;var ol="listenerMiddleware";var Ag=Sp(lr(`${ol}/add`),{withTypes:()=>Ag}),wC=lr(`${ol}/removeAll`),_g=Sp(lr(`${ol}/remove`),{withTypes:()=>_g});function qt(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 Yt=class t extends Wt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(po(a))return a;if(n==null)return;let s=yp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=hp({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Qe(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ci,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];Be(g,m)||this.setState({[h]:n(m)})}}}),this.eventBus=i??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 Rg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))po(e)&&e.clear()}var Sn=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}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);yt(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 Tg(t,e,r){return new Sn(t,e,r).watch()}var Nr=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 i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var sl={};Z(sl,{scrollHelper:()=>Ig});var nl,Cn=new Map,al=class{lock(e,r){if(r){let i=Cn.get(r);if(i==null||i===e)return Cn.set(r,e),r}}release(e,r){r&&Cn.get(r)===e&&Cn.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Ya(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??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 i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i: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 i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=Er(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(nl=window.FluidTopicsScrollHelper)!==null&&nl!==void 0?nl:new al;var Ig=window.FluidTopicsScrollHelper;var cl={};Z(cl,{SearchPlaceConverter:()=>go,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>au,serializeRequest:()=>Mg});var kg=t=>typeof t=="object"&&t!=null;var Lg=t=>typeof t=="number",wn=t=>typeof t=="string",Gp=t=>kg(t)&&wn(t.endpoint)&&wn(t.method)&&wn(t.statusText)&&wn(t.body)&&Lg(t.status),Cp;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Cp||(Cp={}));var wp;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wp||(wp={}));var Ep;(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"})(Ep||(Ep={}));var Op;(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"})(Op||(Op={}));var Ap;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ap||(Ap={}));var _p;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_p||(_p={}));var Rp;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Rp||(Rp={}));var Tp;(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"})(Tp||(Tp={}));var Ip;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ip||(Ip={}));var kp;(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"})(kp||(kp={}));var Lp;(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"})(Lp||(Lp={}));var Pp;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Pp||(Pp={}));var Np;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Np||(Np={}));var Mp;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Mp||(Mp={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var Dp;(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"})(Dp||(Dp={}));var ho;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ho||(ho={}));var $p;(function(t){t.ASC="ASC",t.DESC="DESC"})($p||($p={}));var Fp;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fp||(Fp={}));var ll;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ll||(ll={}));var jp=t=>Object.keys(ll).includes(t);var Up;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Up||(Up={}));var En;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(En||(En={}));var Bp;(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"})(Bp||(Bp={}));var mo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(mo||(mo={}));var Kp=t=>Object.keys(mo).includes(t);var Vp;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vp||(Vp={}));var zp;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(zp||(zp={}));var Hp;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Hp||(Hp={}));var he;(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"})(he||(he={}));var lt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(lt||(lt={}));var Wp;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Wp||(Wp={}));var Zp;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Zp||(Zp={}));var qp;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qp||(qp={}));var Yp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Yp||(Yp={}));var Xp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xp||(Xp={}));var Jp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jp||(Jp={}));var Qp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qp||(Qp={}));var eu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(eu||(eu={}));var tu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(tu||(tu={}));var ru;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ru||(ru={}));var ou;(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"})(ou||(ou={}));var On;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(On||(On={}));var Pg={[he.PERSONAL_BOOK_SHARE_USER]:[he.PERSONAL_BOOK_USER],[he.HTML_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.PDF_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.KHUB_ADMIN]:[he.CONTENT_PUBLISHER],[he.ADMIN]:[he.KHUB_ADMIN,he.USERS_ADMIN,he.PORTAL_ADMIN,he.BEHAVIOR_DATA_USER],[he.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function iu(t,e){return t===e||(Pg[t]??[]).some(r=>iu(r,e))}function yi(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(i=>iu(i,e))}function Ng(t){return`"${t}"`}function nu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Mg(t,e){return new go(t).serialize(e)}var H;(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"})(H||(H={}));var Dg=new Set(Object.values(H));function au(t){return Dg.has(t)}var go=class{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,m,h,g,v,w,I;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(H.LOCALE,e.contentLocale):E.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(H.QUERY,e.query);let k=P=>{var X,L;let z=((L=(X=P.valueFilter)===null||X===void 0?void 0:X.values)!==null&&L!==void 0?L:[]).map(ue=>this.escapeFilters(ue)).map(ue=>Ng(nu(ue))).join("_");return`${P.key}~${z}`},j=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(P=>P.valueFilter&&!P.valueFilter.negative))!==null&&a!==void 0?a:[];j.length>0&&E.append(H.VALUE_FILTERS,j.map(k).join("*"));let y=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(P=>P.valueFilter&&P.valueFilter.negative))!==null&&l!==void 0?l:[];y.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,y.map(k).join("*"));let b=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(P=>P.dateFilter))!==null&&u!==void 0?u:[];if(b.length>0){let P=b.map(X=>{var L;return`${X.key}~${(L=X.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,P)}let C=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(P=>P.rangeFilter))!==null&&h!==void 0?h:[];if(C.length>0){let P=C.map(X=>{var L,z;return`${X.key}~${(L=X.rangeFilter)===null||L===void 0?void 0:L.from}_${(z=X.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(H.RANGE_FILTERS,P)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(H.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((w=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&w!==void 0?w:this.defaultPerPage)!=this.defaultPerPage&&E.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let M=(I=e.otherQueryParams)!==null&&I!==void 0?I:{};for(let P in M)E.append(P,M[P]);let D=new Array;return E.forEach((P,X)=>{D.push(this.encodeQueryString(X)+"="+this.encodeQueryString(P))}),encodeURI(D.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[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,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(k){console.warn("Could not decode search request query params, fallback on raw value",k)}let d=new URLSearchParams(e),u=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),m=((r=d.get(H.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(i=d.get(H.SORT))===null||i===void 0?void 0:i.toLowerCase(),g=(n=d.get(H.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),w=d.get(H.KEYWORD_MATCH),I=w?w.toUpperCase()===ho.MANDATORY?ho.MANDATORY:ho.OPTIONAL:void 0,E={};for(let k of d.keys())au(k)||(E[k]=d.get(k));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:jp(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Er(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:I,otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(H.FILTERS)&&(u=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(H.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(H.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(H.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(nu).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:mo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Kp(e))return[{key:"ft:lastEdition",dateFilter:{type:mo[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(H.LOCALE),r!==void 0&&i.searchParams.append(H.LOCALE,r),i.toString()}};var pl={};Z(pl,{toFtFormComponent:()=>Mr});var dl=Symbol("elementInternals"),Mr=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[dl].form}constructor(...i){super(i),this[dl]=this.attachInternals()}setFormValue(i){this[dl].setFormValue(i)}}return e});var ul={};Z(ul,{DateFormatter:()=>Dr});var Dr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var hl={};Z(hl,{ALL_KEYS_VALUE:()=>fl,SameWindowStorageEvent:()=>yo});var fl="__all__",yo=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==fl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new yo(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new yo(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new yo(fl))}});var gl={};Z(gl,{FocusMainContentEvent:()=>ml});var ml=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var su={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function $g(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Fg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",$g);document.addEventListener("click",Fg);var lu=O`
47
+ `;var $d={};var Fs={};Z(Fs,{ParametrizedLabelResolver:()=>pi});var pi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var nl={};Z(nl,{FtCommandQueue:()=>ui,FtLitElementRedux:()=>be,FtReduxStore:()=>Yt,FtStateManager:()=>Nr,ReduxWatcher:()=>wn,clearAllStores:()=>Tg,isFtReduxStore:()=>go,redux:()=>Y,reduxEventListener:()=>ct,reduxReactive:()=>Us,watch:()=>kg,withRedux:()=>Fd});var Us=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},Y=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:bt,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},ct=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var ui=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==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 go(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fi=Symbol("internalReduxEventsUnsubscribers"),cr=Symbol("internalStoresUnsubscribers"),Ir=Symbol("internalStores"),Fd=fe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ir].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ir].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ir].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ir].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ir].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ir].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 u=this.getStore(s.store);u&&(s.store?this[cr].has(s.store):this[cr].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[cr].set(s,l.subscribe(()=>this.updateFromStores())),this[fi].set(s,[]),go(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[fi].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[cr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[cr].has(s)&&this[cr].get(s)(),this[cr].delete(s),(l=this[fi].get(s))===null||l===void 0||l.forEach(d=>d()),this[fi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=cr,r=Ir,i=fi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),be=class extends Fd(F){};function ke(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 Dm=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ud=Dm,Bs=()=>Math.random().toString(36).substring(7).split("").join("."),Mm={INIT:`@@redux/INIT${Bs()}`,REPLACE:`@@redux/REPLACE${Bs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bs()}`},rn=Mm;function on(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 Vs(t,e,r){if(typeof t!="function")throw new Error(ke(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ke(1));return r(Vs)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((E,L)=>{s.set(L,E)}))}function m(){if(d)throw new Error(ke(3));return n}function h(E){if(typeof E!="function")throw new Error(ke(4));if(d)throw new Error(ke(5));let L=!0;u();let j=l++;return s.set(j,E),function(){if(L){if(d)throw new Error(ke(6));L=!1,u(),s.delete(j),a=null}}}function g(E){if(!on(E))throw new Error(ke(7));if(typeof E.type>"u")throw new Error(ke(8));if(typeof E.type!="string")throw new Error(ke(17));if(d)throw new Error(ke(9));try{d=!0,n=i(n,E)}finally{d=!1}return(a=s).forEach(j=>{j()}),E}function v(E){if(typeof E!="function")throw new Error(ke(10));i=E,g({type:rn.REPLACE})}function w(){let E=h;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(ke(11));function j(){let b=L;b.next&&b.next(m())}return j(),{unsubscribe:E(j)}},[Ud](){return this}}}return g({type:rn.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[Ud]:w}}function $m(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:rn.INIT})>"u")throw new Error(ke(12));if(typeof r(void 0,{type:rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function Bd(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 i=Object.keys(r),n,a;try{$m(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],w=l[g],k=v(w,d);if(typeof k>"u"){let E=d&&d.type;throw new Error(ke(14))}m[g]=k,u=u||k!==w}return u=u||i.length!==Object.keys(l).length,u?m:l}}function hi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vd(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(ke(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=hi(...l)(n.dispatch),{...n,dispatch:a}}}function zd(t){return on(t)&&"type"in t&&typeof t.type=="string"}var Xd=Symbol.for("immer-nothing"),Hd=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function St(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var tt=Object,bo=tt.getPrototypeOf,ln="constructor",hn="prototype",Gs="configurable",cn="enumerable",an="writable",mi="value",Mt=t=>!!t&&!!t[De];function rt(t){return t?Jd(t)||gn(t)||!!t[Hd]||!!t[ln]?.[Hd]||yn(t)||bn(t):!1}var Fm=tt[hn][ln].toString(),Wd=new WeakMap;function Jd(t){if(!t||!Qs(t))return!1;let e=bo(t);if(e===null||e===tt[hn])return!0;let r=tt.hasOwnProperty.call(e,ln)&&e[ln];if(r===Object)return!0;if(!yo(r))return!1;let i=Wd.get(r);return i===void 0&&(i=Function.toString.call(r),Wd.set(r,i)),i===Fm}function mn(t,e,r=!0){bi(t)===0?(r?Reflect.ownKeys(t):tt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function bi(t){let e=t[De];return e?e.type_:gn(t)?1:yn(t)?2:bn(t)?3:0}var zs=(t,e,r=bi(t))=>r===2?t.has(e):tt[hn].hasOwnProperty.call(t,e),js=(t,e,r=bi(t))=>r===2?t.get(e):t[e],dn=(t,e,r,i=bi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Um(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var gn=Array.isArray,yn=t=>t instanceof Map,bn=t=>t instanceof Set,Qs=t=>typeof t=="object",yo=t=>typeof t=="function",Hs=t=>typeof t=="boolean";function Bm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Zt=t=>t.copy_||t.base_;var el=t=>t.modified_?t.copy_:t.base_;function Ks(t,e){if(yn(t))return new Map(t);if(bn(t))return new Set(t);if(gn(t))return Array[hn].slice.call(t);let r=Jd(t);if(e===!0||e==="class_only"&&!r){let i=tt.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[an]===!1&&(l[an]=!0,l[Gs]=!0),(l.get||l.set)&&(i[s]={[Gs]:!0,[an]:!0,[cn]:l[cn],[mi]:t[s]})}return tt.create(bo(t),i)}else{let i=bo(t);if(i!==null&&r)return{...t};let n=tt.create(i);return tt.assign(n,t)}}function tl(t,e=!1){return xn(t)||Mt(t)||!rt(t)||(bi(t)>1&&tt.defineProperties(t,{set:nn,add:nn,clear:nn,delete:nn}),tt.freeze(t),e&&mn(t,(r,i)=>{tl(i,!0)},!1)),t}function Vm(){St(2)}var nn={[mi]:Vm};function xn(t){return t===null||!Qs(t)?!0:tt.isFrozen(t)}var pn="MapSet",Zs="Patches",Gd="ArrayMethods",Qd={};function Pr(t){let e=Qd[t];return e||St(0,t),e}var jd=t=>!!Qd[t];var gi,ep=()=>gi,zm=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:jd(pn)?Pr(pn):void 0,arrayMethodsPlugin_:jd(Gd)?Pr(Gd):void 0});function Kd(t,e){e&&(t.patchPlugin_=Pr(Zs),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function qs(t){Ys(t),t.drafts_.forEach(Hm),t.drafts_=null}function Ys(t){t===gi&&(gi=t.parent_)}var Zd=t=>gi=zm(gi,t);function Hm(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function qd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(qs(e),St(4)),rt(t)&&(t=Yd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Yd(e,r);return Wm(e,t,!0),qs(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xd?t:void 0}function Yd(t,e){if(xn(e))return e;let r=e[De];if(!r)return un(e,t.handledSet_,t);if(!vn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);op(r,t)}return r.copy_}function Wm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&tl(e,r)}function tp(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var vn=(t,e)=>t.scope_===e,Gm=[];function rp(t,e,r,i){let n=Zt(t),a=t.type_;if(i!==void 0&&js(n,i,a)===e){dn(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;mn(n,(d,u)=>{if(Mt(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??Gm;for(let l of s)dn(n,l,r,a)}function jm(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!vn(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=el(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_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}tp(t)}}function Km(t,e,r){let{scope_:i}=t;if(Mt(r)){let n=r[De];vn(n,i)&&n.callbacks_.push(function(){sn(t);let s=el(n);rp(t,r,s,e)})}else rt(r)&&t.callbacks_.push(function(){let a=Zt(t);t.type_===3?a.has(r)&&un(r,i.handledSet_,i):js(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&un(js(t.copy_,e,t.type_),i.handledSet_,i)})}function un(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Mt(t)||e.has(t)||!rt(t)||xn(t)||(e.add(t),mn(t,(i,n)=>{if(Mt(n)){let a=n[De];if(vn(a,r)){let s=el(a);dn(t,i,s,t.type_),tp(a)}}else rt(n)&&un(n,e,r)})),t}function Zm(t,e){let r=gn(t),i={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=i,a=fn;r&&(n=[i],a=yi);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var fn={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Zt(t);if(!zs(n,e,t.type_))return Ym(t,n,e);let a=n[e];if(t.finalized_||!rt(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Bm(e))return a;if(a===Ws(t.base_,e)||qm(t,e,a)){sn(t);let s=t.type_===1?+e:e,l=Js(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Zt(t)},ownKeys(t){return Reflect.ownKeys(Zt(t))},set(t,e,r){let i=ip(Zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=Ws(Zt(t),e),a=n?.[De];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Um(r,n)&&(r!==void 0||zs(t.base_,e,t.type_)))return!0;sn(t),Xs(t)}return t.copy_[e]===r&&(r!==void 0||zs(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Km(t,e,r)),!0},deleteProperty(t,e){return sn(t),Ws(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Xs(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[an]:!0,[Gs]:t.type_!==1||e!=="length",[cn]:i[cn],[mi]:r[e]}},defineProperty(){St(11)},getPrototypeOf(t){return bo(t.base_)},setPrototypeOf(){St(12)}},yi={};for(let t in fn){let e=fn[t];yi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}yi.deleteProperty=function(t,e){return yi.set.call(this,t,e,void 0)};yi.set=function(t,e,r){return fn.set.call(this,t[0],e,r,t[0])};function Ws(t,e){let r=t[De];return(r?Zt(r):t)[e]}function qm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!rt(r)||r[De]?!1:t.baseRefs_.has(r)}function Ym(t,e,r){let i=ip(e,r);return i?mi in i?i[mi]:i.get?.call(t.draft_):void 0}function ip(t,e){if(!(e in t))return;let r=bo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=bo(r)}}function Xs(t){t.modified_||(t.modified_=!0,t.parent_&&Xs(t.parent_))}function sn(t){t.copy_||(t.assigned_=new Map,t.copy_=Ks(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Xm=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(yo(e)&&!yo(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}yo(r)||St(6),i!==void 0&&!yo(i)&&St(7);let n;if(rt(e)){let a=Zd(this),s=Js(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?qs(a):Ys(a)}return Kd(a,i),qd(n,a)}else if(!e||!Qs(e)){if(n=r(e),n===void 0&&(n=e),n===Xd&&(n=void 0),this.autoFreeze_&&tl(n,!0),i){let a=[],s=[];Pr(Zs).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else St(1,e)},this.produceWithPatches=(e,r)=>{if(yo(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},Hs(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Hs(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Hs(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){rt(t)||St(8),Mt(t)&&(t=np(t));let e=Zd(this),r=Js(e,t,void 0);return r[De].isManual_=!0,Ys(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&St(9);let{scope_:i}=r;return Kd(i,e),qd(void 0,i)}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 i=Pr(Zs).applyPatches_;return Mt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Js(t,e,r,i){let[n,a]=yn(e)?Pr(pn).proxyMap_(e,r):bn(e)?Pr(pn).proxySet_(e,r):Zm(e,r);return(r?.scope_??ep()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?jm(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function np(t){return Mt(t)||St(10,t),ap(t)}function ap(t){if(!rt(t)||xn(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Ks(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Ks(t,!0);return mn(r,(n,a)=>{dn(r,n,ap(a))},i),e&&(e.finalized_=!1),r}var Jm=globalThis.Iterator,dC=typeof Jm?.from=="function";var Qm=new Xm,rl=Qm.produce;function sp(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var lp=sp(),cp=sp;var eg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hi:hi.apply(null,arguments)},yC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},tg=t=>t&&typeof t.match=="function";function dr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(qt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zd(i)&&i.type===t,r}var hp=class xi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,xi.prototype)}static get[Symbol.species](){return xi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new xi(...e[0].concat(this)):new xi(...e.concat(this))}};function dp(t){return rt(t)?rl(t,()=>{}):t}function Sn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function rg(t){return typeof t=="boolean"}var og=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new hp;return r&&(rg(r)?s.push(lp):s.push(cp(r.extraArgument))),s},ig="RTK_autoBatch";var pp=t=>e=>{setTimeout(e,t)},ng=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(n),s=setTimeout(n,e)},ag=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ng(window.requestAnimationFrame,100):pp(10):t.type==="callback"?t.queueNotification:pp(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[ig],a=!n,a&&(s||(s=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},sg=t=>function(r){let{autoBatch:i=!0}=r??{},n=new hp(t);return i&&n.push(ag(typeof i=="object"?i:void 0)),n};function mp(t){let e=og(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(on(r))d=Bd(r);else throw new Error(qt(1));let u;typeof i=="function"?u=i(e):u=e();let m=hi;n&&(m=eg({trace:!1,...typeof n=="object"&&n}));let h=Vd(...u),g=sg(h),v=typeof l=="function"?l(g):g(),w=m(...v);return Vs(d,s,w)}function gp(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(qt(28));if(l in e)throw new Error(qt(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 i=a,n}};return t(n),[e,r,i]}function lg(t){return typeof t=="function"}function cg(t,e){let[r,i,n]=gp(e),a;if(lg(t))a=()=>dp(t());else{let l=dp(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(Mt(m)){let v=h(m,d);return v===void 0?m:v}else{if(rt(m))return rl(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},l)}return s.getInitialState=a,s}var dg=(t,e)=>tg(t)?t.match(e):t(e);function pg(...t){return e=>t.some(r=>dg(r,e))}var ug="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fg=(t=21)=>{let e="",r=t;for(;r--;)e+=ug[Math.random()*64|0];return e},hg=["name","message","stack","code"],ol=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},up=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},mg=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of hg)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fp="External signal was aborted",gg=(()=>{function t(e,r,i){let n=dr(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=dr(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=dr(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||mg)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):fg(),w=new AbortController,k,E;function L(y){E=y,w.abort()}u&&(u.aborted?L(fp):u.addEventListener("abort",()=>L(fp),{once:!0}));let j=(async function(){let y;try{let C=i?.condition?.(d,{getState:h,extra:g});if(bg(C)&&(C=await C),C===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let M=new Promise(($,N)=>{k=()=>{N({name:"AbortError",message:E||"Aborted"})},w.signal.addEventListener("abort",k,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),y=await Promise.race([M,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:w.signal,abort:L,rejectWithValue:(($,N)=>new ol($,N)),fulfillWithValue:(($,N)=>new up($,N))})).then($=>{if($ instanceof ol)throw $;return $ instanceof up?n($.payload,v,d,$.meta):n($,v,d)})])}catch(C){y=C instanceof ol?s(null,v,d,C.payload,C.meta):s(C,v,d)}finally{k&&w.signal.removeEventListener("abort",k)}return i&&!i.dispatchConditionRejection&&s.match(y)&&y.meta.condition||m(y),y})();return Object.assign(j,{abort:L,requestId:v,arg:d,unwrap(){return j.then(yg)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:pg(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function yg(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bg(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yp=Symbol.for("rtk-slice-createasyncthunk"),xC={[yp]:gg};function xg(t,e){return`${t}/${e}`}function vg({creators:t}={}){let e=t?.asyncThunk?.[yp];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(qt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(Cg()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(y,b){let C=typeof y=="string"?y:y.type;if(!C)throw new Error(qt(12));if(C in d.sliceCaseReducersByType)throw new Error(qt(13));return d.sliceCaseReducersByType[C]=b,u},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),u},exposeAction(y,b){return d.actionCreators[y]=b,u},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,u}};l.forEach(y=>{let b=s[y],C={reducerName:y,type:xg(n,y),createNotation:typeof i.reducers=="function"};Eg(b)?Ag(C,b,u,e):wg(C,b,u)});function m(){let[y={},b=[],C=void 0]=typeof i.extraReducers=="function"?gp(i.extraReducers):[i.extraReducers],M={...y,...d.sliceCaseReducersByType};return cg(i.initialState,$=>{for(let N in M)$.addCase(N,M[N]);for(let N of d.sliceMatchers)$.addMatcher(N.matcher,N.reducer);for(let N of b)$.addMatcher(N.matcher,N.reducer);C&&$.addDefaultCase(C)})}let h=y=>y,g=new Map,v=new WeakMap,w;function k(y,b){return w||(w=m()),w(y,b)}function E(){return w||(w=m()),w.getInitialState()}function L(y,b=!1){function C($){let N=$[y];return typeof N>"u"&&b&&(N=Sn(v,C,E)),N}function M($=h){let N=Sn(g,b,()=>new WeakMap);return Sn(N,$,()=>{let X={};for(let[P,z]of Object.entries(i.selectors??{}))X[P]=Sg(z,$,()=>Sn(v,$,E),b);return X})}return{reducerPath:y,getSelectors:M,get selectors(){return M(C)},selectSlice:C}}let j={name:n,reducer:k,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...L(a),injectInto(y,{reducerPath:b,...C}={}){let M=b??a;return y.inject({reducerPath:M,reducer:k},C),{...j,...L(M,!0)}}};return j}}function Sg(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var bp=vg();function Cg(){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},i,n){let a,s;if("reducer"in i){if(r&&!Og(i))throw new Error(qt(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?dr(t,s):dr(t))}function Eg(t){return t._reducerDefinitionType==="asyncThunk"}function Og(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ag({type:t,reducerName:e},r,i,n){if(!n)throw new Error(qt(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||Cn,pending:l||Cn,rejected:d||Cn,settled:u||Cn})}function Cn(){}var xp="listener",vp="completed",Sp="cancelled",vC=`task-${Sp}`,SC=`task-${vp}`,CC=`${xp}-${Sp}`,wC=`${xp}-${vp}`;var{assign:Cp}=Object;var il="listenerMiddleware";var _g=Cp(dr(`${il}/add`),{withTypes:()=>_g}),EC=dr(`${il}/removeAll`),Rg=Cp(dr(`${il}/remove`),{withTypes:()=>Rg});function qt(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 Yt=class t extends Wt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(go(a))return a;if(n==null)return;let s=bp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=mp({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=et(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ui,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];Ve(g,m)||this.setState({[h]:n(m)})}}}),this.eventBus=i??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 Tg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))go(e)&&e.clear()}var wn=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}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);bt(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 kg(t,e,r){return new wn(t,e,r).watch()}var Nr=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 i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ll={};Z(ll,{scrollHelper:()=>Lg});var al,En=new Map,sl=class{lock(e,r){if(r){let i=En.get(r);if(i==null||i===e)return En.set(r,e),r}}release(e,r){r&&En.get(r)===e&&En.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Xa(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??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 i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i: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 i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=Er(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(al=window.FluidTopicsScrollHelper)!==null&&al!==void 0?al:new sl;var Lg=window.FluidTopicsScrollHelper;var dl={};Z(dl,{SearchPlaceConverter:()=>So,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>su,serializeRequest:()=>Mg});var Ig=t=>typeof t=="object"&&t!=null;var Pg=t=>typeof t=="number",On=t=>typeof t=="string",jp=t=>Ig(t)&&On(t.endpoint)&&On(t.method)&&On(t.statusText)&&On(t.body)&&Pg(t.status),wp;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wp||(wp={}));var Ep;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ep||(Ep={}));var Op;(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"})(Op||(Op={}));var Ap;(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"})(Ap||(Ap={}));var _p;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_p||(_p={}));var Rp;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Rp||(Rp={}));var Tp;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Tp||(Tp={}));var kp;(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"})(kp||(kp={}));var Lp;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Lp||(Lp={}));var Ip;(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"})(Ip||(Ip={}));var Pp;(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"})(Pp||(Pp={}));var Np;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Np||(Np={}));var Dp;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Dp||(Dp={}));var Mp;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Mp||(Mp={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var $p;(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"})($p||($p={}));var xo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(xo||(xo={}));var Fp;(function(t){t.ASC="ASC",t.DESC="DESC"})(Fp||(Fp={}));var Up;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Up||(Up={}));var cl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(cl||(cl={}));var Kp=t=>Object.keys(cl).includes(t);var Bp;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bp||(Bp={}));var An;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(An||(An={}));var Vp;(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"})(Vp||(Vp={}));var vo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(vo||(vo={}));var Zp=t=>Object.keys(vo).includes(t);var zp;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(zp||(zp={}));var Hp;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hp||(Hp={}));var Wp;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wp||(Wp={}));var he;(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"})(he||(he={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Gp;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Gp||(Gp={}));var qp;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(qp||(qp={}));var Yp;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Yp||(Yp={}));var Xp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xp||(Xp={}));var Jp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jp||(Jp={}));var Qp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qp||(Qp={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(tu||(tu={}));var ru;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ru||(ru={}));var ou;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ou||(ou={}));var iu;(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"})(iu||(iu={}));var _n;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(_n||(_n={}));var Ng={[he.PERSONAL_BOOK_SHARE_USER]:[he.PERSONAL_BOOK_USER],[he.HTML_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.PDF_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.KHUB_ADMIN]:[he.CONTENT_PUBLISHER],[he.ADMIN]:[he.KHUB_ADMIN,he.USERS_ADMIN,he.PORTAL_ADMIN,he.BEHAVIOR_DATA_USER],[he.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function nu(t,e){return t===e||(Ng[t]??[]).some(r=>nu(r,e))}function vi(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(i=>nu(i,e))}function Dg(t){return`"${t}"`}function au(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Mg(t,e){return new So(t).serialize(e)}var H;(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"})(H||(H={}));var $g=new Set(Object.values(H));function su(t){return $g.has(t)}var So=class{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,m,h,g,v,w,k;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(H.LOCALE,e.contentLocale):E.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(H.QUERY,e.query);let L=N=>{var X,P;let z=((P=(X=N.valueFilter)===null||X===void 0?void 0:X.values)!==null&&P!==void 0?P:[]).map(ue=>this.escapeFilters(ue)).map(ue=>Dg(au(ue))).join("_");return`${N.key}~${z}`},j=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(N=>N.valueFilter&&!N.valueFilter.negative))!==null&&a!==void 0?a:[];j.length>0&&E.append(H.VALUE_FILTERS,j.map(L).join("*"));let y=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(N=>N.valueFilter&&N.valueFilter.negative))!==null&&l!==void 0?l:[];y.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,y.map(L).join("*"));let b=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(N=>N.dateFilter))!==null&&u!==void 0?u:[];if(b.length>0){let N=b.map(X=>{var P;return`${X.key}~${(P=X.dateFilter)===null||P===void 0?void 0:P.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,N)}let C=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(N=>N.rangeFilter))!==null&&h!==void 0?h:[];if(C.length>0){let N=C.map(X=>{var P,z;return`${X.key}~${(P=X.rangeFilter)===null||P===void 0?void 0:P.from}_${(z=X.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(H.RANGE_FILTERS,N)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(H.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((w=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&w!==void 0?w:this.defaultPerPage)!=this.defaultPerPage&&E.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let M=(k=e.otherQueryParams)!==null&&k!==void 0?k:{};for(let N in M)E.append(N,M[N]);let $=new Array;return E.forEach((N,X)=>{$.push(this.encodeQueryString(X)+"="+this.encodeQueryString(N))}),encodeURI($.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[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,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),m=((r=d.get(H.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(i=d.get(H.SORT))===null||i===void 0?void 0:i.toLowerCase(),g=(n=d.get(H.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),w=d.get(H.KEYWORD_MATCH),k=w?w.toUpperCase()===xo.MANDATORY?xo.MANDATORY:xo.OPTIONAL:void 0,E={};for(let L of d.keys())su(L)||(E[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Kp(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Er(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:k,otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(H.FILTERS)&&(u=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(H.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(H.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(H.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(au).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:vo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Zp(e))return[{key:"ft:lastEdition",dateFilter:{type:vo[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(H.LOCALE),r!==void 0&&i.searchParams.append(H.LOCALE,r),i.toString()}};var ul={};Z(ul,{toFtFormComponent:()=>Dr});var pl=Symbol("elementInternals"),Dr=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[pl].form}constructor(...i){super(i),this[pl]=this.attachInternals()}setFormValue(i){this[pl].setFormValue(i)}}return e});var fl={};Z(fl,{DateFormatter:()=>Mr});var Mr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ml={};Z(ml,{ALL_KEYS_VALUE:()=>hl,SameWindowStorageEvent:()=>Co});var hl="__all__",Co=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==hl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Co(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Co(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Co(hl))}});var yl={};Z(yl,{FocusMainContentEvent:()=>gl});var gl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var lu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Fg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Ug(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Fg);document.addEventListener("click",Ug);var cu=O`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var yl={};Z(yl,{withAriaNotification:()=>Bg});var Ug={checkVisibility:!0},Bg=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Ug,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new It({type:"aria",message:i})))},20)}}return e});var xl={};Z(xl,{withConditionalVisibility:()=>bl});var cu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 bl(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return cu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),cu([T()],e.prototype,"isVisible",void 0),e}var Sl={};Z(Sl,{FormController:()=>vl});function Vg(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var vl=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Vg(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 i={...this.data};i[e]=r,this.data=i,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 i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,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,i,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=Gp(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function Cl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function An(t,e,r){return t?e(t):r?.(t)}var ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},$r;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})($r||($r={}));var Fr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Fr||(Fr={}));var wl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Aw=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=$r.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Fr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===$r.blur||this.validateOn===$r.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Fr.default&&this.validateOn===$r.blurWithStatusResolutionOnInput||this.validateOn===$r.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=Cl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=Cl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new wl(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return x`
71
+ `;var bl={};Z(bl,{withAriaNotification:()=>Vg});var Bg={checkVisibility:!0},Vg=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Bg,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new Lt({type:"aria",message:i})))},20)}}return e});var vl={};Z(vl,{withConditionalVisibility:()=>xl});var du=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 xl(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return du([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),du([T()],e.prototype,"isVisible",void 0),e}var Cl={};Z(Cl,{FormController:()=>Sl});function zg(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Sl=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=zg(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 i={...this.data};i[e]=r,this.data=i,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 i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,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,i,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=jp(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function wl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Rn(t,e,r){return t?e(t):r?.(t)}var Le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},$r;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})($r||($r={}));var Fr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Fr||(Fr={}));var El=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},_w=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=$r.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Fr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===$r.blur||this.validateOn===$r.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Fr.default&&this.validateOn===$r.blurWithStatusResolutionOnInput||this.validateOn===$r.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=wl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=wl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new El(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
  ${je(this.errorMessages,i=>x`
@@ -77,16 +77,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
77
77
  ${je(this.warningMessages,i=>x`
78
78
  <li>${i}</li>
79
79
  `)}
80
- ${An(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>x`
80
+ ${Rn(!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?Fr.error:this.warningMessages.length?Fr.warning:Fr.default}}return ke([f()],e.prototype,"warningRules",void 0),ke([f()],e.prototype,"errorRules",void 0),ke([f()],e.prototype,"validateOn",void 0),ke([f({type:Boolean})],e.prototype,"validateAtRender",void 0),ke([f()],e.prototype,"label",void 0),ke([f({type:Boolean})],e.prototype,"hideLabel",void 0),ke([f()],e.prototype,"name",void 0),ke([f({type:Boolean})],e.prototype,"disabled",void 0),ke([f()],e.prototype,"helperText",void 0),ke([f()],e.prototype,"forceStatus",void 0),ke([f({reflect:!0})],e.prototype,"value",void 0),ke([T()],e.prototype,"errorMessages",void 0),ke([T()],e.prototype,"warningMessages",void 0),ke([T()],e.prototype,"status",void 0),ke([T()],e.prototype,"focused",void 0),ke([T()],e.prototype,"additionalWarningRules",void 0),ke([T()],e.prototype,"additionalErrorRules",void 0),e});var bi=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),bi(i,e);return!0},_n=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},du=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),Wg(e)}};function zg(t){this._$AN!==void 0?(_n(this),this._$AM=t,du(this)):this._$AM=t}function Hg(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)bi(i[a],!1),_n(i[a]);else i!=null&&(bi(i,!1),_n(i));else bi(this,t)}var Wg=t=>{t.type==Tt.CHILD&&(t._$AP??=Hg,t._$AQ??=zg)},bo=class extends at{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),du(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(bi(this,e),_n(this))}setValue(e){if(_c(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 El=class extends bo{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 i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,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,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,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),(i=this.firstTrap)===null||i===void 0||i.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 i=0;i<r.length;i++){let n=r[i];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 i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof nt&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},Ww=Je(El);var pu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(pu||(pu={}));var Gg={sm:640,md:768,lg:1024,xl:1280},Ol=class extends bo{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,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>R);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:Gg[e]}},Zw=Je(Ol);var jg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Al=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function uu(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 u=e[n];this.dispatchEvent(new Al({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,jg([Pe({})],r.prototype,"configuredAnalyticsActions",void 0),r}var _l,Rl,Tl,Il,Ur=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Tl=(Rl=(_l=window.safari)===null||_l===void 0?void 0:_l.pushNotification)===null||Rl===void 0?void 0:Rl.toString())!==null&&Tl!==void 0?Tl:"")==="[object SafariRemoteNotification]",Kg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Il=window.ftGlobals)!==null&&Il!==void 0?Il:{lit:Ua,litDecorators:Va,litRepeat:za,litClassMap:Ha,litStyleMap:Wa,litUnsafeHTML:Ga,wcUtils:{...ja,...ts,...Za,...ns,...ul,...as,...qa,...ds,...es,...Es,...gl,...su,...sl,...Os,...cs,...ks,...pl,...Ts,...yl,...xl,...Nd,...Xa,...Ns,...ps,...Ds,...lu,...Dd,...$s,...il,...hl,...As,...Rs,...cl,...os,...Sl,isSafari:Ur,isTouchScreen:Kg,setVariable:A}};var Xt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var xo=class{constructor(e,r,i,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=i,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 Xt(this.context,this.host,this.t,this.subscribe))}};var Rn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let i=r||!Object.is(e,this.o);this.o=e,i&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:i}]of this.subscriptions)r(this.o,i)},e!==void 0&&(this.value=e)}addCallback(e,r,i){if(!i)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 kl=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},vo=class extends Rn{constructor(e,r,i){super(r.context!==void 0?r.initialValue:i),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 Xt(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 kl(this.context,this.host))}};var xi=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:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Xt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=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(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 vi({context:t}){return(e,r)=>{let i=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return i.get(this).setValue(n),e.set.call(this,n)},init(n){return i.set(this,new vo(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{i.set(s,new vo(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){i.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){i.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Si({context:t,subscribe:e}){return(r,i)=>{typeof i=="object"?i.addInitializer((function(){new xo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new xo(n,{context:t,callback:a=>{n[i]=a},subscribe:e})}))}}var Zg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Ll=Symbol("asset-viewer-state-manager"),Dt=fe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(i){super.willUpdate(i),i.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")}}return Zg([Si({context:Ll,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),e});var qg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Tn=t=>Yt.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:qg});var So=class extends Nr{constructor(e){super(),this.store=e}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var Yg="ft-app-info",$t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$t.eventName="authentication-change";var Br=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Br.eventName="ui-locale-changed";var Xg={session:(t,e)=>{Be(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new $t(e.payload)),0))}},N=Yt.get({name:Yg,reducers:Xg,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}});var In=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},hu=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Dr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return In([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),In([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),In([Y({store:N.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),In([Y({store:N.name})],e.prototype,"uiLocale",void 0),e});var Ft=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=N.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=N.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Co=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ft.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ft.await()}};var Le=class extends Co{constructor(e=!0,r){var i;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=(i=n.commonCache)!==null&&i!==void 0?i: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,i)=>0|31*r+i.charCodeAt(0),0))}};var kn=class extends Le{async listMySearches(){let{session:e}=N.getState();return yi(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ln=class extends Le{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Pn=class extends Le{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=N.getState().session;return!!e?.sessionAuthenticated}};var Nn=class extends Le{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=N.getState().session;return!!e?.sessionAuthenticated}};var Jg="ft-user-assets",Qg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(lt).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:i,asset:n}=e.payload;Nl(t,r,[...Pl(t,r),n]),mu(t,r,1,i),gu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Nl(t,r,Pl(t,r).map(n=>n.id===i.id?i:n)),gu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Nl(t,r,Pl(t,r).filter(a=>a.id!==n)),mu(t,r,-1,i)}},yu={[lt.SEARCHES]:"savedSearches",[lt.BOOKMARKS]:"bookmarks",[lt.BOOKS]:void 0,[lt.COLLECTIONS]:void 0},Pl=(t,e)=>{var r;let i=yu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Nl=(t,e,r)=>{let i=yu[e];i&&(t[i]=r)},mu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===lt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},gu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Ve=Yt.get({name:Jg,reducers:Qg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ml=class{constructor(e=new Pn,r=new Nn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ln,this.savedSearchesService=new kn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Be((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(),Ve.actions.clearAssetCount(),Ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ve.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ve.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ve.getState().assetCounts.allAsset[e]!==r.count&&Ve.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ve.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ve.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ve.getState().assetCounts.bookmarkByMap).length!==0;e===lt.BOOKMARKS&&r&&Ve.actions.clearBookmarkCountByMap(),Ve.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;Ve.actions.bookmarks(r)}}},ey=new Ml;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ey);var Dl=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dl;var bu,wo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ty=Symbol("clearAfterUnitTest"),Mn=class extends Ki(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[bu]=()=>{this.defaultMessages={},this.cache=new kt,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};Be(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new li((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof wr)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i: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 wo({loadedContexts:e})),this.dispatchEvent(new wo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new wo({loadedContexts:[e]})),this.dispatchEvent(new wo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Wi(0).then(()=>i()).catch(()=>null)))}};bu=ty;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Mn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Mn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Eo=window.FluidTopicsI18nService,Dn=window.FluidTopicsCustomI18nService;var $l=class{highlightHtml(e,r,i){Ps(e,r,i)}};window.FluidTopicsHighlightHtmlService=new $l;var Fl=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return Dr.format(e,(i=r?.locale)!==null&&i!==void 0?i:N.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 Fl;var Ci=class{static get(e,r){var i,n,a,s;let l=N.getState(),{lang:d,region:u}=(a=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new go(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Ul=class{urlToSearchRequest(e){return Ci.get().parse(e)}searchRequestToUrl(e){return Ci.get().serialize(e)}};window.FluidTopicsUrlService=new Ul;var Vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Vr.eventName="change";var Bl=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))}},xu=new Bl;var $n=class t extends Wt{static build(){return new t(window.history,xu,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Be(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Vr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[u,s,l]),this.setCurrentState(u,!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 i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Vr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Vr.eventName,e)}currentItem(){return Qe(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 Qe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return Qe(r.find(i=>e(i)))}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 Qe(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 i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,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 i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.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)});var Fn=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var vu=O`
85
- `;function Su(t,e){let{authenticationRequired:r,session:i}=N.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Un=class extends Co{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Vl=class t extends Nr{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new kt,this.withManualResources=!0,this.userLocaleService=new Un,this.cleanSessionDebouncer=new Ne,this.reloadDebouncer=new Ne(500),this.apiProvider=r??(()=>Ft.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener($t.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",()=>Su(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}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(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Br(i)))}).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)}},Oo=Vl.build();var Re=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},se=class extends be{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=Oo,this.contextRoot=new xi}render(){return x`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Fr.error:this.warningMessages.length?Fr.warning:Fr.default}}return Le([f()],e.prototype,"warningRules",void 0),Le([f()],e.prototype,"errorRules",void 0),Le([f()],e.prototype,"validateOn",void 0),Le([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Le([f()],e.prototype,"label",void 0),Le([f({type:Boolean})],e.prototype,"hideLabel",void 0),Le([f()],e.prototype,"name",void 0),Le([f({type:Boolean})],e.prototype,"disabled",void 0),Le([f()],e.prototype,"helperText",void 0),Le([f()],e.prototype,"forceStatus",void 0),Le([f({reflect:!0})],e.prototype,"value",void 0),Le([T()],e.prototype,"errorMessages",void 0),Le([T()],e.prototype,"warningMessages",void 0),Le([T()],e.prototype,"status",void 0),Le([T()],e.prototype,"focused",void 0),Le([T()],e.prototype,"additionalWarningRules",void 0),Le([T()],e.prototype,"additionalErrorRules",void 0),e});var Si=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),Si(i,e);return!0},Tn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},pu=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),Gg(e)}};function Hg(t){this._$AN!==void 0?(Tn(this),this._$AM=t,pu(this)):this._$AM=t}function Wg(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)Si(i[a],!1),Tn(i[a]);else i!=null&&(Si(i,!1),Tn(i));else Si(this,t)}var Gg=t=>{t.type==kt.CHILD&&(t._$AP??=Wg,t._$AQ??=Hg)},wo=class extends lt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),pu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Si(this,e),Tn(this))}setValue(e){if(Rc(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 Ol=class extends wo{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 i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,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,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,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),(i=this.firstTrap)===null||i===void 0||i.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 i=0;i<r.length;i++){let n=r[i];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 i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof st&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},Gw=Qe(Ol);var uu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(uu||(uu={}));var jg={sm:640,md:768,lg:1024,xl:1280},Al=class extends wo{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,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>R);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:jg[e]}},qw=Qe(Al);var Kg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},_l=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function fu(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 u=e[n];this.dispatchEvent(new _l({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,Kg([Pe({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Rl,Tl,kl,Ll,Ur=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((kl=(Tl=(Rl=window.safari)===null||Rl===void 0?void 0:Rl.pushNotification)===null||Tl===void 0?void 0:Tl.toString())!==null&&kl!==void 0?kl:"")==="[object SafariRemoteNotification]",Zg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ll=window.ftGlobals)!==null&&Ll!==void 0?Ll:{lit:Va,litDecorators:Ha,litRepeat:Wa,litClassMap:Ga,litStyleMap:ja,litUnsafeHTML:Ka,wcUtils:{...Za,...rs,...qa,...as,...fl,...ss,...Ya,...ps,...ts,...Os,...yl,...lu,...ll,...As,...ds,...Is,...ul,...ks,...bl,...vl,...Dd,...Ja,...Ds,...us,...$s,...cu,...$d,...Fs,...nl,...ml,..._s,...Ts,...dl,...is,...Cl,isSafari:Ur,isTouchScreen:Zg,setVariable:A}};var Xt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Eo=class{constructor(e,r,i,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=i,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 Xt(this.context,this.host,this.t,this.subscribe))}};var kn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let i=r||!Object.is(e,this.o);this.o=e,i&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:i}]of this.subscriptions)r(this.o,i)},e!==void 0&&(this.value=e)}addCallback(e,r,i){if(!i)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 Il=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},Oo=class extends kn{constructor(e,r,i){super(r.context!==void 0?r.initialValue:i),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 Xt(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 Il(this.context,this.host))}};var Ci=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:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Xt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=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(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 wi({context:t}){return(e,r)=>{let i=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return i.get(this).setValue(n),e.set.call(this,n)},init(n){return i.set(this,new Oo(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{i.set(s,new Oo(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){i.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){i.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Ei({context:t,subscribe:e}){return(r,i)=>{typeof i=="object"?i.addInitializer((function(){new Eo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new Eo(n,{context:t,callback:a=>{n[i]=a},subscribe:e})}))}}var qg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Pl=Symbol("asset-viewer-state-manager"),$t=fe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(i){super.willUpdate(i),i.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")}}return qg([Ei({context:Pl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),e});var Yg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Ln=t=>Yt.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:Yg});var Ao=class extends Nr{constructor(e){super(),this.store=e}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var Xg="ft-app-info",Ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ct.eventName="authentication-change";var Br=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Br.eventName="ui-locale-changed";var Jg={session:(t,e)=>{Ve(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>D.dispatchEvent(new Ct(e.payload)),0))}},D=Yt.get({name:Xg,reducers:Jg,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 In=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},mu=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(D)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return In([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),In([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),In([Y({store:D.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),In([Y({store:D.name})],e.prototype,"uiLocale",void 0),e});var Ft=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=D.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=D.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var _o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ft.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ft.await()}};var Ie=class extends _o{constructor(e=!0,r){var i;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=(i=n.commonCache)!==null&&i!==void 0?i:new It,this.cache=e?n.commonCache:new It}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Pn=class extends Ie{async listMySearches(){let{session:e}=D.getState();return vi(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Nn=class extends Ie{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Dn=class extends Ie{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=D.getState().session;return!!e?.sessionAuthenticated}};var Mn=class extends Ie{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=D.getState().session;return!!e?.sessionAuthenticated}};var Qg="ft-user-assets",ey={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).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:i,asset:n}=e.payload;Dl(t,r,[...Nl(t,r),n]),gu(t,r,1,i),yu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Dl(t,r,Nl(t,r).map(n=>n.id===i.id?i:n)),yu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Dl(t,r,Nl(t,r).filter(a=>a.id!==n)),gu(t,r,-1,i)}},bu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Nl=(t,e)=>{var r;let i=bu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Dl=(t,e,r)=>{let i=bu[e];i&&(t[i]=r)},gu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},yu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ze=Yt.get({name:Qg,reducers:ey,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ml=class{constructor(e=new Dn,r=new Mn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Nn,this.savedSearchesService=new Pn,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=D.getState();Ve((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(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ze.getState().assetCounts.allAsset[e]!==r.count&&ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ze.getState().assetCounts.bookmarkByMap[e]!==r.count&&ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&ze.actions.clearBookmarkCountByMap(),ze.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;ze.actions.bookmarks(r)}}},ty=new Ml;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ty);var $l=class{addCommand(e,r=!1){D.commands.add(e,r)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $l;var xu,Ro=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ry=Symbol("clearAfterUnitTest"),$n=class extends qi(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xu]=()=>{this.defaultMessages={},this.cache=new It,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.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 i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};Ve(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new pi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof wr)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i: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 Ro({loadedContexts:e})),this.dispatchEvent(new Ro({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ro({loadedContexts:[e]})),this.dispatchEvent(new Ro({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ji(0).then(()=>i()).catch(()=>null)))}};xu=ry;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var To=window.FluidTopicsI18nService,Fn=window.FluidTopicsCustomI18nService;var Fl=class{highlightHtml(e,r,i){Ns(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Fl;var Ul=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=D.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return Mr.format(e,(i=r?.locale)!==null&&i!==void 0?i:D.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 Ul;var Oi=class{static get(e,r){var i,n,a,s;let l=D.getState(),{lang:d,region:u}=(a=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new So(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Bl=class{urlToSearchRequest(e){return Oi.get().parse(e)}searchRequestToUrl(e){return Oi.get().serialize(e)}};window.FluidTopicsUrlService=new Bl;var Vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Vr.eventName="before-location-change";var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zr.eventName="change";var Vl=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))}},vu=new Vl;var Un=class t extends Wt{static build(){return new t(window.history,vu,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ve(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new zr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=new Vr(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),m={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:d.detail.nextLocation.href};i.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 i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Vr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Vr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(zr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zr.eventName,e)}currentItem(){return et(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 et(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return et(r.find(i=>e(i)))}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 et(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 i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,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 i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Un.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 Bn=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=D.getState().session;return!!e?.sessionAuthenticated}};var Su=O`
85
+ `;function Cu(t,e){let{authenticationRequired:r,session:i}=D.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Vn=class extends _o{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var zl=class t extends Nr{static build(e){return new t(D,e)}constructor(e,r){super(),this.store=e,this.cache=new It,this.withManualResources=!0,this.userLocaleService=new Vn,this.cleanSessionDebouncer=new Ne,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ne(500),this.apiProvider=r??(()=>Ft.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ct.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ct.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",()=>Cu(()=>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(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Br(i)))}).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)}},ko=zl.build();var Re=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},se=class extends be{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=ko,this.contextRoot=new Ci}render(){return x`
86
86
  <slot></slot>
87
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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(i=>Eo.addContext(i)),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())}};se.elementDefinitions={};se.styles=vu;Re([f()],se.prototype,"baseUrl",void 0);Re([f()],se.prototype,"tenantId",void 0);Re([f()],se.prototype,"apiIntegrationIdentifier",void 0);Re([f()],se.prototype,"apiIntegrationAppVersion",void 0);Re([f()],se.prototype,"uiLocale",void 0);Re([Pe(null)],se.prototype,"availableUiLocales",void 0);Re([Pe(null)],se.prototype,"metadataConfiguration",void 0);Re([f({type:Boolean})],se.prototype,"editorMode",void 0);Re([f({type:Boolean})],se.prototype,"noCustom",void 0);Re([f({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomCode",void 0);Re([f({type:Boolean})],se.prototype,"withManualResources",void 0);Re([f({type:Boolean})],se.prototype,"navigatorOnline",void 0);Re([f({type:Boolean})],se.prototype,"forcedOffline",void 0);Re([f({type:Boolean})],se.prototype,"authenticationRequired",void 0);Re([Pe([])],se.prototype,"messageContexts",void 0);Re([Pe(void 0)],se.prototype,"session",void 0);var Cu={"ft-app-context":se};q(Cu);var cr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(cr||(cr={}));var wu;(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"})(wu||(wu={}));var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:Qe(e),composed:!0,bubbles:!0})}};zr.eventName="ft-viewer-loaded";var Bn=class extends Le{getAsset(e,r,i){let n={[cr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[cr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[cr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[i])}};var Vn=class t extends So{static build(e){return new t(Tn(e),new Bn)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:i}=this.store.getState();if(e&&r&&i){let n=await this.service.getAsset(e,r,i);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,i){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(i),await this.reload(),this.store.getState()}};var wi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Jt=class extends be{constructor(){super(...arguments),this.viewerStateManager=Vn.build(this.id||Zo(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(i=>To.addContext(i)),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())}};se.elementDefinitions={};se.styles=Su;Re([f()],se.prototype,"baseUrl",void 0);Re([f()],se.prototype,"tenantId",void 0);Re([f()],se.prototype,"apiIntegrationIdentifier",void 0);Re([f()],se.prototype,"apiIntegrationAppVersion",void 0);Re([f()],se.prototype,"uiLocale",void 0);Re([Pe(null)],se.prototype,"availableUiLocales",void 0);Re([Pe(null)],se.prototype,"metadataConfiguration",void 0);Re([f({type:Boolean})],se.prototype,"editorMode",void 0);Re([f({type:Boolean})],se.prototype,"noCustom",void 0);Re([f({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);Re([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomCode",void 0);Re([f({type:Boolean})],se.prototype,"withManualResources",void 0);Re([f({type:Boolean})],se.prototype,"navigatorOnline",void 0);Re([f({type:Boolean})],se.prototype,"forcedOffline",void 0);Re([f({type:Boolean})],se.prototype,"authenticationRequired",void 0);Re([Pe([])],se.prototype,"messageContexts",void 0);Re([Pe(void 0)],se.prototype,"session",void 0);var wu={"ft-app-context":se};q(wu);var pr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(pr||(pr={}));var Eu;(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"})(Eu||(Eu={}));var Hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:et(e),composed:!0,bubbles:!0})}};Hr.eventName="ft-viewer-loaded";var zn=class extends Ie{getAsset(e,r,i){let n={[pr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[pr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[pr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[i])}};var Hn=class t extends Ao{static build(e){return new t(Ln(e),new zn)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:i}=this.store.getState();if(e&&r&&i){let n=await this.service.getAsset(e,r,i);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,i){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(i),await this.reload(),this.store.getState()}};var Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Jt=class extends be{constructor(){super(...arguments),this.viewerStateManager=Hn.build(this.id||Xo(6))}render(){return x`
88
88
  <slot></slot>
89
- `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new zr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}};wi([f()],Jt.prototype,"documentId",void 0);wi([f()],Jt.prototype,"assetId",void 0);wi([f()],Jt.prototype,"origin",void 0);wi([vi({context:Ll})],Jt.prototype,"viewerStateManager",void 0);wi([st({eventName:$t.eventName})],Jt.prototype,"onAuthenticationChange",null);var Ze=class extends be{};var ry={position:o.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Eu=O`
89
+ `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Hr(e))}connectedCallback(){super.connectedCallback(),this.addStore(D)}onAuthenticationChange(){this.viewerStateManager.reload()}};Ai([f()],Jt.prototype,"documentId",void 0);Ai([f()],Jt.prototype,"assetId",void 0);Ai([f()],Jt.prototype,"origin",void 0);Ai([wi({context:Pl})],Jt.prototype,"viewerStateManager",void 0);Ai([ct({eventName:Ct.eventName})],Jt.prototype,"onAuthenticationChange",null);var Ze=class extends be{};var oy={position:o.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Ou=O`
90
90
  :host {
91
91
  position: absolute;
92
92
  top: 0;
@@ -97,7 +97,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
97
97
  }
98
98
 
99
99
  .ft-watermark-container {
100
- position: ${ry.position};
100
+ position: ${oy.position};
101
101
  top: 0;
102
102
  text-align: center;
103
103
  }
@@ -105,110 +105,120 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
105
105
  .ft-watermark {
106
106
  z-index: 79;
107
107
  }
108
- `;var Au=Symbol.for(""),oy=t=>{if(t?.r===Au)return t?._$litStatic$},zl=t=>({_$litStatic$:t,r:Au});var Ou=new Map,Hl=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=oy(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=Ou.get(h))===void 0&&(s.raw=s,Ou.set(h,e=s)),r=l}return t(e,...r)},Wl=Hl(x),tR=Hl(Vo),rR=Hl(Ma);var te;(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"})(te||(te={}));var _u=o.extend("--ft-typography-font-family","",S.titleFont),Qt=o.extend("--ft-typography-font-family","",S.contentFont),$={fontFamily:Qt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},dr={fontFamily:o.extend("--ft-typography-title-font-family","",_u),fontSize:o.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},pr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",_u),fontSize:o.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Ao={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Qt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},_o={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Qt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},ct={fontFamily:o.extend("--ft-typography-body1-font-family","",Qt),fontSize:o.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},dt={fontFamily:o.extend("--ft-typography-body2-font-family","",Qt),fontSize:o.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},rt={fontFamily:o.extend("--ft-typography-caption-font-family","",Qt),fontSize:o.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},Ro={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Qt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},To={fontFamily:o.extend("--ft-typography-overline-font-family","",Qt),fontSize:o.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ze={fontFamily:o.extend("--ft-typography-button-font-family","",Qt),fontSize:o.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Ru=O`
108
+ `;var _u=Symbol.for(""),iy=t=>{if(t?.r===_u)return t?._$litStatic$},Hl=t=>({_$litStatic$:t,r:_u});var Au=new Map,Wl=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=iy(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=Au.get(h))===void 0&&(s.raw=s,Au.set(h,e=s)),r=l}return t(e,...r)},Gl=Wl(x),rR=Wl(Ho),oR=Wl($a);var te;(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"})(te||(te={}));var Ru=o.extend("--ft-typography-font-family","",S.titleFont),tr=o.extend("--ft-typography-font-family","",S.contentFont),I={fontFamily:tr,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Qt={fontFamily:o.extend("--ft-typography-title-font-family","",Ru),fontSize:o.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",I.textDecoration,"inherit")},er={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Ru),fontSize:o.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",I.textDecoration,"inherit")},Wr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",tr),fontSize:o.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",I.textDecoration,"inherit")},Gr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",tr),fontSize:o.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",I.textDecoration,"inherit")},ot={fontFamily:o.extend("--ft-typography-body1-font-family","",tr),fontSize:o.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",I.textDecoration,"inherit")},it={fontFamily:o.extend("--ft-typography-body2-font-family","",tr),fontSize:o.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",I.textDecoration,"inherit")},qe={fontFamily:o.extend("--ft-typography-caption-font-family","",tr),fontSize:o.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",I.textDecoration,"inherit")},jr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",tr),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",I.textDecoration,"inherit")},Kr={fontFamily:o.extend("--ft-typography-overline-font-family","",tr),fontSize:o.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",I.textDecoration,"inherit")},Me={fontFamily:o.extend("--ft-typography-button-font-family","",tr),fontSize:o.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",I.textDecoration,"inherit")},Tu=O`
109
109
  .ft-typography--title {
110
- font-family: ${dr.fontFamily};
111
- font-size: ${dr.fontSize};
112
- font-weight: ${dr.fontWeight};
113
- letter-spacing: ${dr.letterSpacing};
114
- line-height: ${dr.lineHeight};
115
- text-transform: ${dr.textTransform};
116
- }
117
- `,Tu=O`
110
+ font-family: ${Qt.fontFamily};
111
+ font-size: ${Qt.fontSize};
112
+ font-weight: ${Qt.fontWeight};
113
+ letter-spacing: ${Qt.letterSpacing};
114
+ line-height: ${Qt.lineHeight};
115
+ text-transform: ${Qt.textTransform};
116
+ text-decoration: ${Qt.textDecoration};
117
+ }
118
+ `,ku=O`
118
119
  .ft-typography--title-dense {
119
- font-family: ${pr.fontFamily};
120
- font-size: ${pr.fontSize};
121
- font-weight: ${pr.fontWeight};
122
- letter-spacing: ${pr.letterSpacing};
123
- line-height: ${pr.lineHeight};
124
- text-transform: ${pr.textTransform};
120
+ font-family: ${er.fontFamily};
121
+ font-size: ${er.fontSize};
122
+ font-weight: ${er.fontWeight};
123
+ letter-spacing: ${er.letterSpacing};
124
+ line-height: ${er.lineHeight};
125
+ text-transform: ${er.textTransform};
126
+ text-decoration: ${er.textDecoration};
125
127
  }
126
- `,Iu=O`
128
+ `,Lu=O`
127
129
  .ft-typography--subtitle1 {
128
- font-family: ${Ao.fontFamily};
129
- font-size: ${Ao.fontSize};
130
- font-weight: ${Ao.fontWeight};
131
- letter-spacing: ${Ao.letterSpacing};
132
- line-height: ${Ao.lineHeight};
133
- text-transform: ${Ao.textTransform};
130
+ font-family: ${Wr.fontFamily};
131
+ font-size: ${Wr.fontSize};
132
+ font-weight: ${Wr.fontWeight};
133
+ letter-spacing: ${Wr.letterSpacing};
134
+ line-height: ${Wr.lineHeight};
135
+ text-transform: ${Wr.textTransform};
136
+ text-decoration: ${Wr.textDecoration};
134
137
  }
135
- `,ku=O`
138
+ `,Iu=O`
136
139
  .ft-typography--subtitle2 {
137
- font-family: ${_o.fontFamily};
138
- font-size: ${_o.fontSize};
139
- font-weight: ${_o.fontWeight};
140
- letter-spacing: ${_o.letterSpacing};
141
- line-height: ${_o.lineHeight};
142
- text-transform: ${_o.textTransform};
140
+ font-family: ${Gr.fontFamily};
141
+ font-size: ${Gr.fontSize};
142
+ font-weight: ${Gr.fontWeight};
143
+ letter-spacing: ${Gr.letterSpacing};
144
+ line-height: ${Gr.lineHeight};
145
+ text-transform: ${Gr.textTransform};
146
+ text-decoration: ${Gr.textDecoration};
143
147
  }
144
148
 
145
149
  `,ur=O`
146
150
  .ft-typography--body1 {
147
- font-family: ${ct.fontFamily};
148
- font-size: ${ct.fontSize};
149
- font-weight: ${ct.fontWeight};
150
- letter-spacing: ${ct.letterSpacing};
151
- line-height: ${ct.lineHeight};
152
- text-transform: ${ct.textTransform};
151
+ font-family: ${ot.fontFamily};
152
+ font-size: ${ot.fontSize};
153
+ font-weight: ${ot.fontWeight};
154
+ letter-spacing: ${ot.letterSpacing};
155
+ line-height: ${ot.lineHeight};
156
+ text-transform: ${ot.textTransform};
157
+ text-decoration: ${ot.textDecoration};
153
158
  }
154
- `,Lu=O`
159
+ `,Pu=O`
155
160
  .ft-typography--body2 {
156
- font-family: ${dt.fontFamily};
157
- font-size: ${dt.fontSize};
158
- font-weight: ${dt.fontWeight};
159
- letter-spacing: ${dt.letterSpacing};
160
- line-height: ${dt.lineHeight};
161
- text-transform: ${dt.textTransform};
162
- }
163
- `,zn=O`
161
+ font-family: ${it.fontFamily};
162
+ font-size: ${it.fontSize};
163
+ font-weight: ${it.fontWeight};
164
+ letter-spacing: ${it.letterSpacing};
165
+ line-height: ${it.lineHeight};
166
+ text-transform: ${it.textTransform};
167
+ text-decoration: ${it.textDecoration};
168
+ }
169
+ `,Wn=O`
164
170
  .ft-typography--caption {
165
- font-family: ${rt.fontFamily};
166
- font-size: ${rt.fontSize};
167
- font-weight: ${rt.fontWeight};
168
- letter-spacing: ${rt.letterSpacing};
169
- line-height: ${rt.lineHeight};
170
- text-transform: ${rt.textTransform};
171
+ font-family: ${qe.fontFamily};
172
+ font-size: ${qe.fontSize};
173
+ font-weight: ${qe.fontWeight};
174
+ letter-spacing: ${qe.letterSpacing};
175
+ line-height: ${qe.lineHeight};
176
+ text-transform: ${qe.textTransform};
177
+ text-decoration: ${qe.textDecoration};
171
178
  }
172
- `,Pu=O`
179
+ `,Nu=O`
173
180
  .ft-typography--breadcrumb {
174
- font-family: ${Ro.fontFamily};
175
- font-size: ${Ro.fontSize};
176
- font-weight: ${Ro.fontWeight};
177
- letter-spacing: ${Ro.letterSpacing};
178
- line-height: ${Ro.lineHeight};
179
- text-transform: ${Ro.textTransform};
181
+ font-family: ${jr.fontFamily};
182
+ font-size: ${jr.fontSize};
183
+ font-weight: ${jr.fontWeight};
184
+ letter-spacing: ${jr.letterSpacing};
185
+ line-height: ${jr.lineHeight};
186
+ text-transform: ${jr.textTransform};
187
+ text-decoration: ${jr.textDecoration};
180
188
  }
181
- `,Nu=O`
189
+ `,Du=O`
182
190
  .ft-typography--overline {
183
- font-family: ${To.fontFamily};
184
- font-size: ${To.fontSize};
185
- font-weight: ${To.fontWeight};
186
- letter-spacing: ${To.letterSpacing};
187
- line-height: ${To.lineHeight};
188
- text-transform: ${To.textTransform};
191
+ font-family: ${Kr.fontFamily};
192
+ font-size: ${Kr.fontSize};
193
+ font-weight: ${Kr.fontWeight};
194
+ letter-spacing: ${Kr.letterSpacing};
195
+ line-height: ${Kr.lineHeight};
196
+ text-transform: ${Kr.textTransform};
197
+ text-decoration: ${Kr.textDecoration};
189
198
  }
190
199
  `,Mu=O`
191
200
  .ft-typography--button {
192
- font-family: ${ze.fontFamily};
193
- font-size: ${ze.fontSize};
194
- font-weight: ${ze.fontWeight};
195
- letter-spacing: ${ze.letterSpacing};
196
- line-height: ${ze.lineHeight};
197
- text-transform: ${ze.textTransform};
198
- }
199
- `,Du=O`
201
+ font-family: ${Me.fontFamily};
202
+ font-size: ${Me.fontSize};
203
+ font-weight: ${Me.fontWeight};
204
+ letter-spacing: ${Me.letterSpacing};
205
+ line-height: ${Me.lineHeight};
206
+ text-transform: ${Me.textTransform};
207
+ text-decoration: ${Me.textDecoration};
208
+ }
209
+ `,$u=O`
200
210
  .ft-typography {
201
211
  vertical-align: inherit;
202
212
  }
203
- `;var $u=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},J=class extends F{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?Wl`
204
- <${zl(this.element)}
213
+ `;var Fu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Q=class extends F{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?Gl`
214
+ <${Hl(this.element)}
205
215
  part="text"
206
216
  class="ft-typography ft-typography--${this.variant}">
207
217
  <slot></slot>
208
- </${zl(this.element)}>
209
- `:Wl`
218
+ </${Hl(this.element)}>
219
+ `:Gl`
210
220
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
211
- `}};J.styles=[Ru,Tu,Iu,ku,ur,Lu,zn,Pu,Nu,Mu,Du];$u([f()],J.prototype,"element",void 0);$u([f()],J.prototype,"variant",void 0);var Fu={"ft-typography":J};q(Fu);var Hn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},St=class extends F{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,i;return this.watermark?x`
221
+ `}};Q.styles=[Tu,ku,Lu,Iu,ur,Pu,Wn,Nu,Du,Mu,$u];Fu([f()],Q.prototype,"element",void 0);Fu([f()],Q.prototype,"variant",void 0);var Uu={"ft-typography":Q};q(Uu);var Gn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 F{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,i;return this.watermark?x`
212
222
  <style>
213
223
  .ft-watermark {
214
224
  height: ${this.height}px;
@@ -223,11 +233,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
223
233
  transform="rotate(-45)"
224
234
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
225
235
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
226
- ${je(((i=this.watermark)===null||i===void 0?void 0:i.text)||[],n=>Vo`<tspan x="0" dy="1.2em">${n}</tspan>`)}
236
+ ${je(((i=this.watermark)===null||i===void 0?void 0:i.text)||[],n=>Ho`<tspan x="0" dy="1.2em">${n}</tspan>`)}
227
237
  </text>
228
238
  </svg>
229
239
  </div>
230
- `:R}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()}};St.styles=[Eu,ur];Hn([U(".ft-watermark")],St.prototype,"svg",void 0);Hn([f({attribute:!1})],St.prototype,"watermark",void 0);Hn([f({attribute:!1})],St.prototype,"heightReference",void 0);Hn([T()],St.prototype,"height",void 0);var Uu={"ft-content-watermark":St};q(Uu);var ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},xe=class extends bl(Ze){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
240
+ `:R}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=[Ou,ur];Gn([U(".ft-watermark")],wt.prototype,"svg",void 0);Gn([f({attribute:!1})],wt.prototype,"watermark",void 0);Gn([f({attribute:!1})],wt.prototype,"heightReference",void 0);Gn([T()],wt.prototype,"height",void 0);var Bu={"ft-content-watermark":wt};q(Bu);var nt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},xe=class extends xl(Ze){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
231
241
  ${this.renderContent()}
232
242
  <ft-content-watermark part="watermark"
233
243
  .watermark=${this.watermark}
@@ -242,7 +252,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
242
252
  alt="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
243
253
  @load=${this.onImageLoad}>
244
254
  `:x`
245
- ${Wo(this.svgContent)}
255
+ ${jo(this.svgContent)}
246
256
  `}
247
257
 
248
258
  </div>
@@ -254,7 +264,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
254
264
  <iframe src="${e}"
255
265
  title="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
256
266
  ></iframe>
257
- `}willUpdate(e){var r,i,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,(i=this.viewerStateManager)===null||i===void 0||i.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,i,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((i=this.descriptor)===null||i===void 0)&&i.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,i,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:u,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${u}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")&&(!((i=this.descriptor)===null||i===void 0)&&i.contentUrl)&&((n=Ft.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())}};xe.elementDefinitions={"ft-content-watermark":St};xe.styles=O`
267
+ `}willUpdate(e){var r,i,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,(i=this.viewerStateManager)===null||i===void 0||i.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,i,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((i=this.descriptor)===null||i===void 0)&&i.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,i,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:u,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${u}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")&&(!((i=this.descriptor)===null||i===void 0)&&i.contentUrl)&&((n=Ft.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())}};xe.elementDefinitions={"ft-content-watermark":wt};xe.styles=O`
258
268
  :host {
259
269
  display: block;
260
270
  min-height: 100px;
@@ -296,23 +306,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
296
306
  max-height: 100%;
297
307
  border: none;
298
308
  }
299
- `;ot([Y({store:"viewer"})],xe.prototype,"descriptor",void 0);ot([T()],xe.prototype,"viewerType",void 0);ot([T()],xe.prototype,"inlineSvgAllowed",void 0);ot([Y({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);ot([Y({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);ot([Y({store:"viewer"})],xe.prototype,"watermark",void 0);ot([U("img")],xe.prototype,"image",void 0);ot([U("svg")],xe.prototype,"svg",void 0);ot([U(".image-viewer")],xe.prototype,"imageViewer",void 0);ot([U(".image-container")],xe.prototype,"imageContainer",void 0);ot([T()],xe.prototype,"imageHeight",void 0);ot([T()],xe.prototype,"imageWidth",void 0);ot([T()],xe.prototype,"svgContent",void 0);var Wn=class extends Dt(xe){};var iy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 Ze{render(){return this.filename?x`
309
+ `;nt([Y({store:"viewer"})],xe.prototype,"descriptor",void 0);nt([T()],xe.prototype,"viewerType",void 0);nt([T()],xe.prototype,"inlineSvgAllowed",void 0);nt([Y({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);nt([Y({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);nt([Y({store:"viewer"})],xe.prototype,"watermark",void 0);nt([U("img")],xe.prototype,"image",void 0);nt([U("svg")],xe.prototype,"svg",void 0);nt([U(".image-viewer")],xe.prototype,"imageViewer",void 0);nt([U(".image-container")],xe.prototype,"imageContainer",void 0);nt([T()],xe.prototype,"imageHeight",void 0);nt([T()],xe.prototype,"imageWidth",void 0);nt([T()],xe.prototype,"svgContent",void 0);var jn=class extends $t(xe){};var ny=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},rr=class extends Ze{render(){return this.filename?x`
300
310
  <ft-typography variant="${te.body1}" part="filename">
301
311
  ${this.filename}
302
312
  </ft-typography>
303
- `:R}};er.elementDefinitions={"ft-typography":J};er.styles=O`
313
+ `:R}};rr.elementDefinitions={"ft-typography":Q};rr.styles=O`
304
314
  [part="filename"]::part(text) {
305
315
  margin: unset;
306
316
  }
307
- `;iy([Y({store:"viewer",selector:({descriptor:t})=>t?.filename})],er.prototype,"filename",void 0);var Gn=class extends Dt(er){};var ny=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Hr=class extends Ze{render(){return this.displayName?x`
317
+ `;ny([Y({store:"viewer",selector:({descriptor:t})=>t?.filename})],rr.prototype,"filename",void 0);var Kn=class extends $t(rr){};var ay=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Zr=class extends Ze{render(){return this.displayName?x`
308
318
  <ft-typography variant="${te.title}" part="display-name" element="h2">
309
319
  ${this.displayName}
310
320
  </ft-typography>
311
- `:R}};Hr.elementDefinitions={"ft-typography":J};Hr.styles=O`
321
+ `:R}};Zr.elementDefinitions={"ft-typography":Q};Zr.styles=O`
312
322
  [part="display-name"]::part(text) {
313
323
  margin: unset;
314
324
  }
315
- `;ny([Y({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Hr.prototype,"displayName",void 0);var jn=class extends Dt(Hr){};var Ce={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bu=[O`
325
+ `;ay([Y({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Zr.prototype,"displayName",void 0);var Zn=class extends $t(Zr){};var Ce={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Vu=[O`
316
326
  :host, i.ft-icon {
317
327
  display: inline-flex;
318
328
  align-items: center;
@@ -360,31 +370,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
360
370
  .ft-icon--material {
361
371
  font-family: ${Ce.materialFontFamily}, "Material Icons", sans-serif;
362
372
  }
363
- `,Kt];var De;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(De||(De={}));var Wr;(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;"})(Wr||(Wr={}));var _;(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;"})(_||(_={}));var Gl=new Map([...["abw"].map(t=>[t,_.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,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]),ay=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 Kn(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=ay.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Gl.get(l))!==null&&i!==void 0?i:Gl.get(e))!==null&&n!==void 0?n:Gl.get(s))!==null&&a!==void 0?a:_.UNKNOWN}var jl={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},re=class extends F{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=R}render(){let e=this.variant&&Object.values(De).includes(this.variant)?this.variant:De.fluid_topics,r=e!==De.material||!!this.value;return x`
373
+ `,Kt];var $e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})($e||($e={}));var qr;(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;"})(qr||(qr={}));var _;(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;"})(_||(_={}));var jl=new Map([...["abw"].map(t=>[t,_.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,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]),sy=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 qn(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=sy.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=jl.get(l))!==null&&i!==void 0?i:jl.get(e))!==null&&n!==void 0?n:jl.get(s))!==null&&a!==void 0?a:_.UNKNOWN}var Kl={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var _i=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},re=class extends F{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=R}render(){let e=this.variant&&Object.values($e).includes(this.variant)?this.variant:$e.fluid_topics,r=e!==$e.material||!!this.value;return x`
364
374
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
365
- ${Wo(this.resolvedIcon)}
375
+ ${jo(this.resolvedIcon)}
366
376
  <slot ?hidden=${r}></slot>
367
377
  </i>
368
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.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 i=this.value||this.getTextContent();switch(this.variant){case De.file_format:this.resolvedIcon=(e=_[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case De.material:this.resolvedIcon=this.value||R;break;default:this.resolvedIcon=(r=Wr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.styles=Bu;Ei([f()],re.prototype,"variant",void 0);Ei([f()],re.prototype,"value",void 0);Ei([f({reflect:!0,attribute:"aria-hidden"})],re.prototype,"ariaHidden",void 0);Ei([T()],re.prototype,"resolvedIcon",void 0);Ei([U("slot")],re.prototype,"slottedContent",void 0);var Vu={"ft-icon":re};q(Vu);var zu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},tr=class extends Ze{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(i=>i.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 i=this.value||this.getTextContent();switch(this.variant){case $e.file_format:this.resolvedIcon=(e=_[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case $e.material:this.resolvedIcon=this.value||R;break;default:this.resolvedIcon=(r=qr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.styles=Vu;_i([f()],re.prototype,"variant",void 0);_i([f()],re.prototype,"value",void 0);_i([f({reflect:!0,attribute:"aria-hidden"})],re.prototype,"ariaHidden",void 0);_i([T()],re.prototype,"resolvedIcon",void 0);_i([U("slot")],re.prototype,"slottedContent",void 0);var zu={"ft-icon":re};q(zu);var Hu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 Ze{render(){var e,r;return this.mimeType?x`
369
379
  <ft-icon part="icon"
370
- variant="${De.file_format}"
371
- value="${Kn(this.mimeType,Ko((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
372
- `:R}};tr.elementDefinitions={"ft-icon":re};zu([Y({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],tr.prototype,"mimeType",void 0);zu([Y({store:"viewer",selector:({descriptor:t})=>t?.filename})],tr.prototype,"filename",void 0);var Zn=class extends Dt(tr){};var sy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},rr=class extends Ze{render(){return this.documentTitle?x`
380
+ variant="${$e.file_format}"
381
+ value="${qn(this.mimeType,Yo((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
382
+ `:R}};or.elementDefinitions={"ft-icon":re};Hu([Y({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],or.prototype,"mimeType",void 0);Hu([Y({store:"viewer",selector:({descriptor:t})=>t?.filename})],or.prototype,"filename",void 0);var Yn=class extends $t(or){};var ly=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 Ze{render(){return this.documentTitle?x`
373
383
  <ft-typography variant="${te.title}" part="title" element="h1">
374
384
  ${this.documentTitle}
375
385
  </ft-typography>
376
- `:R}};rr.elementDefinitions={"ft-typography":J};rr.styles=O`
386
+ `:R}};ir.elementDefinitions={"ft-typography":Q};ir.styles=O`
377
387
  [part="title"]::part(text) {
378
388
  margin: unset;
379
389
  }
380
- `;sy([Y({store:"viewer",selector:({document:t})=>t?.title})],rr.prototype,"documentTitle",void 0);var qn=class extends Dt(rr){};var Hu;(function(t){t.RATING="RATING"})(Hu||(Hu={}));var fr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(fr||(fr={}));var hr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(hr||(hr={}));var Yn=class extends Le{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}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,i){return this.api.rateDocument(e,r,i)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,i){return this.api.sendDocumentFeedback(e,r,i)}isFeatureAccessible(e,{session:r}){switch(e){case hr.FEEDBACK:return yi(r??[],he.FEEDBACK_USER);case hr.RATING:return yi(r??[],he.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}clearConfiguration(){this.cache.clear("configuration")}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Xn=class t extends So{static build(e){return new t(Tn(e),new Yn)}constructor(e,r,i){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,e.actions.origin(cr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:i}=this.store.getState();if(i){let[n]=await Promise.all([this.service.getDocument(i),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:On.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&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){var e;return this.clear(),(e=this.service)===null||e===void 0||e.clearConfiguration(),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,r;let i=(e=this.store.getState().document)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(i!==void 0&&i.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(fr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>rs(s)==this.store.getState().documentId),a=(r=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new ir(i,n,this.metadataForSwitchToRelatives,a)}}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 i=ir.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return Yo(i)}};var Wu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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=Symbol("ud-viewer-state-manager"),qe=fe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var i;return(i=this.viewerStateManager)===null||i===void 0?void 0:i.service}willUpdate(i){var n,a,s;super.willUpdate(i),i.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(i.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),i.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(i){this.clearStateManager(),this.viewerStateManager=i,this.addStore(i.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(i){i&&(i.registerComponent(this,this.neededUdvRequests),this.addStore(i.store,"viewer"))}unregisterFromUdvStateManager(i){i&&(i.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return Wu([Si({context:Kl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),Wu([T({hasChanged:yt})],e.prototype,"neededUdvRequests",void 0),e});var Jn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},mr=class extends be{constructor(){super(...arguments),this.viewerStateManager=Xn.build(this.id||Zo(6))}render(){return x`
390
+ `;ly([Y({store:"viewer",selector:({document:t})=>t?.title})],ir.prototype,"documentTitle",void 0);var Xn=class extends $t(ir){};var Wu;(function(t){t.RATING="RATING"})(Wu||(Wu={}));var fr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(fr||(fr={}));var hr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(hr||(hr={}));var Jn=class extends Ie{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}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,i){return this.api.rateDocument(e,r,i)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,i){return this.api.sendDocumentFeedback(e,r,i)}isFeatureAccessible(e,{session:r}){switch(e){case hr.FEEDBACK:return vi(r??[],he.FEEDBACK_USER);case hr.RATING:return vi(r??[],he.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}clearConfiguration(){this.cache.clear("configuration")}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Qn=class t extends Ao{static build(e){return new t(Ln(e),new Jn)}constructor(e,r,i){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,e.actions.origin(pr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:i}=this.store.getState();if(i){let[n]=await Promise.all([this.service.getDocument(i),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:_n.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&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){var e;return this.clear(),(e=this.service)===null||e===void 0||e.clearConfiguration(),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,r;let i=(e=this.store.getState().document)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(i!==void 0&&i.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(fr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>os(s)==this.store.getState().documentId),a=(r=(e=D.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new ar(i,n,this.metadataForSwitchToRelatives,a)}}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 i=ar.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return Qo(i)}};var Gu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Zl=Symbol("ud-viewer-state-manager"),Ye=fe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var i;return(i=this.viewerStateManager)===null||i===void 0?void 0:i.service}willUpdate(i){var n,a,s;super.willUpdate(i),i.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(i.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),i.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(i){this.clearStateManager(),this.viewerStateManager=i,this.addStore(i.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(i){i&&(i.registerComponent(this,this.neededUdvRequests),this.addStore(i.store,"viewer"))}unregisterFromUdvStateManager(i){i&&(i.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return Gu([Ei({context:Zl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),Gu([T({hasChanged:bt})],e.prototype,"neededUdvRequests",void 0),e});var ea=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},mr=class extends be{constructor(){super(...arguments),this.viewerStateManager=Qn.build(this.id||Xo(6))}render(){return x`
381
391
  <slot></slot>
382
- `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new zr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=N.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){Oo===null||Oo===void 0||Oo.stopReloadDebouncer();let i=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);i?window.location.assign(i):window.location.reload()}}};Jn([f()],mr.prototype,"documentId",void 0);Jn([vi({context:Kl})],mr.prototype,"viewerStateManager",void 0);Jn([st({eventName:$t.eventName})],mr.prototype,"onAuthenticationChange",null);Jn([st({store:N.name,eventName:Br.eventName})],mr.prototype,"reactToUiLocaleChanged",null);var Qn=class extends qe(xe){};var ea=class extends qe(er){};var ta=class extends qe(rr){};var ra=class extends qe(tr){};var pt=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?Dn:Eo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Zl=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,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Io=new Zl;var ly=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Ai=Symbol("i18nAttributes"),Gu=Symbol("i18nListAttributes"),_i=Symbol("i18nProperties"),oa=Symbol("i18nContexts"),Oi=Symbol("i18nUnsubs"),ut=fe(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Dn:Eo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).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(Io.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 u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(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[Ai])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[Gu])===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=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[_i])===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[oa].set(d,{isCustomContext:l}),this[Oi].has(d)||this[Oi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[oa].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[oa].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Oi].forEach(a=>a()),this[Oi].clear()}}return e=oa,r=Oi,ly([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ia=class extends ut(F){},na=class extends ut(be){};var aa=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[_i]=(a=r[_i])!==null&&a!==void 0?a:new Map,r[_i].set(i,s)};var ju=O`
383
- `;var Ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 na{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":R:x`
392
+ `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Hr(e))}connectedCallback(){super.connectedCallback(),this.addStore(D)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=D.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){ko===null||ko===void 0||ko.stopReloadDebouncer();let i=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);i?window.location.assign(i):window.location.reload()}}};ea([f()],mr.prototype,"documentId",void 0);ea([wi({context:Zl})],mr.prototype,"viewerStateManager",void 0);ea([ct({eventName:Ct.eventName})],mr.prototype,"onAuthenticationChange",null);ea([ct({store:D.name,eventName:Br.eventName})],mr.prototype,"reactToUiLocaleChanged",null);var ta=class extends Ye(xe){};var ra=class extends Ye(rr){};var oa=class extends Ye(ir){};var ia=class extends Ye(or){};var pt=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?Fn:To}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ql=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,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Lo=new ql;var cy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Ti=Symbol("i18nAttributes"),ju=Symbol("i18nListAttributes"),ki=Symbol("i18nProperties"),na=Symbol("i18nContexts"),Ri=Symbol("i18nUnsubs"),ut=fe(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Fn:To}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).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(Lo.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 u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(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[Ti])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[ju])===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=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[ki])===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[na].set(d,{isCustomContext:l}),this[Ri].has(d)||this[Ri].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[na].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[na].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ri].forEach(a=>a()),this[Ri].clear()}}return e=na,r=Ri,cy([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),aa=class extends ut(F){},sa=class extends ut(be){};var la=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[ki]=(a=r[ki])!==null&&a!==void 0?a:new Map,r[ki].set(i,s)};var Ku=O`
393
+ `;var Io=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},ft=class extends sa{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:R:x`
384
394
  <span class="ft-i18n">
385
395
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
386
396
  </span>
387
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ct.elementDefinitions={};Ct.styles=ju;Ri([Y()],Ct.prototype,"editorMode",void 0);Ri([f()],Ct.prototype,"context",void 0);Ri([f()],Ct.prototype,"key",void 0);Ri([Pe([])],Ct.prototype,"args",void 0);Ri([f()],Ct.prototype,"defaultMessage",void 0);var Ku={"ft-i18n":Ct};q(Ku);var Zu={itemsGap:o.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var sa;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(sa||(sa={}));var qu;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(qu||(qu={}));var cy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Yl=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ql=Symbol("registerInterval"),Xl=fe(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[ql]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ql]):this.dispatchEvent(new Yl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ql,cy([T()],r.prototype,"stateManager",void 0),r}),Yu=class extends Xl(be){};var Jl=pt.build("designedReaderAttachments"),Xu={download:"Download \u201C{0}\u201D"};var Ju=o.extend("--ft-ripple-color","",S.colorContent),ne={color:Ju,backgroundColor:o.extend("--ft-ripple-background-color","",Ju),opacityContentOnSurfacePressed:o.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Qu=o.extend("--ft-ripple-color","",S.colorPrimary),ef={color:Qu,backgroundColor:o.extend("--ft-ripple-background-color","",Qu)},tf=o.extend("--ft-ripple-color","",S.colorSecondary),rf={color:tf,backgroundColor:o.extend("--ft-ripple-background-color","",tf)},of=O`
397
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ft.elementDefinitions={};ft.styles=Ku;Io([Y()],ft.prototype,"editorMode",void 0);Io([f()],ft.prototype,"context",void 0);Io([f()],ft.prototype,"key",void 0);Io([Pe([])],ft.prototype,"args",void 0);Io([f()],ft.prototype,"defaultMessage",void 0);Io([T()],ft.prototype,"editorMessage",void 0);var Zu={"ft-i18n":ft};q(Zu);var qu={itemsGap:o.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var ca;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ca||(ca={}));var Yu;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yu||(Yu={}));var dy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Xl=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Yl=Symbol("registerInterval"),Jl=fe(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[Yl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Yl]):this.dispatchEvent(new Xl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yl,dy([T()],r.prototype,"stateManager",void 0),r}),Xu=class extends Jl(be){};var Ql=pt.build("designedReaderAttachments"),Ju={download:"Download \u201C{0}\u201D"};var Qu=o.extend("--ft-ripple-color","",S.colorContent),ne={color:Qu,backgroundColor:o.extend("--ft-ripple-background-color","",Qu),opacityContentOnSurfacePressed:o.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},ef=o.extend("--ft-ripple-color","",S.colorPrimary),tf={color:ef,backgroundColor:o.extend("--ft-ripple-background-color","",ef)},rf=o.extend("--ft-ripple-color","",S.colorSecondary),of={color:rf,backgroundColor:o.extend("--ft-ripple-background-color","",rf)},nf=O`
388
398
  :host {
389
399
  display: contents;
390
400
  }
@@ -439,19 +449,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
439
449
  }
440
450
 
441
451
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
442
- background-color: ${rf.backgroundColor};
452
+ background-color: ${of.backgroundColor};
443
453
  }
444
454
 
445
455
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
446
- background-color: ${rf.color};
456
+ background-color: ${of.color};
447
457
  }
448
458
 
449
459
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
450
- background-color: ${ef.backgroundColor};
460
+ background-color: ${tf.backgroundColor};
451
461
  }
452
462
 
453
463
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
454
- background-color: ${ef.color};
464
+ background-color: ${tf.color};
455
465
  }
456
466
 
457
467
  .ft-ripple .ft-ripple--background {
@@ -496,7 +506,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
496
506
  opacity: ${ne.opacityContentOnSurfacePressed};
497
507
  transform: translate(-50%, -50%) scale(1);
498
508
  }
499
- `;var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},K=class extends F{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ne(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ne(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return x`
509
+ `;var Xe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},K=class extends F{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ne(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ne(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return x`
500
510
  <style>
501
511
  .ft-ripple .ft-ripple--effect {
502
512
  left: ${this.originX}px;
@@ -507,9 +517,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
507
517
  <div class="ft-ripple--background"></div>
508
518
  <div class="ft-ripple--effect"></div>
509
519
  </div>
510
- `}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,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=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",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let 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()}};K.elementDefinitions={};K.styles=of;Ye([f({type:Boolean})],K.prototype,"primary",void 0);Ye([f({type:Boolean})],K.prototype,"secondary",void 0);Ye([f({type:Boolean})],K.prototype,"unbounded",void 0);Ye([f({type:Boolean})],K.prototype,"activated",void 0);Ye([f({type:Boolean})],K.prototype,"selected",void 0);Ye([f({type:Boolean})],K.prototype,"disabled",void 0);Ye([T()],K.prototype,"hovered",void 0);Ye([T()],K.prototype,"focused",void 0);Ye([T()],K.prototype,"pressed",void 0);Ye([T()],K.prototype,"rippling",void 0);Ye([T()],K.prototype,"originX",void 0);Ye([T()],K.prototype,"originY",void 0);Ye([U(".ft-ripple")],K.prototype,"ripple",void 0);Ye([U(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var nf={"ft-ripple":K};q(nf);var la=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},dy={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},wt=class extends uu(be,dy){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,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=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",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let 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()}};K.elementDefinitions={};K.styles=nf;Xe([f({type:Boolean})],K.prototype,"primary",void 0);Xe([f({type:Boolean})],K.prototype,"secondary",void 0);Xe([f({type:Boolean})],K.prototype,"unbounded",void 0);Xe([f({type:Boolean})],K.prototype,"activated",void 0);Xe([f({type:Boolean})],K.prototype,"selected",void 0);Xe([f({type:Boolean})],K.prototype,"disabled",void 0);Xe([T()],K.prototype,"hovered",void 0);Xe([T()],K.prototype,"focused",void 0);Xe([T()],K.prototype,"pressed",void 0);Xe([T()],K.prototype,"rippling",void 0);Xe([T()],K.prototype,"originX",void 0);Xe([T()],K.prototype,"originY",void 0);Xe([U(".ft-ripple")],K.prototype,"ripple",void 0);Xe([U(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var af={"ft-ripple":K};q(af);var da=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},py={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Et=class extends fu(be,py){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`
511
521
  <div part="container" class="${oe(e)}">
512
- ${je(this.attachments,r=>r.id,r=>{var i;let n=Kn(r.mimeType,Ko(r.file.split(".")));return x`
522
+ ${je(this.attachments,r=>r.id,r=>{var i;let n=qn(r.mimeType,Yo(r.file.split(".")));return x`
513
523
  <div part="attachment">
514
524
  <a part="viewer-link" href="${this.getAttachmentViewerLink(r)}"
515
525
  aria-label="${this.getAttachmentAriaLabel(r)}"
@@ -518,7 +528,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
518
528
  <ft-icon part="file-format-icon"
519
529
  variant="file-format"
520
530
  value="${n}"
521
- style="color: ${(i=jl[n])!==null&&i!==void 0?i:jl[_.UNKNOWN]}"></ft-icon>
531
+ style="color: ${(i=Kl[n])!==null&&i!==void 0?i:Kl[_.UNKNOWN]}"></ft-icon>
522
532
  <ft-typography part="name" variant="${te.body2}">${r.name}</ft-typography>
523
533
  </a>
524
534
  ${r.externalLink?R:x`
@@ -534,7 +544,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
534
544
  </div>
535
545
  `})}
536
546
  </div>
537
- `}return R}getAttachmentAriaLabel(e){var r;let i=e.name,n=e.file;if(i===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return i+" "+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")}};wt.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":J};la([f({type:Boolean})],wt.prototype,"hideFileFormatIcon",void 0);la([f({type:Boolean})],wt.prototype,"hideFilename",void 0);la([f({type:Boolean})],wt.prototype,"hideDownloadIcon",void 0);la([T()],wt.prototype,"attachments",void 0);function ca(t){return O`
547
+ `}return R}getAttachmentAriaLabel(e){var r;let i=e.name,n=e.file;if(i===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return i+" "+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")}};Et.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":Q};da([f({type:Boolean})],Et.prototype,"hideFileFormatIcon",void 0);da([f({type:Boolean})],Et.prototype,"hideFilename",void 0);da([f({type:Boolean})],Et.prototype,"hideDownloadIcon",void 0);da([T()],Et.prototype,"attachments",void 0);function pa(t){return O`
538
548
  [part="container"] {
539
549
  display: flex;
540
550
  flex-direction: column;
@@ -601,7 +611,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
601
611
  .hide-download-icon [part="download-link"] {
602
612
  display: none;
603
613
  }
604
- `}var af=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Gr=class extends Xl(ut(wt)){constructor(){super(),this.addI18nContext(Jl,Xu)}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,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return Jl.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};Gr.styles=ca(Zu);af([Y({store:"reader"})],Gr.prototype,"map",void 0);af([st({eventName:sa.mapAttachmentsUpdate})],Gr.prototype,"updateAttachments",null);var sf={"ft-reader-attachments":Gr};q(sf);var lf={itemsGap:o.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var ko=pt.build("designedUdViewer"),cf={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var df=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 qe(ut(wt)){constructor(){super(),this.addI18nContext(ko,cf)}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,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return ko.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};jr.styles=ca(lf);df([Y({store:"viewer"})],jr.prototype,"document",void 0);df([st({eventName:fr.udAttachmentsUpdate})],jr.prototype,"updateAttachments",null);var da=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},pa=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Ti={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},pf=O`
614
+ `}var sf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Yr=class extends Jl(ut(Et)){constructor(){super(),this.addI18nContext(Ql,Ju)}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,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return Ql.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};Yr.styles=pa(qu);sf([Y({store:"reader"})],Yr.prototype,"map",void 0);sf([ct({eventName:ca.mapAttachmentsUpdate})],Yr.prototype,"updateAttachments",null);var lf={"ft-reader-attachments":Yr};q(lf);var cf={itemsGap:o.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Po=pt.build("designedUdViewer"),df={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var pf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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(ut(Et)){constructor(){super(),this.addI18nContext(Po,df)}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,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return Po.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};Xr.styles=pa(cf);pf([Y({store:"viewer"})],Xr.prototype,"document",void 0);pf([ct({eventName:fr.udAttachmentsUpdate})],Xr.prototype,"updateAttachments",null);var ua=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},fa=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Li={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},uf=O`
605
615
  .ft-tooltip--container {
606
616
  display: block;
607
617
  }
@@ -619,20 +629,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
619
629
  box-sizing: border-box;
620
630
  overflow: hidden;
621
631
  width: max-content;
622
- max-width: ${Ti.maxWidth};
632
+ max-width: ${Li.maxWidth};
623
633
  text-align: center;
624
- padding: ${Ti.distance};
634
+ padding: ${Li.distance};
625
635
  }
626
636
 
627
637
  .ft-tooltip--content {
628
638
  padding: 4px 8px;
629
- border-radius: ${Ti.borderRadiusS};
630
- background-color: ${Ti.backgroundColor};
631
- color: ${Ti.color};
639
+ border-radius: ${Li.borderRadiusS};
640
+ background-color: ${Li.backgroundColor};
641
+ color: ${Li.color};
632
642
  position: relative;
633
643
  word-break: break-word;
634
644
  }
635
- `;var Ql=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Io.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},py=new Ql;var uf=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:yt,converter:Io,...e}),r[Ai]=(n=r[Ai])!==null&&n!==void 0?n:new Map,r[Ai].set(i,t??{})};var Et=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},me=class extends ia{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 ec=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Lo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},uy=new ec;var ff=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:bt,converter:Lo,...e}),r[Ti]=(n=r[Ti])!==null&&n!==void 0?n:new Map,r[Ti].set(i,t??{})};var Ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},me=class extends aa{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`
636
646
  <div part="container"
637
647
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
638
648
  <slot part="slot"></slot>
@@ -647,7 +657,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
647
657
  </div>
648
658
  </div>
649
659
  </div>
650
- `}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,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.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 i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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&&ii(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)}};me.elementDefinitions={"ft-typography":J};me.styles=pf;Et([uf()],me.prototype,"text",void 0);Et([f({type:Boolean})],me.prototype,"manual",void 0);Et([f({type:Boolean})],me.prototype,"inline",void 0);Et([gt()],me.prototype,"delay",void 0);Et([f()],me.prototype,"position",void 0);Et([Pe([])],me.prototype,"ignoreMatchingElements",void 0);Et([Ho()],me.prototype,"slotNodes",void 0);Et([U(".ft-tooltip--container")],me.prototype,"container",void 0);Et([U(".ft-tooltip")],me.prototype,"tooltip",void 0);Et([U(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);Et([T()],me.prototype,"visible",void 0);var ff={"ft-tooltip":me};q(ff);var Kr={color:o.extend("--ft-loader-color","",S.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},hf=O`
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,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.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 i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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&&si(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)}};me.elementDefinitions={"ft-typography":Q};me.styles=uf;Ot([ff()],me.prototype,"text",void 0);Ot([f({type:Boolean})],me.prototype,"manual",void 0);Ot([f({type:Boolean})],me.prototype,"inline",void 0);Ot([yt()],me.prototype,"delay",void 0);Ot([f()],me.prototype,"position",void 0);Ot([Pe([])],me.prototype,"ignoreMatchingElements",void 0);Ot([Go()],me.prototype,"slotNodes",void 0);Ot([U(".ft-tooltip--container")],me.prototype,"container",void 0);Ot([U(".ft-tooltip")],me.prototype,"tooltip",void 0);Ot([U(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);Ot([T()],me.prototype,"visible",void 0);var hf={"ft-tooltip":me};q(hf);var Jr={color:o.extend("--ft-loader-color","",S.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},mf=O`
651
661
  :host {
652
662
  line-height: 0;
653
663
  }
@@ -656,8 +666,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
656
666
  display: inline-block;
657
667
  position: relative;
658
668
 
659
- width: ${Kr.size};
660
- height: ${Kr.size};
669
+ width: ${Jr.size};
670
+ height: ${Jr.size};
661
671
  }
662
672
 
663
673
  .ft-loader div {
@@ -666,7 +676,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
666
676
  width: 25%;
667
677
  height: 25%;
668
678
  border-radius: 50%;
669
- background: ${Kr.color};
679
+ background: ${Jr.color};
670
680
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
671
681
  }
672
682
 
@@ -713,17 +723,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
713
723
  transform: translate(0, 0);
714
724
  }
715
725
  100% {
716
- transform: translate(calc(0.35 * ${Kr.size}), 0);
726
+ transform: translate(calc(0.35 * ${Jr.size}), 0);
717
727
  }
718
728
  }
719
- `;var Zr=class extends F{render(){return x`
729
+ `;var Qr=class extends F{render(){return x`
720
730
  <div class="ft-loader">
721
731
  <div></div>
722
732
  <div></div>
723
733
  <div></div>
724
734
  <div></div>
725
735
  </div>
726
- `}};Zr.styles=hf;var mf={"ft-loader":Zr};q(mf);var Ot=t=>t??R;var gf=o.extend("--ft-button-color","",S.colorPrimary),ee={backgroundColor:o.extend("--ft-button-background-color","",S.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",S.borderRadiusL),color:gf,fontSize:o.extend("--ft-button-font-size","",ze.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",gf),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},yf=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",S.colorOnPrimary)),ec={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",S.colorPrimary)),color:yf,rippleColor:o.extend("--ft-button-primary-ripple-color","",yf)},Ut={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},bf=O`
736
+ `}};Qr.styles=mf;var gf={"ft-loader":Qr};q(gf);var At=t=>t??R;var yf=o.extend("--ft-button-color","",S.colorPrimary),ee={backgroundColor:o.extend("--ft-button-background-color","",S.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",S.borderRadiusL),color:yf,fontSize:o.extend("--ft-button-font-size","",Me.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",yf),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},bf=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",S.colorOnPrimary)),tc={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",S.colorPrimary)),color:bf,rippleColor:o.extend("--ft-button-primary-ripple-color","",bf)},Ut={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},xf=O`
727
737
  :host {
728
738
  display: inline-block;
729
739
  max-width: 100%;
@@ -813,9 +823,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
813
823
  }
814
824
 
815
825
  .ft-button.ft-button--primary {
816
- background-color: ${ec.backgroundColor};
817
- --button-internal-color: ${ec.color};
818
- ${A(ne.color,ec.rippleColor)};
826
+ background-color: ${tc.backgroundColor};
827
+ --button-internal-color: ${tc.color};
828
+ ${A(ne.color,tc.rippleColor)};
819
829
  }
820
830
 
821
831
  .ft-button--label {
@@ -825,8 +835,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
825
835
  text-overflow: ellipsis;
826
836
  display: block;
827
837
  margin: 0 ${ee.iconPadding};
828
- ${A(ze.fontSize,"1em")};
829
- ${A(ze.lineHeight,"var(--button-internal-line-height)")};
838
+ ${A(Me.fontSize,"1em")};
839
+ ${A(Me.lineHeight,"var(--button-internal-line-height)")};
830
840
  }
831
841
 
832
842
  .ft-button--dense .ft-button--label {
@@ -857,10 +867,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
857
867
  }
858
868
 
859
869
  ft-loader {
860
- ${A(Kr.size,ee.iconSize)};
861
- ${A(Kr.color,"var(--button-internal-color)")};
870
+ ${A(Jr.size,ee.iconSize)};
871
+ ${A(Jr.color,"var(--button-internal-color)")};
862
872
  }
863
- `;var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},W=class t extends Mr(F){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ur,"ft-button--label-no-text":!this.hasTextContent},a=x`
873
+ `;var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},W=class t extends Dr(F){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ur,"ft-button--label-no-text":!this.hasTextContent},a=x`
864
874
  <ft-ripple part="ripple"
865
875
  ?disabled=${this.isDisabled()}
866
876
  ?activated=${this.activated}
@@ -877,16 +887,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
877
887
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
878
888
  part="button"
879
889
  class="${oe(this.buttonClasses)}"
880
- aria-label="${Ot((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
890
+ aria-label="${At((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
881
891
  ?disabled=${this.isDisabled()}>
882
892
  ${a}
883
893
  </a>
884
894
  `:x`
885
895
  <button part="button"
886
896
  class="${oe(this.buttonClasses)}"
887
- aria-label="${Ot((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
888
- aria-haspopup="${Ot(this.ariaHasPopup)}"
889
- aria-pressed="${Ot(this.ariaPressed)}"
897
+ aria-label="${At((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
898
+ aria-haspopup="${At(this.ariaHasPopup)}"
899
+ aria-pressed="${At(this.ariaPressed)}"
890
900
  ?disabled=${this.isDisabled()}>
891
901
  ${a}
892
902
  </button>
@@ -901,7 +911,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
901
911
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
902
912
  `:x`
903
913
  <slot part="icon" name="icon"></slot>
904
- `}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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.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)}};W.elementDefinitions={"ft-ripple":K,"ft-tooltip":me,"ft-icon":re,"ft-loader":Zr,"ft-typography":J};W.styles=[si,bf,Kt];W.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:W.labelsObserver.unobserve(e.target)}});ae([f({type:Boolean})],W.prototype,"primary",void 0);ae([f({type:Boolean})],W.prototype,"outlined",void 0);ae([f({type:Boolean})],W.prototype,"dense",void 0);ae([f({type:Boolean})],W.prototype,"round",void 0);ae([f({type:Boolean})],W.prototype,"disabled",void 0);ae([f()],W.prototype,"icon",void 0);ae([f()],W.prototype,"iconVariant",void 0);ae([f({type:Boolean})],W.prototype,"trailingIcon",void 0);ae([f()],W.prototype,"label",void 0);ae([f()],W.prototype,"type",void 0);ae([f()],W.prototype,"href",void 0);ae([f()],W.prototype,"target",void 0);ae([f({type:Boolean})],W.prototype,"loading",void 0);ae([f({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);ae([f()],W.prototype,"ariaHasPopup",void 0);ae([f({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);ae([f()],W.prototype,"tooltipPosition",void 0);ae([f({type:Boolean})],W.prototype,"hideTooltip",void 0);ae([f({type:Boolean})],W.prototype,"forceTooltip",void 0);ae([f({type:Boolean})],W.prototype,"activated",void 0);ae([U(".ft-button")],W.prototype,"button",void 0);ae([U(".ft-button--label")],W.prototype,"labelContainer",void 0);ae([T()],W.prototype,"hasTextContent",void 0);ae([U(".ft-button--label slot")],W.prototype,"slottedContent",void 0);ae([U("[part=tooltip]")],W.prototype,"tooltip",void 0);var xf={"ft-button":W};q(xf);var ye={textColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",ze.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",S.colorPrimary)};var Oe={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},vf=O`
914
+ `}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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.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)}};W.elementDefinitions={"ft-ripple":K,"ft-tooltip":me,"ft-icon":re,"ft-loader":Qr,"ft-typography":Q};W.styles=[di,xf,Kt];W.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:W.labelsObserver.unobserve(e.target)}});ae([f({type:Boolean})],W.prototype,"primary",void 0);ae([f({type:Boolean})],W.prototype,"outlined",void 0);ae([f({type:Boolean})],W.prototype,"dense",void 0);ae([f({type:Boolean})],W.prototype,"round",void 0);ae([f({type:Boolean})],W.prototype,"disabled",void 0);ae([f()],W.prototype,"icon",void 0);ae([f()],W.prototype,"iconVariant",void 0);ae([f({type:Boolean})],W.prototype,"trailingIcon",void 0);ae([f()],W.prototype,"label",void 0);ae([f()],W.prototype,"type",void 0);ae([f()],W.prototype,"href",void 0);ae([f()],W.prototype,"target",void 0);ae([f({type:Boolean})],W.prototype,"loading",void 0);ae([f({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);ae([f()],W.prototype,"ariaHasPopup",void 0);ae([f({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);ae([f()],W.prototype,"tooltipPosition",void 0);ae([f({type:Boolean})],W.prototype,"hideTooltip",void 0);ae([f({type:Boolean})],W.prototype,"forceTooltip",void 0);ae([f({type:Boolean})],W.prototype,"activated",void 0);ae([U(".ft-button")],W.prototype,"button",void 0);ae([U(".ft-button--label")],W.prototype,"labelContainer",void 0);ae([T()],W.prototype,"hasTextContent",void 0);ae([U(".ft-button--label slot")],W.prototype,"slottedContent",void 0);ae([U("[part=tooltip]")],W.prototype,"tooltip",void 0);var vf={"ft-button":W};q(vf);var ye={textColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Me.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",S.colorPrimary)};var Oe={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Sf=O`
905
915
  .ft-switch-option {
906
916
  position: relative;
907
917
  display: inline-block;
@@ -953,8 +963,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
953
963
  text-overflow: ellipsis;
954
964
  display: block;
955
965
  margin: 0 8px;
956
- ${A(ze.fontSize,ye.fontSize)};
957
- ${A(ze.lineHeight,"var(--switch-option-internal-content-height)")}
966
+ ${A(Me.fontSize,ye.fontSize)};
967
+ ${A(Me.lineHeight,"var(--switch-option-internal-content-height)")}
958
968
  }
959
969
 
960
970
  .ft-switch-option--selected .ft-switch-option--label {
@@ -989,7 +999,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
989
999
  .ft-switch-option--selected ft-icon {
990
1000
  color: ${ye.selectedTextColor};
991
1001
  }
992
- `;var At=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},tc=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},rc=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ve=class extends F{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 rc(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`
1002
+ `;var _t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},rc=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},oc=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ve=class extends F{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 oc(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`
993
1003
  <label part="label" for="input" class="${oe(e)}"
994
1004
  @click=${this.onChange}>
995
1005
  <div class="ft-switch-option--content">
@@ -1011,16 +1021,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1011
1021
  position="${this.tooltipPosition}">
1012
1022
  ${e}
1013
1023
  </ft-tooltip>
1014
- `}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 tc(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1024
+ `}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 rc(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1015
1025
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1016
- `:R}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ve.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-tooltip":me,"ft-icon":re};ve.styles=[si,vf];At([f()],ve.prototype,"value",void 0);At([f()],ve.prototype,"icon",void 0);At([f()],ve.prototype,"iconVariant",void 0);At([f()],ve.prototype,"label",void 0);At([f()],ve.prototype,"tooltipPosition",void 0);At([f({type:Boolean,reflect:!0})],ve.prototype,"selected",void 0);At([f({type:Boolean})],ve.prototype,"trailingIcon",void 0);At([f({type:Boolean})],ve.prototype,"unselectable",void 0);At([U(".ft-switch-option--content slot")],ve.prototype,"slottedContent",void 0);At([U(".ft-switch-option--input")],ve.prototype,"input",void 0);At([T()],ve.prototype,"isFocused",void 0);var qr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},oc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends F{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`
1026
+ `:R}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ve.elementDefinitions={"ft-ripple":K,"ft-typography":Q,"ft-tooltip":me,"ft-icon":re};ve.styles=[di,Sf];_t([f()],ve.prototype,"value",void 0);_t([f()],ve.prototype,"icon",void 0);_t([f()],ve.prototype,"iconVariant",void 0);_t([f()],ve.prototype,"label",void 0);_t([f()],ve.prototype,"tooltipPosition",void 0);_t([f({type:Boolean,reflect:!0})],ve.prototype,"selected",void 0);_t([f({type:Boolean})],ve.prototype,"trailingIcon",void 0);_t([f({type:Boolean})],ve.prototype,"unselectable",void 0);_t([U(".ft-switch-option--content slot")],ve.prototype,"slottedContent",void 0);_t([U(".ft-switch-option--input")],ve.prototype,"input",void 0);_t([T()],ve.prototype,"isFocused",void 0);var eo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},ic=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends F{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`
1017
1027
  <div @keydown=${this.onKeyDown} tabindex="-1" class="${oe(e)}" role="radiogroup" aria-label="${this.label}">
1018
1028
  <slot @slotchange=${this.onSlotchange}
1019
1029
  @option-change=${this.onOptionChangeByScript}
1020
1030
  @option-change-by-user=${this.onOptionChangeByUser}
1021
1031
  ></slot>
1022
1032
  </div>
1023
- `}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 ve&&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(i=>{i.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 oc((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)})}};He.elementDefinitions={};He.styles=O`
1033
+ `}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 ve&&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(i=>{i.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 ic((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)})}};He.elementDefinitions={};He.styles=O`
1024
1034
  :host {
1025
1035
  display: inline-block;
1026
1036
  }
@@ -1054,7 +1064,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1054
1064
  --switch-internal-vertical-padding: 2px;
1055
1065
  --switch-internal-horizontal-padding: 4px;
1056
1066
  }
1057
- `;qr([f({type:Boolean})],He.prototype,"dense",void 0);qr([f({type:Boolean})],He.prototype,"unselectable",void 0);qr([f()],He.prototype,"label",void 0);qr([U(".ft-switch slot")],He.prototype,"slottedContent",void 0);qr([T()],He.prototype,"selectedOption",void 0);qr([T()],He.prototype,"displayFocusWhenUsingKeyboard",void 0);qr([U(".ft-switch")],He.prototype,"ftSwitchDiv",void 0);var Sf={"ft-switch":He,"ft-switch-option":ve};q(Sf);function ua(t){return O`
1067
+ `;eo([f({type:Boolean})],He.prototype,"dense",void 0);eo([f({type:Boolean})],He.prototype,"unselectable",void 0);eo([f()],He.prototype,"label",void 0);eo([U(".ft-switch slot")],He.prototype,"slottedContent",void 0);eo([T()],He.prototype,"selectedOption",void 0);eo([T()],He.prototype,"displayFocusWhenUsingKeyboard",void 0);eo([U(".ft-switch")],He.prototype,"ftSwitchDiv",void 0);var Cf={"ft-switch":He,"ft-switch-option":ve};q(Cf);function ha(t){return O`
1058
1068
  [part="container"] {
1059
1069
  box-sizing: border-box;
1060
1070
  display: flex;
@@ -1113,25 +1123,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1113
1123
  [part="buttons-container"] {
1114
1124
  align-self: flex-end;
1115
1125
  }
1116
- `}var fa={feedbackInputMinWidth:o.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:o.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:o.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:o.external(dr.fontSize,"Typography"),sectionTitleFontSize:o.external(pr.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var B={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",S.colorOutline),textColor:o.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:o.external(S.colorError,"Design system")},Cf=O`
1126
+ `}var ma={feedbackInputMinWidth:o.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:o.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:o.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:o.external(Qt.fontSize,"Typography"),sectionTitleFontSize:o.external(er.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var V={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",S.colorOutline),textColor:o.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:o.external(S.colorError,"Design system")},wf=O`
1117
1127
  .ft-input-label {
1118
1128
  position: absolute;
1119
1129
  inset: 0;
1120
1130
  display: flex;
1121
- background-color: ${B.backgroundColor};
1122
- border-radius: ${B.borderRadius} ${B.borderRadius} 0 0;
1131
+ background-color: ${V.backgroundColor};
1132
+ border-radius: ${V.borderRadius} ${V.borderRadius} 0 0;
1123
1133
  }
1124
1134
 
1125
1135
  .ft-input-label--outlined {
1126
- border-radius: ${B.borderRadius};
1136
+ border-radius: ${V.borderRadius};
1127
1137
  }
1128
1138
 
1129
1139
  .ft-input-label {
1130
- border-color: ${B.borderColor};
1140
+ border-color: ${V.borderColor};
1131
1141
  }
1132
1142
 
1133
1143
  .ft-input-label.ft-input-label--in-error {
1134
- border-color: ${B.colorError}
1144
+ border-color: ${V.colorError}
1135
1145
  }
1136
1146
 
1137
1147
  .ft-input-label:before,
@@ -1144,7 +1154,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1144
1154
  }
1145
1155
 
1146
1156
  .ft-input-label:before {
1147
- width: calc(${B.horizontalSpacing} - 4px);
1157
+ width: calc(${V.horizontalSpacing} - 4px);
1148
1158
  flex-shrink: 0;
1149
1159
  }
1150
1160
 
@@ -1160,20 +1170,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1160
1170
  border-bottom-width: 1px;
1161
1171
  border-bottom-style: solid;
1162
1172
  border-color: inherit;
1163
- color: ${B.textColor};
1173
+ color: ${V.textColor};
1164
1174
  transition: font-size 250ms, line-height 250ms, color 250ms;
1165
- max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1175
+ max-width: calc(${V.labelMaxWidth} - 2 * (${V.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1166
1176
  text-overflow: ellipsis;
1167
- ${A(rt.fontSize,B.fontSize)};
1168
- ${A(rt.lineHeight,B.fontSize)};
1177
+ ${A(qe.fontSize,V.fontSize)};
1178
+ ${A(qe.lineHeight,V.fontSize)};
1169
1179
  }
1170
1180
 
1171
1181
  .ft-input-label--in-error .ft-input-label--text {
1172
- color: ${B.colorError}
1182
+ color: ${V.colorError}
1173
1183
  }
1174
1184
 
1175
1185
  .ft-input-label--disabled .ft-input-label--text {
1176
- color: ${B.disabledTextColor};
1186
+ color: ${V.disabledTextColor};
1177
1187
  }
1178
1188
 
1179
1189
  .ft-input-label--hidden-text {
@@ -1185,24 +1195,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1185
1195
 
1186
1196
  .ft-input-label--floating-text {
1187
1197
  position: absolute;
1188
- top: calc(50% - ${rt.lineHeight} / 2);
1198
+ top: calc(50% - ${qe.lineHeight} / 2);
1189
1199
  transition: top 250ms;
1190
1200
  overflow: hidden;
1191
1201
  white-space: nowrap;
1192
1202
  text-overflow: ellipsis;
1193
- padding: ${B.verticalSpacing} 4px;
1194
- margin: calc(${B.verticalSpacing} * -1) 0;
1203
+ padding: ${V.verticalSpacing} 4px;
1204
+ margin: calc(${V.verticalSpacing} * -1) 0;
1195
1205
  max-width: 100%;
1196
1206
  box-sizing: border-box;
1197
1207
  }
1198
1208
 
1199
1209
  .ft-input-label--raised .ft-input-label--text {
1200
- ${A(rt.fontSize,B.raisedFontSize)};
1201
- ${A(rt.lineHeight,B.raisedFontSize)};
1210
+ ${A(qe.fontSize,V.raisedFontSize)};
1211
+ ${A(qe.lineHeight,V.raisedFontSize)};
1202
1212
  }
1203
1213
 
1204
1214
  .ft-input-label--raised .ft-input-label--floating-text {
1205
- top: ${B.verticalSpacing};
1215
+ top: ${V.verticalSpacing};
1206
1216
  }
1207
1217
 
1208
1218
  .ft-input-label--outlined .ft-input-label--text,
@@ -1215,27 +1225,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1215
1225
  .ft-input-label--outlined:before {
1216
1226
  border-left-width: 1px;
1217
1227
  border-left-style: solid;
1218
- border-radius: ${B.borderRadius} 0 0 ${B.borderRadius};
1228
+ border-radius: ${V.borderRadius} 0 0 ${V.borderRadius};
1219
1229
  }
1220
1230
 
1221
1231
  .ft-input-label--outlined:after {
1222
1232
  border-right-width: 1px;
1223
1233
  border-right-style: solid;
1224
- border-radius: 0 ${B.borderRadius} ${B.borderRadius} 0;
1234
+ border-radius: 0 ${V.borderRadius} ${V.borderRadius} 0;
1225
1235
  }
1226
1236
 
1227
1237
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1228
1238
  padding: 2px 4px;
1229
- z-index: ${B.raisedZIndex};
1230
- background-color: ${B.backgroundColor};
1231
- border-radius: ${B.borderRadius};
1232
- top: calc((${rt.lineHeight} / -2) + 2px);
1239
+ z-index: ${V.raisedZIndex};
1240
+ background-color: ${V.backgroundColor};
1241
+ border-radius: ${V.borderRadius};
1242
+ top: calc((${qe.lineHeight} / -2) + 2px);
1233
1243
  }
1234
1244
 
1235
1245
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1236
1246
  border-top: none;
1237
1247
  }
1238
- `;var ie={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system")},wf=O`
1248
+ `;var ie={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system")},Ef=O`
1239
1249
  *:focus {
1240
1250
  outline: none;
1241
1251
  }
@@ -1247,10 +1257,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1247
1257
  }
1248
1258
 
1249
1259
  ft-input-label {
1250
- ${A(B.fontSize,ie.fontSize)};
1251
- ${A(B.raisedFontSize,ie.labelSize)};
1252
- ${A(B.verticalSpacing,ie.verticalSpacing)};
1253
- ${A(B.horizontalSpacing,ie.horizontalSpacing)};
1260
+ ${A(V.fontSize,ie.fontSize)};
1261
+ ${A(V.raisedFontSize,ie.labelSize)};
1262
+ ${A(V.verticalSpacing,ie.verticalSpacing)};
1263
+ ${A(V.horizontalSpacing,ie.horizontalSpacing)};
1254
1264
  }
1255
1265
 
1256
1266
  .ft-text-area--main-panel {
@@ -1281,8 +1291,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1281
1291
  align-self: stretch;
1282
1292
  resize: none;
1283
1293
 
1284
- ${A(ct.fontSize,ie.fontSize)};
1285
- ${A(ct.lineHeight,ie.fontSize)};
1294
+ ${A(ot.fontSize,ie.fontSize)};
1295
+ ${A(ot.lineHeight,ie.fontSize)};
1286
1296
  color: ${ie.colorOnSurface};
1287
1297
 
1288
1298
  padding: 0 ${ie.horizontalSpacing};
@@ -1303,8 +1313,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1303
1313
  }
1304
1314
 
1305
1315
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1306
- ${A(B.borderColor,ie.colorPrimary)};
1307
- ${A(B.textColor,ie.colorPrimary)};
1316
+ ${A(V.borderColor,ie.colorPrimary)};
1317
+ ${A(V.textColor,ie.colorPrimary)};
1308
1318
  }
1309
1319
 
1310
1320
  .ft-text-area--filled .ft-text-area--input-panel {
@@ -1335,7 +1345,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1335
1345
  position: absolute;
1336
1346
  bottom: 0;
1337
1347
  }
1338
- `;var Ef={colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system")},Of=O`
1348
+ `;var Of={colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system")},Af=O`
1339
1349
  :host {
1340
1350
  display: block;
1341
1351
  }
@@ -1346,15 +1356,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1346
1356
 
1347
1357
  ft-icon {
1348
1358
  transform: rotate(-45deg);
1349
- color: ${Ef.colorOutline};
1359
+ color: ${Of.colorOutline};
1350
1360
  }
1351
1361
 
1352
1362
  .ft-resizer--dragging ft-icon,
1353
1363
  .ft-resizer:hover ft-icon,
1354
1364
  [role="button"][aria-pressed="true"] ft-icon{
1355
- color: ${Ef.colorOnSurfaceMedium};
1365
+ color: ${Of.colorOnSurfaceMedium};
1356
1366
  }
1357
- `;var Bt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},ha=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends F{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=De.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`
1367
+ `;var Bt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},ga=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends F{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$e.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`
1358
1368
  <style>
1359
1369
  .ft-resizer {
1360
1370
  cursor: ${Vt(this.cursor)}
@@ -1369,16 +1379,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1369
1379
  @keydown=${this.initKeydownPress}>
1370
1380
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
1371
1381
  </div>
1372
- `}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 ha(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 i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ha(i,n))}};Te.elementDefinitions={"ft-icon":re};Te.styles=[Kt,Of];Bt([f({type:Number})],Te.prototype,"initialWidth",void 0);Bt([f({type:Number})],Te.prototype,"initialHeight",void 0);Bt([f()],Te.prototype,"icon",void 0);Bt([f()],Te.prototype,"iconVariant",void 0);Bt([f()],Te.prototype,"cursor",void 0);Bt([f()],Te.prototype,"ariaLabel",void 0);Bt([T()],Te.prototype,"dragging",void 0);Bt([T()],Te.prototype,"isAriaPressed",void 0);Bt([Vi({passive:!0})],Te.prototype,"initDragFromMouse",null);Bt([Vi({passive:!0})],Te.prototype,"initDragFromTouch",null);var Af={"ft-resizer":Te};q(Af);var _f=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Yr=class extends F{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1382
+ `}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 ga(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 i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ga(i,n))}};Te.elementDefinitions={"ft-icon":re};Te.styles=[Kt,Af];Bt([f({type:Number})],Te.prototype,"initialWidth",void 0);Bt([f({type:Number})],Te.prototype,"initialHeight",void 0);Bt([f()],Te.prototype,"icon",void 0);Bt([f()],Te.prototype,"iconVariant",void 0);Bt([f()],Te.prototype,"cursor",void 0);Bt([f()],Te.prototype,"ariaLabel",void 0);Bt([T()],Te.prototype,"dragging",void 0);Bt([T()],Te.prototype,"isAriaPressed",void 0);Bt([Hi({passive:!0})],Te.prototype,"initDragFromMouse",null);Bt([Hi({passive:!0})],Te.prototype,"initDragFromTouch",null);var _f={"ft-resizer":Te};q(_f);var Rf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},to=class extends F{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1373
1383
  <div class="${oe(this.inputLabelClasses)}">
1374
- ${An(this.text,()=>x`
1384
+ ${Rn(this.text,()=>x`
1375
1385
  <div class="ft-input-label--text ft-typography--caption">
1376
1386
  <label class="ft-input-label--floating-text">${this.text}</label>
1377
1387
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1378
1388
  </div>
1379
1389
  `)}
1380
1390
  </div>
1381
- `}};Yr.elementDefinitions={};_f([f({type:String})],Yr.prototype,"text",void 0);_f([f({type:Boolean})],Yr.prototype,"raised",void 0);var ic=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},it=class extends Yr{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}}};it.elementDefinitions={};it.styles=[zn,Cf];ic([f({type:Boolean})],it.prototype,"outlined",void 0);ic([f({type:Boolean})],it.prototype,"error",void 0);ic([f({type:Boolean})],it.prototype,"disabled",void 0);var Rf={"ft-input-label":it};q(Rf);var ft=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},we=class extends Mr(F){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`
1391
+ `}};to.elementDefinitions={};Rf([f({type:String})],to.prototype,"text",void 0);Rf([f({type:Boolean})],to.prototype,"raised",void 0);var nc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},at=class extends to{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}}};at.elementDefinitions={};at.styles=[Wn,wf];nc([f({type:Boolean})],at.prototype,"outlined",void 0);nc([f({type:Boolean})],at.prototype,"error",void 0);nc([f({type:Boolean})],at.prototype,"disabled",void 0);var Tf={"ft-input-label":at};q(Tf);var ht=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},we=class extends Dr(F){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`
1382
1392
  <style>
1383
1393
  .ft-text-area--main-panel {
1384
1394
  height: calc(4 * ${ie.verticalSpacing} + ${ie.labelSize} + ${ie.fontSize} + ${this.height}px);
@@ -1423,7 +1433,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1423
1433
  ${this.helper}
1424
1434
  </ft-typography>`:void 0}
1425
1435
  </div>
1426
- `}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)}};we.elementDefinitions={"ft-input-label":it,"ft-resizer":Te,"ft-ripple":K,"ft-typography":J};we.styles=[ur,wf];ft([f({type:String})],we.prototype,"label",void 0);ft([f({reflect:!0})],we.prototype,"value",void 0);ft([f({type:String})],we.prototype,"helper",void 0);ft([f({type:Boolean})],we.prototype,"outlined",void 0);ft([f({type:Boolean})],we.prototype,"disabled",void 0);ft([f({type:Boolean})],we.prototype,"error",void 0);ft([gt({reflect:!0})],we.prototype,"height",void 0);ft([gt()],we.prototype,"maxHeight",void 0);ft([U("textarea")],we.prototype,"textarea",void 0);ft([T()],we.prototype,"focused",void 0);ft([Ht()],we.prototype,"onKeyDown",null);ft([Ht()],we.prototype,"liveUpdateValueFromInputField",null);var Tf={"ft-text-area":we};q(Tf);var le=pt.build("integratedFeedbackComponent"),If={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 ma=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},ga=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ya=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:o.external(S.colorOutline,"Design system"),elevation02:o.external(S.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},kf=O`
1436
+ `}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)}};we.elementDefinitions={"ft-input-label":at,"ft-resizer":Te,"ft-ripple":K,"ft-typography":Q};we.styles=[ur,Ef];ht([f({type:String})],we.prototype,"label",void 0);ht([f({reflect:!0})],we.prototype,"value",void 0);ht([f({type:String})],we.prototype,"helper",void 0);ht([f({type:Boolean})],we.prototype,"outlined",void 0);ht([f({type:Boolean})],we.prototype,"disabled",void 0);ht([f({type:Boolean})],we.prototype,"error",void 0);ht([yt({reflect:!0})],we.prototype,"height",void 0);ht([yt()],we.prototype,"maxHeight",void 0);ht([U("textarea")],we.prototype,"textarea",void 0);ht([T()],we.prototype,"focused",void 0);ht([Ht()],we.prototype,"onKeyDown",null);ht([Ht()],we.prototype,"liveUpdateValueFromInputField",null);var kf={"ft-text-area":we};q(kf);var le=pt.build("integratedFeedbackComponent"),Lf={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 ya=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},ba=class extends CustomEvent{constructor(e){super("change",{detail:e})}},xa=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:o.external(S.colorOutline,"Design system"),elevation02:o.external(S.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},If=O`
1427
1437
  *:focus {
1428
1438
  outline: none;
1429
1439
  }
@@ -1437,11 +1447,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1437
1447
  }
1438
1448
 
1439
1449
  ft-input-label {
1440
- ${A(B.fontSize,G.fontSize)};
1441
- ${A(B.raisedFontSize,G.labelSize)};
1442
- ${A(B.verticalSpacing,G.verticalSpacing)};
1443
- ${A(B.horizontalSpacing,G.horizontalSpacing)};
1444
- ${A(B.backgroundColor,G.backgroundColor)};
1450
+ ${A(V.fontSize,G.fontSize)};
1451
+ ${A(V.raisedFontSize,G.labelSize)};
1452
+ ${A(V.verticalSpacing,G.verticalSpacing)};
1453
+ ${A(V.horizontalSpacing,G.horizontalSpacing)};
1454
+ ${A(V.backgroundColor,G.backgroundColor)};
1445
1455
  }
1446
1456
 
1447
1457
  .ft-text-field--main-panel {
@@ -1458,8 +1468,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1458
1468
  overflow: hidden;
1459
1469
  padding: 0 ${G.horizontalSpacing};
1460
1470
 
1461
- ${A(ct.fontSize,G.fontSize)};
1462
- ${A(ct.lineHeight,G.fontSize)};
1471
+ ${A(ot.fontSize,G.fontSize)};
1472
+ ${A(ot.lineHeight,G.fontSize)};
1463
1473
  }
1464
1474
 
1465
1475
  .ft-text-field--input-panel ft-ripple {
@@ -1520,8 +1530,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1520
1530
  }
1521
1531
 
1522
1532
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1523
- ${A(B.borderColor,G.colorPrimary)};
1524
- ${A(B.textColor,G.colorPrimary)};
1533
+ ${A(V.borderColor,G.colorPrimary)};
1534
+ ${A(V.textColor,G.colorPrimary)};
1525
1535
  }
1526
1536
 
1527
1537
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1576,13 +1586,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1576
1586
  }
1577
1587
 
1578
1588
  .ft-text-field--with-icon {
1579
- ${A(B.labelMaxWidth,`calc(100% - ${Ce.size} - ${B.horizontalSpacing})`)};
1589
+ ${A(V.labelMaxWidth,`calc(100% - ${Ce.size} - ${V.horizontalSpacing})`)};
1580
1590
  }
1581
1591
 
1582
1592
  .ft-text-field--with-password ft-icon:hover {
1583
1593
  cursor: pointer;
1584
1594
  }
1585
- `;var Lf=O`
1595
+ `;var Pf=O`
1586
1596
  .ft-text-field-suggestion {
1587
1597
  position: relative;
1588
1598
  padding: 8px 16px;
@@ -1618,7 +1628,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1618
1628
  slot {
1619
1629
  pointer-events: none;
1620
1630
  }
1621
- `;var ba=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},nc=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ht=class extends F{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1631
+ `;var va=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},mt=class extends F{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1622
1632
  <div class="${oe(e)}"
1623
1633
  tabindex="-1"
1624
1634
  @keydown=${this.onKeyDown}
@@ -1634,7 +1644,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1634
1644
  <slot></slot>
1635
1645
  </ft-typography>
1636
1646
  </div>
1637
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new nc(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};ht.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-icon":re};ht.styles=Lf;ba([f()],ht.prototype,"value",void 0);ba([f()],ht.prototype,"helper",void 0);ba([U(".ft-text-field-suggestion")],ht.prototype,"container",void 0);ba([Ho()],ht.prototype,"assignedNodes",void 0);var Q=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},V=class extends Mr(F){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Wr.EYE_SLASH,this.passwordRevealedIcon=Wr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}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)}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()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1647
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new ac(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};mt.elementDefinitions={"ft-ripple":K,"ft-typography":Q,"ft-icon":re};mt.styles=Pf;va([f()],mt.prototype,"value",void 0);va([f()],mt.prototype,"helper",void 0);va([U(".ft-text-field-suggestion")],mt.prototype,"container",void 0);va([Go()],mt.prototype,"assignedNodes",void 0);var J=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},B=class extends Dr(F){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=qr.EYE_SLASH,this.passwordRevealedIcon=qr.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}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)}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()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1638
1648
  <div class="${oe(r)}">
1639
1649
  <div class="ft-text-field--main-panel"
1640
1650
  @keydown=${this.handleKeyboardNavigation}
@@ -1654,28 +1664,32 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1654
1664
  </ft-typography>
1655
1665
  `:R}
1656
1666
  <input type="${this.resolveInputType()}"
1657
- name="${Ot(this.name)}"
1658
- maxlength="${Ot(this.maxLength||void 0)}"
1667
+ name="${At(this.name)}"
1668
+ maxlength="${At(this.maxLength||void 0)}"
1659
1669
  aria-label="${this.label}"
1660
- aria-describedby="${Ot(this.helper?"helper":void 0)}"
1670
+ aria-describedby="${At(this.helper?"helper":void 0)}"
1661
1671
  aria-invalid="${this.error}"
1662
- autocomplete="${Ot(this.autocomplete)}"
1672
+ autocomplete="${At(this.autocomplete)}"
1663
1673
  class="ft-typography--body1 ft-text-field--input"
1664
1674
  part="input"
1665
1675
  ?disabled=${this.disabled}
1666
1676
  .value=${this.value}
1667
1677
  @click=${this.handleClick}
1668
- @keydown=${this.handleInput}
1669
- @keyup=${this.catchComposingEvents}
1678
+ @keyup=${this.handleInput}
1679
+ @keydown=${this.catchComposingEvents}
1670
1680
  @focus=${this.onFocus}
1671
1681
  />
1672
1682
  ${this.renderIcon()}
1673
1683
  </div>
1674
1684
  <div class="ft-text-field--suggestions"
1685
+ part="suggestions"
1675
1686
  @suggestion-selected=${this.onSuggestionSelected}>
1676
1687
  ${this.renderSuggestions()}
1677
- ${a?x`
1678
- <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1688
+ ${!this.hideCurrentValueSuggestion&&a?x`
1689
+ <ft-text-field-suggestion
1690
+ class="ft-text-field-suggestion--new-value"
1691
+ part="suggestion current-value-suggestion"
1692
+ helper="${this.suggestionsHelper}">
1679
1693
  ${this.value}
1680
1694
  </ft-text-field-suggestion>
1681
1695
  `:R}
@@ -1689,7 +1703,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1689
1703
  </div>
1690
1704
  `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?x`
1691
1705
  ${je(this.providedSuggestions,e=>x`
1692
- <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1706
+ <ft-text-field-suggestion part="suggestion" value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1693
1707
  ${e.icon?x`
1694
1708
  <ft-icon .value=${e.icon}></ft-icon>
1695
1709
  `:R}
@@ -1708,7 +1722,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1708
1722
  .variant=${this.iconVariant}
1709
1723
  .value=${this.icon}
1710
1724
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1711
- `:R}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.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 i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new ma(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new ga(e))):this.dispatchEvent(new ya(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];ws(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};V.elementDefinitions={"ft-input-label":it,"ft-ripple":K,"ft-typography":J,"ft-icon":re,"ft-text-field-suggestion":ht};V.styles=[ur,Ms,kf];Q([f()],V.prototype,"label",void 0);Q([f({noAccessor:!0})],V.prototype,"value",null);Q([T()],V.prototype,"dispatchedValue",void 0);Q([f()],V.prototype,"helper",void 0);Q([f()],V.prototype,"suggestionsHelper",void 0);Q([f({type:Boolean})],V.prototype,"outlined",void 0);Q([f({type:Boolean})],V.prototype,"disabled",void 0);Q([f({type:Boolean})],V.prototype,"error",void 0);Q([f({type:Boolean})],V.prototype,"fixedMenuPosition",void 0);Q([f()],V.prototype,"prefix",void 0);Q([f()],V.prototype,"icon",void 0);Q([f()],V.prototype,"name",void 0);Q([f()],V.prototype,"type",void 0);Q([f()],V.prototype,"passwordHiddenIcon",void 0);Q([f()],V.prototype,"passwordRevealedIcon",void 0);Q([f()],V.prototype,"iconVariant",void 0);Q([f({type:Boolean})],V.prototype,"filterSuggestions",void 0);Q([gt()],V.prototype,"maxLength",void 0);Q([f({type:Boolean})],V.prototype,"password",void 0);Q([f({type:String})],V.prototype,"autocomplete",void 0);Q([f({attribute:!1})],V.prototype,"suggestionsProvider",void 0);Q([T()],V.prototype,"focused",void 0);Q([T()],V.prototype,"inputValid",void 0);Q([T()],V.prototype,"hidePassword",void 0);Q([T()],V.prototype,"hideSuggestions",void 0);Q([T()],V.prototype,"visibleSuggestions",void 0);Q([T()],V.prototype,"providedSuggestions",void 0);Q([U(".ft-text-field--main-panel")],V.prototype,"mainPanel",void 0);Q([U(".ft-text-field--input")],V.prototype,"input",void 0);Q([U(".ft-text-field-suggestion--new-value")],V.prototype,"newValueSuggestion",void 0);Q([U(".ft-text-field--suggestions")],V.prototype,"suggestionsContainer",void 0);Q([Ba("ft-text-field-suggestion")],V.prototype,"providedSuggestionsInDom",void 0);Q([zo({selector:"ft-text-field-suggestion"})],V.prototype,"slottedSuggestions",void 0);Q([Ht()],V.prototype,"handleInput",null);Q([Ht()],V.prototype,"catchComposingEvents",null);var Pf={"ft-text-field":V,"ft-text-field-suggestion":ht};q(Pf);var xa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 ut(be){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(le,If),this.addStore(N)}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,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:_e.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?Gi(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?R:x`
1725
+ `:R}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){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=Ko(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]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.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 i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new ya(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new ba(e))):this.dispatchEvent(new xa(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];Es(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":at,"ft-ripple":K,"ft-typography":Q,"ft-icon":re,"ft-text-field-suggestion":mt};B.styles=[ur,Ms,If];J([f()],B.prototype,"label",void 0);J([f({noAccessor:!0})],B.prototype,"value",null);J([T()],B.prototype,"dispatchedValue",void 0);J([f()],B.prototype,"helper",void 0);J([f()],B.prototype,"suggestionsHelper",void 0);J([f({type:Boolean})],B.prototype,"outlined",void 0);J([f({type:Boolean})],B.prototype,"disabled",void 0);J([f({type:Boolean})],B.prototype,"error",void 0);J([f({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);J([f()],B.prototype,"prefix",void 0);J([f()],B.prototype,"icon",void 0);J([f()],B.prototype,"name",void 0);J([f()],B.prototype,"type",void 0);J([f()],B.prototype,"passwordHiddenIcon",void 0);J([f()],B.prototype,"passwordRevealedIcon",void 0);J([f()],B.prototype,"iconVariant",void 0);J([f({type:Boolean})],B.prototype,"filterSuggestions",void 0);J([yt()],B.prototype,"maxLength",void 0);J([f({type:Boolean})],B.prototype,"password",void 0);J([f({type:String})],B.prototype,"autocomplete",void 0);J([f({attribute:!1})],B.prototype,"suggestionsProvider",void 0);J([f({type:Boolean})],B.prototype,"hideCurrentValueSuggestion",void 0);J([T()],B.prototype,"focused",void 0);J([T()],B.prototype,"inputValid",void 0);J([T()],B.prototype,"hidePassword",void 0);J([T()],B.prototype,"hideSuggestions",void 0);J([T()],B.prototype,"visibleSuggestions",void 0);J([T()],B.prototype,"providedSuggestions",void 0);J([U(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);J([U(".ft-text-field--input")],B.prototype,"input",void 0);J([U(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);J([U(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);J([za("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);J([Wo({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);J([Ht()],B.prototype,"handleInput",null);J([Ht()],B.prototype,"catchComposingEvents",null);var Nf={"ft-text-field":B,"ft-text-field-suggestion":mt};q(Nf);var Sa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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 ut(be){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(le,Lf),this.addStore(D)}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,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:_e.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?Ki(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?R:x`
1712
1726
  <div part="container">
1713
1727
  ${this.hideTitle?R:x`
1714
1728
  <ft-typography variant="${te.title}" part="main-title">
@@ -1817,7 +1831,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1817
1831
  ${l}
1818
1832
  </div>
1819
1833
  </form>
1820
- `}return R}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;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&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new xa({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)}};ce.elementDefinitions={"ft-button":W,"ft-typography":J,"ft-switch":He,"ft-switch-option":ve,"ft-text-area":we,"ft-text-field":V};Ae([f({type:Boolean})],ce.prototype,"hideTitle",void 0);Ae([f({type:Boolean})],ce.prototype,"withMoreOptionsButton",void 0);Ae([f()],ce.prototype,"iconVariant",void 0);Ae([f()],ce.prototype,"emptyStarIcon",void 0);Ae([f()],ce.prototype,"filledStarIcon",void 0);Ae([f()],ce.prototype,"emptyLikeIcon",void 0);Ae([f()],ce.prototype,"filledLikeIcon",void 0);Ae([f()],ce.prototype,"emptyDislikeIcon",void 0);Ae([f()],ce.prototype,"filledDislikeIcon",void 0);Ae([f({type:Boolean})],ce.prototype,"canAccessFeedback",void 0);Ae([f({type:Boolean})],ce.prototype,"canRateThisContent",void 0);Ae([f({attribute:!1})],ce.prototype,"i18nProperties",void 0);Ae([f({attribute:!1})],ce.prototype,"ratingSummary",void 0);Ae([f()],ce.prototype,"configuration",void 0);Ae([f()],ce.prototype,"feedbackMailLinkBuilder",void 0);Ae([Y({store:N.name})],ce.prototype,"session",void 0);Ae([U("[part='feedback-input']")],ce.prototype,"feedbackInput",void 0);Ae([T()],ce.prototype,"from",void 0);Ae([T()],ce.prototype,"feedbackMessage",void 0);var Ii=class extends ce{};Ii.styles=ua(fa);var ac=pt.build("inDesignerFeedbackComponent"),Nf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var va=pt.fromGwt("server");var Sa=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1834
+ `}return R}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;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&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Sa({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)}};ce.elementDefinitions={"ft-button":W,"ft-typography":Q,"ft-switch":He,"ft-switch-option":ve,"ft-text-area":we,"ft-text-field":B};Ae([f({type:Boolean})],ce.prototype,"hideTitle",void 0);Ae([f({type:Boolean})],ce.prototype,"withMoreOptionsButton",void 0);Ae([f()],ce.prototype,"iconVariant",void 0);Ae([f()],ce.prototype,"emptyStarIcon",void 0);Ae([f()],ce.prototype,"filledStarIcon",void 0);Ae([f()],ce.prototype,"emptyLikeIcon",void 0);Ae([f()],ce.prototype,"filledLikeIcon",void 0);Ae([f()],ce.prototype,"emptyDislikeIcon",void 0);Ae([f()],ce.prototype,"filledDislikeIcon",void 0);Ae([f({type:Boolean})],ce.prototype,"canAccessFeedback",void 0);Ae([f({type:Boolean})],ce.prototype,"canRateThisContent",void 0);Ae([f({attribute:!1})],ce.prototype,"i18nProperties",void 0);Ae([f({attribute:!1})],ce.prototype,"ratingSummary",void 0);Ae([f()],ce.prototype,"configuration",void 0);Ae([f()],ce.prototype,"feedbackMailLinkBuilder",void 0);Ae([Y({store:D.name})],ce.prototype,"session",void 0);Ae([U("[part='feedback-input']")],ce.prototype,"feedbackInput",void 0);Ae([T()],ce.prototype,"from",void 0);Ae([T()],ce.prototype,"feedbackMessage",void 0);var Ii=class extends ce{};Ii.styles=ha(ma);var sc=pt.build("inDesignerFeedbackComponent"),Df={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ca=pt.fromGwt("server");var wa=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1821
1835
  ${this.bodyMetadata}
1822
1836
  ${this.url}
1823
1837
  _________________________________________________________________
@@ -1825,7 +1839,7 @@ _________________________________________________________________
1825
1839
  ${e??""}
1826
1840
 
1827
1841
  _________________________________________________________________
1828
- ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var $e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},de=class extends qe(ut(Ze)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.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 Fn){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=De.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 Sa,this.i18nProperties={feedbackMainTitle:le.properties.viewerFeedbackMainTitle(),ratingSectionTitle:le.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:le.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:le.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(N)}render(){return x`
1842
+ ${Ca.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var Fe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},de=class extends Ye(ut(Ze)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.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 Bn){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=$e.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 wa,this.i18nProperties={feedbackMainTitle:le.properties.viewerFeedbackMainTitle(),ratingSectionTitle:le.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:le.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:le.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(D)}render(){return x`
1829
1843
  <ft-viewer-feedback
1830
1844
  ?hideTitle=${this.hideTitle}
1831
1845
  iconVariant="${this.iconVariant}"
@@ -1846,7 +1860,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1846
1860
  @mailer-feedback=${this.onMailerFeedbackSent}
1847
1861
  @open-more-options=${this.openMoreOptions}
1848
1862
  ></ft-viewer-feedback>
1849
- `}willUpdate(e){var r,i,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ac,Nf),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(r=this.document.prettyUrl)!==null&&r!==void 0?r:"",this.document.metadata,this.configuration,((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.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,i,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((i=this.service)===null||i===void 0?void 0:i.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new It({type:"error",message:le.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new It({type:"info",message:ac.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 It({type:"info",message:le.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new It({type:"error",message:le.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new pa)}openMoreOptions(){var e,r;this.dispatchEvent(new da({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}))}};de.styles=ua(fa);de.elementDefinitions={"ft-viewer-feedback":Ii};de.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.documentRating};$e([Y({store:N.name})],de.prototype,"session",void 0);$e([Y({store:"viewer"})],de.prototype,"document",void 0);$e([Y({store:N.name})],de.prototype,"editorMode",void 0);$e([Y({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],de.prototype,"configuration",void 0);$e([Y({store:"viewer",selector:de.storedRatingIfAuthenticated})],de.prototype,"ratingSummary",void 0);$e([f({type:Boolean})],de.prototype,"hideTitle",void 0);$e([f()],de.prototype,"iconVariant",void 0);$e([f()],de.prototype,"emptyStarIcon",void 0);$e([f()],de.prototype,"filledStarIcon",void 0);$e([f()],de.prototype,"emptyLikeIcon",void 0);$e([f()],de.prototype,"filledLikeIcon",void 0);$e([f()],de.prototype,"emptyDislikeIcon",void 0);$e([f()],de.prototype,"filledDislikeIcon",void 0);$e([U("ft-viewer-feedback")],de.prototype,"viewerFeedback",void 0);$e([aa(va.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"]}))],de.prototype,"mailSubject",void 0);$e([Y({store:"viewer",selector:({descriptor:t})=>t?.displayName})],de.prototype,"displayName",void 0);var Ca=class extends qe(be){};var Mf=O`
1863
+ `}willUpdate(e){var r,i,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(sc,Df),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(r=this.document.prettyUrl)!==null&&r!==void 0?r:"",this.document.metadata,this.configuration,((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.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,i,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((i=this.service)===null||i===void 0?void 0:i.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Lt({type:"error",message:le.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Lt({type:"info",message:sc.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:le.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Lt({type:"error",message:le.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new fa)}openMoreOptions(){var e,r;this.dispatchEvent(new ua({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}))}};de.styles=ha(ma);de.elementDefinitions={"ft-viewer-feedback":Ii};de.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.documentRating};Fe([Y({store:D.name})],de.prototype,"session",void 0);Fe([Y({store:"viewer"})],de.prototype,"document",void 0);Fe([Y({store:D.name})],de.prototype,"editorMode",void 0);Fe([Y({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],de.prototype,"configuration",void 0);Fe([Y({store:"viewer",selector:de.storedRatingIfAuthenticated})],de.prototype,"ratingSummary",void 0);Fe([f({type:Boolean})],de.prototype,"hideTitle",void 0);Fe([f()],de.prototype,"iconVariant",void 0);Fe([f()],de.prototype,"emptyStarIcon",void 0);Fe([f()],de.prototype,"filledStarIcon",void 0);Fe([f()],de.prototype,"emptyLikeIcon",void 0);Fe([f()],de.prototype,"filledLikeIcon",void 0);Fe([f()],de.prototype,"emptyDislikeIcon",void 0);Fe([f()],de.prototype,"filledDislikeIcon",void 0);Fe([U("ft-viewer-feedback")],de.prototype,"viewerFeedback",void 0);Fe([la(Ca.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"]}))],de.prototype,"mailSubject",void 0);Fe([Y({store:"viewer",selector:({descriptor:t})=>t?.displayName})],de.prototype,"displayName",void 0);var Ea=class extends Ye(be){};var Mf=O`
1850
1864
  :host {
1851
1865
  display: inline-block;
1852
1866
  }
@@ -1866,7 +1880,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1866
1880
  all: unset;
1867
1881
  position: relative;
1868
1882
  }
1869
- `;var Df=o.extend("--ft-chip-color","",S.colorOnSurface),Xe={backgroundColor:o.extend("--ft-chip-background-color","",S.colorSurface),color:Df,fontSize:o.extend("--ft-chip-font-size","",dt.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",dt.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",Df),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},$f=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",S.colorOnPrimary)),sc={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",S.colorPrimary)),color:$f,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",$f)},Ff={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Uf=[Kt,O`
1883
+ `;var $f=o.extend("--ft-chip-color","",S.colorOnSurface),Je={backgroundColor:o.extend("--ft-chip-background-color","",S.colorSurface),color:$f,fontSize:o.extend("--ft-chip-font-size","",it.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",it.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",$f),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},Ff=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",S.colorOnPrimary)),lc={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",S.colorPrimary)),color:Ff,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Ff)},Uf={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Bf=[Kt,O`
1870
1884
  :host {
1871
1885
  display: inline-block;
1872
1886
  max-width: 100%;
@@ -1882,21 +1896,21 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1882
1896
  box-sizing: border-box;
1883
1897
  pointer-events: auto;
1884
1898
 
1885
- --chip-internal-font-size: ${Xe.fontSize};
1886
- --chip-internal-font-weight: ${Xe.fontWeight};
1899
+ --chip-internal-font-size: ${Je.fontSize};
1900
+ --chip-internal-font-weight: ${Je.fontWeight};
1887
1901
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1888
- ${A(Ce.size,Xe.iconSize)};
1889
- --chip-internal-vertical-padding: ${Xe.verticalPadding};
1890
- --chip-internal-horizontal-padding: ${Xe.horizontalPadding};
1902
+ ${A(Ce.size,Je.iconSize)};
1903
+ --chip-internal-vertical-padding: ${Je.verticalPadding};
1904
+ --chip-internal-horizontal-padding: ${Je.horizontalPadding};
1891
1905
  --chip-internal-icon-padding: 3px;
1892
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${Xe.iconSize});
1906
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Je.iconSize});
1893
1907
 
1894
- border: 1px solid ${Xe.borderColor};
1895
- color: ${Xe.color};
1896
- ${A(ne.color,Xe.rippleColor)};
1897
- border-radius: var(${Vt(Xe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1908
+ border: 1px solid ${Je.borderColor};
1909
+ color: ${Je.color};
1910
+ ${A(ne.color,Je.rippleColor)};
1911
+ border-radius: var(${Vt(Je.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1898
1912
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1899
- background-color: ${Xe.backgroundColor};
1913
+ background-color: ${Je.backgroundColor};
1900
1914
  line-height: var(--chip-internal-content-height);
1901
1915
  }
1902
1916
 
@@ -1906,28 +1920,28 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1906
1920
 
1907
1921
  .ft-chip--dense {
1908
1922
  --chip-internal-icon-padding: 3px;
1909
- --chip-internal-vertical-padding: ${Ff.verticalPadding};
1910
- --chip-internal-horizontal-padding: ${Ff.horizontalPadding};
1923
+ --chip-internal-vertical-padding: ${Uf.verticalPadding};
1924
+ --chip-internal-horizontal-padding: ${Uf.horizontalPadding};
1911
1925
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1912
1926
  }
1913
1927
 
1914
1928
  .ft-chip--no-content {
1915
- --chip-internal-horizontal-padding: ${Xe.horizontalPadding.get(O`var(--chip-internal-vertical-padding)`)};
1929
+ --chip-internal-horizontal-padding: ${Je.horizontalPadding.get(O`var(--chip-internal-vertical-padding)`)};
1916
1930
  }
1917
1931
 
1918
1932
  .ft-chip--disabled {
1919
1933
  cursor: default;
1920
1934
  pointer-events: none;
1921
1935
  filter: grayscale(1);
1922
- opacity: ${Xe.opacityDisabled};
1936
+ opacity: ${Je.opacityDisabled};
1923
1937
  }
1924
1938
 
1925
1939
  .ft-chip--highlighted {
1926
1940
  border: none;
1927
1941
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1928
- background-color: ${sc.backgroundColor};
1929
- ${A(ne.color,sc.rippleColor)};
1930
- color: ${sc.color};
1942
+ background-color: ${lc.backgroundColor};
1943
+ ${A(ne.color,lc.rippleColor)};
1944
+ color: ${lc.color};
1931
1945
  }
1932
1946
 
1933
1947
  .ft-chip--clickable {
@@ -1958,7 +1972,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1958
1972
  }
1959
1973
 
1960
1974
  .ft-chip--icon-button {
1961
- ${A(ee.iconSize,Xe.iconSize)};
1975
+ ${A(ee.iconSize,Je.iconSize)};
1962
1976
  ${A(ee.horizontalPadding,"var(--chip-internal-icon-padding)")};
1963
1977
  ${A(ee.verticalPadding,"var(--chip-internal-icon-padding)")};
1964
1978
  margin: calc((-1) * var(--chip-internal-icon-padding));
@@ -1968,9 +1982,9 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1968
1982
  vertical-align: bottom;
1969
1983
  display: block;
1970
1984
  margin: 0 var(--chip-internal-horizontal-padding);
1971
- ${A(dt.fontSize,"var(--chip-internal-font-size)")};
1972
- ${A(dt.fontWeight,"var(--chip-internal-font-weight)")};
1973
- ${A(dt.lineHeight,"var(--chip-internal-content-height)")};
1985
+ ${A(it.fontSize,"var(--chip-internal-font-size)")};
1986
+ ${A(it.fontWeight,"var(--chip-internal-font-weight)")};
1987
+ ${A(it.lineHeight,"var(--chip-internal-content-height)")};
1974
1988
  }
1975
1989
 
1976
1990
  .ft-chip--safari-fix .ft-chip--label {
@@ -2006,7 +2020,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2006
2020
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2007
2021
  order: -1;
2008
2022
  }
2009
- `];var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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(){super("icon-click")}},ge=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){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":Ur};return x`
2023
+ `];var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Oa=class extends CustomEvent{constructor(){super("icon-click")}},ge=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){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":Ur};return x`
2010
2024
  <div class="${oe(r)}"
2011
2025
  aria-label="${this.getLabel()}"
2012
2026
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -2033,7 +2047,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2033
2047
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2034
2048
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
2035
2049
  </div>
2036
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new wa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new wa))}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)}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-icon":re,"ft-button":W};ge.styles=Uf;We([f({type:Boolean})],ge.prototype,"highlighted",void 0);We([f({type:Boolean})],ge.prototype,"removable",void 0);We([f({type:Boolean})],ge.prototype,"disabled",void 0);We([f({type:Boolean})],ge.prototype,"clickable",void 0);We([f({type:Boolean})],ge.prototype,"iconClickable",void 0);We([f({type:Boolean})],ge.prototype,"dense",void 0);We([f({type:Boolean})],ge.prototype,"multiLine",void 0);We([f()],ge.prototype,"label",void 0);We([f()],ge.prototype,"iconLabel",void 0);We([f({type:Boolean})],ge.prototype,"hideIconTooltip",void 0);We([f()],ge.prototype,"icon",void 0);We([f()],ge.prototype,"iconVariant",void 0);We([f({type:Boolean})],ge.prototype,"trailingIcon",void 0);We([f()],ge.prototype,"typographyVariant",void 0);We([U("ft-typography slot")],ge.prototype,"slottedContent",void 0);var Bf={"ft-chip":ge};q(Bf);var uy={iconColor:o.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},Vf=O`
2050
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Oa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Oa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":Q,"ft-icon":re,"ft-button":W};ge.styles=Bf;We([f({type:Boolean})],ge.prototype,"highlighted",void 0);We([f({type:Boolean})],ge.prototype,"removable",void 0);We([f({type:Boolean})],ge.prototype,"disabled",void 0);We([f({type:Boolean})],ge.prototype,"clickable",void 0);We([f({type:Boolean})],ge.prototype,"iconClickable",void 0);We([f({type:Boolean})],ge.prototype,"dense",void 0);We([f({type:Boolean})],ge.prototype,"multiLine",void 0);We([f()],ge.prototype,"label",void 0);We([f()],ge.prototype,"iconLabel",void 0);We([f({type:Boolean})],ge.prototype,"hideIconTooltip",void 0);We([f()],ge.prototype,"icon",void 0);We([f()],ge.prototype,"iconVariant",void 0);We([f({type:Boolean})],ge.prototype,"trailingIcon",void 0);We([f()],ge.prototype,"typographyVariant",void 0);We([U("ft-typography slot")],ge.prototype,"slottedContent",void 0);var Vf={"ft-chip":ge};q(Vf);var fy={iconColor:o.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},zf=O`
2037
2051
  .ft-floating-menu-item {
2038
2052
  cursor: pointer;
2039
2053
  display: flex;
@@ -2053,7 +2067,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2053
2067
  }
2054
2068
 
2055
2069
  .ft-floating-menu-item ft-icon {
2056
- color: ${uy.iconColor};
2070
+ color: ${fy.iconColor};
2057
2071
  margin-left: 0;
2058
2072
  flex-shrink: 0;
2059
2073
  flex-grow: 0;
@@ -2068,7 +2082,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2068
2082
  word-break: break-word;
2069
2083
  hyphens: auto;
2070
2084
  }
2071
- `;var Lo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Ea=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Fe=class extends F{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`
2085
+ `;var No=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Ue=class extends F{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`
2072
2086
  <div class="${oe(this.floatingClasses)}"
2073
2087
  tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
2074
2088
  aria-disabled="${this.disabled}"
@@ -2084,7 +2098,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2084
2098
  <slot></slot>
2085
2099
  </ft-typography>
2086
2100
  </div>
2087
- `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Ea(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Ea(this.value)))}};Fe.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":J};Fe.styles=Vf;Lo([f()],Fe.prototype,"iconVariant",void 0);Lo([f()],Fe.prototype,"icon",void 0);Lo([f()],Fe.prototype,"value",void 0);Lo([f({type:Boolean})],Fe.prototype,"notFocusable",void 0);Lo([f({type:Boolean})],Fe.prototype,"disabled",void 0);Lo([Ht()],Fe.prototype,"onKeyDown",null);var gr={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:o.external(S.colorSurface,"Design system"),menuElevation:o.external(S.elevation02,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system")},zf=O`
2101
+ `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Aa(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Aa(this.value)))}};Ue.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":Q};Ue.styles=zf;No([f()],Ue.prototype,"iconVariant",void 0);No([f()],Ue.prototype,"icon",void 0);No([f()],Ue.prototype,"value",void 0);No([f({type:Boolean})],Ue.prototype,"notFocusable",void 0);No([f({type:Boolean})],Ue.prototype,"disabled",void 0);No([Ht()],Ue.prototype,"onKeyDown",null);var gr={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:o.external(S.colorSurface,"Design system"),menuElevation:o.external(S.elevation02,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system")},Hf=O`
2088
2102
  .ft-floating-menu {
2089
2103
  color: ${gr.textColor};
2090
2104
  display: contents;
@@ -2115,7 +2129,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2115
2129
  .ft-floating-menu--open .ft-floating-menu--options {
2116
2130
  display: block;
2117
2131
  }
2118
- `;var Ue=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Oa=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Aa=class extends CustomEvent{constructor(e){super("select",{detail:e})}},pe=class extends F{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=De.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 Oa(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`
2132
+ `;var Be=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},_a=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Ra=class extends CustomEvent{constructor(e){super("select",{detail:e})}},pe=class extends F{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=$e.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 _a(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`
2119
2133
  <div part="container" class="${oe(e)}" @keydown=${this.onKeyDown}>
2120
2134
  <slot name="toggle"
2121
2135
  part="toggle"
@@ -2146,7 +2160,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2146
2160
  </div>
2147
2161
  </div>
2148
2162
  </div>
2149
- `}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 Aa(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:i}=await ii(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${i}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())}};pe.elementDefinitions={"ft-floating-menu-item":Fe,"ft-button":W};pe.styles=zf;Ue([f()],pe.prototype,"horizontalAlignment",void 0);Ue([f()],pe.prototype,"verticalAlignment",void 0);Ue([Pe([])],pe.prototype,"closeMenuMatchers",void 0);Ue([f({type:Boolean})],pe.prototype,"primary",void 0);Ue([f()],pe.prototype,"label",void 0);Ue([f()],pe.prototype,"tooltipPosition",void 0);Ue([f()],pe.prototype,"icon",void 0);Ue([f()],pe.prototype,"iconVariant",void 0);Ue([f()],pe.prototype,"text",void 0);Ue([f({type:Boolean})],pe.prototype,"disabled",void 0);Ue([T()],pe.prototype,"menuOpen",void 0);Ue([T()],pe.prototype,"forceMenuOpen",void 0);Ue([U(".ft-floating-menu")],pe.prototype,"container",void 0);Ue([U(".ft-floating-menu--wrapper")],pe.prototype,"menuWrapper",void 0);Ue([U("#actions-button")],pe.prototype,"actionButton",void 0);Ue([zo({slot:"toggle"})],pe.prototype,"customToggle",void 0);var fy={color:o.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},Hf=O`
2163
+ `}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 Ra(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:i}=await si(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${i}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())}};pe.elementDefinitions={"ft-floating-menu-item":Ue,"ft-button":W};pe.styles=Hf;Be([f()],pe.prototype,"horizontalAlignment",void 0);Be([f()],pe.prototype,"verticalAlignment",void 0);Be([Pe([])],pe.prototype,"closeMenuMatchers",void 0);Be([f({type:Boolean})],pe.prototype,"primary",void 0);Be([f()],pe.prototype,"label",void 0);Be([f()],pe.prototype,"tooltipPosition",void 0);Be([f()],pe.prototype,"icon",void 0);Be([f()],pe.prototype,"iconVariant",void 0);Be([f()],pe.prototype,"text",void 0);Be([f({type:Boolean})],pe.prototype,"disabled",void 0);Be([T()],pe.prototype,"menuOpen",void 0);Be([T()],pe.prototype,"forceMenuOpen",void 0);Be([U(".ft-floating-menu")],pe.prototype,"container",void 0);Be([U(".ft-floating-menu--wrapper")],pe.prototype,"menuWrapper",void 0);Be([U("#actions-button")],pe.prototype,"actionButton",void 0);Be([Wo({slot:"toggle"})],pe.prototype,"customToggle",void 0);var hy={color:o.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},Wf=O`
2150
2164
  .ft-floating-menu-label {
2151
2165
  padding: 4px 8px;
2152
2166
  }
@@ -2157,7 +2171,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2157
2171
  width: max-content;
2158
2172
  text-overflow: ellipsis;
2159
2173
  overflow: hidden;
2160
- color: ${fy.color}
2174
+ color: ${hy.color}
2161
2175
  }
2162
2176
  `;var yr=class extends F{render(){return x`
2163
2177
  <div class="ft-floating-menu-label">
@@ -2165,7 +2179,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2165
2179
  <slot></slot>
2166
2180
  </ft-typography>
2167
2181
  </div>
2168
- `}};yr.elementDefinitions={"ft-typography":J};yr.styles=Hf;var Wf={"ft-floating-menu":pe,"ft-floating-menu-item":Fe,"ft-floating-menu-label":yr};q(Wf);function hy(t){var e;return((e=ro(t))===null||e===void 0?void 0:e.openMode)===En.EXTERNAL}function Gf(t){return hy(t)?ro(t).originUrl:Yo(t)}var ki=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};var Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Se=class extends hu(ut(Ca)){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,i,n,a,s;return this.metadata?this.metadata.label:(s=(n=(i=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.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(ko)}willUpdate(e){var r,i,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&&((i=this.viewerStateManager)===null||i===void 0||i.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?ir.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new ki((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,i,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,((i=this.document)===null||i===void 0?void 0:i.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2182
+ `}};yr.elementDefinitions={"ft-typography":Q};yr.styles=Wf;var Gf={"ft-floating-menu":pe,"ft-floating-menu-item":Ue,"ft-floating-menu-label":yr};q(Gf);function my(t){var e;return((e=so(t))===null||e===void 0?void 0:e.openMode)===An.EXTERNAL}function jf(t){return my(t)?so(t).originUrl:Qo(t)}var Pi=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};var Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);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},Se=class extends mu(ut(Ea)){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,i,n,a,s;return this.metadata?this.metadata.label:(s=(n=(i=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.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(Po)}willUpdate(e){var r,i,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&&((i=this.viewerStateManager)===null||i===void 0||i.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?ar.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Pi((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,i,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,((i=this.document)===null||i===void 0?void 0:i.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2169
2183
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
2170
2184
  ${this.hideIfEmpty()}
2171
2185
  `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?x`
@@ -2182,7 +2196,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2182
2196
  ${je(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2183
2197
  </ft-floating-menu>
2184
2198
  </div>
2185
- `}renderRelativeItem(e,r){var i,n;let a=this.translateValues&&(n=new ki((i=this.availableContentLocales)!==null&&i!==void 0?i:[]).localize(r))!==null&&n!==void 0?n:r,s=Gf(e);return x`
2199
+ `}renderRelativeItem(e,r){var i,n;let a=this.translateValues&&(n=new Pi((i=this.availableContentLocales)!==null&&i!==void 0?i:[]).localize(r))!==null&&n!==void 0?n:r,s=jf(e);return x`
2186
2200
  <a part="relative-item-link"
2187
2201
  href="${s}" >
2188
2202
  <ft-ripple part="relative-item-ripple"></ft-ripple>
@@ -2215,7 +2229,7 @@ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2215
2229
  text="${u}">
2216
2230
  ${m}
2217
2231
  </ft-tooltip>
2218
- `}};Se.elementDefinitions={"ft-chip":ge,"ft-floating-menu":pe,"ft-floating-menu-item":Fe,"ft-floating-menu-label":yr,"ft-ripple":K,"ft-tooltip":me};Se.styles=Mf;Ge([f(),Fs()],Se.prototype,"key",void 0);Ge([f({type:Boolean})],Se.prototype,"multiLine",void 0);Ge([f({type:Boolean})],Se.prototype,"useForSwitchingToRelatives",void 0);Ge([f({type:Boolean})],Se.prototype,"displayLabel",void 0);Ge([gt()],Se.prototype,"hierarchicalValueTruncatingLevel",void 0);Ge([f({type:Boolean})],Se.prototype,"forceTooltip",void 0);Ge([f({attribute:!1})],Se.prototype,"editorMode",void 0);Ge([f({type:Boolean})],Se.prototype,"translateValues",void 0);Ge([Y({store:"viewer",selector:(t,e)=>{var r,i;return(i=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||i===void 0?void 0:i.find(n=>n.key===e.key)}})],Se.prototype,"metadata",void 0);Ge([T()],Se.prototype,"flatMetadata",void 0);Ge([Y({store:"viewer"})],Se.prototype,"document",void 0);Ge([T()],Se.prototype,"relatives",void 0);Ge([Y({store:N.name})],Se.prototype,"availableContentLocales",void 0);Ge([aa(ko.properties.itemWithNoValueForSwitchToRelatives())],Se.prototype,"noValueMessage",void 0);Ge([st({eventName:fr.clusteringHelperCreated})],Se.prototype,"updateRelatives",null);var jf={"ft-asset-viewer-content":Wn,"ft-asset-viewer-context":Jt,"ft-asset-viewer-document-title":qn,"ft-asset-viewer-filename":Gn,"ft-asset-viewer-mime-type-icon":Zn,"ft-asset-viewer-title":jn,"ft-ud-viewer-attachments":jr,"ft-ud-viewer-content":Qn,"ft-ud-viewer-context":mr,"ft-ud-viewer-filename":ea,"ft-ud-viewer-metadata":Se,"ft-ud-viewer-mime-type-icon":ra,"ft-ud-viewer-title":ta,"ft-ud-viewer-feedback":de};q(jf);})();
2232
+ `}};Se.elementDefinitions={"ft-chip":ge,"ft-floating-menu":pe,"ft-floating-menu-item":Ue,"ft-floating-menu-label":yr,"ft-ripple":K,"ft-tooltip":me};Se.styles=Mf;Ge([f(),Us()],Se.prototype,"key",void 0);Ge([f({type:Boolean})],Se.prototype,"multiLine",void 0);Ge([f({type:Boolean})],Se.prototype,"useForSwitchingToRelatives",void 0);Ge([f({type:Boolean})],Se.prototype,"displayLabel",void 0);Ge([yt()],Se.prototype,"hierarchicalValueTruncatingLevel",void 0);Ge([f({type:Boolean})],Se.prototype,"forceTooltip",void 0);Ge([f({attribute:!1})],Se.prototype,"editorMode",void 0);Ge([f({type:Boolean})],Se.prototype,"translateValues",void 0);Ge([Y({store:"viewer",selector:(t,e)=>{var r,i;return(i=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||i===void 0?void 0:i.find(n=>n.key===e.key)}})],Se.prototype,"metadata",void 0);Ge([T()],Se.prototype,"flatMetadata",void 0);Ge([Y({store:"viewer"})],Se.prototype,"document",void 0);Ge([T()],Se.prototype,"relatives",void 0);Ge([Y({store:D.name})],Se.prototype,"availableContentLocales",void 0);Ge([la(Po.properties.itemWithNoValueForSwitchToRelatives())],Se.prototype,"noValueMessage",void 0);Ge([ct({eventName:fr.clusteringHelperCreated})],Se.prototype,"updateRelatives",null);var Kf={"ft-asset-viewer-content":jn,"ft-asset-viewer-context":Jt,"ft-asset-viewer-document-title":Xn,"ft-asset-viewer-filename":Kn,"ft-asset-viewer-mime-type-icon":Yn,"ft-asset-viewer-title":Zn,"ft-ud-viewer-attachments":Xr,"ft-ud-viewer-content":ta,"ft-ud-viewer-context":mr,"ft-ud-viewer-filename":ra,"ft-ud-viewer-metadata":Se,"ft-ud-viewer-mime-type-icon":ia,"ft-ud-viewer-title":oa,"ft-ud-viewer-feedback":de};q(Kf);})();
2219
2233
  /*! Bundled license information:
2220
2234
 
2221
2235
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: